/* ============================================================
   MARKÉTA TŮMOVÁ – ÚČETNÍ & DANĚ
   styles.css
   ============================================================ */

/* ============================================================
   1. CSS Custom Properties
   ============================================================ */
:root {
    /* Brand Colors */
    --cream:          #FAF5EF;
    --rose-pale:      #F2E4DC;
    --rose:           #C4778B;
    --rose-hover:     #B3677A;
    --burgundy:       #6B1840;
    --burgundy-dark:  #4E1130;
    --clients-bg:     #C4788C;

    /* Text */
    --text-dark:      #1A0F14;
    --text-mid:       #5C3B4D;
    --text-light:     #8C6878;

    /* White / Border */
    --white:          #FFFFFF;
    --border:         rgba(107, 24, 64, 0.1);

    /* Typography */
    --serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing scale */
    --sp-xs:   0.5rem;
    --sp-sm:   1rem;
    --sp-md:   1.5rem;
    --sp-lg:   2rem;
    --sp-xl:   3rem;
    --sp-2xl:  5rem;
    --sp-3xl:  8rem;

    /* Layout */
    --container:     1200px;
    --gutter:        1.5rem;
    --radius:        16px;
    --radius-sm:     8px;
    --radius-full:   9999px;
    --nav-h:         72px;

    /* Elevation */
    --shadow-sm:  0 2px 10px rgba(26, 15, 20, 0.06);
    --shadow-md:  0 8px 28px rgba(26, 15, 20, 0.10);
    --shadow-lg:  0 20px 56px rgba(26, 15, 20, 0.14);

    /* Transitions */
    --ease:       0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-slow:  0.65s cubic-bezier(0.4, 0, 0.2, 1);
}


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

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

body {
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--ease);
}

ul { list-style: none; }

button {
    font-family: inherit;
    cursor: pointer;
}


/* ============================================================
   3. Layout
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}


/* ============================================================
   4. Typography Helpers
   ============================================================ */
.section-eyebrow {
    font-family: var(--sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--burgundy);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-mid);
    max-width: 54ch;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: var(--sp-2xl);
}

.section-header .section-subtitle {
    margin-inline: auto;
}


/* ============================================================
   5. Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color var(--ease), border-color var(--ease),
                color var(--ease), transform var(--ease), box-shadow var(--ease);
    white-space: nowrap;
    text-decoration: none;
}

.btn--primary {
    background-color: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}
.btn--primary:hover {
    background-color: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background-color: transparent;
    color: var(--burgundy);
    border-color: var(--burgundy);
}
.btn--secondary:hover {
    background-color: var(--burgundy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--white {
    background-color: var(--white);
    color: var(--burgundy);
    border-color: var(--white);
}
.btn--white:hover {
    background-color: var(--rose-pale);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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


/* ============================================================
   6. Navigation
   ============================================================ */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 200;
    height: var(--nav-h);
    background-color: rgba(250, 245, 239, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--ease);
}

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

.nav__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav__logo {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-decoration: none;
}

.nav__logo-name {
    font-family: var(--serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--burgundy);
    line-height: 1.2;
}

.nav__logo-title {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rose);
    line-height: 1;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
}

.nav__link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-mid);
    padding: 0.375rem 0;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--rose);
    transition: width var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--burgundy);
}

.nav__link:hover::after,
.nav__link.is-active::after {
    width: 100%;
}

.nav__link--cta {
    background-color: var(--burgundy);
    color: var(--white);
    padding: 0.625rem 1.375rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    transition: background-color var(--ease), transform var(--ease);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
    background-color: var(--burgundy-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--burgundy);
    border-radius: 2px;
    transition: transform var(--ease), opacity var(--ease), width var(--ease);
    transform-origin: center;
}

.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


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

/* Decorative blob */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 55%;
    height: 130%;
    background: radial-gradient(ellipse 70% 70% at 60% 40%, var(--rose-pale) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero__container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2xl);
    align-items: center;
    padding-block: var(--sp-2xl);
}

.hero__content {
    max-width: 560px;
}

.hero__eyebrow {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--rose);
    margin-bottom: var(--sp-sm);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero__title {
    font-family: var(--serif);
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: var(--sp-md);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.35s;
}

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

.hero__subtitle {
    font-size: 1.0625rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: var(--sp-xl);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero__subtitle strong {
    color: var(--burgundy);
    font-weight: 600;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.65s;
}

/* Hero image column */
.hero__image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.45s;
}

.hero__image-wrapper {
    width: 400px;
    height: 500px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    overflow: hidden;
    background-color: var(--rose-pale);
    box-shadow: var(--shadow-lg);
    position: relative;
}

/* Placeholder state when photo not found */
.hero__image-wrapper--placeholder::after {
    content: 'Foto bude doplněno';
    white-space: normal;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
}

.hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero__badge {
    position: absolute;
    bottom: 3rem;
    right: 2rem;
    background-color: var(--burgundy);
    color: var(--white);
    padding: 1.125rem 1.375rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.hero__badge-number {
    display: block;
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.hero__badge-text {
    display: block;
    font-size: 0.75rem;
    opacity: 0.85;
    margin-top: 0.25rem;
    letter-spacing: 0.02em;
}

.hero__scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.4s;
}

.hero__scroll-line {
    width: 1px;
    height: 52px;
    background: linear-gradient(to bottom, var(--rose), transparent);
    margin-inline: auto;
    animation: scrollPulse 2.2s ease-in-out infinite;
}


/* ============================================================
   8. About Section
   ============================================================ */
.about {
    padding-block: var(--sp-3xl);
}

.about__container {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: var(--sp-2xl);
    align-items: center;
}

.about__image-col {
    animation: none; /* controlled by .animate-in on parent if needed */
}

.about__image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background-color: var(--rose-pale);
    box-shadow: var(--shadow-lg);
}

/* Decorative border ring */
.about__image-wrapper::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px solid var(--rose);
    border-radius: calc(var(--radius) + 10px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
}

.about__image-wrapper--placeholder::after {
    content: 'Foto bude doplněno';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
}

.about__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.about__content .section-title {
    margin-bottom: var(--sp-md);
}

.about__text p {
    color: var(--text-mid);
    margin-bottom: 1rem;
    font-size: 1.0125rem;
}

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

.about__text strong {
    color: var(--text-dark);
    font-weight: 600;
}

.about__stats {
    display: flex;
    gap: 0;
    margin-top: var(--sp-xl);
    padding-top: var(--sp-xl);
    border-top: 1px solid var(--border);
}

.about__stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.about__stat--divider {
    border-left: 1px solid var(--border);
    padding-left: var(--sp-lg);
    margin-left: var(--sp-lg);
}

.about__stat-number {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--burgundy);
    line-height: 1;
}

.about__stat-label {
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 500;
}


/* ============================================================
   9. Services Section
   ============================================================ */
.services {
    padding-block: var(--sp-3xl);
    background-color: var(--rose-pale);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.125rem;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: var(--sp-lg) var(--sp-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: transform var(--ease), box-shadow var(--ease);
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.service-card__number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-full);
    background-color: var(--burgundy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.service-card__title {
    font-family: var(--serif);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.service-card__desc {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.65;
    flex: 1;
}


/* ============================================================
   10. Clients Section
   ============================================================ */
.clients {
    padding-block: var(--sp-3xl);
    background-color: var(--clients-bg);
}

.clients .section-eyebrow {
    color: rgba(255, 255, 255, 0.75);
}

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

.clients__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-xl);
}

a.client-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

a.client-card:hover {
    transform: translateY(-4px);
}

.client-card__image-wrapper {
    width: 148px;
    height: 148px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto var(--sp-md);
    background-color: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.45);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.client-card__initials {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--white);
}

.client-card__name {
    font-family: var(--serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.375rem;
    line-height: 1.3;
}

.client-card__role {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}


/* ============================================================
   11. Checklist CTA Section
   ============================================================ */
.checklist-cta {
    padding-block: var(--sp-3xl);
    background-color: var(--burgundy);
}

.checklist-cta__inner {
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
}

.checklist-cta__icon {
    width: 68px;
    height: 68px;
    background-color: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin: 0 auto var(--sp-lg);
}

.checklist-cta__title {
    font-family: var(--serif);
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--sp-sm);
    line-height: 1.3;
}

.checklist-cta__text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--sp-xl);
    line-height: 1.7;
}


/* ============================================================
   12. Contact Section
   ============================================================ */
.contact {
    padding-block: var(--sp-3xl);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--sp-2xl);
    align-items: start;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: var(--sp-lg);
    padding-top: 0.5rem;
}

.contact__info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact__info-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    background-color: var(--rose-pale);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
}

.contact__info-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.contact__info-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.contact__info-value:hover {
    color: var(--rose);
}

.contact__socials {
    display: flex;
    gap: 0.75rem;
}

.contact__social-btn {
    width: 46px;
    height: 46px;
    background-color: var(--rose-pale);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    transition: background-color var(--ease), color var(--ease), transform var(--ease);
}

.contact__social-btn:hover {
    background-color: var(--burgundy);
    color: var(--white);
    transform: translateY(-2px);
}

/* Form */
.contact__form {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: var(--sp-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
}

.form-group {
    margin-bottom: var(--sp-md);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-required {
    color: var(--rose);
}

.form-optional {
    font-weight: 400;
    color: var(--text-light);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--sans);
    font-size: 0.9375rem;
    color: var(--text-dark);
    background-color: var(--cream);
    transition: border-color var(--ease), box-shadow var(--ease), background-color var(--ease);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(196, 119, 139, 0.15);
    background-color: var(--white);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-input.has-error {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-textarea {
    min-height: 124px;
    resize: vertical;
    line-height: 1.65;
}

.form-error {
    font-size: 0.8125rem;
    color: #c0392b;
    min-height: 1.2em;
}

.form-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 0.875rem;
}


/* ============================================================
   13. Footer
   ============================================================ */
.footer {
    background-color: var(--text-dark);
    color: rgba(255, 255, 255, 0.65);
    padding-top: var(--sp-2xl);
    padding-bottom: var(--sp-lg);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--sp-xl);
    padding-bottom: var(--sp-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: var(--sp-lg);
}

.footer__name {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.footer__tagline {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 1rem;
}

.footer__desc {
    font-size: 0.875rem;
    line-height: 1.75;
    max-width: 30ch;
}

.footer__nav-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer__nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer__nav a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--ease);
}

.footer__nav a:hover {
    color: var(--rose);
}

.footer__contact-col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer__contact-col a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--ease);
}

