/* ============================================================
   Apiary Real Estate — Design Tokens
   ============================================================ */
:root {
  /* Color */
  --cream:        #FAF6EC;  /* base background */
  --linen:        #F1E6D2;  /* secondary surface */
  --honey:        #C1832E;  /* signature accent */
  --honey-deep:   #9C6A22;  /* hover / pressed */
  --hive-navy:    #1F3A54;  /* headers, nav, deep accent */
  --hive-navy-80: #2C4A67;
  --ink:          #2A2723;  /* primary text */
  --ink-soft:     #59524A;  /* secondary text */
  --line:         #E2D6BC;  /* hairline borders */
  --white:        #FFFFFF;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-w: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  :root { --transition: 180ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --transition: 0ms; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--hive-navy);
  text-decoration-color: var(--honey);
  text-underline-offset: 3px;
  transition: color var(--transition);
}
a:hover { color: var(--honey-deep); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--hive-navy);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey-deep);
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--hive-navy);
  text-decoration: none;
}
.brand:hover { color: var(--hive-navy); }
.brand .mark { width: 26px; height: 26px; flex-shrink: 0; }
.brand .brand-name { font-weight: 600; }
.brand .brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  margin-top: 0.1rem;
}

nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1.9rem;
  margin: 0;
  padding: 0;
}
nav.primary-nav a {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] {
  color: var(--hive-navy);
  border-bottom-color: var(--honey);
}

.nav-toggle { display: none; }

@media (max-width: 720px) {
  nav.primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  nav.primary-nav.open { display: block; }
  nav.primary-nav ul { flex-direction: column; gap: 1rem; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
  }
  .nav-toggle svg { width: 18px; height: 18px; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero .hive-field {
  position: absolute;
  top: -40px;
  right: -60px;
  width: 480px;
  height: 480px;
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}
.hero h1 { margin-bottom: 0.5rem; }
.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--hive-navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--honey-deep); color: var(--white); }
.btn-secondary {
  background: transparent;
  color: var(--hive-navy);
  border-color: var(--hive-navy);
}
.btn-secondary:hover {
  background: var(--hive-navy);
  color: var(--white);
}

/* ============================================================
   Honeycomb divider (signature element)
   ============================================================ */
.comb-divider {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}
.comb-divider svg { width: 140px; height: auto; color: var(--honey); }

/* ============================================================
   Sections
   ============================================================ */
section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--linen); }

.section-head { max-width: 62ch; margin-bottom: 2.2rem; }
.section-head .eyebrow { display: block; margin-bottom: 0.5rem; }

.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ============================================================
   Cards — "What We Buy"
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.buy-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  position: relative;
}
.buy-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--honey);
  border-radius: var(--radius) var(--radius) 0 0;
}
.buy-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.buy-card p { font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 0; }

/* ============================================================
   Resource cards
   ============================================================ */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}
.resource-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow var(--transition), transform var(--transition);
}
.resource-card:hover {
  box-shadow: 0 10px 24px -14px rgba(31,58,84,0.35);
  transform: translateY(-2px);
}
.resource-card .card-body { padding: 1.5rem 1.4rem 1.7rem; }
.resource-card .eyebrow { display: block; margin-bottom: 0.6rem; }
.resource-card h3 {
  font-size: 1.15rem;
  color: var(--hive-navy);
  margin-bottom: 0.5rem;
}
.resource-card p { color: var(--ink-soft); font-size: 0.93rem; margin-bottom: 0; }
.resource-card .read-more {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--honey-deep);
}

/* ============================================================
   Article page
   ============================================================ */
.article-hero {
  padding: 2.5rem 0 1rem;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}
.breadcrumb a { color: var(--ink-soft); }
.article-body {
  max-width: 72ch;
}
.article-body h2 { margin-top: 1.8em; font-size: 1.4rem; }
.article-body h3 { margin-top: 1.4em; font-size: 1.1rem; }
.article-body ul { padding-left: 1.2rem; }
.article-body li { margin-bottom: 0.5rem; }
.callout {
  background: var(--linen);
  border-left: 3px solid var(--honey);
  padding: 1.2rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.6rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.contact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin: 1.8rem 0;
}
.contact-strip div { font-size: 0.92rem; }
.contact-strip strong { display: block; color: var(--hive-navy); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.25rem; }

.related {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 2rem;
}
.related h4 { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.related a { font-weight: 700; }

/* ============================================================
   Contact / footer CTA
   ============================================================ */
.contact-panel {
  background: var(--hive-navy);
  color: var(--white);
  border-radius: 6px;
  padding: clamp(2.2rem, 5vw, 3.2rem);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 780px) {
  .contact-panel { grid-template-columns: 1fr; }
}
.contact-panel h2 { color: var(--white); }
.contact-panel .lede { color: #C9D5E1; margin-bottom: 0; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list a { color: var(--white); font-weight: 700; text-decoration-color: var(--honey); }
.contact-list .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9FB2C4;
  margin-bottom: 0.2rem;
  font-weight: 700;
}

/* ============================================================
   Footer
   ============================================================ */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
footer.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
footer.site-footer nav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
}
footer.site-footer a { color: var(--ink-soft); text-decoration: none; }
footer.site-footer a:hover { color: var(--hive-navy); }
