/**
 * giringiro.css: THE theme of giringiro.cloud, loaded after base.css (the ported design system) and before site.css.
 * Tokens first (colour, type, radius, shadow, spacing), then the component skin: app-like (big rounded surfaces,
 * flat magenta primary, soft layered shadows, no heavy borders, nothing jumps on hover).
 * Accent: electric blue #1F4BFF next to the magenta (owner decision 25 Sep 2026); verde acqua is out.
 */
:root {
    /* Type */
    --font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Jakarta Fallback', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 15px;
    --font-size-lg: 16px;
    --font-size-5xl: 36px;

    /* Brand */
    --gs-magenta: #B0005C;              /* screen magenta (print kit #A40054), AA on white with white text (6.9:1) */
    --gs-magenta-dark: #8F004B;
    --gs-magenta-soft: #FBEFF5;
    --gs-ink: #13110F;
    --gs-ivory: #F9F7F5;
    --gs-warm: #C6C4C2;

    --color-primary: var(--gs-magenta);
    --color-primary-dark: var(--gs-magenta-dark);
    --color-primary-rgb: 176, 0, 92;
    --color-primary-gradient: var(--gs-magenta);            /* flat, no gradient */
    --color-primary-gradient-hover: var(--gs-magenta-dark);
    --color-theme-accent: #1F4BFF;                           /* secondary actions (Add return...), D10 */
    --color-accent: #1F4BFF;
    --color-accent-bg: #EEF2FF;

    /* Text */
    --color-text-primary: var(--gs-ink);
    --color-text-secondary: #5B5754;
    --color-text-muted: #6F6B67;   /* 25 Sep 2026: was #8A8683, 3.4:1 on ivory; now 5:1 (axe wcag2aa) */

    /* Surfaces */
    --color-bg-white: #fff;
    --color-bg-gray-light: #F1EEEB;
    --color-bg-gray: var(--gs-ivory);
    --color-bg-hover: #F1EEEB;
    --color-bg-hover-alt: #F4F2EF;

    /* Borders (warm, light) */
    --color-border-primary: #E8E5E2;
    --color-border-secondary: #E8E5E2;
    --color-border-light: #F0EDEA;
    --color-border-medium: #D2CECA;

    /* Elevation: soft, layered */
    --shadow-sm: 0 1px 2px rgba(19, 17, 15, 0.06), 0 2px 8px rgba(19, 17, 15, 0.06);
    --shadow-md: 0 2px 6px rgba(19, 17, 15, 0.06), 0 8px 24px rgba(19, 17, 15, 0.10);
    --shadow-lg: 0 6px 16px rgba(19, 17, 15, 0.08), 0 24px 56px rgba(19, 17, 15, 0.16);

    /* Radius */
    /* Radius: owner 25 Sep 2026 "too rounded, reduce a bit" (was 8 / 12 / 16 / 24, pills fully round) */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 14px;
    --radius-pill: 10px;

    /* Sizes */
    --header-height: 72px;
    --button-height: 48px;
    --button-height-sm: 40px;

    /* Badges */
    --badge-primary-text: #1E3A8A;  --badge-primary-bg: #EEF2FF;  --badge-primary-border: #EEF2FF;
    --badge-success-text: #065F46;  --badge-success-bg: #D1FAE5;  --badge-success-border: #D1FAE5;
    --badge-danger-text: #991B1B;   --badge-danger-bg: #FEE2E2;   --badge-danger-border: #FEE2E2;

    --gs-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- type ---- */
h1, h2, h3, h4, .gs-h { font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.02em; word-spacing: .06em; line-height: 1.1; }   /* Jakarta's space is 0.17em: small headings read cramped without the word-spacing (26 Sep 2026) */
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
.gs-lead { font-size: 18px; color: var(--color-text-secondary); line-height: 1.55; max-width: 62ch; }
.text-primary { color: var(--color-primary) !important; }
a { transition: color .15s var(--gs-ease); }

/* ---- buttons: flat, rounded, never jump ---- */
.btn { border-radius: var(--radius-md); font-weight: 600; height: var(--button-height); padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background-color .15s var(--gs-ease), color .15s var(--gs-ease), border-color .15s var(--gs-ease), box-shadow .15s var(--gs-ease); transform: none !important; }
.btn:hover, .btn:focus, .btn:active { transform: none !important; }
.btn-sm { height: var(--button-height-sm); padding: 0 16px; font-size: var(--font-size-base); border-radius: var(--radius-sm); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 17px; border-radius: var(--radius-lg); }
.btn-primary { background: var(--color-primary); border: none; color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--color-primary-dark); color: #fff; }
.btn-primary:focus-visible { box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), .25); }
.btn-outline-primary { border: 1.5px solid var(--color-border-medium); color: var(--color-text-primary); background: #fff; }
.btn-outline-primary:hover { border-color: var(--gs-ink); background: #fff; color: var(--gs-ink); }
.btn-dark { background: var(--gs-ink); border: none; color: #fff; }
.btn-dark:hover { background: #2A2724; color: #fff; }
.btn-ghost { background: transparent; border: none; color: var(--color-text-primary); }
.btn-ghost:hover { background: var(--color-bg-hover); }
.btn-block { width: 100%; }

/* ---- inputs ---- */
.form-control, .form-select { height: var(--button-height); border-radius: var(--radius-md); border: 1.5px solid var(--color-border-primary); background: #fff; color: var(--color-text-primary); font-size: var(--font-size-lg); padding: 0 14px; transition: border-color .15s var(--gs-ease), box-shadow .15s var(--gs-ease); }
textarea.form-control { height: auto; padding: 12px 14px; }
.form-control:focus, .form-select:focus { border-color: var(--gs-ink); box-shadow: 0 0 0 4px rgba(19, 17, 15, .08); outline: none; }
.form-control::placeholder, .custom-select-input::placeholder, .cf-select-text { color: var(--color-text-muted); }
/* the ported widget fades its placeholders (opacity): at full opacity the muted grey passes 4.5:1 (axe wcag2aa, 25 Sep 2026) */
.custom-select-input::placeholder, .booking-input::placeholder, .custom-select-trigger--typed .custom-select-input::placeholder { color: var(--color-text-muted) !important; -webkit-text-fill-color: var(--color-text-muted) !important; opacity: 1 !important; }
.custom-select-trigger.placeholder, .custom-select-trigger--typed.placeholder { opacity: 1 !important; }   /* the desktop trigger faded to .5 in the empty state: the grey placeholder alone marks it */
.form-label { font-weight: 600; font-size: var(--font-size-sm); color: var(--color-text-secondary); margin-bottom: 6px; }
.form-check-input:checked { background-color: var(--color-primary); border-color: var(--color-primary); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), .2); border-color: var(--color-primary); }

/* ---- cards & surfaces ---- */
.gs-card, .card { border: 1px solid var(--color-border-light); border-radius: var(--radius-xl); background: #fff; box-shadow: none; }
.gs-card-hover { transition: box-shadow .2s var(--gs-ease), border-color .2s var(--gs-ease); }
.gs-card-hover:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.gs-surface { background: var(--gs-ivory); border-radius: var(--radius-xl); }
.gs-elevated { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }

/* ---- pills, segmented control ---- */
.gs-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--color-bg-gray-light); color: var(--color-text-primary); font-size: var(--font-size-sm); font-weight: 600; white-space: nowrap; }
.gs-pill-primary { background: var(--gs-magenta-soft); color: var(--gs-magenta); }
.gs-pill-accent { background: var(--color-accent-bg); color: var(--color-accent); }
.gs-seg { display: inline-flex; padding: 4px; border-radius: var(--radius-pill); background: var(--color-bg-gray-light); gap: 2px; }
.gs-seg > button, .gs-seg > label { border: none; background: transparent; height: 36px; padding: 0 16px; border-radius: var(--radius-pill); font-weight: 600; font-size: var(--font-size-base); color: var(--color-text-secondary); cursor: pointer; transition: background-color .15s var(--gs-ease), color .15s var(--gs-ease), box-shadow .15s var(--gs-ease); }
.gs-seg > .is-active, .gs-seg > input:checked + label { background: #fff; color: var(--gs-ink); box-shadow: var(--shadow-sm); }
.gs-seg > input { position: absolute; opacity: 0; pointer-events: none; }

/* ---- badges ---- */
.badge { border-radius: var(--radius-pill); font-weight: 600; padding: 5px 10px; }

/* ---- bottom sheet (mobile) ---- */
.gs-sheet-backdrop { position: fixed; inset: 0; background: rgba(19, 17, 15, .45); opacity: 0; pointer-events: none; transition: opacity .2s var(--gs-ease); z-index: 1040; }
.gs-sheet { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: var(--shadow-lg); transform: translateY(100%); transition: transform .25s var(--gs-ease); z-index: 1050; max-height: 92vh; overflow: auto; padding: 8px 20px 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.gs-sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: var(--radius-sm); background: var(--color-border-medium); margin: 6px auto 14px; }
.gs-sheet.is-open { transform: none; }
.gs-sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }
@media (min-width: 768px) { .gs-sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%) scale(.98); width: min(560px, calc(100% - 32px)); border-radius: var(--radius-xl); opacity: 0; } .gs-sheet.is-open { transform: translate(-50%, -50%); opacity: 1; } .gs-sheet::before { display: none; } }

