/* =========================================================================
   Roeling Green Lawns — "Forest & Bone"
   Editorial design system. Bootstrap 5 is loaded first; this overrides it.
   ========================================================================= */

:root {
  /* Palette */
  --color-primary:    #2F3D2E;  /* deep forest green */
  --color-primary-2:  #26301F;  /* darker forest for depth */
  --color-secondary:  #7C8B6A;  /* sage / olive */
  --color-accent:     #C0633F;  /* terracotta — used sparingly */
  --color-accent-2:   #A9542F;  /* terracotta hover */
  --color-bg:         #F4F1EA;  /* bone */
  --color-surface:    #FBFAF6;  /* warm white */
  --color-text:       #1F211C;  /* warm near-black */
  --color-text-muted: #5A5F54;  /* muted text */
  --color-border:     #E0DCD0;  /* hairline */

  /* Type — grotesque sans matching hoerrschaudt.com (Aktiv Grotesk → Archivo) */
  --font-display: 'Archivo', Helvetica, Arial, sans-serif;
  --font-body: 'Archivo', Helvetica, Arial, sans-serif;

  /* Rhythm */
  --section-y: clamp(4rem, 9vw, 8rem);
  --container-max: 1240px;
  --radius: 6px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Bootstrap variable bridges */
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--color-text);
  --bs-body-bg: var(--color-bg);
  --bs-primary: var(--color-primary);
  --bs-border-color: var(--color-border);
  --bs-link-color: var(--color-primary);
  --bs-link-hover-color: var(--color-accent);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5,
.font-display {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 125%;           /* expanded width, like Aktiv Grotesk Extended */
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--color-primary);
}

p { margin-bottom: 1.1rem; }

a { color: var(--color-primary); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--color-accent); }

img { max-width: 100%; height: auto; }

::selection { background: var(--color-secondary); color: var(--color-surface); }

.container { max-width: var(--container-max); }

/* Type scale helpers */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-secondary);
  display: inline-block;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--color-secondary);
  vertical-align: middle;
  margin-right: 0.7rem;
  margin-bottom: 0.18em;
}
.eyebrow.no-rule::before { display: none; }

.display-hero { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.lead-quiet {
  font-size: clamp(1.12rem, 1.6vw, 1.32rem);
  line-height: 1.65;
  color: var(--color-text-muted);
  font-weight: 400;
}
.text-muted-2 { color: var(--color-text-muted) !important; }
.serif-accent { font-family: var(--font-display); font-style: italic; }

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-sm { padding-top: clamp(3rem,6vw,5rem); padding-bottom: clamp(3rem,6vw,5rem); }

.hairline { border: 0; border-top: 1px solid var(--color-border); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  padding: 0.85rem 1.75rem;
  transition: all 0.28s var(--ease);
  border: 1px solid transparent;
}
.btn-accent {
  background: var(--color-accent);
  color: var(--color-surface);
  box-shadow: 0 1px 2px rgba(31,33,28,0.08);
}
.btn-accent:hover {
  background: var(--color-accent-2);
  color: var(--color-surface);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(192,99,63,0.6);
}
.btn-outline-forest {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn-outline-forest:hover {
  background: var(--color-primary);
  color: var(--color-surface);
}
.btn-forest {
  background: var(--color-primary);
  color: var(--color-surface);
}
.btn-forest:hover { background: var(--color-primary-2); color: var(--color-surface); transform: translateY(-2px); }
.btn-light-outline {
  background: transparent;
  color: var(--color-surface);
  border: 1px solid rgba(251,250,246,0.5);
}
.btn-light-outline:hover { background: var(--color-surface); color: var(--color-primary); }
.btn-lg { padding: 1rem 2.1rem; font-size: 1rem; }

.link-arrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.link-arrow svg { transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
  padding: 1.1rem 0;
}
.site-header.scrolled {
  background: var(--color-bg);
  box-shadow: 0 1px 0 var(--color-border), 0 8px 24px -18px rgba(31,33,28,0.5);
  padding: 0.6rem 0;
}
.navbar-brand { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0; }
.navbar-brand .brand-mark { width: 38px; height: 38px; color: var(--color-primary); flex: none; transition: transform 0.4s var(--ease); }
.navbar-brand:hover .brand-mark { transform: rotate(-6deg); }
.navbar-brand .brand-text {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  line-height: 1;
}
.navbar-brand .brand-sub {
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-secondary);
  display: block;
  margin-top: 3px;
}

/* transparent (top of page) on dark heroes */
.site-header:not(.scrolled).on-dark .nav-link,
.site-header:not(.scrolled).on-dark .brand-text { color: var(--color-surface); }
.site-header:not(.scrolled).on-dark .brand-mark { color: var(--color-surface); }
.site-header:not(.scrolled).on-dark .brand-sub { color: rgba(251,250,246,0.7); }
.site-header:not(.scrolled).on-dark .navbar-toggler-icon span { background: var(--color-surface); }

.navbar-nav .nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--color-text);
  padding: 0.4rem 0.95rem;
  position: relative;
}
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.95rem; right: 0.95rem;
  bottom: 0.1rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--color-accent); }

