/* -------------------------------------------------------------------------
   Sarangan 5.1 — Club Fjord
   Forest green + teal, Mulish, paper cards. Same Club layout, not navy/gold.
   ------------------------------------------------------------------------- */

:root {
  --navy: #1c3a32;
  --navy-2: #23463c;
  --accent: #2f8f7a;
  --accent-2: #9fd4c4;
  --paper: #e8eee9;
  --ink: #152822;
  --muted: #5a736b;
  --card: #f7fbf8;
  --line: rgba(28, 58, 50, 0.12);
  --tab: 72px;
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --radius: 18px;
  --wrap: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-padding-top: 12px;
}

body {
  margin: 0;
  font-family: Mulish, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

figure { margin: 0; }

a { color: var(--navy); }

h1, h2, h3 { line-height: 1.25; color: var(--navy); }

p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

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

.skip-link:focus,
.screen-reader-text:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  margin: 0;
  padding: 8px 12px;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  background: #fff;
  color: var(--navy);
}

.site { min-height: 100vh; }

/* Header
   ------------------------------------------------------------------------- */

.site-header {
  background: linear-gradient(165deg, #142e28, var(--navy-2));
  color: #fff;
  padding: calc(10px + var(--safe-top)) 16px 12px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(12, 32, 28, 0.25);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
  flex: 1;
}

.brand-mark,
.brand img.brand-mark,
.custom-logo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: 50% 12%;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  box-shadow: 0 0 0 2px var(--accent), 0 4px 14px rgba(0, 0, 0, 0.35);
}

.brand-mark--letter {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--navy);
  object-fit: none;
}

.brand-text strong {
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  font-weight: 800;
  white-space: nowrap;
}

.site-description { display: none; }

.header-nav { display: none; }

.header-nav ul,
.header-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.menu-toggle__bars {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.header-nav.is-open {
  display: block;
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(100% + 8px);
  background: var(--navy-2);
  padding: 10px;
  border-radius: 14px;
  z-index: 70;
}

.header-nav.is-open a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 10px;
}

.header-nav.is-open .current-menu-item > a,
.header-nav.is-open a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-2);
}

/* Layout
   ------------------------------------------------------------------------- */

.site-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 16px calc(var(--tab) + var(--safe-bot) + 28px);
}

.site-main { min-width: 0; }

/* Hero
   ------------------------------------------------------------------------- */

.hero {
  text-align: center;
  background:
    radial-gradient(circle at 80% 0%, rgba(47, 143, 122, 0.38), transparent 42%),
    linear-gradient(165deg, #142e28, var(--navy));
  color: #fff;
  margin: -16px -16px 18px;
  padding: 22px 18px 28px;
  border-radius: 0 0 24px 24px;
}

.hero-logo {
  width: 92px;
  height: 92px;
  margin: 0 auto 8px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 12%;
  box-shadow: 0 0 0 3px var(--accent), 0 8px 22px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.kicker,
.page-kicker {
  color: var(--accent-2);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0;
}

.hero .kicker { color: var(--accent-2); }

.hero h1 { color: #fff; margin: 6px 0 8px; font-size: 1.7rem; }

.hero .lead {
  color: rgba(255, 255, 255, 0.82);
  margin: 0 auto;
  max-width: 42ch;
}

.page-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 143, 122, 0.40), transparent 46%),
    linear-gradient(165deg, #142e28, var(--navy));
  color: #fff;
  margin: -16px -16px 18px;
  padding: 22px 18px 24px;
  border-radius: 0 0 24px 24px;
}

.page-hero .kicker { margin: 0 0 6px; }

.page-hero h1,
.page-hero .page-title {
  color: #fff;
  margin: 0;
  font-size: 1.85rem;
}

.page-hero a { color: var(--accent-2); text-decoration: none; }

.page-hero .byline,
.page-hero .archive-description {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 700;
}

.page-head { margin: 4px 0 14px; }
.page-head h2 { margin: 0; font-size: 1.45rem; }

/* About + entries
   ------------------------------------------------------------------------- */

.about-card,
.entry,
.no-results,
.comments-area {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px var(--line);
}

.about-card {
  padding: 20px 18px 24px;
  margin-bottom: 22px;
}

.about-card h2,
.about-card h3,
.entry-body h2,
.entry-content h2,
.entry-content h3 {
  font-size: 1.15rem;
  margin: 22px 0 10px;
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--navy);
}

.about-card h2::after,
.about-card h3::after,
.entry-body h2::after,
.entry-content h2::after,
.entry-content h3::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 8px;
  background: var(--accent);
  border-radius: 2px;
}

.about-card h2:first-child,
.about-card h3:first-child,
.about-card .entry-content > h2:first-child,
.about-card .entry-content > h3:first-child { margin-top: 0; }

.about-card a { color: var(--navy); font-weight: 700; }

.entry { overflow: hidden; margin-bottom: 22px; }
.entry-media img { width: 100%; }
.entry-body,
.no-results,
.comments-area { padding: 18px 20px 24px; font-size: 1.05rem; }
.entry-body img,
.entry-content img { border-radius: 16px; margin: 8px auto 16px; }

