/* ════════════════════════════════════════════════════════════════════════════
   Rock-K-Ranch 2026 redesign — single-file custom CSS
   Mobile-first, no frameworks, warm farm brand palette.
   ════════════════════════════════════════════════════════════════════════════*/

:root {
  --cream:      #f9f5ef;
  --sand:       #e8e0d4;
  --barn-red:   #9c2b2b;
  --barn-dark:  #7a1f1f;
  --sage:       #5a7a4a;
  --sage-dark:  #3e5731;
  --wood:       #6b4c2e;
  --charcoal:   #2b2520;
  --text:       #3d3530;
  --muted:      #7a6f65;
  --white:      #ffffff;
  --shadow:     rgba(43, 37, 32, 0.12);
  --radius:     12px;
  --radius-lg:  18px;
  --max:        1120px;
  --tap:        48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.65 'Georgia', 'Times New Roman', serif;
  color: var(--text);
  background: var(--cream);
}

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.55rem); }
p { margin: 0 0 1em; }
a { color: var(--barn-red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Header / Nav */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--barn-red);
  box-shadow: 0 2px 12px var(--shadow);
}
.topbar-inner {
  max-width: var(--max); margin: 0 auto; padding: 10px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.35rem; font-weight: 700; color: var(--charcoal);
}
.brand img { width: 54px; height: 54px; object-fit: contain; border-radius: 50%; }

.menu-btn {
  width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-btn span { display: block; height: 3px; background: var(--charcoal); border-radius: 2px; transition: .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

.nav-links {
  display: none; list-style: none; margin: 0; padding: 0;
  gap: 8px; align-items: center;
}
.nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 10px 18px 18px; border-bottom: 2px solid var(--sand); box-shadow: 0 8px 20px var(--shadow); }
.nav-links a { display: block; padding: 10px 12px; color: var(--charcoal); font-weight: 600; border-radius: 6px; }
.nav-links a:hover, .nav-links a.active { background: var(--cream); color: var(--barn-red); text-decoration: none; }

.has-submenu { position: relative; }
.submenu-toggle { display: flex; align-items: center; gap: 6px; }
.submenu {
  display: none; list-style: none; padding: 6px 0 0 14px; margin: 0;
}
.submenu.open { display: flex; flex-direction: column; gap: 4px; }
.submenu a { padding: 8px 10px; font-weight: 500; font-size: .95rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 12px 24px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; border: none; cursor: pointer; transition: .2s;
}
.btn-primary { background: var(--barn-red); color: var(--white); }
.btn-primary:hover { background: var(--barn-dark); text-decoration: none; }
.btn-secondary { background: var(--sage); color: var(--white); }
.btn-secondary:hover { background: var(--sage-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--barn-red); border: 2px solid var(--barn-red); }
.btn-outline:hover { background: var(--barn-red); color: var(--white); text-decoration: none; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .9rem; }

/* Hero */
.hero {
  position: relative; min-height: 70vh; max-height: 760px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: url('/images/IMG_0038.webp') center/cover no-repeat;
  color: var(--white); padding: 80px 18px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,37,32,.35), rgba(43,37,32,.65));
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { text-shadow: 0 2px 8px rgba(0,0,0,.4); margin-bottom: .3em; }
.hero p { font-size: clamp(1.1rem, 2.5vw, 1.45rem); text-shadow: 0 1px 4px rgba(0,0,0,.5); margin-bottom: 1.4em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.page-hero {
  position: relative; min-height: 38vh; max-height: 420px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--sage) url('/images/IMG_0060.webp') center/cover no-repeat;
  color: var(--white); padding: 60px 18px;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(43,37,32,.55);
}
.page-hero > * { position: relative; z-index: 2; }
.page-hero h1 { text-shadow: 0 2px 8px rgba(0,0,0,.4); }

.hero-barn   { background-image: url('/images/IMG_2988.webp'); }
.hero-craft  { background-image: url('/images/IMG_2616.webp'); }
.hero-family { background-image: url('/images/IMG_4445.webp'); }
.hero-light  { background-image: url('/images/IMG_9807.webp'); }
.hero-school { background-image: url('/images/IMG_2256.webp'); }
.hero-wedding{ background-image: url('/images/IMG_1071.webp'); }
.hero-contact{ background-image: url('/images/IMG_3924.webp'); }

/* Container */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 18px; }
section { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { color: var(--charcoal); }
.section-title p { color: var(--muted); max-width: 620px; margin: 0 auto; }

/* Cards */
.card-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 4px 16px var(--shadow);
  display: flex; flex-direction: column;
}
.card-img { height: 210px; object-fit: cover; width: 100%; }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { color: var(--barn-red); margin-bottom: .4em; }
.card-body p { color: var(--muted); flex: 1; }
.card-body .btn { margin-top: auto; align-self: flex-start; }

/* Split feature sections */
.feature { display: grid; gap: 30px; align-items: center; }
.feature img { border-radius: var(--radius-lg); box-shadow: 0 6px 20px var(--shadow); }
.feature ul { margin: 0 0 1em; padding-left: 22px; }
.feature li { margin-bottom: .45em; }

/* Offer detail pages */
.offer-detail { max-width: 900px; margin: 0 auto; }
.offer-detail h2 { color: var(--barn-red); margin-top: 1.2em; }
.offer-detail img { border-radius: var(--radius-lg); margin: 18px 0; box-shadow: 0 6px 20px var(--shadow); }

/* Schedule placeholder */
.schedule-note {
  background: var(--white); border-left: 5px solid var(--barn-red);
  padding: 24px; border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 4px 16px var(--shadow);
}

/* Contact */
.contact-grid { display: grid; gap: 28px; }
.contact-card {
  background: var(--white); padding: 24px; border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px var(--shadow);
}
.contact-card h3 { color: var(--barn-red); margin-bottom: .6em; }
.contact-card a { font-weight: 700; font-size: 1.1rem; }
.contact-form label { display: block; margin: 14px 0 5px; font-weight: 700; color: var(--charcoal); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--sand);
  border-radius: var(--radius); font: inherit; background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--barn-red); box-shadow: 0 0 0 3px rgba(156,43,43,.15);
}
.contact-form textarea { min-height: 120px; resize: vertical; }

/* Footer */
.site-footer {
  background: var(--charcoal); color: var(--sand);
  padding: 44px 0 24px; font-size: .95rem;
}
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 18px; }
.footer-top {
  display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: center;
  padding-bottom: 24px; border-bottom: 1px solid rgba(232,224,212,.15); margin-bottom: 20px;
}
.footer-brand { font-size: 1.5rem; font-weight: 700; color: var(--white); }
.footer-social { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: inline-flex; align-items: center; justify-content: center; color: var(--white);
}
.footer-social a:hover { background: var(--barn-red); text-decoration: none; }
.footer-contact { text-align: left; }
.footer-contact a { color: var(--white); font-weight: 700; }
.footer-bottom { text-align: center; color: rgba(232,224,212,.6); font-size: .85rem; }

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }

/* Responsive */
@media (min-width: 720px) {
  .menu-btn { display: none; }
  .nav-links { display: flex; flex-direction: row; }
  .submenu {
    display: none; position: absolute; top: calc(100% + 8px); left: 0;
    background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius);
    box-shadow: 0 8px 20px var(--shadow); padding: 8px 0; min-width: 200px;
  }
  .has-submenu:hover .submenu, .has-submenu:focus-within .submenu { display: flex; flex-direction: column; }
  .submenu a { padding: 8px 16px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1.3fr; }
}
@media (min-width: 1020px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}