.nav-cta { margin-left: 0.6rem; }

.dropdown-menu {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: 0 18px 40px -20px rgba(31,33,28,0.4);
  padding: 0.5rem;
  margin-top: 0.6rem !important;
}
.dropdown-item {
  font-size: 0.92rem;
  border-radius: 4px;
  padding: 0.5rem 0.8rem;
  color: var(--color-text);
}
.dropdown-item:hover, .dropdown-item:focus { background: var(--color-bg); color: var(--color-accent); }

/* Open dropdowns on hover (desktop) instead of click */
@media (min-width: 992px) {
  .navbar-nav .dropdown:hover > .dropdown-menu,
  .navbar-nav .dropdown:focus-within > .dropdown-menu { display: block; margin-top: 0 !important; }
  .navbar-nav .dropdown > .dropdown-toggle { margin-bottom: 0; }
  /* invisible bridge so the menu doesn't close in the gap */
  .navbar-nav .dropdown-menu { margin-top: 0 !important; }
  .navbar-nav .dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 0.8rem; }
}
.navbar-nav .dropdown { position: relative; }
.dropdown-menu.dropdown-areas { min-width: 340px; columns: 2; column-gap: 0.4rem; }
.dropdown-menu.dropdown-areas li { break-inside: avoid; }
@media (max-width: 991px) { .dropdown-menu.dropdown-areas { columns: 1; min-width: 0; } }

/* custom hamburger */
.navbar-toggler { border: 0; padding: 0.4rem; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
  display: flex; flex-direction: column; gap: 5px; width: 26px; height: auto; background: none;
}
.navbar-toggler-icon span { display: block; height: 2px; width: 100%; background: var(--color-primary); transition: 0.3s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--color-surface);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img,
.hero-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(26,30,22,0.86) 0%, rgba(26,30,22,0.34) 45%, rgba(26,30,22,0.18) 100%),
    linear-gradient(to right, rgba(26,30,22,0.55) 0%, rgba(26,30,22,0) 60%);
}
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(3.5rem, 7vw, 6rem); padding-top: 9rem; }
.hero h1 { color: var(--color-surface); max-width: 16ch; }
.hero .hero-sub { color: rgba(251,250,246,0.88); max-width: 46ch; font-size: clamp(1.05rem,1.5vw,1.25rem); }
.hero .eyebrow { color: #D9C9A3; }
.hero .eyebrow::before { background: #D9C9A3; }

.hero-meta {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(251,250,246,0.18);
  margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 2.4rem;
}
.hero-meta .stat .n { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; color: var(--color-surface); }
.hero-meta .stat .l { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(251,250,246,0.7); }

/* ---------- Cards / surfaces ---------- */
.surface-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.surface-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(31,33,28,0.45); }

/* ---------- Services (editorial list) ---------- */
.service-row { border-top: 1px solid var(--color-border); }
.service-row:last-child { border-bottom: 1px solid var(--color-border); }
.service-media { overflow: hidden; border-radius: var(--radius); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); display:block; }
.service-row:hover .service-media img { transform: scale(1.05); }
.service-index { font-family: var(--font-display); font-size: 0.95rem; color: var(--color-secondary); }
.service-name { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 0.5rem; }

