/* ===============================
   Ridgeway Gardeners – CLEAN styles.css (stable)
   - fixed header height
   - warm accents
   - plain background
   - expanded mobile nav
   - logo + white circular mask (80% opacity)
   =============================== */

:root{
  --bg: #f7fbf6;
  --text: #12301d;
  --muted: #4a6b56;

  --line: rgba(18,48,29,.14);
  --shadow: 0 14px 32px rgba(12, 34, 20, .12);
  --radius: 18px;

  --accent: #2f7d4b;
  --accent-warm: #d48a2a;
  --accent-soft: rgba(212,138,42,.16);

  --wrap: 1100px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;

  /* IMPORTANT: CSS is /assets/styles.css, so header.png must be /assets/header.png */
  --header-image: url("header.png");
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height:1.55;
}

a{color:inherit}
.wrap{max-width:var(--wrap); margin:0 auto; padding:0 18px}

/* Accessibility */
.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:18px; top:18px; width:auto; height:auto;
  background:#fff; color:#000; padding:10px 12px; border-radius:10px; z-index:9999;
}

/* ===============================
   Header / Banner
   =============================== */

.banner{
  position: relative;
  height: 360px;
  overflow: hidden;
  border-bottom: 1px solid rgba(18,48,29,.10);
}

/* Background image layer */
.banner-bg{
  position: absolute;
  inset: 0;
  background-image: var(--header-image);
  background-size: cover;
  background-position: center center; /* show central band */
  background-repeat: no-repeat;
  transform: scale(1.02);
  z-index: 1;
  pointer-events: none;
}

/* Dark fade for readability */
.banner-fade{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.15) 45%,
    rgba(0,0,0,0.60) 82%,
    rgba(0,0,0,0.82) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Content */
.banner-inner{
  position: relative;
  z-index: 3;
  color: #ffffff;

  display: flex;
  flex-direction: column;
  height: 100%;

  padding: 22px 0 18px;
}

/* Top row: heading + (optional) */
.banner-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.banner-title{
  margin: 0;
  font-size: clamp(30px, 3.2vw, 54px);
  line-height: 1.05;
  letter-spacing: .3px;
  text-shadow: 0 10px 28px rgba(0,0,0,.45);
  font-family: Georgia, "Times New Roman", Times, serif;
}

.banner-subtitle{
  margin: 8px 0 0;
  font-size: 1.02rem;
  color: rgba(255,255,255,.92);
  text-shadow: 0 10px 24px rgba(0,0,0,.45);
}

/* Logo: reliable mask using padding+background on the <img> */
.banner-logo{
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;

  width: 120px;
  height: 120px;

  display:block;
  object-fit: contain;

  /* mask */
  padding: 4px; /* reduced mask */
  background: rgba(255,255,255,0.80);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}

/* Menu toggle (desktop hidden) */
.nav-toggle{
  display:none;
  margin-top: 14px;
  align-self: flex-start;

  border: 1px solid rgba(255,255,255,.30);
  background: rgba(0,0,0,.28);
  color: rgba(255,255,255,.95);
  padding:10px 12px;
  border-radius:12px;

  position: relative;
  z-index: 6;
}

/* Menu near bottom */
.site-nav{
  margin-top: auto;
  align-self: stretch;

  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;

  background: rgba(0,0,0,.26);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.20);
  padding: 10px 12px;
  border-radius: 16px;

  position: relative;
  z-index: 5;
}

.site-nav a{
  text-decoration:none;
  color: rgba(255,255,255,.94);
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
  padding:10px 10px;
  border-radius:12px;
}

.site-nav a:hover,
.site-nav a:focus{
  color:#ffffff;
  background: rgba(255,255,255,.14);
  outline: none;
}

/* ===============================
   Main layout / Panels
   =============================== */

.site-main{ padding: 22px 0 0; }
.hero-lite{ padding: 0 0 22px; }

.hero-inner{
  display:grid;
  grid-template-columns: 1.35fr .85fr;
  gap:16px;
  align-items:stretch;
}

.panel{
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
  border-top: 4px solid rgba(212,138,42,.55);
}

.panel--glass{
  background: rgba(255,255,255,.92);
  border-top: 4px solid rgba(47,125,75,.50);
}

.h1{margin:0 0 10px; font-size: clamp(22px, 2.3vw, 34px);}
.h2{margin:0 0 14px}
.h3{margin:0 0 10px}

.lede{color: var(--muted); font-size:1.06rem}
.muted{color: var(--muted)}
.small{font-size:.92rem}

.pill{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background: var(--accent-soft);
  border:1px solid rgba(212,138,42,.28);
  color: var(--text);
  font-size:.9rem;
}

.highlights{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin:18px 0 0;
}
.highlights div{
  background: rgba(212,138,42,.10);
  border:1px solid rgba(212,138,42,.22);
  border-radius: 14px;
  padding:12px;
}
.highlights dt{font-weight:750}
.highlights dd{margin:6px 0 0; color:var(--muted)}

