/* ==========================================================================
   Components — Shared UI component styles
   ========================================================================== */

/* --- Header --- */
.site-header {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.site-header .logo-link {
    display: flex;
    align-items: center;
}

.site-header .logo-img {
    max-width: 11rem;
    width: 100%;
    height: auto;
}

.site-header nav {
    display: flex;
    gap: 1.5rem;
    margin-left: 1rem;
    margin-right: 1rem;
}

.site-header nav a {
    color: hsl(var(--foreground));
    font-weight: 700;
    transition: color 150ms ease;
}

.site-header nav a:hover {
    color: hsl(var(--muted-foreground));
}

.site-header .login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-weight: 700;
    padding: 0.75rem 2.25rem;
    border-radius: 9999px;
    transition: background-color 150ms ease;
}

.site-header .login-btn:hover {
    background-color: hsl(var(--primary) / 0.8);
}

@media (min-width: 640px) {
    .site-header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .site-header .logo-link {
        margin-bottom: 0;
    }
}

/* Header variants */
.header-transparent {
    background-color: transparent;
}

.header-secondary {
    background-color: hsl(var(--secondary));
}

.header-rounded {
    border-radius: 70px;
}

/* --- Footer --- */
.site-footer {
    background-color: #000;
    color: #fff;
    padding: 1.5rem 0;
}

.site-footer .footer-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-footer .footer-logo {
    margin: 2rem 0;
}

.site-footer .footer-logo img {
    width: 250px;
    height: auto;
}

.site-footer .footer-divider {
    border-top: 1px solid #d1d5db;
    width: 70%;
    max-width: 70%;
    margin: 1rem;
}

.site-footer .footer-nav {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-footer .footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer .footer-nav a {
    font-size: 0.875rem;
    color: #fff;
    transition: text-decoration 150ms ease;
}

.site-footer .footer-nav a:hover {
    text-decoration: underline;
}

.site-footer .footer-bottom {
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    margin-top: 2rem;
    padding: 0 2.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-footer .footer-bottom p,
.site-footer .footer-bottom a {
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.site-footer .footer-bottom a:hover {
    text-decoration: underline;
}

.site-footer .footer-legal {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* --- Banner CTA --- */
.banner-cta {
    position: relative;
    width: 100%;
    margin-top: 2rem;
    overflow: hidden;
}

.banner-cta .banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-cta .banner-content {
    position: relative;
    padding: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.banner-cta .banner-content h2 {
    font-weight: 700;
    color: #fff;
    font-size: 1.875rem;
}

.banner-cta .banner-content a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #fff;
    color: #000;
    font-size: 0.875rem;
    border-radius: var(--radius);
    font-weight: 700;
    text-align: center;
    transition: background-color 150ms ease;
}

.banner-cta .banner-content a:hover {
    background-color: #d1d5db;
}

@media (min-width: 768px) {
    .banner-cta .banner-content {
        flex-direction: row;
        justify-content: space-around;
    }

    .banner-cta .banner-content h2 {
        width: 50%;
    }
}

/* --- Service Card (marquee card) --- */
.service-card {
    width: 18rem;
    height: 20rem;
    border-radius: 60px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    padding: 1.5rem 2.75rem 2.5rem;
    background-color: hsl(var(--secondary));
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.service-card:hover {
    transform: scale(1.05);
}

.service-card .icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    width: 3rem;
    border-radius: 9999px;
    background-color: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    margin-bottom: 1rem;
}

.service-card .icon-circle img {
    width: 1.5rem;
    height: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: hsl(var(--card-foreground));
    text-align: center;
}

.service-card hr {
    border-top: 1px solid hsl(var(--border));
    width: 100%;
    margin: 1rem 0;
}

.service-card p {
    color: hsl(var(--card-foreground));
    font-size: 1rem;
    text-align: center;
}

/* --- Card (generic) --- */
.card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.6);
    border-radius: var(--radius);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
}

.card-content {
    padding: 0 1.5rem 1.5rem;
}

.card-title {
    font-weight: 700;
    color: hsl(var(--card-foreground));
}

.card-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.card-hover:hover {
    border-color: hsl(var(--primary) / 0.5);
    transition: border-color 150ms ease;
}

/* --- WhatsApp Widget --- */
.whatsapp-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
}

.whatsapp-widget a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-widget a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgb(0 0 0 / 0.3);
}

.whatsapp-widget svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: #fff;
}

/* --- Form Inputs --- */
.form-input {
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--input));
    background-color: transparent;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    color: hsl(var(--foreground));
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: box-shadow 150ms ease;
}

.form-input::placeholder {
    color: hsl(var(--muted-foreground));
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 1px hsl(var(--ring));
}

.form-input:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.form-textarea {
    width: 100%;
    min-height: 7rem;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--input));
    background-color: transparent;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    color: hsl(var(--foreground));
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    resize: vertical;
    font-family: inherit;
    transition: box-shadow 150ms ease;
}

.form-textarea::placeholder {
    color: hsl(var(--muted-foreground));
}

.form-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px hsl(var(--ring));
}

.form-textarea:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease, opacity 150ms ease;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover:not(:disabled) {
    background-color: hsl(var(--primary) / 0.8);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}

.btn-outline:hover:not(:disabled) {
    background-color: hsl(var(--accent));
}

.btn-green {
    background-color: #22c55e;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 700;
}

.btn-green:hover:not(:disabled) {
    opacity: 0.8;
}

/* --- Toast Notification --- */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
    animation: text-entrance-right 0.3s ease forwards;
    max-width: 24rem;
}

.toast-success {
    background-color: #22c55e;
    color: #fff;
}

.toast-error {
    background-color: hsl(0 84.2% 60.2%);
    color: #fff;
}

.toast-exit {
    animation: text-entrance-right 0.3s ease reverse forwards;
}

/* --- Overlay gradient  --- */
.overlay-gradient {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}