/* ========================================
   CSS Custom Properties
======================================== */
:root {
    --color-teal: #0d7377;
    --color-teal-light: #14919b;
    --color-teal-dark: #095456;
    --color-slate: #2c3e50;
    --color-slate-light: #4a6274;
    --color-slate-lighter: #7f8c9a;
    --color-cream: #f8f7f4;
    --color-white: #ffffff;
    --color-off-white: #f0efeb;
    --color-dark: #1a1f26;
    --color-line: #e2e0db;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Manrope', -apple-system, sans-serif;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

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(--color-slate);
    background-color: var(--color-cream);
    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);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   Custom Cursor
======================================== */
.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--color-teal);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-teal);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s ease;
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ========================================
   Typography
======================================== */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 300;
    line-height: 1.15;
    color: var(--color-slate);
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-teal);
    margin-bottom: 1.5rem;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2.2rem;
    border-radius: 0;
    transition: all 0.4s var(--ease-out);
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--color-teal-dark);
    border-color: var(--color-teal-dark);
    transform: translateY(-2px);
}

.btn-text {
    background: transparent;
    color: var(--color-slate-light);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-slate-light);
}

.btn-text:hover {
    color: var(--color-teal);
    border-color: var(--color-teal);
}

.btn-light {
    background: var(--color-white);
    color: var(--color-teal);
    border: 1px solid var(--color-white);
}

.btn-light:hover {
    background: var(--color-cream);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.4);
}

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

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

/* ========================================
   Navbar
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s var(--ease-out);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(248, 247, 244, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-line);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-slate);
}

.logo .dot {
    color: var(--color-teal);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-slate-light);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-teal);
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
    color: var(--color-teal);
}

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

.nav-cta {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-teal) !important;
    border: 1px solid var(--color-teal);
    padding: 0.6rem 1.4rem;
    transition: all 0.3s var(--ease-out);
}

.nav-cta:hover {
    background: var(--color-teal);
    color: var(--color-white) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--color-slate);
    transition: all 0.3s var(--ease-out);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-cream);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-slate);
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--color-teal);
}

.mobile-cta {
    font-family: var(--font-sans) !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-teal) !important;
    border-bottom: 1px solid var(--color-teal);
    padding-bottom: 4px;
    margin-top: 1rem;
}

/* ========================================
   Hero Section
======================================== */
.hero {
    min-height: 100vh;
    padding-top: 6rem;
    padding-bottom: 0;
    position: relative;
    background: var(--color-cream);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.hero-content {
    padding-right: 2rem;
}

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-teal);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

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

.hero-subhead {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-slate-light);
    max-width: 440px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-image {
    position: relative;
}

.hero-img-wrapper {
    overflow: hidden;
    aspect-ratio: 3/4;
}

.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.hero-img-wrapper:hover img {
    transform: scale(1.03);
}

.hero-accent {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    background: var(--color-teal);
    color: var(--color-white);
    padding: 1.5rem 2rem;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    font-weight: 300;
}

.hero-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-line);
}

/* ========================================
   About Section
======================================== */
.about {
    padding: 8rem 0;
    background: var(--color-white);
}

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

.about-text .section-title {
    margin-bottom: 2rem;
}

.about-body {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--color-slate-light);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-line);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

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

.stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-slate-lighter);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-line);
}

.about-image {
    overflow: hidden;
    aspect-ratio: 5/6;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.about-image:hover img {
    transform: scale(1.03);
}

/* ========================================
   Services Section
======================================== */
.services {
    padding: 8rem 0;
    background: var(--color-cream);
}

.service-title {
    max-width: 600px;
    margin-bottom: 4rem;
}

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

.service-card {
    padding: 3rem 2.5rem;
    border: 1px solid var(--color-line);
    margin: -0.5px;
    position: relative;
    transition: all 0.4s var(--ease-out);
    background: var(--color-cream);
}

.service-card:hover {
    background: var(--color-white);
    border-color: var(--color-teal);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(13, 115, 119, 0.08);
}

.service-number {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--color-teal);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.service-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-desc {
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--color-slate-light);
    font-weight: 300;
}

/* ========================================
   Gallery Section
======================================== */
.gallery {
    padding: 8rem 0;
    background: var(--color-white);
}

.gallery-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    aspect-ratio: 3/2;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ========================================
   CTA Section
======================================== */
.cta {
    padding: 8rem 0;
    background: var(--color-slate);
    text-align: center;
}

.cta-content {
    max-width: 680px;
    margin: 0 auto;
}

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

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.cta-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.6);
    font-weight: 300;
    margin-bottom: 3rem;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

/* ========================================
   Contact Section
======================================== */
.contact {
    padding: 8rem 0;
    background: var(--color-cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info .section-title {
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-slate-lighter);
}

.contact-value {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-slate);
    line-height: 1.5;
}

.contact-link {
    color: var(--color-teal);
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--color-teal-dark);
    text-decoration: underline;
}

/* Form */
.contact-form-wrapper {
    background: var(--color-white);
    padding: 3rem;
    border: 1px solid var(--color-line);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-slate-lighter);
    margin-bottom: 0.6rem;
}

.form-input {
    width: 100%;
    padding: 0.9rem 0;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--color-slate);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-line);
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
}

.form-input:focus {
    border-color: var(--color-teal);
}

.form-input::placeholder {
    color: var(--color-slate-lighter);
    opacity: 0.6;
}

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

.form-select {
    cursor: pointer;
}

.form-success {
    display: none;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(13, 115, 119, 0.06);
    border-left: 3px solid var(--color-teal);
}

.form-success p {
    font-size: 0.9rem;
    color: var(--color-teal);
    font-weight: 400;
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--color-dark);
    padding: 5rem 0 2rem;
    color: rgba(255,255,255,0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer .logo {
    color: var(--color-white);
    margin-bottom: 1.2rem;
    display: inline-block;
}

.footer-desc {
    font-size: 0.88rem;
    line-height: 1.8;
    font-weight: 300;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s ease;
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.8;
}

.footer-link {
    color: var(--color-teal-light);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.78rem;
    font-weight: 300;
}

/* ========================================
   Scroll Animations (progressive enhancement)
======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .hero-image {
        max-width: 500px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        max-width: 500px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        padding-top: 5rem;
    }
    
    .hero-container {
        padding-bottom: 3rem;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .hero-accent {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        display: inline-block;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .stat-divider {
        display: none;
    }
}