/* compact service cards */
.svc-card { display:block; height:100%; overflow:hidden; }
.svc-card .svc-img { aspect-ratio: 4/3; overflow:hidden; }
.svc-card .svc-img img { width:100%; height:100%; object-fit:cover; transition: transform 0.7s var(--ease); }
.svc-card:hover .svc-img img { transform: scale(1.06); }
.svc-card .svc-body { padding: 1.4rem 1.5rem 1.6rem; }
.svc-card h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }

/* ---------- Process / steps ---------- */
.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--color-secondary);
  line-height: 1;
  display: block;
  margin-bottom: 0.8rem;
}
.step { position: relative; }
.step h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }

/* ---------- Gallery ---------- */
.gallery-grid { columns: 3; column-gap: 1rem; }
.gallery-grid .g-item { break-inside: avoid; margin-bottom: 1rem; border-radius: var(--radius); overflow: hidden; position: relative; display:block; }
.gallery-grid img { width: 100%; display: block; transition: transform 0.7s var(--ease); }
.gallery-grid .g-item:hover img { transform: scale(1.06); }
.gallery-grid .g-cap {
  position: absolute; inset: auto 0 0 0;
  padding: 1.4rem 1rem 0.8rem;
  background: linear-gradient(to top, rgba(26,30,22,0.82), rgba(26,30,22,0));
  color: var(--color-surface);
  font-size: 0.82rem; letter-spacing: 0.04em;
  opacity: 0; transform: translateY(8px);
  transition: all 0.35s var(--ease);
}
.gallery-grid .g-item:hover .g-cap { opacity: 1; transform: translateY(0); }

.gallery-filters { display:flex; flex-wrap:wrap; gap:0.5rem; }
.filter-btn {
  font-family: var(--font-body); font-size: 0.85rem; font-weight:500;
  background: transparent; border: 1px solid var(--color-border);
  color: var(--color-text-muted); border-radius: 100px; padding: 0.45rem 1.1rem;
  transition: all 0.25s var(--ease); cursor: pointer;
}
.filter-btn:hover { border-color: var(--color-secondary); color: var(--color-primary); }
.filter-btn.active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-surface); }

@media (max-width: 991px){ .gallery-grid { columns: 2; } }
@media (max-width: 575px){ .gallery-grid { columns: 1; } }

/* ---------- Testimonials ---------- */
.quote-block { max-width: 24ch; }
.quote-mark { font-family: var(--font-display); font-size: 4rem; color: var(--color-secondary); line-height: 0.6; display:block; }
.testimonial-q { font-family: var(--font-display); font-size: clamp(1.4rem,2.4vw,2rem); line-height: 1.35; color: var(--color-primary); }

/* ---------- Bands ---------- */
.band-forest { background: var(--color-primary); color: var(--color-surface); }
.band-forest h2, .band-forest h3 { color: var(--color-surface); }
.band-forest .lead-quiet { color: rgba(251,250,246,0.82); }
.band-sage { background: var(--color-secondary); color: var(--color-surface); }
.band-surface { background: var(--color-surface); }

.area-chip {
  display:inline-block;
  font-size: 0.88rem;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  margin: 0 0.4rem 0.6rem 0;
  color: var(--color-text-muted);
  transition: all 0.25s var(--ease);
}
.area-chip:hover { border-color: var(--color-secondary); color: var(--color-primary); }
.band-forest .area-chip { border-color: rgba(251,250,246,0.25); color: rgba(251,250,246,0.85); }
.band-forest .area-chip:hover { background: rgba(251,250,246,0.1); color: var(--color-surface); }

