/* ============================================
   Sun Alteration Shop — Custom Styles
   Deep Navy (#0A1628) + Warm Gold (#C8962E)
   Playfair Display + Inter
   ============================================ */

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

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.65;
    color: #0A1628;
    background-color: #FDF9F0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    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;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.text-gold {
    color: #C8962E;
}

/* --- Section Shared --- */
.section {
    padding: 120px 0;
}

.section__eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #C8962E;
    margin-bottom: 16px;
}

.section__title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: #0A1628;
    margin-bottom: 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn--gold {
    background: #C8962E;
    color: #0A1628;
    border-color: #C8962E;
}

.btn--gold:hover {
    background: #b8872a;
    border-color: #b8872a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 150, 46, 0.3);
}

.btn--ghost {
    background: transparent;
    color: #FDF9F0;
    border-color: rgba(253, 249, 240, 0.5);
}

.btn--ghost:hover {
    border-color: #FDF9F0;
    background: rgba(253, 249, 240, 0.1);
    transform: translateY(-2px);
}

.btn--outline-light {
    background: transparent;
    color: #FDF9F0;
    border-color: rgba(253, 249, 240, 0.6);
}

.btn--outline-light:hover {
    border-color: #FDF9F0;
    background: rgba(253, 249, 240, 0.1);
    transform: translateY(-2px);
}

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.nav.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 0;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2);
}

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

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #FDF9F0;
}

.nav__logo-icon {
    flex-shrink: 0;
}

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

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(253, 249, 240, 0.8);
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C8962E;
    transition: width 0.3s ease;
}

.nav__link:hover {
    color: #FDF9F0;
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    padding: 10px 24px;
    border: 1px solid rgba(200, 150, 46, 0.6);
    border-radius: 4px;
    color: #C8962E;
    transition: all 0.3s ease;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: #C8962E;
    color: #0A1628;
}

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

.nav__toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #FDF9F0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.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);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__link {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #FDF9F0;
    transition: color 0.3s ease;
}

.mobile-menu__link:hover {
    color: #C8962E;
}

.mobile-menu__link--cta {
    margin-top: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 40px;
    border: 2px solid #C8962E;
    border-radius: 4px;
    color: #C8962E;
}

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

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

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.88) 0%,
        rgba(10, 22, 40, 0.72) 50%,
        rgba(10, 22, 40, 0.55) 100%
    );
}

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

.hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C8962E;
    margin-bottom: 24px;
}

.hero__headline {
    font-size: clamp(2.75rem, 6vw, 5.5rem);
    font-weight: 900;
    color: #FDF9F0;
    line-height: 1.05;
    margin-bottom: 28px;
    max-width: 800px;
}

.hero__accent {
    color: #C8962E;
    font-style: italic;
    font-weight: 400;
}

.hero__sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(253, 249, 240, 0.75);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 48px;
    font-weight: 300;
}

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

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(253, 249, 240, 0.5);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero__scroll:hover {
    color: #C8962E;
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: rgba(253, 249, 240, 0.3);
    position: relative;
    overflow: hidden;
}

.hero__scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #C8962E;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { top: -100%; }
    50% { top: 100%; }
    100% { top: 100%; }
}

/* --- Services --- */
.services {
    background: #FDF9F0;
}

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

.card {
    background: #fff;
    border-radius: 8px;
    padding: 40px 32px;
    border: 1px solid rgba(10, 22, 40, 0.06);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #C8962E;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.1);
    border-color: transparent;
}

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

.card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(200, 150, 46, 0.1);
    color: #C8962E;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.card:hover .card__icon {
    background: #C8962E;
    color: #0A1628;
}

.card__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0A1628;
    margin-bottom: 12px;
}

.card__body {
    font-size: 0.95rem;
    color: #4A5568;
    line-height: 1.7;
}

/* --- About --- */
.about {
    background: #0A1628;
    padding: 120px 0;
}

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

.about__image-wrap {
    position: relative;
}

.about__image-wrap img {
    border-radius: 8px;
    width: 100%;
    height: 560px;
    object-fit: cover;
}

.about__image-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 200px;
    height: 200px;
    border: 3px solid #C8962E;
    border-radius: 8px;
    z-index: -1;
}

.about__content {
    color: #FDF9F0;
}

.about__content .section__title {
    color: #FDF9F0;
}

.about__body {
    font-size: 1.05rem;
    color: rgba(253, 249, 240, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about__stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(253, 249, 240, 0.12);
}

.stat__number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #C8962E;
    line-height: 1;
    margin-bottom: 8px;
}

