/* CMS Helper — Generic Section Styles
   Applies to all sections rendered by SectionRenderer.php
   Inherits template CSS variables where possible, with safe fallbacks. */

:root {
    --gs-bg:        var(--bg,        #09090e);
    --gs-bg2:       var(--bg2,       #0d0d15);
    --gs-surface:   var(--surface,   #12121c);
    --gs-border:    var(--border,    #1e1e2e);
    --gs-text:      var(--text,      #e2dbd0);
    --gs-muted:     var(--muted,     #7a7490);
    --gs-ink:       var(--ink,       #f0ead8);
    --gs-accent:    var(--gold,      var(--accent, #c9a94a));
    --gs-accent2:   var(--gold-d,    var(--accent2, #8a6f28));
    --gs-font-h:    var(--font-serif,  var(--font-display, Georgia, serif));
    --gs-font-b:    var(--font-sans,   var(--font-body, system-ui, sans-serif));
    --gs-r:         var(--r,         10px);
    --gs-max:       var(--max,       1260px);
}

/* ── Section wrapper ─────────────────────────────────────────── */
.gs-section {
    padding: 72px 0;
    background: var(--gs-bg);
}
.gs-section + .gs-section { border-top: 1px solid var(--gs-border); }

/* Alternating background */
.gs-section:nth-child(even) { background: var(--gs-bg2); }

/* Special types */
.gs-cta     { background: var(--gs-accent); padding: 80px 0; text-align: center; }
.gs-banner  { padding: 16px 0; background: var(--gs-accent); }
.gs-stats   { background: var(--gs-bg2); }

/* ── Container ───────────────────────────────────────────────── */
.gs-container    { max-width: var(--gs-max); margin: 0 auto; padding: 0 28px; }
.gs-container-sm { max-width: 720px; margin: 0 auto; padding: 0 28px; }

/* ── Section heading ─────────────────────────────────────────── */
.gs-section-head { text-align: center; margin-bottom: 48px; }
.gs-section-head h2 {
    font-family: var(--gs-font-h);
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 700;
    color: var(--gs-ink);
    letter-spacing: -.025em;
    line-height: 1.1;
    margin-bottom: 12px;
}
.gs-section-head p {
    font-size: 16px;
    color: var(--gs-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── Typography ──────────────────────────────────────────────── */
.gs-h1 {
    font-family: var(--gs-font-h);
    font-size: clamp(32px, 6vw, 68px);
    font-weight: 700;
    color: var(--gs-ink);
    letter-spacing: -.03em;
    line-height: 1.06;
    margin-bottom: 18px;
}
.gs-eyebrow {
    font-size: 10px; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--gs-accent); margin-bottom: 14px;
}
.gs-lead { font-size: 17px; color: var(--gs-muted); line-height: 1.7; max-width: 600px; margin-bottom: 28px; }
.gs-prose { font-size: 16px; color: var(--gs-text); line-height: 1.8; }
.gs-prose p { margin-bottom: 16px; }
.gs-empty-note { color: var(--gs-muted); font-size: 14px; text-align: center; padding: 32px 0; font-style: italic; }

/* ── Buttons ─────────────────────────────────────────────────── */
.gs-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px;
    border-radius: 7px;
    font-family: var(--gs-font-b);
    font-size: 13px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    text-decoration: none; border: none; cursor: pointer;
    transition: all .18s;
}
.gs-btn-primary { background: var(--gs-accent); color: #000; }
.gs-btn-primary:hover { background: #daba5a; box-shadow: 0 6px 24px rgba(201,169,74,.3); transform: translateY(-1px); }
.gs-btn-white   { background: #fff; color: #000; }
.gs-btn-white:hover { background: #f0ead8; }
.gs-btn-outline { background: transparent; color: var(--gs-accent); border: 1px solid var(--gs-accent2); }
.gs-btn-outline:hover { background: var(--gs-accent); color: #000; }

/* ── Hero ────────────────────────────────────────────────────── */
.gs-hero .gs-hero-inner {
    max-width: 780px; margin: 0 auto;
    padding: 80px 28px;
    text-align: center;
}

/* ── Cards (services, blog preview) ─────────────────────────── */
.gs-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}
.gs-card {
    background: var(--gs-surface);
    border: 1px solid var(--gs-border);
    border-radius: var(--gs-r);
    padding: 24px;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.gs-card:hover {
    box-shadow: 0 10px 36px rgba(0,0,0,.35);
    transform: translateY(-3px);
    border-color: var(--gs-accent2);
}
.gs-card-icon { font-size: 28px; margin-bottom: 12px; }
.gs-card-img { aspect-ratio:16/9; overflow:hidden; border-radius:8px; margin-bottom:14px; }
.gs-card-img img { width:100%; height:100%; object-fit:cover; }
.gs-card h3 { font-family: var(--gs-font-h); font-size: 19px; font-weight: 700; color: var(--gs-ink); margin-bottom: 8px; }
.gs-card h3 a { color: inherit; text-decoration: none; }
.gs-card h3 a:hover { color: var(--gs-accent); }
.gs-card p { font-size: 13.5px; color: var(--gs-muted); line-height: 1.6; }

/* ── Features ────────────────────────────────────────────────── */
.gs-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.gs-feature-item {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 20px;
    background: var(--gs-surface);
    border: 1px solid var(--gs-border);
    border-radius: var(--gs-r);
}
.gs-feature-icon {
    width: 42px; height: 42px; flex-shrink: 0;
    border-radius: 9px;
    background: rgba(201,169,74,.08);
    border: 1px solid var(--gs-accent2);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.gs-feature-item h4 { font-size: 15px; font-weight: 700; color: var(--gs-ink); margin-bottom: 5px; }
.gs-feature-item p { font-size: 13px; color: var(--gs-muted); line-height: 1.6; }

/* ── Testimonials ────────────────────────────────────────────── */
.gs-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.gs-testimonial {
    background: var(--gs-surface);
    border: 1px solid var(--gs-border);
    border-radius: var(--gs-r);
    padding: 24px;
}
.gs-stars { color: #f59e0b; font-size: 14px; margin-bottom: 10px; letter-spacing: 1px; }
.gs-quote { font-family: var(--gs-font-h); font-size: 16px; font-style: italic; color: var(--gs-ink); line-height: 1.6; margin-bottom: 14px; }
.gs-testimonial-name { font-size: 13px; font-weight: 700; color: var(--gs-accent); }
.gs-testimonial-result { font-size: 12px; color: var(--gs-muted); margin-top: 3px; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.gs-faq { display: flex; flex-direction: column; gap: 10px; }
.gs-faq-item { background: var(--gs-surface); border: 1px solid var(--gs-border); border-radius: var(--gs-r); overflow: hidden; }
.gs-faq-q {
    width: 100%; text-align: left;
    padding: 16px 20px;
    background: none; border: none; cursor: pointer;
    font-family: var(--gs-font-b); font-size: 15px; font-weight: 600;
    color: var(--gs-ink);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    transition: color .15s;
}
.gs-faq-q:hover { color: var(--gs-accent); }
.gs-faq-arrow { font-size: 13px; color: var(--gs-muted); transition: transform .2s; flex-shrink: 0; }
.gs-faq-item.open .gs-faq-arrow { transform: rotate(180deg); }
.gs-faq-a { display: none; padding: 0 20px 18px; font-size: 14px; color: var(--gs-muted); line-height: 1.7; }
.gs-faq-item.open .gs-faq-a { display: block; }

/* ── CTA ─────────────────────────────────────────────────────── */
.gs-cta-inner { max-width: 640px; margin: 0 auto; padding: 0 28px; }
.gs-cta h2 { font-family: var(--gs-font-h); font-size: clamp(28px,4vw,46px); font-weight: 700; color: #000; letter-spacing: -.02em; margin-bottom: 12px; }
.gs-cta p { font-size: 16px; color: rgba(0,0,0,.65); margin-bottom: 28px; }

/* ── Pricing ─────────────────────────────────────────────────── */
.gs-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    align-items: start;
}
.gs-plan {
    background: var(--gs-surface); border: 1px solid var(--gs-border);
    border-radius: var(--gs-r); padding: 28px 24px;
    text-align: center; position: relative;
}
.gs-plan-featured { border-color: var(--gs-accent2); box-shadow: 0 0 0 2px rgba(201,169,74,.15); }
.gs-plan-badge {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    background: var(--gs-accent); color: #000;
    font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    padding: 3px 12px; border-radius: 20px;
}
.gs-plan-name { font-size: 13px; font-weight: 700; color: var(--gs-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.gs-plan-price { display: flex; align-items: baseline; justify-content: center; gap: 3px; margin-bottom: 14px; }
.gs-price-amount { font-family: var(--gs-font-h); font-size: 44px; font-weight: 700; color: var(--gs-ink); line-height: 1; }
.gs-price-per { font-size: 13px; color: var(--gs-muted); }
.gs-plan-desc { font-size: 13px; color: var(--gs-muted); line-height: 1.6; margin-bottom: 20px; }

/* ── Gallery ─────────────────────────────────────────────────── */
.gs-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.gs-gallery-item { aspect-ratio: 1; border-radius: var(--gs-r); overflow: hidden; }
.gs-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gs-gallery-item:hover img { transform: scale(1.05); }
.gs-gallery-empty { text-align: center; padding: 48px; color: var(--gs-muted); font-size: 14px; font-style: italic; background: var(--gs-surface); border: 1px dashed var(--gs-border); border-radius: var(--gs-r); }

/* ── Stats ───────────────────────────────────────────────────── */
.gs-stats .gs-container {padding: 0 28px}
.gs-stats .gs-stats {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 32px 60px; padding: 0;
}
.gs-stat { text-align: center; }
.gs-stat-number { font-family: var(--gs-font-h); font-size: clamp(36px,5vw,60px); font-weight: 700; color: var(--gs-accent); line-height: 1; }
.gs-stat-label { font-size: 13px; color: var(--gs-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; margin-top: 6px; }

/* ── Team ────────────────────────────────────────────────────── */
.gs-team {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 22px;
}
.gs-team-card { text-align: center; padding: 24px 16px; background: var(--gs-surface); border: 1px solid var(--gs-border); border-radius: var(--gs-r); }
.gs-team-avatar { width: 60px; height: 60px; border-radius: 50%; background: rgba(201,169,74,.1); border: 2px solid var(--gs-accent2); display: flex; align-items: center; justify-content: center; font-family: var(--gs-font-h); font-size: 26px; font-weight: 700; color: var(--gs-accent); margin: 0 auto 14px; }
.gs-team-card h4 { font-size: 16px; font-weight: 700; color: var(--gs-ink); margin-bottom: 4px; }
.gs-team-role { font-size: 12px; color: var(--gs-accent); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.gs-team-card p { font-size: 13px; color: var(--gs-muted); line-height: 1.6; }

/* ── Contact form ────────────────────────────────────────────── */
.gs-contact-form { display: flex; flex-direction: column; gap: 12px; }
.gs-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gs-input {
    width: 100%; padding: 12px 16px;
    background: var(--gs-surface); border: 1px solid var(--gs-border);
    border-radius: 8px; color: var(--gs-text);
    font-family: var(--gs-font-b); font-size: 14px; outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.gs-input:focus { border-color: var(--gs-accent2); box-shadow: 0 0 0 3px rgba(201,169,74,.1); }
.gs-input::placeholder { color: var(--gs-muted); }
.gs-textarea { resize: vertical; min-height: 100px; }

/* ── Newsletter form ─────────────────────────────────────────── */
.gs-newsletter-form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; }
.gs-newsletter-form .gs-input { flex: 1; }
.gs-newsletter-form button { padding: 12px 24px; background: var(--gs-accent); color: #000; border: none; border-radius: 8px; font-weight: 800; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: all .18s; }
.gs-newsletter-form button:hover { background: #daba5a; }

/* ── Map / Video ─────────────────────────────────────────────── */
.gs-map-embed, .gs-video-wrap { border-radius: 12px; overflow: hidden; }
.gs-video-wrap { aspect-ratio: 16/9; }
.gs-video-wrap iframe { width: 100%; height: 100%; display: block; }
.gs-map-placeholder { text-align: center; padding: 48px; background: var(--gs-surface); border: 1px dashed var(--gs-border); border-radius: var(--gs-r); font-size: 14px; color: var(--gs-muted); font-style: italic; }

/* ── Trust ───────────────────────────────────────────────────── */
.gs-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 32px; }
.gs-trust-item { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 18px 24px; background: var(--gs-surface); border: 1px solid var(--gs-border); border-radius: var(--gs-r); min-width: 120px; text-align: center; }
.gs-trust-icon { font-size: 26px; }
.gs-trust-item div:last-child { font-size: 12px; font-weight: 700; color: var(--gs-muted); text-transform: uppercase; letter-spacing: .06em; }

/* ── Process ─────────────────────────────────────────────────── */
.gs-process {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    counter-reset: steps;
}
.gs-step { text-align: center; padding: 24px 16px; position: relative; }
.gs-step + .gs-step::before { content: ''; position: absolute; top: 34px; left: -10px; width: 20px; height: 2px; background: var(--gs-border); }
.gs-step-number { width: 52px; height: 52px; border-radius: 50%; background: rgba(201,169,74,.08); border: 2px solid var(--gs-accent2); display: flex; align-items: center; justify-content: center; font-family: var(--gs-font-h); font-size: 20px; font-weight: 700; color: var(--gs-accent); margin: 0 auto 14px; }
.gs-step h4 { font-size: 15px; font-weight: 700; color: var(--gs-ink); margin-bottom: 8px; }
.gs-step p { font-size: 13px; color: var(--gs-muted); line-height: 1.6; }

/* ── Banner ──────────────────────────────────────────────────── */
.gs-banner-inner { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 28px; flex-wrap: wrap; }
.gs-banner-inner span { font-size: 14px; font-weight: 600; color: rgba(0,0,0,.85); }
.gs-banner-cta { font-size: 12px; font-weight: 800; text-decoration: none; color: #000; background: rgba(0,0,0,.12); padding: 5px 14px; border-radius: 4px; letter-spacing: .05em; text-transform: uppercase; transition: background .15s; }
.gs-banner-cta:hover { background: rgba(0,0,0,.22); }

/* ── Custom fields ───────────────────────────────────────────── */
.gs-custom-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gs-custom-field { background: var(--gs-surface); border: 1px solid var(--gs-border); border-radius: var(--gs-r); padding: 16px 18px; }
.gs-custom-label { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gs-muted); margin-bottom: 6px; }
.gs-custom-value { font-size: 15px; color: var(--gs-ink); }

/* ── About ───────────────────────────────────────────────────── */
.gs-about-body { max-width: 720px; margin: 0 auto; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
    .gs-section { padding: 48px 0; }
    .gs-form-row { grid-template-columns: 1fr; }
    .gs-newsletter-form { flex-direction: column; }
    .gs-cards, .gs-features, .gs-testimonials, .gs-pricing, .gs-team, .gs-process { grid-template-columns: 1fr; }
}
