*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.75rem 1.5rem;
    background: #0f172a;
    color: #f8fafc;
    border-radius: 0.5rem;
    z-index: 100;
    font-size: 0.875rem;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ─── HEADER ─── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(15, 23, 42, 0.06);
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #334155;
    text-decoration: none;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #34d399;
    transition: width 0.3s ease;
}
.nav-link:hover { color: #0f172a; }
.nav-link:hover::after { width: 100%; }

/* ─── BUTTONS ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: #0f172a;
    color: #f8fafc;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #0f172a;
    border-radius: 0;
    transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
    cursor: pointer;
}
.btn-primary:hover {
    background: #1e293b;
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-primary.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 0.875rem;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.25rem;
    background: transparent;
    color: #f8fafc;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(248, 250, 252, 0.35);
    border-radius: 0;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
    cursor: pointer;
}
.btn-ghost:hover {
    background: rgba(248, 250, 252, 0.08);
    border-color: rgba(248, 250, 252, 0.6);
    transform: translateY(-1px);
}
.btn-ghost:active { transform: translateY(0); }

/* ─── MOBILE MENU ─── */
.mobile-menu {
    z-index: 50;
}
.mobile-menu:not(.hidden) { display: flex; flex-direction: column; }
.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-menu:not(.hidden) .mobile-menu-backdrop { opacity: 1; }
.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: #ffffff;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.mobile-menu:not(.hidden) .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-link {
    font-size: 1.125rem;
    font-weight: 400;
    color: #0f172a;
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-menu-link:hover { color: #34d399; padding-left: 0.5rem; }

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #0f172a;
}
.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1a3a5c 30%, #0f4a3a 60%, #0f172a 100%);
    z-index: 1;
}
.hero-pattern {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.7;
}
.hero-content {
    position: relative;
    z-index: 3;
    padding-bottom: 4rem;
}
.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #34d399;
    margin-bottom: 1.5rem;
}
.hero-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: #f8fafc;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}
.hero-headline br { display: none; }
@media (min-width: 768px) {
    .hero-headline br { display: block; }
}
.hero-sub {
    font-size: clamp(1rem, 1.3vw, 1.1875rem);
    font-weight: 300;
    line-height: 1.75;
    color: rgba(248, 250, 252, 0.7);
    max-width: 560px;
    margin: 0 auto 2.5rem;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-stat {
    text-align: center;
}
.hero-stat-num {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #f8fafc;
    letter-spacing: 0.02em;
}
.hero-stat-label {
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.4);
    margin-top: 0.25rem;
}
.hero-stat-divider {
    width: 1px;
    height: 2.5rem;
    background: rgba(248, 250, 252, 0.12);
}
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.hero-scroll span {
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.3);
}
.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ─── SECTIONS ─── */
.section {
    padding: 7rem 0;
}
.section-alt {
    background: #f8fafc;
}
.eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #34d399;
    margin-bottom: 1rem;
}
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.section-desc {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.75;
    color: #475569;
    max-width: 540px;
}

/* ─── SERVICES ─── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.08);
    margin-top: 4rem;
}
.service-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    transition: background 0.3s ease, transform 0.3s ease;
}
.service-card:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}
.service-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 0;
    margin-bottom: 1.5rem;
    color: #0f172a;
    transition: border-color 0.3s ease, color 0.3s ease;
}
.service-card:hover .service-icon {
    border-color: #34d399;
    color: #34d399;
}
.service-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #0f172a;
    margin-bottom: 0.75rem;
}
.service-desc {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.7;
    color: #475569;
}

/* ─── ABOUT ─── */
.about-image-wrapper {
    position: relative;
}
.about-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.about-image-accent {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 60%;
    height: 40%;
    border: 1px solid rgba(52, 211, 153, 0.3);
    z-index: -1;
}
.about-text {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1.5rem;
}
.about-values {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.about-value {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.about-value-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: #0f172a;
    margin-top: 0.125rem;
}
.about-value-title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 0.25rem;
}
.about-value-desc {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.6;
    color: #64748b;
}

/* ─── GALLERY ─── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 1rem;
    margin-top: 4rem;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.gallery-item:hover .gallery-item-overlay {
    background: rgba(15, 23, 42, 0.3);
}
.gallery-item-overlay svg {
    color: #f8fafc;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover .gallery-item-overlay svg {
    opacity: 1;
    transform: scale(1);
}
.gallery-item:nth-child(1) { grid-column: span 5; }
.gallery-item:nth-child(2) { grid-column: span 4; }
.gallery-item:nth-child(3) { grid-column: span 3; }
.gallery-item:nth-child(4) { grid-column: span 4; }

/* ─── TESTIMONIALS ─── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}
.testimonial-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 2.5rem 2rem;
    position: relative;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.testimonial-card:hover {
    border-color: rgba(52, 211, 153, 0.3);
    transform: translateY(-2px);
}
.testimonial-quote {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    color: rgba(15, 23, 42, 0.08);
}
.testimonial-text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 1.5rem;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.testimonial-author-avatar {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #34d399;
}
.testimonial-author-name {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0f172a;
}

/* ─── CONTACT ─── */
.contact-info { display: flex; flex-direction: column; }
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.contact-item-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: #0f172a;
}
.contact-item-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.375rem;
}
.contact-item-value {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}
.contact-item-value:hover { color: #34d399; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #334155;
}
.form-optional {
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0;
    color: #94a3b8;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 300;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #94a3b8;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
}
.contact-form select {
    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='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.contact-form textarea { resize: vertical; min-height: 120px; }

.form-success {
    text-align: center;
    padding: 3rem 2rem;
}
.form-success-icon {
    width: 3rem;
    height: 3rem;
    color: #34d399;
    margin: 0 auto 1.25rem;
}
.form-success-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 0.75rem;
}
.form-success-text {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.7;
    color: #475569;
}
.hidden { display: none !important; }

/* ─── FOOTER ─── */
.site-footer {
    background: #0f172a;
    padding: 4rem 0 2rem;
}
.footer-heading {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.35);
    margin-bottom: 1.25rem;
}
.footer-link {
    font-size: 0.9375rem;
    font-weight: 300;
    color: rgba(248, 250, 252, 0.6);
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.2s ease;
}
.footer-link:hover { color: #34d399; }

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}
.reveal[data-reveal].revealed {
    opacity: 1;
    transform: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1023px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item:nth-child(1) { grid-column: span 6; }
    .gallery-item:nth-child(2) { grid-column: span 6; }
    .gallery-item:nth-child(3) { grid-column: span 6; }
    .gallery-item:nth-child(4) { grid-column: span 6; }
}

@media (max-width: 767px) {
    .section { padding: 5rem 0; }
    .services-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-headline br { display: none; }
    .hero-stats { gap: 1.5rem; }
    .about-image-accent { display: none; }
    .gallery-item { grid-column: span 12 !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal[data-reveal] { opacity: 1; transform: none; }
}