/* ---- sticky mobile CTA ---- */
.gs-sticky-cta { position: sticky; bottom: 0; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); border-top: 1px solid var(--color-border-light); padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); z-index: 1020; }

/* ---- skeleton ---- */
.gs-skeleton { background: linear-gradient(90deg, #EFECE9 25%, #F7F5F2 50%, #EFECE9 75%); background-size: 200% 100%; animation: gs-shimmer 1.2s infinite; border-radius: var(--radius-sm); }
.gs-photo { display: block; width: 100%; height: auto; object-fit: cover; background: #EFECE9; }   /* a slot photo (lib/photos.php): same box as its skeleton, the 3:2 source cropped to the box */
@keyframes gs-shimmer { to { background-position: -200% 0; } }

/* ---- header/nav skin (structure is base.css) ---- */
header { border-bottom: 1px solid var(--color-border-light); }
.nav-link { font-weight: 500; }
.nav-link-button { border-radius: var(--radius-md); }

/* ---- sections ---- */
.container { max-width: 1200px; }
.gs-section { padding: clamp(48px, 7vw, 96px) 0; }
.gs-section-tight { padding: clamp(32px, 5vw, 64px) 0; }
.section-title { font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.02em; }
.gs-eyebrow { display: none; }   /* house rule: no eyebrow pills */
img { max-width: 100%; height: auto; }
.gs-img { border-radius: var(--radius-xl); object-fit: cover; }

/* ---- focus & motion ---- */
:focus-visible { outline: 3px solid rgba(var(--color-primary-rgb), .35); outline-offset: 2px; }
/* text fields show focus with their own border / wrapper ring (e.g. the currency search): no second magenta box inside (owner 26 Sep 2026) */
input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
