/* ===================================================================
   GeoZap — Precision Geological Intelligence
   Design System — Production Build
   Fonts: Space Grotesk (display) + Inter (body) — self-hosted
   =================================================================== */

/* Self-hosted fonts — no external Google Fonts request */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-400.woff2') format('truetype'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-500.woff2') format('truetype'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-600.woff2') format('truetype'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/space-grotesk-700.woff2') format('truetype'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/space-grotesk-800.woff2') format('truetype'); }

:root {
    /* Colours — GeoZap brand palette */
    --gz-color-bg: #242a45;
    --gz-color-bg-deep: #1a2038;
    --gz-color-surface: rgba(255, 255, 255, 0.04);
    --gz-color-surface-hover: rgba(255, 255, 255, 0.08);
    --gz-color-accent: #64cabc;
    --gz-color-accent-soft: rgba(100, 202, 188, 0.12);
    --gz-color-accent-glow: rgba(100, 202, 188, 0.25);
    --gz-color-text-primary: #ffffff;
    --gz-color-text-secondary: #a0aec0;
    --gz-color-border: rgba(255, 255, 255, 0.1);
    --gz-color-glass-border: rgba(255, 255, 255, 0.12);

    /* Extended palette (defined, not actively used — for future features) */
    --gz-color-accent-dark: #3DAA9A;     /* Teal dark — hover states */
    --gz-color-yellow: #F8E16C;          /* Sparingly — key numbers, callouts */
    --gz-color-offwhite: #F5F7FA;        /* Light section backgrounds */
    --gz-color-red: #C73E1D;             /* Alerts, error states only */
    --gz-color-olive: #6A7062;           /* Secondary neutral */

    --gz-font-heading: 'Space Grotesk', sans-serif;
    --gz-font-body: 'Inter', sans-serif;
    --gz-font-mono: 'Space Grotesk', sans-serif;

    --gz-type-h1: clamp(2.5rem, 5.5vw, 3.75rem);
    --gz-type-h2: clamp(1.85rem, 3.5vw, 2.75rem);
    --gz-type-h3: clamp(1.15rem, 2vw, 1.5rem);
    --gz-type-body: clamp(0.95rem, 1vw, 1.15rem);

    --gz-space-md: 24px;
    --gz-space-lg: 48px;
    --gz-space-xl: 80px;

    --gz-blur: 20px;
    --gz-card-radius: 4px;
    --gz-logo-height: 42px;

    /* Background: organic topo contour lines */
    --gz-grid-line: url('images/topo-contours.svg');
    --gz-topo-glow: radial-gradient(ellipse 120% 60% at 80% 50%, rgba(100, 202, 188, 0.04) 0%, transparent 70%);
}

/* Container — wider on large screens */

html { scroll-behavior: smooth; background-color: #242a45; overflow-x: hidden; }
body { margin: 0; background-color: #242a45; overflow-x: clip; -webkit-overflow-scrolling: touch; }

/* === THEME WRAPPER === */

.gz-theme-wrapper {
    background-color: var(--gz-color-bg);
    background-image: var(--gz-topo-glow), var(--gz-grid-line);
    background-size: auto, cover;
    background-repeat: no-repeat, repeat-y;
    background-position: center, center;
    background-attachment: fixed, fixed;
    color: var(--gz-color-text-primary);
    font-family: var(--gz-font-body);
    font-size: var(--gz-type-body);
    line-height: 1.65;
    min-height: 100vh;
}

/* === SCROLL REVEAL === */

.gz-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gz-reveal-delay-1 { transition-delay: 0.08s; }
.gz-reveal-delay-2 { transition-delay: 0.16s; }
.gz-reveal-delay-3 { transition-delay: 0.24s; }
.gz-reveal-delay-4 { transition-delay: 0.32s; }
.gz-reveal-delay-5 { transition-delay: 0.4s; }

/* === SCOPED WP OVERRIDES === */

.gz-theme-wrapper .wp-block-heading {
    font-family: var(--gz-font-heading) !important;
    color: var(--gz-color-text-primary);
    margin-bottom: 20px;
}

.gz-theme-wrapper .wp-block-paragraph {
    color: var(--gz-color-text-secondary);
}

/* === NAVIGATION === */

.gz-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    background: rgba(36, 42, 69, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--gz-color-border);
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}

.gz-nav.gz-nav-scrolled {
    background: rgba(26, 32, 56, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.gz-nav-inner {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.gz-nav-brand {
    display: flex;
    align-items: center;
}

.gz-logo {
    height: var(--gz-logo-height) !important;
    width: auto !important;
    filter: brightness(0) invert(1);
    display: block;
    transition: opacity 0.3s;
}

.gz-logo:hover { opacity: 0.8; }

.gz-tagline {
    font-family: var(--gz-font-mono);
    font-size: 0.65rem;
    color: var(--gz-color-accent);
    padding-left: 14px;
    border-left: 1px solid var(--gz-color-border);
    margin-left: 14px;
    display: flex;
    align-items: center;
    height: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.gz-nav-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
}

.gz-nav-links a {
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gz-color-text-secondary);
    transition: color 0.25s;
    position: relative;
}

.gz-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gz-color-accent);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gz-nav-links a:hover {
    color: var(--gz-color-text-primary);
}

.gz-nav-links a:hover::after {
    width: 100%;
}

/* Mobile nav (CSS-only checkbox toggle) */
.gz-nav-checkbox { display: none; }

.gz-nav-toggle-label {
    display: none;
    cursor: pointer;
    width: 28px;
    height: 18px;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.gz-nav-toggle-label span {
    display: block;
    height: 2px;
    background: var(--gz-color-text-primary);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}

.gz-nav-checkbox:checked ~ .gz-nav-toggle-label span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.gz-nav-checkbox:checked ~ .gz-nav-toggle-label span:nth-child(2) {
    opacity: 0;
}

.gz-nav-checkbox:checked ~ .gz-nav-toggle-label span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile-only elements — hidden on desktop */
.gz-nav-mobile-cta,
.gz-show-mobile-only {
    display: none;
}

.gz-nav-cta {
    font-size: 0.82rem !important;
    padding: 12px 24px !important;
    letter-spacing: 0.03em;
}

/* === SHARED BUTTON === */

.wp-block-button__link {
    background-color: var(--gz-color-accent) !important;
    color: var(--gz-color-bg) !important;
    border-radius: var(--gz-card-radius);
    font-weight: 600;
    font-family: var(--gz-font-body);
    padding: 13px 26px !important;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: filter 0.25s, box-shadow 0.25s, transform 0.25s;
    position: relative;
}

.wp-block-button__link:hover {
    background-color: var(--gz-color-accent-dark) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

.wp-block-button__link:active {
    transform: translateY(0);
}

/* Outline button (secondary CTA) */
.gz-btn-outline {
    color: var(--gz-color-accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--gz-color-accent);
    padding: 11px 24px;
    border-radius: var(--gz-card-radius);
    transition: background 0.25s, color 0.25s, transform 0.25s;
    display: inline-block;
}

.gz-btn-outline:hover {
    background: var(--gz-color-accent);
    color: var(--gz-color-bg);
    transform: translateY(-1px);
}

/* Inline text links (pricing links, case study links, etc.) */
.gz-link {
    color: var(--gz-color-accent);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s, opacity 0.2s;
}

.gz-link:hover {
    color: var(--gz-color-text-primary);
    opacity: 0.9;
}

/* === HERO === */

.gz-hero {
    padding: 152px 0 100px;
    position: relative;
}

.gz-hero::before {
    content: '';
    position: absolute;
    top: 80px;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(100, 202, 188,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.gz-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.gz-title {
    font-family: var(--gz-font-heading);
    font-size: var(--gz-type-h1);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 24px;
    letter-spacing: -0.025em;
}

.gz-title em {
    font-style: normal;
    color: var(--gz-color-accent);
    position: relative;
}

.gz-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gz-color-accent-soft);
    border: 1px solid rgba(100, 202, 188, 0.3);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gz-color-accent);
    margin-bottom: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: var(--gz-font-mono);
}

.gz-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gz-color-accent);
    border-radius: 50%;
    animation: gz-pulse 2s infinite;
}

@keyframes gz-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--gz-color-accent-glow); }
    50% { opacity: 0.6; box-shadow: 0 0 0 4px transparent; }
}