.footer__contact-col a:hover {
    color: var(--rose);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer__bottom > p {
    font-size: 0.8125rem;
}

.footer__legal {
    display: flex;
    gap: var(--sp-md);
    flex-wrap: wrap;
}

.footer__legal a {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
    transition: color var(--ease);
}

.footer__legal a:hover {
    color: var(--rose);
}


/* ============================================================
   14. Animations
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

/* Scroll-triggered entrance */
.animate-in {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity var(--ease-slow), transform var(--ease-slow);
}

.animate-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger for service cards */
.services__grid .animate-in:nth-child(1) { transition-delay:   0ms; }
.services__grid .animate-in:nth-child(2) { transition-delay:  70ms; }
.services__grid .animate-in:nth-child(3) { transition-delay: 140ms; }
.services__grid .animate-in:nth-child(4) { transition-delay: 210ms; }
.services__grid .animate-in:nth-child(5) { transition-delay: 280ms; }
.services__grid .animate-in:nth-child(6) { transition-delay: 350ms; }
.services__grid .animate-in:nth-child(7) { transition-delay: 420ms; }
.services__grid .animate-in:nth-child(8) { transition-delay: 490ms; }

/* Stagger for client cards */
.clients__grid .animate-in:nth-child(1) { transition-delay:   0ms; }
.clients__grid .animate-in:nth-child(2) { transition-delay: 110ms; }
.clients__grid .animate-in:nth-child(3) { transition-delay: 220ms; }


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

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-xl);
    }

    .hero__image-wrapper {
        width: 340px;
        height: 430px;
    }
}


/* ============================================================
   16. Responsive – Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --nav-h:   64px;
        --sp-3xl:  5rem;
        --sp-2xl:  3rem;
    }

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

    .nav__links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background-color: var(--cream);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--ease), opacity var(--ease), visibility var(--ease);
        box-shadow: var(--shadow-md);
    }

    .nav__links.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__link {
        padding: 0.875rem 1rem;
        border-radius: var(--radius-sm);
        text-align: center;
    }

    .nav__link--cta {
        margin-top: 0.5rem;
        text-align: center;
        padding: 0.875rem 1rem;
    }

    /* Hero mobile */
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--sp-xl);
        padding-block: var(--sp-xl);
    }

    .hero__image {
        order: -1;
        justify-content: center;
    }

    .hero__image-wrapper {
        width: 260px;
        height: 320px;
    }

    .hero__badge {
        right: calc(50% - 160px);
        bottom: 1.5rem;
    }

    .hero__actions {
        justify-content: center;
    }

    /* About mobile */
    .about__container {
        grid-template-columns: 1fr;
    }

    .about__image-col {
        max-width: 320px;
        margin-inline: auto;
    }

    /* Services mobile */
    .services__grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Clients mobile */
    .clients__grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin-inline: auto;
    }

    /* Contact mobile */
    .contact__grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Footer mobile */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--sp-lg);
    }

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

    .footer__legal {
        justify-content: center;
    }
}


/* ============================================================
   17. Responsive – Small Mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
    .services__grid {
        grid-template-columns: 1fr;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__image-wrapper {
        width: 220px;
        height: 270px;
    }

    .hero__badge {
        right: calc(50% - 130px);
    }

    .about__stats {
        flex-wrap: wrap;
        gap: var(--sp-md);
    }

    .about__stat--divider {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        border-top: 1px solid var(--border);
        padding-top: var(--sp-md);
    }

    .contact__form {
        padding: var(--sp-md);
    }
}


/* ============================================================
   18. PDF Modal
   ============================================================ */
.pdf-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pdf-modal[hidden] {
    display: none;
}

.pdf-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(26, 15, 20, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn 0.25s ease;
}

.pdf-modal__panel {
    position: relative;
    z-index: 1;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 860px;
    height: 90vh;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.94) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.pdf-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.pdf-modal__title {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--burgundy);
}

.pdf-modal__close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: none;
    background-color: var(--rose-pale);
    color: var(--burgundy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--ease), transform var(--ease);
    flex-shrink: 0;
}

.pdf-modal__close:hover {
    background-color: var(--rose);
    color: var(--white);
    transform: scale(1.05);
}

.pdf-modal__frame {
    flex: 1;
    width: 100%;
    border: none;
    display: block;
}

@media (max-width: 480px) {
    .pdf-modal__panel {
        height: 95vh;
        border-radius: var(--radius-sm);
    }
}


/* ============================================================
   19. Focus & Accessibility
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--rose);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-in {
        opacity: 1;
        transform: none;
    }

    .hero__eyebrow,
    .hero__title,
    .hero__subtitle,
    .hero__actions,
    .hero__image {
        opacity: 1;
        animation: none;
    }
}
