/* ===================================
   Renderful — Earthy & Editorial
   Green-forward marketing site variant
   =================================== */

:root {
    /* Palette — earthy meets tech, light + green */
    --paper: #f4f0e4;       /* warm ivory */
    --paper-deep: #ece6d4;  /* deeper moss section bg */
    --surface: #faf7ec;     /* surface cards */
    --ink: #262d20;         /* text ink */
    --ink-soft: #4b5244;    /* soft ink */
    --ink-muted: #767c68;   /* muted */

    /* Accents */
    --moss-1: #55663b;
    --moss-2: #7a8b52;
    --moss-3: #5a6b42;
    --moss-4: #46552f;
    --terra: #c05b33;       /* terracotta — sparingly */
    --terra-deep: #a84f2b;
    --sun: #b98a2f;

    --border: #ddd4bc;
    --moss-dark: #2c3524;   /* footer dark */

    /* Gradients */
    --grad-moss: linear-gradient(120deg, var(--moss-1) 0%, var(--moss-2) 100%);

    /* Fonts */
    --font-head: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Shadows — warm olive tint */
    --shadow-card: 0 10px 30px rgba(85, 102, 59, 0.12), 0 3px 10px rgba(85, 102, 59, 0.06);
    --shadow-lift: 0 22px 50px rgba(85, 102, 59, 0.20), 0 8px 20px rgba(85, 102, 59, 0.08);

    --nav-h: 76px;
    --radius: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--paper);
    color: var(--ink);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle paper grain overlay */
.grain {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

nav,
section,
footer {
    position: relative;
    z-index: 1;
}

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

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

ul {
    list-style: none;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.container.narrow {
    width: min(760px, 92%);
}

section {
    padding: 110px 0;
}

/* ===================================
   Typography helpers
   =================================== */
.gradient-text {
    background: var(--grad-moss);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-style: italic;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--moss-1);
    margin-bottom: 16px;
}

.section-tag::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--terra);
    border-radius: 2px;
}

.section-header {
    max-width: 720px;
    margin-bottom: 56px;
}

.section-header.left {
    margin-left: 0;
}

