/* ========================================
   MODISTA DORCAS MODA — Styles
   Clean Minimalist | Teal + Slate Grey
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --teal-900: #0F4C5C;
    --teal-700: #1A6B7A;
    --teal-600: #14B8A6;
    --teal-500: #1DBFB0;
    --teal-100: #E0F5F3;
    --teal-50: #F0FBF9;
    
    --slate-950: #0B1120;
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --slate-300: #CBD5E1;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --slate-50: #F8FAFC;
    
    --white: #FFFFFF;
    --off-white: #FAFBFC;
    
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--slate-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s var(--ease-out);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--slate-900);
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.section-line {
    width: 60px;
    height: 1px;
    background: var(--teal-600);
    margin-bottom: 32px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 14px 28px;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    white-space: nowrap;
}

.btn-primary {
    background: var(--teal-900);
    color: var(--white);
    border-color: var(--teal-900);
}

.btn-primary:hover {
    background: var(--teal-700);
    border-color: var(--teal-700);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(15, 76, 92, 0.25);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.btn-ghost-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost-light:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Header --- */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: all 0.5s var(--ease-out);
}

#site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--white);
    transition: color 0.4s var(--ease-out);
}

#site-header.scrolled .logo {
    color: var(--slate-900);
}

.logo-icon {
    display: flex;
    align-items: center;
    opacity: 0.9;
}

#site-header.scrolled .logo-icon {
    color: var(--teal-700);
}

.logo-text {
    font-weight: 400;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 4px 0;
}

#site-header.scrolled .nav-links a {
    color: var(--slate-600);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s var(--ease-out);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--white);
}

#site-header.scrolled .nav-links a:hover {
    color: var(--teal-700);
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem !important;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px !important;
    border-radius: 2px;
    transition: all 0.3s var(--ease-out) !important;
}

#site-header.scrolled .nav-phone {
    color: var(--teal-700) !important;
    border-color: var(--teal-700);
}

.nav-phone:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

#site-header.scrolled .nav-phone:hover {
    background: var(--teal-50) !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--white);
    position: relative;
    transition: background 0.3s var(--ease-out);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 1px;
    background: var(--white);
    left: 0;
    transition: all 0.3s var(--ease-out);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

#site-header.scrolled .hamburger,
#site-header.scrolled .hamburger::before,
#site-header.scrolled .hamburger::after {
    background: var(--slate-800);
}

#site-header.scrolled .nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

#site-header.scrolled .nav-toggle[aria-expanded="true"] .hamburger::before,
#site-header.scrolled .nav-toggle[aria-expanded="true"] .hamburger::after {
    background: var(--slate-800);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(11, 17, 32, 0.72) 0%,
        rgba(15, 76, 92, 0.55) 50%,
        rgba(11, 17, 32, 0.65) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    padding-top: 80px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal-500);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}

.hero-title {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero-title em {
    font-style: italic;
    color: var(--teal-400);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 520px;
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.7s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.9s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.7); }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Services Section --- */
.services {
    padding: 120px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-header .section-line {
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.service-card {
    background: var(--slate-50);
    padding: 48px 36px;
    transition: all 0.5s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--teal-600);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    background: var(--white);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    transform: translateY(-4px);
}

.service-icon {
    color: var(--teal-700);
    margin-bottom: 24px;
    opacity: 0.8;
    transition: opacity 0.3s var(--ease-out);
}

.service-card:hover .service-icon {
    opacity: 1;
}

.service-card h3 {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--slate-900);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* --- About Section --- */
.about {
    padding: 120px 0;
    background: var(--off-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 2px;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    border: 1px solid var(--teal-200);
    border-radius: 2px;
    z-index: -1;
}

.about-content {
    padding: 20px 0;
}

.about-content p {
    font-size: 1rem;
    color: var(--slate-600);
    line-height: 1.85;
    margin-bottom: 20px;
}

.about-content strong {
    color: var(--slate-800);
    font-weight: 500;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--slate-200);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--teal-700);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--slate-500);
    letter-spacing: 0.04em;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--slate-200);
}

/* --- Process Section --- */
.process {
    padding: 120px 0;
    background: var(--white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 16px;
}

.process-step {
    position: relative;
    padding-top: 32px;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--slate-200);
}

.step-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--teal-100);
    line-height: 1;
    margin-bottom: 16px;
    display: block;
}

.process-step h3 {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--slate-900);
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* --- CTA Banner --- */
.cta-banner {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 76, 92, 0.88) 0%,
        rgba(11, 17, 32, 0.82) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-content .section-label {
    color: var(--teal-400);
}

.cta-content .section-title {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content > p {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Contact Section --- */
.contact {
    padding: 120px 0;
    background: var(--slate-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info .section-title {
    margin-bottom: 12px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 40px 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    color: var(--teal-700);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate-400);
    margin-bottom: 4px;
}

.contact-item span,
.contact-item a {
    font-size: 1rem;
    color: var(--slate-700);
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--teal-700);
}

.map-container {
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--slate-200);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 48px;
    border-radius: 2px;
    border: 1px solid var(--slate-100);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.contact-form-wrapper > p {
    font-size: 0.9375rem;
    color: var(--slate-500);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--slate-800);
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 2px;
    padding: 12px 16px;
    transition: all 0.3s var(--ease-out);
    outline: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal-600);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--slate-400);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 24px;
    text-align: center;
    color: var(--teal-700);
}

.form-success svg {
    opacity: 0.6;
}

.form-success p {
    font-size: 1rem;
    color: var(--slate-700);
}

/* --- Footer --- */
#site-footer {
    background: var(--slate-950);
    color: var(--slate-400);
    padding: 80px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo-light {
    color: var(--white) !important;
    margin-bottom: 16px;
    display: inline-flex;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--slate-500);
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate-300);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--slate-500);
}

.footer-links a:hover {
    color: var(--teal-400);
}

.footer-contact p {
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 4px;
}

.footer-contact a {
    color: var(--slate-500);
}

.footer-contact a:hover {
    color: var(--teal-400);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.8125rem;
    color: var(--slate-600);
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transition: right 0.4s var(--ease-out);
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-links a {
        color: var(--slate-700) !important;
        font-size: 1rem;
    }
    
    .nav-links a:hover {
        color: var(--teal-700) !important;
    }
    
    .nav-phone {
        color: var(--teal-700) !important;
        border-color: var(--teal-700) !important;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: clamp(2.25rem, 8vw, 3rem);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-image img {
        height: 360px;
    }
    
    .about-image::after {
        display: none;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .process-step::before {
        display: none;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .services,
    .about,
    .process,
    .contact {
        padding: 80px 0;
    }
    
    .hero {
        min-height: 600px;
    }
}

/* --- Mobile Nav Overlay --- */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 17, 32, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}
