/* =========================================================
   Landers 1915 — site styles
   Recreates the WordPress "Inspiro" theme look + Gutenberg blocks.
   Colors & fonts are variables below: change once, applies everywhere.
   ========================================================= */
:root {
  --bg: #c9bba9;          /* tan page background */
  --navy: #09173a;        /* footer + menu panel */
  --text: #444444;
  --heading: #000000;
  --link: #ffffff;        /* links in page content are white on tan */
  --muted: #6c6c77;       /* dates, sub-labels */
  --hero-box: #c9bba9;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Onest", "Inter", system-ui, sans-serif;
  --content: 1200px;
  --gap: 20px;
  --fs-small: clamp(14px, .875rem + .18vw, 16px);
  --fs-medium: clamp(16px, 1rem + .35vw, 20px);
  --fs-large: clamp(22px, 1.375rem + 1.24vw, 36px);
  --fs-xlarge: clamp(30px, 1.875rem + 1.77vw, 50px);
  --sp-xs: 20px;
  --sp-s: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.8 var(--font-body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; transition: opacity .2s, color .2s; }
a:hover { opacity: .8; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--heading); font-weight: 600; line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: clamp(30px, 2rem + 1.2vw, 42px); }
h2 { font-size: clamp(22px, 1.4rem + .8vw, 30px); letter-spacing: 1px; }
h3 { font-size: clamp(18px, 1.1rem + .4vw, 24px); font-weight: 700; }
p { margin: 0 0 1.2em; }
.inner-wrap { max-width: var(--content); margin: 0 auto; padding: 0 var(--sp-xs); }