.gz-bullets {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.gz-bullets li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 14px;
    font-size: 0.92rem;
    color: var(--gz-color-text-secondary);
    line-height: 1.5;
}

.gz-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 1px;
    background: var(--gz-color-accent);
}

.gz-bullets li strong {
    color: var(--gz-color-text-primary);
    font-weight: 600;
}

/* === FORM CARD === */

.gz-form-card {
    background: rgba(36, 42, 69, 0.55);
    backdrop-filter: blur(var(--gz-blur));
    -webkit-backdrop-filter: blur(var(--gz-blur));
    border: 1px solid var(--gz-color-glass-border);
    border-radius: 10px;
    padding: 36px;
    position: relative;
}

.gz-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gz-color-accent), transparent);
    opacity: 0.4;
}

.gz-form-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: var(--gz-font-heading);
}

.gz-form-group {
    margin-bottom: 14px;
}

.gz-form-group label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gz-color-text-secondary);
    margin-bottom: 5px;
    letter-spacing: 0.07em;
    font-family: var(--gz-font-mono);
}

.gz-form-group input,
.gz-form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--gz-color-border);
    padding: 11px 14px;
    color: white;
    border-radius: 4px;
    outline: none;
    font-family: var(--gz-font-body);
    font-size: 0.88rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.gz-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.gz-form-group input:focus,
