/* ==========================================================================
   STRUCTR — global.css
   Site-wide typography, buttons, layout utilities, section helpers.
   Mobile-first: base styles target 375px, enhanced up with min-width queries.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base typography
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }

/* Prevent horizontal scrolling at any viewport size */
html, body { overflow-x: hidden; max-width: 100%; }

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #212121;
    background-color: #F3F0EB;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'TT Travels Next', 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: #212121;
    line-height: 1.15;
}

/* ---- Responsive type scale (mobile-first) ---- */
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; font-weight: 600; }
h4 { font-size: 19px; font-weight: 600; }

@media (min-width: 768px) {
    h1 { font-size: 52px; }
    h2 { font-size: 36px; }
    h3 { font-size: 26px; }
}

@media (min-width: 1200px) {
    h1 { font-size: 64px; }
    h2 { font-size: 44px; }
    h3 { font-size: 28px; }
}

a {
    color: #904028;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #AD712A;
}

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

p {
    margin: 0 0 1em;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
    background-color: #904028;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 2px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #AD712A;
    color: #ffffff;
}

.btn-secondary {
    background-color: transparent;
    color: #904028;
    padding: 13px 27px;
    border-radius: 2px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid #904028;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #904028;
    color: #ffffff;
}

.btn-ghost {
    background-color: transparent;
    color: #ffffff;
    padding: 13px 27px;
    border-radius: 2px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-ghost:hover {
    background-color: #ffffff;
    color: #904028;
}

/* --------------------------------------------------------------------------
   Section spacing
   -------------------------------------------------------------------------- */
.section {
    padding: 60px 0;
}

.section--sm {
    padding: 40px 0;
}

.section--lg {
    padding: 72px 0;
}

@media (min-width: 768px) {
    .section { padding: 100px 0; }
    .section--sm { padding: 56px 0; }
    .section--lg { padding: 120px 0; }
}

/* --------------------------------------------------------------------------
   Eyebrow text
   -------------------------------------------------------------------------- */
.eyebrow {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #AD712A;
    margin-bottom: 12px;
    display: block;
}

/* --------------------------------------------------------------------------
   Blueprint dashed line motif
   -------------------------------------------------------------------------- */
.blueprint-rule {
    border: none;
    border-top: 2px dashed #B6A690;
    opacity: 0.4;
    margin: 40px 0;
}

/* --------------------------------------------------------------------------
   Section backgrounds
   -------------------------------------------------------------------------- */
.bg-isabelline { background-color: #F3F0EB; }
.bg-jet { background-color: #212121; color: #F3F0EB; }
.bg-feldgrau { background-color: #4A5A54; color: #ffffff; }
.bg-chestnut { background-color: #904028; color: #ffffff; }
.bg-white { background-color: #ffffff; }

/* Headings inside dark sections inherit the light text color */
.bg-jet h1, .bg-jet h2, .bg-jet h3, .bg-jet h4,
.bg-feldgrau h1, .bg-feldgrau h2, .bg-feldgrau h3, .bg-feldgrau h4,
.bg-chestnut h1, .bg-chestnut h2, .bg-chestnut h3, .bg-chestnut h4 {
    color: inherit;
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.structr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.structr-container--narrow {
    max-width: 820px;
}

/* --------------------------------------------------------------------------
   Section heading helpers
   -------------------------------------------------------------------------- */
.section-label {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #904028;
    margin-bottom: 14px;
    display: block;
}

.section-heading {
    font-size: 30px;
    margin: 0 0 18px;
}

@media (min-width: 768px) {
    .section-heading { font-size: 40px; }
}

.section-intro {
    max-width: 640px;
    font-size: 18px;
    color: #4A5A54;
}

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

/* --------------------------------------------------------------------------
   Generic grids
   -------------------------------------------------------------------------- */
.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid { gap: 32px; }
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------------
   Accessibility helpers
   -------------------------------------------------------------------------- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    word-wrap: normal !important;
}

.skip-link:focus {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100000;
    background: #ffffff;
    color: #904028;
    padding: 10px 18px;
    border-radius: 2px;
}

/* Offset anchor jumps so the sticky header doesn't cover the target */
[id] { scroll-margin-top: 110px; }

/* ==========================================================================
   DESIGN STANDARDS
   Mobile-first: base styles target 375px; primary breakpoints 768px & 1200px.
   - Section vertical rhythm: 80px (sections), 120px (heroes).
   - Container max-width: 1200px. Text columns capped at 720px for readability.
   - Card images use fixed aspect ratios via the padding-top ratio-box.
   - Scroll-triggered fade-ins via Intersection Observer (.fade-in -> .is-visible).
   ========================================================================== */

/* Container / measure ----------------------------------------------------- */
.structr-container { max-width: 1200px; }

/* Cap running text for readability (~720px line measure) */
.text-measure,
.section-intro,
.single-post__content,
.single-post__header,
.structr-page-content,
.structr-faq {
    max-width: 720px;
}
.structr-container--narrow { max-width: 720px; }

/* Vertical rhythm: 60px mobile -> 100px desktop (defined above). */

/* Ratio-box utility — fixed aspect images without layout shift ------------- */
.ratio-box {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
}
.ratio-box > * {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ratio-16-9 { padding-top: 56.25%; }
.ratio-16-10 { padding-top: 62.5%; }
.ratio-4-3 { padding-top: 75%; }
.ratio-1-1 { padding-top: 100%; }

/* Scroll fade-in animations ----------------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}
.fade-in.is-visible {
    opacity: 1;
    transform: none;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .fade-in { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}