.stat__label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(253, 249, 240, 0.5);
}

/* --- Gallery --- */
.gallery {
    background: #FDF9F0;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 64px;
}

.gallery__item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3 / 2;
    cursor: pointer;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.gallery__item:hover::after {
    opacity: 1;
}

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

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

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

.cta-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.92) 0%,
        rgba(10, 22, 40, 0.82) 100%
    );
}

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

.cta-banner__title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #FDF9F0;
    margin-bottom: 20px;
}

.cta-banner__text {
    font-size: 1.15rem;
    color: rgba(253, 249, 240, 0.7);
    margin-bottom: 40px;
    font-weight: 300;
}

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

/* --- Contact --- */
.contact {
    background: #fff;
}

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

.contact__body {
    font-size: 1.05rem;
    color: #4A5568;
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

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

.contact__detail dt {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 150, 46, 0.1);
    border-radius: 10px;
    color: #C8962E;
}

.contact__detail dd {
    font-size: 1rem;
    color: #0A1628;
    line-height: 1.7;
}

.contact__detail dd a {
    color: #0A1628;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact__detail dd a:hover {
    color: #C8962E;
}

/* Contact Form */
.contact__form-wrap {
    background: #FDF9F0;
    border-radius: 12px;
    padding: 48px;
}

.contact__form-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0A1628;
    margin-bottom: 8px;
}

.contact__form-sub {
    font-size: 0.95rem;
    color: #4A5568;
    margin-bottom: 32px;
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0A1628;
    margin-bottom: 8px;
}

.form__optional {
    font-weight: 400;
    font-size: 0.75rem;
    text-transform: none;
    letter-spacing: 0;
    color: #718096;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #0A1628;
    background: #fff;
    border: 1.5px solid rgba(10, 22, 40, 0.12);
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: #A0AEC0;
}

.form__input:focus,
.form__textarea:focus {
    border-color: #C8962E;
    box-shadow: 0 0 0 3px rgba(200, 150, 46, 0.12);
}

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

.form__success {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(72, 187, 120, 0.1);
    border: 1px solid rgba(72, 187, 120, 0.3);
    border-radius: 6px;
    color: #276749;
    font-size: 0.95rem;
    font-weight: 500;
}

.form__success svg {
    flex-shrink: 0;
    color: #38A169;
}

/* --- Map --- */
.map-section {
    height: 400px;
    filter: grayscale(30%);
}

.map-section iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* --- Footer --- */
.footer {
    background: #0A1628;
    padding: 64px 0 40px;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(253, 249, 240, 0.08);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #FDF9F0;
    margin-bottom: 12px;
}

.footer__tagline {
    font-size: 0.9rem;
    color: rgba(253, 249, 240, 0.5);
    max-width: 280px;
    line-height: 1.6;
}

.footer__nav {
    display: flex;
    gap: 32px;
}

.footer__nav a {
    font-size: 0.9rem;
    color: rgba(253, 249, 240, 0.6);
    transition: color 0.3s ease;
}

.footer__nav a:hover {
    color: #C8962E;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 32px;
    font-size: 0.85rem;
    color: rgba(253, 249, 240, 0.4);
}

.footer__bottom a {
    color: rgba(253, 249, 240, 0.4);
    transition: color 0.3s ease;
}

.footer__bottom a:hover {
    color: #C8962E;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__layout {
        gap: 48px;
    }

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

    .contact__layout {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .nav__menu {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__content {
        padding: 120px 24px 100px;
    }

    .hero__headline {
        font-size: clamp(2.25rem, 8vw, 3.5rem);
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        text-align: center;
    }

    .services__grid {
        grid-template-columns: 1fr;
        margin-top: 48px;
    }

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

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

    .about__image-accent {
        width: 120px;
        height: 120px;
        bottom: -16px;
        right: -16px;
    }

    .about__stats {
        gap: 32px;
        flex-wrap: wrap;
    }

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

    .cta-banner {
        padding: 64px 0;
    }

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

    .cta-banner__actions .btn {
        width: 100%;
        max-width: 300px;
    }

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

    .contact__form-wrap {
        padding: 32px 24px;
    }

    .footer__top {
        flex-direction: column;
        gap: 32px;
    }

    .footer__nav {
        flex-wrap: wrap;
        gap: 20px;
    }

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

    .hero__scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 64px 0;
    }

    .card {
        padding: 28px 24px;
    }

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

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