.gz-form-group select:focus {
    border-color: var(--gz-color-accent);
    box-shadow: 0 0 0 3px rgba(100, 202, 188, 0.08);
}

.gz-form-group select option {
    background: var(--gz-color-bg);
    color: var(--gz-color-text-primary);
}

.gz-form-submit {
    width: 100%;
    text-align: center;
    margin-top: 6px;
    font-size: 0.88rem !important;
}

/* === PHOTO FRAMES === */

.gz-photo-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gz-color-border);
    border-radius: 4px;
    background: #000;
}

.gz-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8) contrast(1.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gz-photo-frame:hover img {
    transform: scale(1.05);
}

.gz-data-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(36, 42, 69, 0.88);
    border: 1px solid rgba(100, 202, 188, 0.5);
    padding: 3px 10px;
    font-size: 0.58rem;
    color: var(--gz-color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
    font-family: var(--gz-font-mono);
}

/* === THREE STEPS === */

.gz-section-heading {
    font-family: var(--gz-font-heading);
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.02em;
}

.gz-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--gz-color-border);
    border: 1px solid var(--gz-color-border);
    margin-top: 40px;
}

.gz-step {
    background: var(--gz-color-bg);
    padding: 40px;
    transition: background 0.35s;
}

.gz-step:hover {
    background: rgba(36, 42, 69, 0.6);
}

.gz-step-num {
    font-family: var(--gz-font-heading);
    font-size: 3rem;
    color: rgba(100, 202, 188, 0.2);
    line-height: 1;
    margin-bottom: 16px;
    font-weight: 800;
}