.section-title {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: clamp(2rem, 4.2vw, 2.9rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.section-desc {
    margin-top: 18px;
    color: var(--ink-soft);
    font-size: 1.05rem;
    max-width: 560px;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn svg {
    transition: transform 0.25s ease;
}

.btn-primary {
    background: var(--grad-moss);
    color: #fdfdf8;
    box-shadow: 0 8px 22px rgba(85, 102, 59, 0.32);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(85, 102, 59, 0.42);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--moss-1);
    color: var(--moss-1);
    transform: translateY(-3px);
}

.btn-large {
    padding: 19px 40px;
    font-size: 1.08rem;
}

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

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 1000;
    background: rgba(244, 240, 228, 0.85);
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(244, 240, 228, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(221, 212, 188, 0.8);
    box-shadow: 0 4px 24px rgba(85, 102, 59, 0.08);
}

.nav-container {
    width: min(1240px, 92%);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo,
.footer-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-img,
.footer-logo {
    width: 42px;
    height: 42px;
}

.logo-word {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    color: var(--ink);
}

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

.nav-link {
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.96rem;
    color: var(--ink-soft);
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover {
    color: var(--moss-1);
    background: rgba(85, 102, 59, 0.08);
}

.nav-cta {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink);
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--moss-1);
    border-color: var(--moss-1);
    color: #fdfdf8;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1101;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===================================
   Hero
   =================================== */
.hero {
    padding: calc(var(--nav-h) + 60px) 0 40px;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 55fr 45fr;
    align-items: center;
    gap: clamp(30px, 6vw, 80px);
    width: min(1240px, 92%);
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--terra);
    box-shadow: 0 0 0 0 rgba(192, 91, 51, 0.5);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(192, 91, 51, 0.45); }
    70% { box-shadow: 0 0 0 9px rgba(192, 91, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(192, 91, 51, 0); }
}

.hero-kicker {
    display: block;
    margin: 26px 0 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.hero-title {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: clamp(3rem, 7vw, 5.2rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 10px 0 24px;
}

.hero-title em {
    font-style: italic;
    font-weight: 400;
    font-feature-settings: 'ss01';
}

.hero-subtitle {
    font-size: 1.13rem;
    line-height: 1.75;
    color: var(--ink-soft);
    max-width: 520px;
}

.hero-cta {
    margin-top: 36px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero visual — organic decorative SVG */
.hero-visual {
    position: relative;
}

.hero-art {
    width: 100%;
    height: auto;
    max-width: 440px;
    margin: 0 auto;
    display: block;
}

.rings {
    transform-origin: 210px 210px;
    animation: slowSpin 40s linear infinite;
}

@keyframes slowSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sun-disc {
    animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.orbit-dot {
    transform-box: fill-box;
    transform-origin: center;
}

.dot-1 {
    transform-origin: 210px 210px;
    animation: orbitSpin 18s linear infinite;
}
.dot-2 {
    transform-origin: 210px 210px;
    animation: orbitSpin 24s linear infinite reverse;
}

@keyframes orbitSpin {
    from { transform: rotate(0deg) translateX(160px); }
    to { transform: rotate(360deg) translateX(160px); }
}

.sun-dot {
    animation: glow 4s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

/* ===================================
   Stats strip — full width below hero
   =================================== */
.stats-strip {
    padding: 54px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: transparent;
}

.hero-stats {
    width: min(1240px, 92%);
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    text-align: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-number {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1;
    background: var(--grad-moss);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 500;
}

.stat-number::after {
    content: '+';
}

/* ===================================
   About
   =================================== */
.about {
    background: var(--paper);
}

.about-text .lead {
    font-family: var(--font-head);
    font-size: clamp(1.4rem, 2.6vw, 1.75rem);
    line-height: 1.45;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 34px;
}

/* Editorial drop cap */
.lead-dropcap::first-letter {
    font-family: var(--font-head);
    font-style: italic;
    font-weight: 500;
    font-size: 4.6rem;
    line-height: 0.85;
    float: left;
    padding-right: 16px;
    padding-top: 6px;
    background: var(--grad-moss);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.about-text > p:not(.lead) {
    color: var(--ink-soft);
    font-size: 1.05rem;
    margin-bottom: 22px;
}

.about-highlights {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px 40px;
    border-top: 1px solid var(--border);
    padding-top: 48px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-weight: 500;
    color: var(--ink);
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.highlight-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.highlight-item svg {
    flex-shrink: 0;
    color: var(--moss-1);
    margin-top: 2px;
    stroke-width: 2.2;
}

/* ===================================
   Services — deep moss background
   =================================== */
.services {
    background: var(--paper-deep);
}

.section-header.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-header.centered .section-tag {
    justify-content: center;
}

.services .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* Asymmetric editorial grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 26px;
}

.service-card {
    grid-column: span 4;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 32px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(85, 102, 59, 0.4);
}

/* Featured large — E-Commerce */
.service-card.featured-large {
    grid-column: span 7;
}

/* Featured — AI Solutions with green tint + badge */
.service-card.featured {
    grid-column: span 5;
    background: linear-gradient(160deg, #f2efdd 0%, var(--surface) 55%);
    border-color: rgba(122, 139, 82, 0.5);
    position: relative;
}

.service-card.featured .service-icon {
    background: rgba(85, 102, 59, 0.16);
    color: var(--moss-1);
}

.service-badge {
    position: absolute;
    top: 22px;
    right: 22px;
    background: var(--terra);
    color: #fdfdf8;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(85, 102, 59, 0.12);
    color: var(--moss-3);
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    transition: background 0.3s ease, color 0.3s ease;
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

.service-card:hover .service-icon {
    background: var(--grad-moss);
    color: #fdfdf8;
}

.service-card h3 {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--ink-soft);
    font-size: 0.98rem;
    margin-bottom: 22px;
}

.service-features {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.service-features li {
    position: relative;
    padding-left: 22px;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--terra);
    font-weight: 600;
}

/* ===================================
   Expertise — horizontal category rows
   =================================== */
.expertise {
    background: var(--paper);
}

.tech-categories {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tech-category {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
    padding: 28px 8px;
    border-bottom: 1px solid var(--border);
}

.tech-category:last-child {
    border-bottom: none;
}

.tech-category h3 {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 1.35rem;
    color: var(--ink);
    letter-spacing: -0.01em;
    padding-top: 6px;
}

.tech-category h3::after {
    content: '';
    display: block;
    width: 32px;
    height: 3px;
    background: var(--terra);
    border-radius: 2px;
    margin-top: 10px;
}

.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-weight: 500;
    color: var(--ink-soft);
    font-size: 0.94rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    cursor: default;
}

.tech-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    border-color: rgba(85, 102, 59, 0.45);
    color: var(--moss-1);
}

.tech-icon {
    font-size: 1.15rem;
    line-height: 1;
}

/* ===================================
   CTA
   =================================== */
.cta-section {
    background: var(--paper);
    text-align: center;
    padding: 60px 0 110px;
}

.cta-content h2 {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.cta-content p {
    color: var(--ink-soft);
    font-size: 1.12rem;
    max-width: 520px;
    margin: 0 auto 36px;
}

/* ===================================
   Contact — deep moss background
   =================================== */
.contact {
    background: var(--paper-deep);
}

.contact .section-title {
    color: var(--ink);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 13px;
    background: rgba(85, 102, 59, 0.12);
    color: var(--moss-1);
    display: grid;
    place-items: center;
}

.contact-item h4 {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 1.05rem;
    margin-bottom: 3px;
}

.contact-item a,
.contact-item span {
    color: var(--ink-soft);
}

.contact-item a:hover {
    color: var(--moss-1);
}

.social-links {
    display: flex;
    gap: 14px;
    margin-top: 10px;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--ink-soft);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.social-link svg {
    width: 22px;
    height: 22px;
}

.social-link:hover {
    transform: translateY(-4px);
    background: var(--grad-moss);
    border-color: transparent;
    color: #fdfdf8;
}

/* Contact form */
.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 40px 38px;
    box-shadow: var(--shadow-card);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    margin-bottom: 9px;
    color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.98rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--moss-1);
    box-shadow: 0 0 0 4px rgba(85, 102, 59, 0.14);
    background: #fffdf6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--ink-muted);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--moss-dark);
    color: #e9e4d3;
    padding: 70px 0 34px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    padding-bottom: 46px;
    border-bottom: 1px solid rgba(233, 228, 211, 0.15);
}

.footer-logo-link .logo-word {
    color: #f4f0e4;
}

.footer-brand p {
    margin-top: 18px;
    max-width: 320px;
    color: rgba(233, 228, 211, 0.75);
    font-size: 0.98rem;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-column h4 {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 1.05rem;
    color: #f4f0e4;
    margin-bottom: 18px;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(233, 228, 211, 0.72);
    font-size: 0.96rem;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-column a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 28px;
    text-align: center;
    color: rgba(233, 228, 211, 0.5);
    font-size: 0.9rem;
}

/* ===================================
   Scroll reveal
   =================================== */
.service-card,
.tech-category,
.contact-item {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 920px) {
    section {
        padding: 80px 0;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 50px;
        padding-top: calc(var(--nav-h) + 40px);
    }

    .hero-subtitle {
        margin: 0;
        max-width: 100%;
    }

    .hero-visual {
        max-width: 380px;
        margin: 0 auto;
    }

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

    .service-card,
    .service-card.featured-large,
    .service-card.featured {
        grid-column: span 1;
    }

    .tech-category {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        inset: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        background: var(--paper);
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        opacity: 0;
        z-index: 1100;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-link {
        font-size: 1.35rem;
        padding: 14px 22px;
        font-family: var(--font-head);
        font-weight: 500;
    }

    .about-highlights,
    .service-features,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-features {
        grid-column: span 1;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 34px;
    }

    /* hide decorative art on small screens */
    .hero-visual {
        display: none;
    }

    .contact-form {
        padding: 30px 22px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