/* ---------- Header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 18px 36px; }
.site-header.solid { position: relative; background: var(--navy); }
.custom-logo { width: 80px; height: 80px; border-radius: 50%; }
.site-header.is-home .custom-logo { width: 200px; height: 200px; }
.primary-nav { margin-left: auto; }
.primary-nav .menu { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; }
.primary-nav a { display: block; padding: 8px 12px; color: #fff; font: 600 15px/1.3 var(--font-head); text-transform: uppercase; letter-spacing: .5px; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.primary-nav .sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--navy); border-radius: 4px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.primary-nav .sub-menu a { text-shadow: none; text-transform: none; font-weight: 500; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(9,23,58,.55); cursor: pointer; padding: 13px 11px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }

.side-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: var(--navy); z-index: 200; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; overflow-y: auto; padding: 70px 34px 40px; }
.side-nav.open { transform: none; visibility: visible; transition: transform .3s ease; }
.side-nav__overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 150; opacity: 0; visibility: hidden; transition: .3s; }
.side-nav.open + .side-nav__overlay { opacity: 1; visibility: visible; }
.side-nav__close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 38px; line-height: 1; cursor: pointer; }
.side-menu, .side-menu ul { list-style: none; margin: 0; padding: 0; }
.side-menu a { display: block; padding: 10px 0; color: #fff; font: 600 16px/1.4 var(--font-head); text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.12); }
.side-menu .sub-menu a { padding-left: 18px; font-weight: 500; text-transform: none; }

@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header { padding: 14px 18px; }
  .site-header.is-home .custom-logo { width: 120px; height: 120px; }
  .custom-logo { width: 64px; height: 64px; }
}

/* ---------- Page banners ---------- */
.entry-cover { position: relative; height: 450px; overflow: hidden; }
.entry-cover > img { width: 100%; height: 100%; object-fit: cover; }
.entry-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 55%); }
.entry-cover__header { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2; }
.entry-cover .entry-title { color: #fff; font-size: 32px; margin: 0; }
.entry-cover .entry-meta, .entry-cover .entry-meta a { color: rgba(255,255,255,.85); }
.entry-header { padding: 45px 0 0; }
.entry-header .entry-title { font-size: 32px; color: #222; margin: 0; }
.entry-meta { font-size: 15px; color: var(--muted); }
@media (max-width: 700px) { .entry-cover { height: 300px; } .entry-cover .entry-title { font-size: 26px; } }

/* ---------- Content area ---------- */
.entry-content { max-width: var(--content); margin: 45px auto 60px; padding: 0 var(--sp-xs); }
body.home .entry-content { margin-top: 0; }
.entry-content > * + * { margin-top: var(--gap); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.alignwide { max-width: 1450px; }
.has-text-align-center { text-align: center; }
.has-text-align-left { text-align: left; }
.has-small-font-size { font-size: var(--fs-small) !important; }
.has-medium-font-size { font-size: var(--fs-medium) !important; }
.has-large-font-size { font-size: var(--fs-large) !important; }
.has-x-large-font-size { font-size: var(--fs-xlarge) !important; }
.has-tertiary-color { color: var(--muted) !important; }
.has-foreground-color { color: #000 !important; }
.has-white-color { color: #fff !important; }
.has-black-background-color { background-color: #000 !important; }
.has-background { padding: .6em 1em; }
.wp-block-group { }
.wp-block-group.alignfull > * { max-width: var(--content); margin-left: auto; margin-right: auto; padding-left: var(--sp-xs); padding-right: var(--sp-xs); }
.wp-block-spacer { margin: 0 !important; }

/* Headings with inline links keep the white link look */
.entry-content h2 a, .entry-content h3 a { color: var(--link); }

/* Quote */
.wp-block-quote { margin: var(--sp-s); padding: var(--sp-xs); border-left: 3px solid #000; }
.wp-block-quote > :last-child { margin-bottom: 0; }

/* Columns */
.wp-block-columns { display: flex; gap: 2em; flex-wrap: nowrap; align-items: normal; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-column[style*="flex-basis"] { flex-grow: 0; }
@media (max-width: 781px) { .wp-block-columns { flex-wrap: wrap; } .wp-block-column { flex-basis: 100% !important; } }

/* Images */
.wp-block-image { margin: 0; }
.wp-block-image.aligncenter, .wp-block-image .aligncenter { margin-left: auto; margin-right: auto; display: table; }
.wp-block-image.aligncenter img { margin: 0 auto; }
.wp-block-image figcaption { font-size: 14px; text-align: center; margin-top: .5em; }
.wp-block-image.is-resized img { max-width: 100%; }

/* Galleries */
.wp-block-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: var(--gap) 0; }
.wp-block-gallery.columns-2 { grid-template-columns: repeat(2, 1fr); }
.wp-block-gallery.columns-4 { grid-template-columns: repeat(4, 1fr); }
.wp-block-gallery.columns-5 { grid-template-columns: repeat(5, 1fr); }
.wp-block-gallery > figure { margin: 0 !important; overflow: hidden; }
.wp-block-gallery.is-cropped > figure a, .wp-block-gallery.is-cropped > figure img { width: 100%; height: 100%; object-fit: cover; }
.wp-block-gallery.is-cropped > figure { aspect-ratio: 4 / 3; }
.wp-block-gallery > figure img { transition: transform .35s ease; }
.wp-block-gallery > figure a:hover img { transform: scale(1.04); }
.wp-block-gallery > figure { position: relative; }
.wp-block-gallery > figure figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 8px 6px; font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
@media (max-width: 781px) { .wp-block-gallery, .wp-block-gallery[class*="columns-"] { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* Cover blocks (homepage hero, parallax band) */
.wp-block-cover { position: relative; display: flex; align-items: center; justify-content: center; min-height: 430px; padding: 1em; overflow: hidden; }
.wp-block-cover__image-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; margin: 0; z-index: 0; }
div.wp-block-cover__image-background { background-size: cover; background-position: 50% 50%; }
.wp-block-cover__image-background.has-parallax { background-attachment: fixed; }
@supports (-webkit-touch-callout: none) { .wp-block-cover__image-background.has-parallax { background-attachment: scroll; } }
.wp-block-cover__background { position: absolute; inset: 0; z-index: 1; opacity: .5; background: #000; }
.wp-block-cover__background.has-background-dim-20 { opacity: .2; }
.wp-block-cover__background.has-background-dim-30 { opacity: .3; }
.wp-block-cover__background.has-background-dim-40 { opacity: .4; }
.wp-block-cover__background.has-background-dim-60 { opacity: .6; }
.wp-block-cover__background.has-background-dim-80 { opacity: .8; }
.wp-block-cover__inner-container { position: relative; z-index: 2; width: 100%; max-width: var(--content); color: #fff; }
.wp-block-cover__inner-container > p:empty { margin: 0; min-height: 1.2em; }
body.home .entry-content > .wp-block-cover:first-child { margin-top: 0; }
body.home .entry-content > .wp-block-cover:first-child h1 { display: inline-block; width: 100%; max-width: 900px; padding: .5em .8em; margin: 0 auto; }
body.home .entry-content > .wp-block-cover:first-child .wp-block-cover__inner-container { text-align: center; }

/* Buttons */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .5em; justify-content: center; }
.wp-block-button__link { display: inline-block; padding: 14px 32px; font: 600 15px/1 var(--font-head); letter-spacing: 1px; border: 2px solid currentColor; color: #fff; background: transparent; }
.wp-block-button__link:hover { background: rgba(255,255,255,.12); opacity: 1; }

/* Video embeds */
.wp-block-embed.video { margin: 0 0 var(--sp-s); }
.video-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.ratio-4-3 .video-wrap { aspect-ratio: 4 / 3; max-width: 900px; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Homepage "The Landers" portrait cards */
#team .wp-block-image img { border-radius: 4px; }
#team h3 { margin: .8em 0 .2em; }
#team h3 a { color: #fff; }

/* Blog cards (homepage + /blog/) */
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-s); }
.post-card__img img { width: 100%; height: 240px; object-fit: cover; border-radius: 5px; margin-bottom: var(--sp-xs); }
.post-card__date { color: var(--muted); font-size: 15px; }
.post-card__title { margin: 0 0 var(--sp-xs); font-size: 22px; }
.post-card__title a { color: #000; }
.post-card__excerpt { color: var(--muted); }
.read-more { display: inline-block; padding: 10px var(--sp-xs); border: 2px solid #000; color: #000; text-transform: uppercase; font: 600 14px/1 var(--font-head); letter-spacing: .5px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; font-size: 16px; }
.footer-widgets { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 60px; padding-bottom: 40px; }
.widget-title { color: #fff; font-size: 20px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1em; }
.site-footer a { color: #d9cbb8; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu .sub-menu { list-style: none; padding-left: 14px; }
.footer-menu a { display: inline-block; padding: 3px 0; }
.site-info { border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; padding-bottom: 28px; font-size: 14px; color: rgba(255,255,255,.75); }
@media (max-width: 781px) { .footer-widgets { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,12,.94); display: none; align-items: center; justify-content: center; touch-action: pan-y; }
.lb.open { display: flex; }
.lb img { max-width: 94vw; max-height: 86vh; width: auto; height: auto; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; cursor: pointer; border-radius: 50%; width: 52px; height: 52px; font-size: 28px; line-height: 52px; padding: 0; }
.lb button:hover { background: rgba(255,255,255,.22); }
.lb .lb-close { top: 16px; right: 16px; }
.lb .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb .lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font-size: 14px; }
@media (max-width: 700px) { .lb .lb-prev, .lb .lb-next { top: auto; bottom: 10px; transform: none; } }

@media (max-width: 700px) {
  .wp-block-quote { margin: var(--sp-xs) 0; padding: 10px 14px; }
  .wp-block-quote h2 { font-size: 21px !important; letter-spacing: .3px; }
}