.gz-step h3 {
    font-family: var(--gz-font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* === GALLERY === */

.gz-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.gz-gallery-card {
    background: var(--gz-color-surface);
    border: 1px solid var(--gz-color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
}

.gz-gallery-card:hover {
    border-color: rgba(100, 202, 188, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.gz-gallery-card h4 {
    font-family: var(--gz-font-heading);
    font-weight: 700;
}

/* Centred grid — handles 1, 2, 4+ items gracefully, equal heights automatic */
.gz-gallery.gz-gallery-centered {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 360px)) !important;
    justify-content: center !important;
    gap: 24px !important;
    max-width: 1100px;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 900px) {
    .gz-gallery.gz-gallery-centered {
        grid-template-columns: 1fr !important;
    }
}

/* Card internal structure — flex column so content stretches */
.gz-gallery-card {
    display: flex;
    flex-direction: column;
}

.gz-gallery-card > a,
.gz-gallery-card > .gz-blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gz-gallery-card > a > div:last-child,
.gz-gallery-card > .gz-blog-card-link > div:last-child {
    flex-grow: 1;
}

/* Card text truncation — max 3 lines with ellipsis */
.gz-gallery-card p.gz-text-secondary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gz-gallery-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Client logo badge on case study cards */
.gz-cs-logo-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(36, 42, 69, 0.9);
    border: 1px solid var(--gz-color-border);
    border-radius: 4px;
    padding: 4px 8px;
    z-index: 2;
}

.gz-cs-logo-badge img {
    height: 20px;
    width: auto;
    display: block;
}

.gz-compat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
}

.gz-compat-card {
    background: var(--gz-color-surface);
    padding: 16px;
    border: 1px solid var(--gz-color-border);
    transition: border-color 0.3s, background 0.3s;
}

.gz-compat-card:hover {
    border-color: rgba(100, 202, 188, 0.2);
    background: var(--gz-color-surface-hover);
}

.gz-compat-card strong {
    display: block;
    font-size: 0.65rem;
    color: var(--gz-color-accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--gz-font-mono);
    margin-bottom: 4px;
}

.gz-compat-card span {
    font-size: 0.88rem;
}

.gz-core-image-box {
    background: var(--gz-color-bg-deep);
    padding: 36px;
    border-radius: 12px;
    border: 1px solid var(--gz-color-border);
    overflow: hidden;
}

.gz-core-image-box img {
    width: 100%;
    border-radius: 4px;
    filter: grayscale(0.8) contrast(1.1);
    opacity: 0.35;
    transition: opacity 0.5s, filter 0.5s;
}

.gz-core-image-box:hover img {
    opacity: 0.5;
    filter: grayscale(0.4) contrast(1.1);
}

.gz-core-image-label {
    text-align: center;
    font-size: 0.65rem;
    color: var(--gz-color-accent);
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-family: var(--gz-font-mono);
}

/* === WORKFLOW BOX === */

.gz-workflow-box {
    margin-top: 80px;
    padding: 40px;
    background: rgba(100, 202, 188, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    text-align: center;
}

.gz-workflow-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gz-color-accent);
    font-weight: 700;
    margin-bottom: 20px;
    font-family: var(--gz-font-mono);
}

/* === FAQ ACCORDION (CSS-only, uses <details>/<summary>) === */

.gz-faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--gz-color-border);
    border: 1px solid var(--gz-color-border);
}

.gz-faq-item {
    background: var(--gz-color-bg);
}

.gz-faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    font-family: var(--gz-font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    transition: color 0.25s, background 0.25s;
    color: var(--gz-color-text-primary);
}

.gz-faq-item summary::-webkit-details-marker { display: none; }

.gz-faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--gz-color-accent);
    font-weight: 400;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 20px;
}

.gz-faq-item[open] summary::after {
    transform: rotate(45deg);
}

.gz-faq-item summary:hover {
    background: rgba(255, 255, 255, 0.02);
}

.gz-faq-item .gz-faq-answer {
    padding: 0 28px 22px;
    font-size: 0.9rem;
    color: var(--gz-color-text-secondary);
    line-height: 1.7;
}

/* === STATS STRIP === */

.gz-stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: var(--gz-color-border);
    border: 1px solid var(--gz-color-border);
}

.gz-stat {
    background: var(--gz-color-bg);
    padding: 36px 24px;
    text-align: center;
}

.gz-stat-value {
    font-family: var(--gz-font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gz-color-accent);
    line-height: 1;
    margin-bottom: 8px;
}

.gz-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gz-color-text-secondary);
    font-family: var(--gz-font-mono);
}

/* === SPLIT (Image + Text, reversible) === */

.gz-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    overflow: hidden;
}

.gz-split-reverse {
    direction: rtl;
}

.gz-split-reverse > * {
    direction: ltr;
}

