/* ============================================================
   TNT Tax Service - Styles
   Apple-inspired luxury minimalism with warm authority
   ============================================================ */

/* --- Custom Properties --- */
:root {
    --color-navy: #2a2a45;
    --color-navy-light: #363656;
    --color-accent: #c9a84c;
    --color-accent-hover: #dabb62;
    --color-white: #ffffff;
    --color-offwhite: #f5f5f7;
    --color-text: #1d1d1f;
    --color-text-secondary: #6e6e73;
    --color-text-tertiary: #aeaeb2;
    --color-border: rgba(29, 29, 46, 0.08);

    --font-display: 'Sora', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --nav-height: 72px;
    --section-padding: clamp(80px, 12vw, 160px);
    --container-width: 1200px;
    --container-padding: clamp(20px, 5vw, 40px);

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

    --reveal-duration: 0.9s;
    --reveal-ease: var(--ease-out-expo);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* --- Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-label {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-navy);
    letter-spacing: -0.02em;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(48px, 8vw, 80px);
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity var(--reveal-duration) var(--reveal-ease),
        transform var(--reveal-duration) var(--reveal-ease);
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    padding: 16px 36px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--ease-out-quart);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-navy);
}

.btn--primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.35);
}

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

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

.btn--full {
    width: 100%;
    margin-top: 32px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav--scrolled {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--color-border);
}

.nav__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    z-index: 1001;
}

.nav__logo-mark {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.04em;
}

.nav__logo-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    opacity: 0.7;
    transition: color 0.4s ease, opacity 0.4s ease;
}

.nav--scrolled .nav__logo-text {
    color: var(--color-text-secondary);
    opacity: 1;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav__link {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1.5px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease-out-quart);
}

.nav__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

.nav--scrolled .nav__link {
    color: var(--color-text-secondary);
}

.nav--scrolled .nav__link:hover {
    color: var(--color-text);
}

.nav__link--cta {
    background-color: var(--color-accent);
    color: var(--color-navy) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
}

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

.nav__link--cta:hover {
    background-color: var(--color-accent-hover);
}

/* Hamburger */
.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    gap: 6px;
}

.nav__toggle-bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: var(--color-white);
    transition: all 0.35s var(--ease-out-quart);
}

.nav--scrolled .nav__toggle-bar {
    background-color: var(--color-text);
}

.nav__toggle.active .nav__toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active .nav__toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, var(--color-navy-light) 0%, var(--color-navy) 100%);
    z-index: -2;
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(201, 168, 76, 0.04) 0%, transparent 50%);
    z-index: -1;
}

.hero__content {
    text-align: center;
    padding: 0 var(--container-padding);
    max-width: 860px;
}

.hero__eyebrow {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 28px;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(40px, 7.5vw, 80px);
    font-weight: 700;
    line-height: 1.05;
    color: var(--color-white);
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.hero__title-accent {
    color: var(--color-accent);
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(17px, 2.2vw, 21px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    max-width: 560px;
    margin: 0 auto 44px;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

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

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

/* ============================================================
   SERVICES
   ============================================================ */
.services {
    padding: var(--section-padding) 0;
    background-color: var(--color-white);
}

.services__pricing {
    font-family: var(--font-display);
    font-size: clamp(16px, 2vw, 19px);
    font-weight: 500;
    color: var(--color-accent);
    margin-top: 16px;
    letter-spacing: -0.01em;
}

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

.service-card {
    background-color: var(--color-offwhite);
    border-radius: 20px;
    padding: clamp(32px, 4vw, 48px);
    transition: transform 0.4s var(--ease-out-quart), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(29, 29, 46, 0.08);
}

.service-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    border-radius: 16px;
    margin-bottom: 28px;
    color: var(--color-navy);
}

.service-card__title {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.service-card__description {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-card__features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-card__features li {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    padding-left: 20px;
    position: relative;
}

.service-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

/* ============================================================
   WHY TNT
   ============================================================ */
.why {
    padding: var(--section-padding) 0;
    background-color: var(--color-navy);
}

.why .section-title {
    color: var(--color-white);
}

.why__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
}

.why-card {
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
}

.why-card__number {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.why-card__title {
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.why-card__description {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
    padding: var(--section-padding) 0;
    background-color: var(--color-offwhite);
}

.about__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 8vw, 100px);
    align-items: center;
}

.about__text {
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-text-secondary);
    margin-top: 24px;
}

.about__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__badge {
    width: clamp(200px, 22vw, 280px);
    height: clamp(200px, 22vw, 280px);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.about__badge::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--color-accent);
    opacity: 0.4;
}

.about__badge-inner {
    text-align: center;
    color: var(--color-white);
}

.about__badge-label {
    display: block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.about__badge-title {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.about__badge-subtitle {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    padding: var(--section-padding) 0;
    background-color: var(--color-white);
}

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

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

.contact__detail-label {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-bottom: 6px;
}

.contact__detail-value {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-navy);
    line-height: 1.5;
}

.contact__detail-link {
    transition: color 0.3s ease;
}

.contact__detail-link:hover {
    color: var(--color-accent);
}

.contact__map {
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    background-color: var(--color-offwhite);
}

.contact__map iframe {
    display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 48px 0;
    background-color: var(--color-navy);
}

.footer__layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer__brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.footer__logo-mark {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.04em;
}

.footer__logo-text {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.footer__links {
    display: flex;
    gap: 28px;
}

.footer__links a {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

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

.footer__copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   RESPONSIVE - TABLET
   ============================================================ */
@media (max-width: 900px) {
    .services__grid {
        grid-template-columns: 1fr;
    }

    .why__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about__layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about__content .section-label,
    .about__content .section-title {
        text-align: center;
    }

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

    .contact__map {
        height: 300px;
    }
}

/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */
@media (max-width: 680px) {
    :root {
        --nav-height: 64px;
    }

    body {
        font-size: 16px;
    }

    /* Mobile Nav */
    .nav__toggle {
        display: flex;
    }

    .nav__links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background-color: var(--color-navy);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .nav__links.open {
        opacity: 1;
        visibility: visible;
    }

    .nav__links .nav__link {
        font-size: 28px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.75);
        padding: 28px 0;
        letter-spacing: -0.01em;
    }

    .nav__links .nav__link:hover {
        color: var(--color-white);
    }

    .nav__links .nav__link::after {
        display: none;
    }

    .nav__links .nav__link--cta {
        font-size: 16px;
        margin-top: 24px;
        padding: 14px 36px;
    }

    /* When mobile menu is open, always show white bars for the X */
    .nav__toggle.active .nav__toggle-bar {
        background-color: var(--color-white);
    }

    /* Hero adjustments */
    .hero__actions {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__scroll-indicator {
        display: none;
    }

    /* Footer stacks */
    .footer__layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero__scroll-line {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}
