/* ==== Green Edge Hedges — clean, simple, mobile-first ==== */
:root{
  --brand:#2e7d32; --brand-2:#4f9d5c; --accent:#75b083;
  --ink:#1f2723; --muted:#5f6d61; --bg:#f7faf7; --card:#ffffff;
  --ring:rgba(46,125,50,.18); --shadow:0 12px 32px rgba(26,43,32,.08);
  --radius:16px; --radius-lg:22px; --container:1160px;
}

*{box-sizing:border-box}
html,body{height:100%}
html{font-size:100%}
body{
  margin:0; color:var(--ink);
  background:
    radial-gradient(720px 280px at 80% 0%, rgba(79,157,92,.08), transparent 60%),
    radial-gradient(620px 240px at -10% 15%, rgba(117,176,131,.07), transparent 60%),
    var(--bg);
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height:1.6;
}
img{max-width:100%; height:auto; display:block; border-radius:12px}
a{color:inherit; text-decoration:none}
.container{width:100%; max-width:var(--container); margin:0 auto; padding:0 20px}

/* ============ HEADER (logo + name + CTA) ============ */
header{position:sticky; top:0; z-index:40; backdrop-filter:saturate(140%) blur(6px)}
.navbar{padding:10px 0}
.bar{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:12px 16px; border-radius:16px;
  background:linear-gradient(180deg,#fff,#f3f8f3);
  border:1px solid rgba(46,125,50,.18); box-shadow:var(--shadow);
}
.brand{display:flex; align-items:center; gap:10px; min-width:0}
.logo-img{height:44px; width:auto; border-radius:8px}
.brand h1{
  margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  font:700 22px/1 Poppins, Inter, sans-serif; letter-spacing:.2px;
}
.header-cta{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 18px; border-radius:12px; font-weight:800; font-size:16px;
  background:linear-gradient(180deg,#ffffff,#eef6ef);
  color:var(--brand); border:1px solid rgba(46,125,50,.28); box-shadow:var(--shadow);
}
.header-cta:hover{transform:translateY(-1px); box-shadow:0 16px 40px rgba(26,43,32,.12)}

/* ============ NAV STRIP (under header) ============ */
.nav-strip{background:linear-gradient(180deg,var(--brand),var(--brand-2)); box-shadow:inset 0 -1px rgba(255,255,255,.18)}
.nav-strip .container{padding:8px 20px}
.nav-list{
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:20px;
}
.nav-link{
  position:relative; display:inline-block; color:#fff; font-weight:700;
  font-size:15px; padding:10px 6px; line-height:1;
}
.nav-link::after{
  content:""; position:absolute; left:10%; right:10%; bottom:4px; height:2px; border-radius:2px;
  background:rgba(255,255,255,.95); transform:scaleX(0); transform-origin:center; transition:transform .18s ease;
}
.nav-link:hover::after,.nav-link:focus-visible::after{transform:scaleX(1)}

/* ============ SECTIONS ============ */
section{padding:56px 0}
.section-title{margin:0 0 10px; font:700 28px/1.15 Poppins, Inter, sans-serif}
.section-sub{color:var(--muted); margin:0 0 20px; font-size:16px}

/* ============ HERO (image below text) ============ */
.hero{padding-top:24px; text-align:center}
.hero .lead{color:var(--muted); max-width:680px; margin:0 auto}
.hero-actions{
  display:flex; justify-content:center; gap:14px; margin-top:20px; flex-wrap:wrap;
}
.hero-actions .cta{
  display:flex; align-items:center; justify-content:center; text-align:center;
  font-size:17px; font-weight:700;
  padding:14px 22px; min-width:180px; border-radius:12px; box-shadow:var(--shadow);
  transition:transform .15s ease, box-shadow .15s ease;
}
.hero-actions .cta.secondary{background:#fff; color:var(--brand); border:1px solid rgba(46,125,50,.28)}
.hero-actions .cta:hover{transform:translateY(-2px); box-shadow:0 12px 28px rgba(26,43,32,.12)}

.hero-card{margin:22px auto 0; max-width:960px; background:#fff; border:1px solid rgba(46,125,50,.14); border-radius:var(--radius-lg); padding:12px; box-shadow:var(--shadow)}

/* ============ GRIDS ============ */
.cards{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.card{
  background:var(--card); border:1px solid rgba(46,125,50,.14); border-radius:var(--radius);
  padding:16px; box-shadow:var(--shadow); transition:transform .18s, box-shadow .18s, border-color .18s
}
.card:hover{transform:translateY(-2px); border-color:rgba(46,125,50,.35); box-shadow:0 18px 44px rgba(26,43,32,.12)}
.card h3{font:700 18px/1.25 Poppins; margin:8px 0 6px}
.card p{color:var(--muted); margin:0; font-size:15px}

.gallery{display:grid; grid-template-columns:repeat(3,1fr); gap:12px}
.quotes{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}

/* ============ CTA STRIP ============ */
.cta-strip{
  background:linear-gradient(180deg,#ffffff,#f2f8f3);
  border:1px solid rgba(46,125,50,.14); border-radius:var(--radius-lg);
  padding:18px; display:grid; grid-template-columns:1fr auto; align-items:center; gap:14px; box-shadow:var(--shadow)
}

/* ============ FORM (stacked) ============ */
label{display:block; color:var(--muted); margin-bottom:6px; font-size:16px}
input,textarea{
  width:100%; padding:14px 16px; border-radius:12px; border:1px solid rgba(46,125,50,.24); background:#fff; outline:none;
  transition:box-shadow .18s ease, border-color .18s ease; font-size:16px;  /* 16px avoids iOS zoom */
}
input:focus,textarea:focus{border-color:var(--brand); box-shadow:0 0 0 6px var(--ring)}
textarea{min-height:120px; resize:vertical}
.contact-form{display:grid; grid-template-columns:1fr; gap:14px; max-width:760px; margin:0 auto}
.contact-form .cta{justify-content:center}

/* ============ FOOTER ============ */
footer{padding:56px 0 72px; color:var(--muted)}
.foot{display:grid; grid-template-columns:2fr 1fr 1fr; gap:22px}
.foot h4{margin:0 0 10px; font:700 16px/1.2 Poppins}
.foot ul{list-style:none; margin:0; padding:0; display:grid; gap:6px}

/* ============ REVEAL ============ */
.reveal{opacity:0; transform:translateY(12px); transition:opacity .5s ease, transform .5s ease}
.reveal.visible{opacity:1; transform:none}

/* ======== RESPONSIVE (only what’s needed) ======== */
@media (max-width:900px){
  .cards,.quotes{grid-template-columns:1fr 1fr}
  .gallery{grid-template-columns:1fr 1fr}
}
@media (max-width:680px){
  .cards,.quotes{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr 1fr}
}
@media (max-width:520px){
  .gallery{grid-template-columns:1fr}
}

/* ======== PHONE TWEAKS (readable, not gigantic) ======== */
@media (max-width:430px){
  .container{padding:0 16px}
  .logo-img{height:38px}
  .brand h1{font-size:20px; max-width:58vw}
  .header-cta{font-size:15px; padding:10px 16px}

  .nav-strip .container{padding:6px 16px}
  .nav-list{gap:14px}
  .nav-link{font-size:14px; padding:9px 6px}

  .section-title{font-size:24px}
  .section-sub{font-size:15px}
  .hero-actions .cta{font-size:16px; padding:12px 18px; min-width:170px}
}

/* very small phones */
@media (max-width:375px){
  .brand h1{font-size:18px; max-width:56vw}
  .nav-link{font-size:13px}
  .header-cta{font-size:14px}
  .hero-actions .cta{font-size:15px}
}
/* ==== COMPACT HEADER, SINGLE-LINE NAV, CLEAN BUTTONS (OVERRIDES) ==== */

/* 1) Header — make it smaller everywhere */
.navbar { height: auto; padding: 6px 0 !important; }
.bar { padding: 6px 10px !important; gap: 8px !important; border-radius: 12px !important; }
.logo-img { height: 30px !important; border-radius: 6px; }
.brand h1 { font-size: 15px !important; line-height: 1 !important; max-width: 52vw; }
.header-cta {
  font-size: 11px !important;
  padding: 6px 10px !important;
  border-radius: 10px !important;
}

/* 2) Nav strip — force a single line (horizontal scroll instead of wrapping) */
.nav-strip .container { padding-top: 4px; padding-bottom: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nav-list {
  flex-wrap: nowrap !important;             /* one line */
  gap: 14px !important;
  white-space: nowrap;
}
.nav-link {
  font-size: 13px !important;
  padding: 8px 4px !important;
}
/* optional: hide scrollbar on iOS/webkit */
.nav-strip .container::-webkit-scrollbar { display: none; }

/* 3) Hero buttons — centered text, same height, cleaner look */
.hero-actions { gap: 10px !important; }
.hero-actions .cta {
  display: inline-flex !important;
  align-items: center; justify-content: center;
  height: 44px;                      /* fixed, matched height */
  padding: 0 18px !important;
  min-width: 160px;
  border-radius: 12px;
  font-size: 16px; font-weight: 700;
  box-shadow: var(--shadow);
}
.hero-actions .cta.secondary {
  background: #fff;
  color: var(--brand);
  border: 1px solid rgba(46,125,50,.28);
}
.hero-actions .cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(26,43,32,.12);
}

/* 4) Tighten section spacing a bit so everything feels crisper */
section { padding: 40px 0 !important; }

/* 5) Small phones (≤ 430px) — even tighter header & buttons */
@media (max-width: 430px){
  .logo-img { height: 26px !important; }
  .brand h1 { font-size: 16px !important; max-width: 56vw; }
  .header-cta { font-size: 12px !important; padding: 6px 10px !important; }
  .nav-link { font-size: 12px !important; padding: 8px 2px !important; }

  .hero-actions .cta {
    height: 42px;
    min-width: 150px;
    font-size: 15px;
    padding: 0 16px !important;
  }
}

/* 0) Ensure no horizontal wiggle */
html, body { max-width: 100%; overflow-x: hidden; }

/* 1) Header CTA — revert to original gradient (in case it got changed) */
header .bar .header-cta{
  background: linear-gradient(180deg,#ffffff,#eef6ef) !important;
  color: var(--brand) !important;
  border: 1px solid rgba(46,125,50,.28) !important;
  box-shadow: var(--shadow) !important;
}

/* 2) HERO "Request a quote" ONLY — brand green */
.hero .hero-actions a[href="#contact"]{
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand) !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 22px !important;
  min-width: 180px;
  border-radius: 12px;
  font-weight: 800; font-size: 14px; line-height: 1;
  box-shadow: var(--shadow);
  text-align: center;
}
.hero .hero-actions a[href="#contact"]:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(26,43,32,.18);
}

/* 3) Contact form submit — polished & responsive */
form[name="contact"] button[type="submit"]{
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand) !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 20px !important;
  border-radius: 12px !important;
  font-weight: 800 !important; font-size: 16px !important; line-height: 1 !important;
  box-shadow: var(--shadow) !important;
  cursor: pointer;
  width: auto;                /* not full-width on desktop */
  min-width: 220px;           /* consistent size */
  text-align: center;
}
@media (max-width: 640px){
  form[name="contact"] button[type="submit"]{
    width: 100%;              /* full-width on phones */
    min-width: 0;
  }
}

/* Smaller contact form boxes */
.contact-form input,
.contact-form textarea {
  font-size: 14px;       /* was 16px */
  padding: 8px 10px;    /* was 14px 16px */
  border-radius: 8px;   /* slightly smaller corners */
}

/* Keep labels proportional */
.contact-form label {
  font-size: 14px;       /* was 16px */
}

/* Quote cards */
.quotes .quote {
  background: var(--card);
  border: 1px solid rgba(46,125,50,.14);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  font-size: 15px;
  line-height: 1.5;
}
.quotes .quote strong {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink);
}

/* Prevent horizontal scroll/cutoff */
html, body {
  overflow-x: hidden;
}

.container {
  max-width: 100%;
  box-sizing: border-box;
}

/* Keep 3-column footer but make it more compact */
footer {
  font-size: 9px; /* smaller base text */
}

.foot {
  grid-template-columns: 2fr 1fr 1fr; /* keep 3 columns */
  gap: 8px; /* slightly smaller gap */
}

.foot h4 {
  font-size: 10px; /* smaller section titles */
}

.foot ul li {
  font-size: 9px; 
  word-break: break-word; /* prevent long words/links from overflowing */
}

/* Social footer */
    .social-footer{ background:#2e7d32; color:#fff; border-top:1px solid rgba(255,255,255,.15) }
    .social-footer .container{ padding:6px 12px 8px; text-align:center }
    .footer-brand{ margin:0 0 6px; font:700 16px/1.2 Poppins, Inter, sans-serif; color:#fff }
    .social-icons{ display:inline-flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap }
    .social-icons a{ display:inline-flex; width:30px; height:30px; align-items:center; justify-content:center; border-radius:50%; background:rgba(255,255,255,.12); transition:transform .2s }
    .social-icons a:hover{ transform:scale(1.06) }
    .social-icons img{ width:20px; height:20px; display:block; filter:brightness(0) invert(1) }

/* Green CTA variant */
.cta--green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta--green:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(26,43,32,.18);
}

/* Gallery page: ensure anything with .reveal shows immediately */
.reveal,
.reveal.visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