.store-link a,
.store-btn,
.btn,
.entry-body a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border-radius: 14px;
  padding: 12px 18px;
  margin: 0 8px 8px 0;
}

.error-404__links { display: flex; flex-wrap: wrap; gap: 8px; }

/* Cards
   ------------------------------------------------------------------------- */

.card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  display: grid;
  grid-template-columns: 96px 1fr;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px var(--line);
  border: 1px solid var(--line);
  min-height: 96px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(28, 58, 50, 0.16);
  color: inherit;
}

.card img,
.card-placeholder {
  width: 96px;
  height: 100%;
  object-fit: cover;
  background: var(--navy);
  min-height: 96px;
}

.card-placeholder {
  display: grid;
  place-items: center;
  color: var(--accent-2);
  font-weight: 800;
  font-size: 1.4rem;
}

.card-body { padding: 12px 14px; }

.card h2 {
  margin: 2px 0 0;
  font-size: 1.02rem;
  color: var(--ink);
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.excerpt {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Footer + tab bar
   ------------------------------------------------------------------------- */

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 20px 16px calc(var(--tab) + var(--safe-bot) + 12px);
  border-top: 1px solid var(--line);
}

.site-footer a { color: var(--navy); font-weight: 700; }

.footer-widgets,
.footer-navigation .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.copyright { margin: 0; }

.tabbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.62);
  padding: 8px 4px calc(10px + var(--safe-bot));
  border-top: 1px solid rgba(47, 143, 122, 0.45);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.1;
  padding: 4px 2px;
  cursor: pointer;
}

.tab svg { width: 24px; height: 24px; display: block; }
.tab.is-active { color: var(--accent-2); }

/* Gutenberg niceties
   ------------------------------------------------------------------------- */

.wp-block-image.is-style-rounded img { border-radius: 16px; }
.alignwide { max-width: 100%; }
.sharedaddy,
.sd-sharing-enabled { display: none !important; }
.post-navigation { margin: 8px 0 24px; }
.post-navigation .nav-links,
.pagination {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  font-weight: 700;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1 1 0;
  min-width: 0;
}
.post-navigation .nav-next { text-align: right; }
.post-navigation a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.post-navigation .nav-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-navigation .nav-title {
  display: block;
  font-size: 0.98rem;
  line-height: 1.3;
}
.widget-title { margin: 0 0 10px; font-size: 1rem; }

/* Desktop
   ------------------------------------------------------------------------- */

@media (min-width: 768px) {
  .tabbar { display: none !important; }

  .menu-toggle { display: none; }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .brand { flex: 0 1 auto; }
  .brand-mark,
  .brand img.brand-mark { width: 76px; height: 76px; }
  .brand-text strong { font-size: 1.45rem; }

  .header-nav {
    display: block;
    min-width: 0;
    position: static;
    background: none;
  }

  .header-nav > ul,
  .header-nav .menu {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 0;
  }

  .header-nav > ul > li,
  .header-nav .menu > .menu-item { position: relative; }

  .header-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 8px 10px;
    display: block;
    border-radius: 8px;
    white-space: nowrap;
  }

  .header-nav a:hover,
  .header-nav a:focus,
  .header-nav .current-menu-item > a,
  .header-nav .current-menu-ancestor > a {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-2);
  }

  .header-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(28, 58, 50, 0.2);
    z-index: 60;
  }

  .header-nav li:hover > .sub-menu,
  .header-nav li:focus-within > .sub-menu { display: block; }

  .header-nav .sub-menu a {
    color: var(--ink);
    padding: 8px 14px;
    white-space: normal;
  }

  .header-nav .sub-menu a:hover { background: var(--paper); color: var(--navy); }

  .site-wrap { padding: 28px 28px 48px; }

  .hero {
    margin: 0 0 28px;
    border-radius: 22px;
    padding: 40px 32px;
    text-align: left;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
  }

  .hero-logo { width: 120px; height: 120px; margin: 0; }
  .hero h1 { font-size: 2.2rem; margin-top: 4px; }
  .hero .lead { margin: 0; max-width: 52ch; }

  .page-hero {
    margin: 0 0 28px;
    border-radius: 22px;
    padding: 36px 32px;
    text-align: left;
  }

  .page-hero h1 { font-size: 2.35rem; }

  .about-card { padding: 28px 32px 36px; }
  .entry-body { padding: 28px 32px 36px; }

  .card-list { grid-template-columns: 1fr 1fr; gap: 18px; }

  .card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .card img,
  .card-placeholder {
    width: 100%;
    height: 180px;
    min-height: 0;
  }

  .site-footer { padding: 28px 20px 36px; }
}

@media (min-width: 1100px) {
  .card-list.featured { grid-template-columns: 1fr 1fr 1fr; }

  .card-list.featured > .card:first-child {
    grid-column: 1 / -1;
    grid-template-columns: 320px 1fr;
    align-items: center;
  }

  .card-list.featured > .card:first-child img,
  .card-list.featured > .card:first-child .card-placeholder {
    height: 100%;
    min-height: 220px;
  }

  .card-list.featured > .card:first-child .card-body { padding: 24px 28px; }
  .card-list.featured > .card:first-child h2 { font-size: 1.55rem; }
}

@media (max-width: 767px) {
  .header-nav:not(.is-open) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}