/* ---------- Forms ---------- */
.contact-form .form-control,
.contact-form .form-select {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 1rem;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(124,139,106,0.18);
  background: var(--color-surface);
}
.contact-form .form-floating > label { color: var(--color-text-muted); }
.contact-form .help-block { color: var(--color-accent-2); font-size: 0.82rem; margin-top: 0.25rem; }
.contact-form .control-group.error .form-control,
.contact-form .control-group.error .form-select { border-color: var(--color-accent); }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display:flex; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--color-border); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ic { color: var(--color-secondary); flex:none; margin-top: 2px; }
.info-list a { color: var(--color-text); }
.info-list a:hover { color: var(--color-accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary-2); color: rgba(251,250,246,0.7); padding-top: clamp(3.5rem,6vw,5rem); }
.site-footer h2, .site-footer h3, .site-footer h4 { color: var(--color-surface); }
.site-footer a { color: rgba(251,250,246,0.7); }
.site-footer a:hover { color: var(--color-surface); }
.site-footer .footer-brand-text { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-surface); }
.footer-links { list-style:none; padding:0; margin:0; }
.footer-links li { margin-bottom: 0.55rem; font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid rgba(251,250,246,0.12); margin-top: 3rem; padding: 1.6rem 0; font-size: 0.82rem; color: rgba(251,250,246,0.5); }

/* ---------- Project featured photo (capped so source isn't upscaled) ----------
   Source photos are 1200x900 / 900x1200, so we never render wider than ~880px. */
.project-hero-media { max-width: 880px; margin: 0 auto 3rem; text-align: center; }
.project-hero-media img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  display: inline-block;
}

/* ---------- Lightbox (click gallery photo to enlarge) ---------- */
.lightbox-grid .rounded-img { cursor: zoom-in; }
.lb-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(26,30,22,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.lb-overlay.open { opacity: 1; pointer-events: auto; }
.lb-overlay img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6); }
.lb-close {
  position: absolute; top: 1.1rem; right: 1.3rem;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--color-surface); color: var(--color-primary);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s var(--ease);
}
.lb-close:hover { background: var(--color-accent); color: var(--color-surface); }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-top: 11rem; padding-bottom: clamp(2.5rem,5vw,4rem); }
.page-hero .breadcrumb-mini { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--color-text-muted); }

/* ---------- Floating call (mobile) ---------- */
.mobile-call {
  display: none;
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 1040;
}
.totop {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 1035;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--color-primary); color: var(--color-surface);
  display: flex; align-items:center; justify-content:center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  border: 0;
}
body.scrolled .totop { opacity: 1; pointer-events: auto; }
.totop:hover { background: var(--color-accent); color: var(--color-surface); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utilities ---------- */
.text-balance { text-wrap: balance; }
.maxw-60 { max-width: 60ch; }
.maxw-50 { max-width: 50ch; }
.maxw-44 { max-width: 44ch; }
.bg-bone { background: var(--color-bg); }
.ratio-portrait { aspect-ratio: 4/5; }
.ratio-landscape { aspect-ratio: 3/2; }
.obj-cover { object-fit: cover; width:100%; height:100%; }
.rounded-img { border-radius: var(--radius); overflow:hidden; }
.divider-dot { color: var(--color-secondary); padding: 0 0.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    margin-top: 0.8rem;
    box-shadow: 0 20px 40px -22px rgba(31,33,28,0.4);
  }
  .site-header:not(.scrolled).on-dark .navbar-collapse .nav-link,
  .site-header:not(.scrolled).on-dark .navbar-collapse .brand-text { color: var(--color-text); }
  .navbar-nav .nav-link { padding: 0.55rem 0; }
  .navbar-nav .nav-link::after { display:none; }
  .nav-cta { margin-left: 0; margin-top: 0.6rem; }
  .hero { min-height: 88vh; }
}
@media (max-width: 575px) {
  .mobile-call { display: block; }
  .hero-meta { gap: 1.6rem; }
}
