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

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;

    --font-body: 'Inter', system-ui, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(2, 6, 23, 0.08);
    --shadow-md: 0 4px 16px rgba(2, 6, 23, 0.1);
    --shadow-lg: 0 8px 32px rgba(2, 6, 23, 0.12);
    --shadow-xl: 0 16px 48px rgba(2, 6, 23, 0.15);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--slate-800);
    background: var(--slate-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    transition: var(--transition);
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--slate-900);
}

.nav__logo-icon {
    color: var(--teal-600);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-600);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--teal-700);
    background: var(--teal-50);
}

.nav__cta {
    padding: 10px 22px;
    background: var(--teal-600);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav__cta:hover {
    background: var(--teal-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav__toggle-line {
    width: 22px;
    height: 2px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: var(--transition);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
    opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    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;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(2, 6, 23, 0.82) 0%,
        rgba(15, 23, 42, 0.70) 50%,
        rgba(13, 148, 136, 0.40) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.hero__badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--teal-200);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero__headline br {
    display: none;
}

.hero__sub {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--slate-300);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--slate-400);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 1;
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--slate-400), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--teal-600);
    color: #fff;
}

.btn--primary:hover {
    background: var(--teal-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}

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

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.btn--teal {
    background: var(--teal-600);
    color: #fff;
}

.btn--teal:hover {
    background: var(--teal-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}

.btn--light {
    background: #fff;
    color: var(--teal-700);
}

.btn--light:hover {
    background: var(--teal-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--ghost-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

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

.btn--full {
    width: 100%;
}

/* ===== Section Shared ===== */
.section__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 12px;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.15;
    margin-bottom: 16px;
}

.section__title--light {
    color: #fff;
}

.section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section__desc {
    font-size: 1.05rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* ===== Services ===== */
.services {
    padding: 100px 0;
    background: var(--slate-50);
}

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

.service-card {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--teal-200);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-50);
    border-radius: var(--radius-md);
    color: var(--teal-600);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-card__icon {
    background: var(--teal-600);
    color: #fff;
}

.service-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 10px;
}

.service-card__desc {
    font-size: 0.95rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* ===== About ===== */
.about {
    padding: 100px 0;
    background: var(--slate-900);
    position: relative;
    overflow: hidden;
}

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

.about__image-wrap {
    position: relative;
}

.about__image-wrap img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.about__image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--teal-600);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

.about__content {
    padding: 20px 0;
}

.about__text {
    font-size: 1.05rem;
    color: var(--slate-300);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about__stats {
    display: flex;
    gap: 40px;
    margin: 36px 0 40px;
    padding: 28px 0;
    border-top: 1px solid var(--slate-700);
    border-bottom: 1px solid var(--slate-700);
}

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

.stat__number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal-400);
}

.stat__label {
    font-size: 0.85rem;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ===== Gallery ===== */
.gallery {
    padding: 100px 0;
    background: #fff;
}

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

.gallery__item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: auto;
}

.gallery__item:nth-child(1) { aspect-ratio: 5/6; }
.gallery__item:nth-child(2) { aspect-ratio: 5/4; }
.gallery__item:nth-child(3) { aspect-ratio: 5/4; }
.gallery__item:nth-child(4) { aspect-ratio: 5/6; }
.gallery__item:nth-child(5) { aspect-ratio: 5/4; }
.gallery__item:nth-child(6) { aspect-ratio: 5/6; }

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery__item:hover img {
    transform: scale(1.05);
}

/* ===== Testimonials ===== */
.testimonials {
    padding: 100px 0;
    background: var(--slate-100);
}

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

.testimonial {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    position: relative;
}

.testimonial::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--teal-100);
    position: absolute;
    top: 12px;
    left: 24px;
    line-height: 1;
}

.testimonial__text {
    font-size: 1rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial__author {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate-800);
    font-style: normal;
}

/* ===== CTA ===== */
.cta {
    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(2, 6, 23, 0.88) 0%,
        rgba(13, 148, 136, 0.65) 100%
    );
}

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

.cta__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.cta__text {
    font-size: 1.1rem;
    color: var(--slate-300);
    margin-bottom: 36px;
    line-height: 1.7;
}

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

/* ===== Contact ===== */
.contact {
    padding: 100px 0;
    background: #fff;
}

.contact__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact__text {
    font-size: 1.05rem;
    color: var(--slate-500);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

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

.contact__icon {
    color: var(--teal-600);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact__detail strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-900);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.contact__detail span,
.contact__detail a {
    font-size: 1rem;
    color: var(--slate-600);
}

.contact__detail a:hover {
    color: var(--teal-600);
}

.contact__map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ===== Form ===== */
.contact__form-wrap {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact__form-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 28px;
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 6px;
}

.form__input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--slate-800);
    background: #fff;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.form__input:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.form__input::placeholder {
    color: var(--slate-400);
}

.form__select {
    appearance: none;
    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%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

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

.form__success {
    text-align: center;
    padding: 40px 20px;
}

.form__success svg {
    color: var(--teal-500);
    margin: 0 auto 16px;
}

.form__success h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--slate-900);
    margin-bottom: 8px;
}

.form__success p {
    color: var(--slate-500);
}

/* ===== Footer ===== */
.footer {
    background: var(--slate-950);
    padding: 64px 0 32px;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--slate-800);
    flex-wrap: wrap;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 12px;
}

.footer__logo-icon {
    color: var(--teal-500);
}

.footer__tagline {
    font-size: 0.95rem;
    color: var(--slate-400);
    max-width: 280px;
    line-height: 1.6;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer__links a {
    font-size: 0.9rem;
    color: var(--slate-400);
    transition: var(--transition);
}

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

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    flex-wrap: wrap;
    gap: 12px;
}

.footer__bottom p {
    font-size: 0.85rem;
    color: var(--slate-500);
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials__grid .testimonial:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }
    
    .nav__menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid var(--slate-200);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav__menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav__link {
        padding: 12px 16px;
        width: 100%;
    }
    
    .nav__cta {
        padding: 14px 22px;
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

    .hero__headline br {
        display: block;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .about__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__image-wrap img {
        height: 360px;
    }

    .about__image-accent {
        display: none;
    }

    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery__item:nth-child(1),
    .gallery__item:nth-child(4),
    .gallery__item:nth-child(6) {
        aspect-ratio: 4/5;
    }

    .testimonials__grid {
        grid-template-columns: 1fr;
    }

    .testimonials__grid .testimonial:last-child {
        grid-column: span 1;
    }

    .contact__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact__form-wrap {
        padding: 28px;
    }

    .footer__top {
        flex-direction: column;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .about__stats {
        flex-direction: column;
        gap: 20px;
    }

    .gallery__grid {
        grid-template-columns: 1fr;
    }

    .gallery__item {
        aspect-ratio: 4/3 !important;
    }

    .cta__actions {
        flex-direction: column;
        align-items: center;
    }

    .cta__actions .btn {
        width: 100%;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
}

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