.gz-split-text h2 {
    letter-spacing: -0.02em;
}

/* === PRICING GRID === */

.gz-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.gz-pricing-grid .gz-form-card {
    display: flex;
    flex-direction: column;
}

.gz-pricing-grid .gz-bullets {
    flex-grow: 1;
}

.gz-pricing-grid .wp-block-button__link {
    width: 100%;
    text-align: center;
    margin-top: auto;
    box-sizing: border-box;
}

/* === MODULES TABLE (pricing) === */

.gz-modules-table {
    border: 1px solid var(--gz-color-border);
    border-radius: 8px;
    overflow: hidden;
}

.gz-module-row {
    border-bottom: 1px solid var(--gz-color-border);
}

.gz-module-row:last-child {
    border-bottom: none;
}

.gz-module-row summary {
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 1.2fr;
    gap: 16px;
    padding: 16px 24px;
    align-items: center;
    cursor: pointer;
    list-style: none;
    transition: background 0.2s;
}

.gz-module-row summary::-webkit-details-marker { display: none; }

.gz-module-row summary:hover {
    background: var(--gz-color-surface);
}

.gz-module-bundle {
    background: var(--gz-color-surface-hover);
}

.gz-module-bundle summary:hover {
    background: var(--gz-color-surface);
}

.gz-module-name {
    font-family: var(--gz-font-heading);
    font-weight: 700;
    font-size: 0.9rem;
}

.gz-module-price {
    font-family: var(--gz-font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: var(--gz-color-accent);
    text-align: center;
}

.gz-module-note {
    font-size: 0.8rem;
    color: var(--gz-color-text-secondary);
    text-align: right;
}

.gz-module-detail {
    padding: 0 24px 16px;
    font-size: 0.85rem;
    color: var(--gz-color-text-secondary);
    line-height: 1.7;
    border-top: 1px dashed var(--gz-color-border);
    margin: 0 24px;
    padding-top: 12px;
}

@media (max-width: 600px) {
    .gz-module-row summary {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 14px 18px;
    }
    .gz-module-price,
    .gz-module-note {
        text-align: left;
    }
    .gz-module-detail {
        margin: 0 18px;
    }
}

/* === CTA BANNER === */

.gz-cta-banner {
    text-align: center;
    padding: 80px 30px;
    position: relative;
    background: rgba(100, 202, 188, 0.04);
    border: 1px solid var(--gz-color-border);
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(100, 202, 188, 0.06) inset;
    overflow: hidden;
}

.gz-cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(100, 202, 188, 0.04) 0%, transparent 70%);
    border-radius: 12px;
    overflow: hidden;
    pointer-events: none;
}

