/* ============================================
   Audit Digital | Stylesheet
   ============================================ */

/* --- Variables --- */
:root {
    --color-bg:         #FAFAF7;
    --color-bg-alt:     #F0EDE6;
    --color-bg-dark:    #0B1120;
    --color-bg-card:    #FFFFFF;

    --color-text:       #1A1D27;
    --color-text-muted: #5C6070;
    --color-text-light: #F0EDE6;

    --color-accent:     #B8935A;
    --color-accent-hover:#A07D45;

    --color-border:     #E2DFD6;
    --color-border-dark:#1E253A;

    --font-heading: 'Instrument Serif', Georgia, serif;
    --font-body:    'Plus Jakarta Sans', -apple-system, sans-serif;

    --max-width: 1200px;
    --nav-height: 72px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

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

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

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

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

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 24px;
}

.section-title em {
    font-style: italic;
    color: var(--color-accent);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-accent);
    color: #FFFFFF;
    border-color: var(--color-accent);
}

.btn--primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(184, 147, 90, 0.3);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn--outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

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

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.4s var(--ease-out);
}

.nav--scrolled {
    background-color: rgba(250, 250, 247, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

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

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

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

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav__links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.nav__links a:hover {
    color: var(--color-text);
}

.nav__cta {
    padding: 8px 20px;
    background-color: var(--color-bg-dark);
    color: #FFFFFF !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s var(--ease-out) !important;
}

.nav__cta:hover {
    background-color: var(--color-accent) !important;
    color: #FFFFFF !important;
}

/* Mobile toggle */
.nav__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav__mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

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

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

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

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background-color: var(--color-bg);
    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__links {
    list-style: none;
    text-align: center;
}

.mobile-menu__links li {
    margin-bottom: 24px;
}

.mobile-menu__links a {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--color-text);
    transition: color 0.2s;
}

.mobile-menu__links a:hover {
    color: var(--color-accent);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero__bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 75% 25%, rgba(184, 147, 90, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 25% 75%, rgba(11, 17, 32, 0.03) 0%, transparent 50%);
}

.hero__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.hero__label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 24px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: 24px;
}

.hero__title em {
    font-style: italic;
    color: var(--color-accent);
}

.hero__subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 560px;
    margin-bottom: 40px;
}

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

.hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero__scroll-indicator span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    writing-mode: vertical-rl;
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s var(--ease-in-out) infinite;
}

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

/* --- Animate-in --- */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s var(--ease-out) forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.25s; }
.animate-in:nth-child(3) { animation-delay: 0.4s; }
.animate-in:nth-child(4) { animation-delay: 0.55s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Scroll reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* ============================================
   Problem Section
   ============================================ */
.problem {
    padding: 120px 0;
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.problem .section-title {
    color: var(--color-text-light);
}

.problem__header {
    margin-bottom: 64px;
}

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

.problem__card {
    padding: 40px 32px;
    border: 1px solid var(--color-border-dark);
    border-radius: 8px;
    transition: all 0.4s var(--ease-out);
}

.problem__card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.problem__card-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-style: italic;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 20px;
    opacity: 0.6;
}

.problem__card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 12px;
    color: #FFFFFF;
}

.problem__card p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(240, 237, 230, 0.7);
}

/* ============================================
   Services
   ============================================ */
.services {
    padding: 120px 0;
}

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

.services__item {
    padding: 40px 36px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: all 0.4s var(--ease-out);
}

.services__item:hover {
    border-color: var(--color-accent);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.services__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: var(--color-bg-alt);
    border-radius: 8px;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.services__item h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 10px;
}

.services__item p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ============================================
   Portfolio
   ============================================ */
.portfolio {
    padding: 120px 0;
    background-color: var(--color-bg-alt);
}

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

.portfolio__item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.portfolio__item--placeholder {
    border: 2px dashed var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg);
}

.portfolio__placeholder-inner {
    text-align: center;
    padding: 24px;
}

.portfolio__placeholder-inner span {
    font-family: var(--font-heading);
    font-size: 20px;
    font-style: italic;
    color: var(--color-accent);
    display: block;
    margin-bottom: 8px;
}

.portfolio__placeholder-inner p {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ============================================
   Process
   ============================================ */
.process {
    padding: 120px 0;
}

.process__timeline {
    max-width: 640px;
    margin-top: 48px;
}

.process__step {
    display: flex;
    gap: 32px;
    padding-bottom: 48px;
}

.process__step:last-child {
    padding-bottom: 0;
}

.process__step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.process__step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--color-accent);
    flex-shrink: 0;
}

.process__step-line {
    width: 1px;
    flex: 1;
    background-color: var(--color-border);
    margin-top: 8px;
}

.process__step-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 6px;
    display: block;
}

.process__step-content h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 8px;
}

.process__step-content p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ============================================
   About
   ============================================ */
.about {
    padding: 120px 0;
    background-color: var(--color-bg-alt);
}

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

.about__content p {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about__content p:last-child {
    margin-bottom: 0;
}

.about__stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 80px;
}

.about__stat {
    padding: 24px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-align: center;
}

.about__stat-number {
    font-family: var(--font-heading);
    font-size: 36px;
    font-style: italic;
    color: var(--color-accent);
    line-height: 1.1;
    margin-bottom: 4px;
}

.about__stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Contact
   ============================================ */
.contact {
    padding: 120px 0;
}

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

.contact__info p {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 440px;
}

.contact__details {
    margin-top: 32px;
}

.contact__detail {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-muted);
}

.contact__detail a {
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.2s;
}

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

.contact__form {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 40px;
}

.form__group {
    margin-bottom: 20px;
}

.form__group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
    color: #B0ADA5;
}

.form__group input:focus,
.form__group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(184, 147, 90, 0.12);
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 48px 0 32px;
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.footer__layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-border-dark);
}

.footer__brand p {
    font-size: 14px;
    color: rgba(240, 237, 230, 0.5);
    margin-top: 8px;
}

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

.footer__links a {
    font-size: 14px;
    color: rgba(240, 237, 230, 0.6);
    transition: color 0.2s;
}

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

.footer__bottom {
    padding-top: 24px;
}

.footer__bottom p {
    font-size: 13px;
    color: rgba(240, 237, 230, 0.35);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .about__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about__stats {
        flex-direction: row;
        padding-top: 0;
    }

    .about__stat {
        flex: 1;
    }

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

@media (max-width: 768px) {
    .nav__links {
        display: none;
    }

    .nav__mobile-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 140px 0 80px;
    }

    .hero__scroll-indicator {
        display: none;
    }

    .hero__title {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .problem,
    .services,
    .portfolio,
    .process,
    .about,
    .contact {
        padding: 80px 0;
    }

    .problem__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

    .about__stats {
        flex-direction: column;
    }

    .contact__form {
        padding: 24px;
    }

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

    .footer__links {
        flex-wrap: wrap;
        gap: 16px;
    }
}