/* Sections */
.band-lite{
  padding:26px 0;
  background: rgba(212,138,42,.06);
  border-top: 1px solid rgba(212,138,42,.18);
  border-bottom: 1px solid rgba(212,138,42,.18);
}

.section{padding:44px 0}
.section.alt{
  background: rgba(47,125,75,.04);
  border-top: 1px solid rgba(47,125,75,.12);
  border-bottom: 1px solid rgba(47,125,75,.12);
}
.section-head{max-width:820px; margin-bottom:16px}

.grid2{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
.grid3{ display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }

.list{margin:10px 0 0; padding-left:18px}
.list li{margin:8px 0; color:var(--muted)}

/* Table */
.table-wrap{
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: #ffffff;
  overflow:auto;
  box-shadow: var(--shadow);
}
table{
  width:100%;
  border-collapse:collapse;
  min-width: 680px;
}
thead th{
  text-align:left;
  font-weight:800;
  padding:14px 14px;
  border-bottom:1px solid var(--line);
  background: rgba(212,138,42,.10);
  color: var(--text);
}
tbody td{
  padding:14px 14px;
  border-bottom:1px solid rgba(18,48,29,.10);
  vertical-align:top;
  color: var(--muted);
}
tbody tr:hover td{
  background: rgba(212,138,42,.06);
  color: var(--text);
}

.note{color:var(--muted); margin-top:14px}

/* Buttons */
.cta-row{display:flex; gap:12px; flex-wrap:wrap; margin-top:16px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 14px;
  border-radius:14px;
  text-decoration:none;
  border:1px solid rgba(18,48,29,.20);
  background: #ffffff;
  color: var(--text);
}
.btn:focus{ outline:none; }
.btn.primary{
  background: rgba(212,138,42,.14);
  border-color: rgba(212,138,42,.35);
  color: #2b1b08;
}

/* Forms */
.form{display:grid; gap:12px; margin-top:10px}
label{display:grid; gap:6px; color: var(--muted)}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(18,48,29,.18);
  background: #ffffff;
  color: var(--text);
}
input:focus, textarea:focus{
  outline: 2px solid rgba(212,138,42,.22);
  border-color: rgba(212,138,42,.35);
}
.checkbox-row{
  display:flex;
  gap:10px;
  align-items:center;
}
.checkbox-row input{ width:auto; }
.privacy-note{ margin: 4px 0 0; }


/* Links */
.text-link{
  color: #1f5a86;
  text-decoration:none;
}
.text-link:hover, .text-link:focus{ text-decoration:underline }

/* Footer */
.site-footer{
  border-top:1px solid rgba(18,48,29,.12);
  background: rgba(255,255,255,.85);
  padding:22px 0;
}
.footer-inner{
  display:flex; gap:14px;
  align-items:center; justify-content:space-between;
  flex-wrap:wrap;
}
.footer-links{display:flex; gap:14px; flex-wrap:wrap}
.footer-links a{
  color: var(--muted);
  text-decoration:none;
  padding:8px 10px;
  border-radius:12px;
}
.footer-links a:hover, .footer-links a:focus{
  background: rgba(212,138,42,.10);
  color: var(--text);
  outline:none;
}
.footer-meta{color: var(--muted)}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 920px){
  .hero-inner{grid-template-columns: 1fr;}
  .highlights{grid-template-columns: 1fr;}
  .grid3{grid-template-columns: 1fr;}
  .grid2{grid-template-columns: 1fr;}
  table{min-width: 560px;}
}

/* Mobile: expanded nav, logo top-right next to heading */
@media (max-width: 768px){
  .banner{ height: 320px; }

  /* Smaller logo for mobile, stays top-right */
  .banner-logo{
    width: 56px;
    height: 56px;
    top: 14px;
    right: 12px;
    padding: 4px;
  }

  /* Prevent heading running under logo */
  .banner-title{ padding-right: 78px; }

  /* Show nav links (no hamburger) */
  .nav-toggle{ display:none !important; }
  .site-nav{
    display:flex !important;
    width: 100%;
    justify-content:flex-start;
    gap: 8px;
    padding: 10px 10px;
  }
  .site-nav a{ padding: 10px 10px; }
}

@media (max-width: 420px){
  .banner{ height: 300px; }

  .banner-logo{
    width: 48px;
    height: 48px;
    top: 12px;
    right: 10px;
  }

  .banner-title{ padding-right: 66px; }
}
/* 3:2 split layout inside a panel */
.split-3-2{
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  align-items: start;
}

/* Optional: visual separation so you can clearly see the split */
.split-3-2 > div:last-child{
  border-left: 1px solid rgba(18,48,29,.12);
  padding-left: 20px;
}

/* Prevent grid overflow from long text/links forcing stacking */
.split-3-2 > div{
  min-width: 0;
}

/* Stack on smaller screens */
@media (max-width: 768px){
  .split-3-2{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .split-3-2 > div:last-child{
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(18,48,29,.12);
    padding-top: 14px;
  }
}