.gz-cta-banner h2 {
    font-family: var(--gz-font-heading);
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

.gz-cta-banner p {
    color: var(--gz-color-text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.gz-cta-banner .wp-block-button__link {
    position: relative;
}

/* === FOOTER === */

.gz-footer {
    border-top: 1px solid var(--gz-color-border);
    padding: 60px 0 36px;
}

.gz-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.gz-footer-col h4 {
    font-family: var(--gz-font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gz-color-accent);
    margin-bottom: 16px;
}

.gz-footer-col p,
.gz-footer-col a {
    font-size: 0.85rem;
    color: var(--gz-color-text-secondary);
    text-decoration: none;
    line-height: 2;
    display: block;
    transition: color 0.2s;
}

.gz-footer-col a:hover {
    color: var(--gz-color-accent);
}

.gz-footer-bottom {
    border-top: 1px solid var(--gz-color-border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: rgba(148, 163, 184, 0.6);
}

.gz-footer-bottom a {
    color: rgba(148, 163, 184, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.gz-footer-bottom a:hover {
    color: var(--gz-color-accent);
}

/* === UTILITY === */

.gz-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.gz-section-border {
    border-top: 1px solid var(--gz-color-border);
    padding: 100px 0;
}

.gz-text-center { text-align: center; }
.gz-text-secondary { color: var(--gz-color-text-secondary) !important; }
.gz-m-bottom-md { margin-bottom: 24px !important; }
.gz-m-bottom-lg { margin-bottom: 60px !important; }

/* === CONTACT FORM 7 STYLING === */

.gz-form-card .wpcf7 {
    width: 100%;
}

.gz-form-card .wpcf7-form p {
    margin-bottom: 14px;
    color: var(--gz-color-text-secondary);
}

.gz-form-card .wpcf7-form label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gz-color-text-secondary);
    margin-bottom: 5px;
    letter-spacing: 0.07em;
    font-family: var(--gz-font-mono);
}

.gz-form-card .wpcf7-form input[type="text"],
.gz-form-card .wpcf7-form input[type="email"],
.gz-form-card .wpcf7-form input[type="tel"],
.gz-form-card .wpcf7-form input[type="url"],
.gz-form-card .wpcf7-form input[type="file"],
.gz-form-card .wpcf7-form select,
.gz-form-card .wpcf7-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--gz-color-border);
    padding: 11px 14px;
    color: white;
    border-radius: 4px;
    outline: none;
    font-family: var(--gz-font-body);
    font-size: 0.88rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.gz-form-card .wpcf7-form textarea {
    min-height: 100px;
    resize: vertical;
}

.gz-form-card .wpcf7-form input:focus,
.gz-form-card .wpcf7-form select:focus,
.gz-form-card .wpcf7-form textarea:focus {
    border-color: var(--gz-color-accent);
    box-shadow: 0 0 0 3px rgba(100, 202, 188, 0.08);
}

.gz-form-card .wpcf7-form input::placeholder,
.gz-form-card .wpcf7-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.gz-form-card .wpcf7-form select option {
    background: var(--gz-color-bg);
    color: var(--gz-color-text-primary);
}

.gz-form-card .wpcf7-form input[type="submit"],
.gz-form-card .wpcf7-form button[type="submit"] {
    width: 100%;
    background-color: var(--gz-color-accent) !important;
    color: var(--gz-color-bg) !important;
    border: none;
    border-radius: var(--gz-card-radius);
    font-weight: 600;
    font-family: var(--gz-font-body);
    padding: 13px 26px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: filter 0.25s, box-shadow 0.25s, transform 0.25s;
    margin-top: 6px;
}

.gz-form-card .wpcf7-form input[type="submit"]:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

.gz-form-card .wpcf7-form .wpcf7-response-output {
    border: 1px solid var(--gz-color-accent) !important;
    background: rgba(100, 202, 188, 0.08);
    color: var(--gz-color-text-primary);
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-top: 16px;
}

.gz-form-card .wpcf7-form .wpcf7-not-valid-tip {
    color: #f87171;
    font-size: 0.75rem;
    margin-top: 4px;
}

.gz-form-card .wpcf7-form .wpcf7-spinner {
    display: none;
}

/* File upload styling */
.gz-form-card .wpcf7-form input[type="file"] {
    padding: 8px;
    font-size: 0.8rem;
}

.gz-form-card .wpcf7-form input[type="file"]::file-selector-button {
    background: var(--gz-color-accent);
    color: var(--gz-color-bg);
    border: none;
    padding: 6px 14px;
    border-radius: 3px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 10px;
}

/* Checkbox/radio styling for classification type */
.gz-form-card .wpcf7-form .wpcf7-checkbox label,
.gz-form-card .wpcf7-form .wpcf7-radio label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
    margin-right: 16px;
    margin-bottom: 8px;
    cursor: pointer;
}

.gz-form-card .wpcf7-form .wpcf7-checkbox input,
.gz-form-card .wpcf7-form .wpcf7-radio input {
    width: auto;
    accent-color: var(--gz-color-accent);
}

/* === FIELD IMAGE STRIP (homepage parallax) === */

.gz-field-strip {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.gz-field-strip-bg {
    position: absolute;
    inset: -50px 0;
    background-size: cover;
    background-position: center 30%;
    background-attachment: fixed;
    filter: saturate(0.8) contrast(1.1);
}

/* Disable parallax on mobile (janky on iOS) */
@media (max-width: 900px) {
    .gz-field-strip-bg {
        background-attachment: scroll;
        inset: 0;
    }

    .gz-field-strip {
        height: 240px;
    }
}

.gz-field-strip-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(36, 42, 69, 0.15) 0%,
        rgba(36, 42, 69, 0.1) 50%,
        rgba(36, 42, 69, 0.5) 100%
    );
    z-index: 1;
}

.gz-field-strip .gz-data-overlay {
    z-index: 2;
}

/* === FULL-BLEED IMAGE (Seequent-style — no crop, geological photos) === */

.gz-fullbleed-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gz-split-fullbleed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 400px;
}

.gz-split-fullbleed > .gz-split-text {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gz-split-fullbleed > .gz-split-image {
    overflow: hidden;
    position: relative;
}

.gz-split-fullbleed > .gz-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .gz-split-fullbleed {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .gz-split-fullbleed > .gz-split-text {
        padding: 40px 20px;
    }
    .gz-split-fullbleed > .gz-split-image {
        height: 280px;
    }
}

/* Role table (ZAP Platform — built for your team) */
.gz-role-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.gz-role-card {
    background: var(--gz-color-surface);
    border: 1px solid var(--gz-color-border);
    padding: 24px;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.gz-role-card:hover {
    border-color: rgba(100, 202, 188, 0.2);
}

.gz-role-card h4 {
    font-family: var(--gz-font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gz-color-accent);
    margin-bottom: 8px;
}

.gz-role-card p {
    font-size: 0.84rem;
    color: var(--gz-color-text-secondary);
    margin: 0;
}

/* Optional landscape photo strip between sections */
.gz-photo-strip {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.gz-photo-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.85) contrast(1.05);
}

.gz-photo-strip-top img { object-position: center top; }
.gz-photo-strip-center img { object-position: center center; }
.gz-photo-strip-bottom img { object-position: center bottom; }

@media (max-width: 900px) {
    .gz-photo-strip {
        height: 200px;
    }
}

/* Contain mode — shows full image without cropping */
.gz-split-contain .gz-photo-frame {
    aspect-ratio: auto;
    background: var(--gz-color-bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.gz-split-contain .gz-photo-frame img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 500px;
}

/* === BLOG CARD LINK === */

.gz-blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.gz-blog-card-link:hover {
    color: inherit;
}

/* === BLOG CONTENT === */

.gz-blog-content h2 {
    font-family: var(--gz-font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 40px 0 16px;
    letter-spacing: -0.02em;
}

.gz-blog-content h3 {
    font-family: var(--gz-font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 30px 0 12px;
}

.gz-blog-content p {
    color: var(--gz-color-text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.gz-blog-content ul,
.gz-blog-content ol {
    color: var(--gz-color-text-secondary);
    padding-left: 24px;
    margin-bottom: 20px;
}

.gz-blog-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.gz-blog-content a {
    color: var(--gz-color-accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(100, 202, 188, 0.3);
    transition: border-color 0.2s;
}

.gz-blog-content a:hover {
    border-color: var(--gz-color-accent);
}

.gz-blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--gz-color-border);
    margin: 24px 0;
    display: block;
}

.gz-blog-content .wp-block-image {
    margin: 30px 0;
}

.gz-blog-content .wp-block-image img {
    border-radius: 4px;
    border: 1px solid var(--gz-color-border);
}

.gz-blog-content .wp-block-image figcaption {
    color: var(--gz-color-text-secondary);
    font-size: 0.78rem;
    text-align: center;
    margin-top: 8px;
}

/* Blog post navigation */
.gz-post-nav {
    border-top: 1px solid var(--gz-color-border);
    margin-top: 60px;
    padding: 30px 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.gz-post-nav-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gz-color-text-secondary);
    margin-bottom: 6px;
}

.gz-post-nav a {
    color: var(--gz-color-text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 4px 0;
    transition: color 0.2s;
}

.gz-post-nav a:hover {
    color: var(--gz-color-accent);
}

.gz-blog-content blockquote {
    border-left: 3px solid var(--gz-color-accent);
    padding: 16px 24px;
    margin: 24px 0;
    color: var(--gz-color-text-primary);
    font-style: italic;
}

.gz-blog-content code {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.88em;
    font-family: var(--gz-font-mono);
}

.gz-blog-content pre {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--gz-color-border);
    border-radius: 4px;
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
}

/* Blog pagination */
.page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    color: var(--gz-color-text-secondary);
    text-decoration: none;
    border: 1px solid var(--gz-color-border);
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.page-numbers:hover,
.page-numbers.current {
    color: var(--gz-color-accent);
    border-color: var(--gz-color-accent);
}

/* === RESPONSIVE === */

@media (max-width: 900px) {
    .gz-contact-grid,
    .gz-hero-grid,
    .gz-steps,
    .gz-gallery,

    .gz-footer-grid,
    .gz-stats-strip {
        grid-template-columns: 1fr;
    }

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

    .gz-hero { padding-top: 110px; }
    .gz-hero-grid { gap: 40px; }

    .gz-nav-links { display: none; }
    .gz-nav-toggle-label { display: flex; }

    .gz-nav-checkbox:checked ~ .gz-nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(26, 32, 56, 0.96);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: 28px 30px;
        gap: 18px;
        border-bottom: 1px solid var(--gz-color-border);
    }

    .gz-nav-checkbox:checked ~ .gz-nav-links a::after {
        display: none;
    }

    /* Hide nav CTA button on mobile — accessible in hamburger menu instead */
    .gz-nav > .gz-container > div:last-child {
        display: none;
    }

    /* Show mobile-only elements */
    .gz-nav-mobile-cta {
        display: list-item !important;
    }

    .gz-show-mobile-only {
        display: block !important;
    }


    .gz-split { grid-template-columns: 1fr; gap: 30px; }
    .gz-split-reverse { direction: ltr; }

    /* Prevent any image overflow on mobile */
    .gz-photo-frame,
    .gz-photo-frame img,
    .gz-split-image {
        max-width: 100% !important;
        overflow: hidden;
    }

    .gz-container {
        padding: 0 20px;
    }
    .gz-pricing-grid { grid-template-columns: 1fr; }

    /* Hide hero form on mobile — CTA buttons handle it */
    .gz-hide-mobile {
        display: none !important;
    }

    /* Fix iOS jitter — disable fixed backgrounds on mobile */
    .gz-theme-wrapper {
        background-attachment: scroll !important;
        background-image: var(--gz-topo-glow) !important;
    }

    .gz-field-strip-bg {
        inset: 0 !important;
        background-attachment: scroll !important;
    }

    /* Improve text readability on mobile (sunlight, small screens) */
    .gz-text-secondary {
        color: #b0bec5 !important;
    }
}

/* Desktop text size bumps — mobile stays unchanged */
@media (min-width: 901px) {
    .gz-text-secondary { font-size: 1rem !important; }
    .gz-bullets li { font-size: 1rem; }
    .gz-role-card p { font-size: 0.95rem; }
    .gz-form-card p { font-size: 1rem !important; }
    .gz-form-card .gz-form-title { font-size: 1.3rem; }
    .gz-compat-card span { font-size: 0.95rem; }
    .gz-module-note { font-size: 0.88rem; }
    .gz-data-overlay { font-size: 0.62rem; }
    .gz-footer-col p, .gz-footer-col a { font-size: 0.9rem !important; }
    .gz-footer-bottom { font-size: 0.75rem; }
    .gz-stat-label { font-size: 0.78rem; }
    .gz-link { font-size: 1rem; }
    .gz-faq-item .gz-faq-answer { font-size: 1rem; }
}

@media (max-width: 600px) {
    .gz-compat-grid { grid-template-columns: 1fr; }
    .gz-stats-strip { grid-template-columns: 1fr; }
    .gz-tagline { display: none; }
    .gz-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .gz-faq-item summary { padding: 18px 20px; font-size: 0.88rem; }
    .gz-faq-item .gz-faq-answer { padding: 0 20px 18px; }
}
