/* =========================================================
   Coop Visuals — Global Stylesheet
   Single source of truth for all shared styles.
   All pages load this via <link rel="stylesheet" href="/global.css">
   Page-specific styles stay in inline <style> blocks.
   ========================================================= */

/* ── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  --green: #4A7A55;
  --green-dark: #3A6244;
  --green-pale: #EBF2EC;
  --cream: #F5DFA8;
  --cream-light: #FBF5E6;
  --cream-dark: #E8C97A;
  --white: #FFFFFF;
  --off-white: #FAFAF8;
  --text: #1A1A18;
  --text-muted: #5C5C52;
  --text-light: #8C8C7E;
  --border: rgba(74,122,85,0.15);
  --border-strong: rgba(74,122,85,0.3);
  --font-display: 'Corben', 'Corben-fallback', Georgia, serif;
  --font-body: 'Sora', 'Sora-fallback', system-ui, sans-serif;
  --radius: 6px;
  --radius-lg: 12px;
  --radius-pill: 100px;
  /* redesign: warm depth */
  --shadow-soft: 0 1px 2px rgba(58,98,68,.06), 0 10px 28px -10px rgba(58,98,68,.18);
  --shadow-lift: 0 2px 6px rgba(58,98,68,.10), 0 24px 48px -16px rgba(58,98,68,.32);
}

/* ── BASE RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-body); color: var(--text); background: var(--off-white); -webkit-font-smoothing: antialiased; line-height: 1.6; overflow-x: hidden; max-width: 100%; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── UTILITIES ──────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; top: -44px; left: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 10001; border-radius: 0 0 4px 0; font-size: 14px; font-weight: 600; }
.skip-link:focus { top: 0; }

/* ── NAV ────────────────────────────────────────────────── */
nav { position: sticky; top: 0; z-index: 100; background: #000; padding: 0 24px; overflow: visible; border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 36px; height: 36px; border-radius: 0; object-fit: contain; }
.nav-logo-text { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.85); padding: 6px 12px; border-radius: var(--radius-pill); transition: color 0.2s, background 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.12); }
.nav-cta { font-size: 13px; font-weight: 700; background: var(--green); color: #fff; padding: 8px 18px; border-radius: var(--radius-pill); transition: background 0.2s; border: none; cursor: pointer; }
.nav-cta:hover { background: var(--green-dark); }
.nav-menu-btn { display: none; background: none; border: none; cursor: pointer; color: #fff; }

/* ── MOBILE MENU ────────────────────────────────────────── */
/* display:none by default — JS adds .open to show as flex */
.mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 99; background: #0a0a0a; padding: 8px 24px 24px; flex-direction: column; gap: 0; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.22s ease, transform 0.22s ease; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-menu.open { display: flex; opacity: 1; transform: translateY(0); pointer-events: all; }
.mobile-menu a { font-size: 15px; color: rgba(255,255,255,0.85); padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-weight: 600; }
.mobile-services-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.1); cursor: pointer; }
.mobile-services-row.open { border-bottom-color: transparent; }
.mobile-services-label { font-size: 15px; color: rgba(255,255,255,0.85); font-weight: 600; cursor: pointer; }
.mobile-services-label:hover { color: #fff; }
.mobile-services-row.open .mobile-services-label { color: #fff; }
.mobile-services-chevron-btn { background: none; border: none; -webkit-appearance: none; appearance: none; cursor: pointer; color: rgba(255,255,255,0.4); padding: 4px 0 4px 16px; display: flex; align-items: center; outline: none; transition: color 0.2s; flex-shrink: 0; }
.mobile-services-row.open .mobile-services-chevron-btn { color: rgba(255,255,255,0.8); }
.mobile-svc-chevron { transition: transform 0.22s ease; flex-shrink: 0; }
.mobile-services-row.open .mobile-svc-chevron { transform: rotate(180deg); }
.mobile-services-panel { display: flex; flex-direction: column; max-height: 0; overflow: hidden; transition: max-height 0.28s ease; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-services-panel.open { max-height: 260px; }
.mobile-services-panel a { font-size: 14px; color: rgba(255,255,255,0.7); padding: 13px 0 13px 16px; border-bottom: none; font-weight: 500; border-left: 2px solid rgba(255,255,255,0.2); margin-left: 2px; }
.mobile-services-panel a:hover { color: #fff; }
.mobile-services-panel a.active { color: #fff; font-weight: 600; }
.hbg-bar { transition: transform 0.25s ease, opacity 0.25s ease; transform-origin: 11px 11px; }
.nav-menu-btn.open .hbg-bar-1 { transform: translateY(5px) rotate(45deg); }
.nav-menu-btn.open .hbg-bar-2 { opacity: 0; transform: scaleX(0); }
.nav-menu-btn.open .hbg-bar-3 { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu-cta { display: block; margin-top: 20px; padding: 14px 24px; background: var(--green); color: #fff !important; border-radius: var(--radius-pill); text-align: center; font-weight: 700; font-size: 15px; border-bottom: none !important; }
.mobile-menu-cta:hover { background: var(--green-dark); }

/* ── NAV DROPDOWNS ──────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-btn { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.85); padding: 6px 12px; border-radius: var(--radius-pill); background: none; border: none; cursor: pointer; font-family: inherit; transition: color 0.2s, background 0.2s; }
.nav-dropdown-btn:hover, .nav-dropdown-btn.active { color: #fff; background: rgba(255,255,255,0.12); }
.nav-dropdown-chevron { transition: transform 0.2s; flex-shrink: 0; }
.nav-dropdown.open .nav-dropdown-chevron { transform: rotate(180deg); }
.nav-dropdown-link { padding: 6px 2px 6px 12px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.85); text-decoration: none; transition: color 0.2s; }
.nav-dropdown-btn:hover .nav-dropdown-link, .nav-dropdown-btn.active .nav-dropdown-link { color: #fff; }
.nav-dropdown-chevron-btn { background: none; border: none; cursor: pointer; padding: 6px 12px 6px 0; color: inherit; display: flex; align-items: center; font-family: inherit; }
.nav-dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-6px); background: #141414; border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; padding: 5px; min-width: 180px; opacity: 0; pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease; z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.nav-dropdown.open .nav-dropdown-menu, .nav-dropdown:hover .nav-dropdown-menu { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.nav-dropdown-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8); border-radius: 6px; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-dropdown-menu a.active { color: #fff; font-weight: 600; }
.nav-dropdown-menu a .dd-icon { font-size: 14px; opacity: 0.75; }

/* ── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb { background: #000; padding: 10px 24px; position: relative; z-index: 1; border-bottom: 1px solid rgba(255,255,255,0.08); }
.breadcrumb-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.55); }
.breadcrumb-inner a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.breadcrumb-inner a:hover { color: #fff; }
.breadcrumb-sep { font-size: 10px; }

/* ── PAGE HERO BASE (interior pages) — black, white text ─ */
.page-hero { background: #000; padding: 64px 24px 72px; }
.page-hero-inner { max-width: 760px; margin: 0 auto; }
/* When markup omits .page-hero-inner, constrain text children to match the upgrade-my-website template.
   Covers direct children and content nested inside a .container wrapper. */
.page-hero > .hero-eyebrow,
.page-hero > .page-h1,
.page-hero > .page-sub,
.page-hero > .hero-ctas,
.page-hero > .btn-primary,
.page-hero > .btn-outline,
.page-hero > .container > .hero-eyebrow,
.page-hero > .container > .page-h1,
.page-hero > .container > .page-sub,
.page-hero > .container > .hero-ctas,
.page-hero > .container > .btn-primary,
.page-hero > .container > .btn-outline { max-width: 760px; margin-left: auto; margin-right: auto; }
.page-hero > .container { max-width: 760px; }
/* Split-layout heroes (copy + media) need wider canvas — opt out of the narrow constraint */
.page-hero > .container:has(.hero-layout) { max-width: 1180px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.06); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 14px; border-radius: var(--radius-pill); margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.35); }
.page-h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 60px); font-weight: 700; color: #fff; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 20px; }
.page-sub { font-size: 17px; color: rgba(255,255,255,0.74); line-height: 1.7; font-weight: 300; max-width: 580px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; font-size: 14px; font-weight: 700; padding: 12px 24px; border-radius: var(--radius-pill); transition: background 0.2s, transform 0.15s; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: #fff; font-size: 14px; font-weight: 600; padding: 12px 24px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.4); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
/* outline variant for light sections */
.btn-outline-dark { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--green-dark); font-size: 14px; font-weight: 600; padding: 12px 24px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); transition: background 0.2s; }
.btn-outline-dark:hover { background: var(--green-pale); }

/* ── SHARED SECTION PATTERNS ────────────────────────────── */
.section-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.section-eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--green); border-radius: 2px; }
.section-h2 { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; color: var(--text); line-height: 1.18; letter-spacing: -0.015em; margin-bottom: 14px; }
.section-sub { font-size: 16px; color: var(--text-muted); line-height: 1.7; max-width: 580px; font-weight: 300; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-inner { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-strong); }
.faq-item:first-child { border-top: 1px solid var(--border-strong); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.3; transition: color 0.2s; }
.faq-q:hover { color: var(--green-dark); }
.faq-icon { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--border-strong); display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 16px; transition: transform 0.25s, border-color 0.2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--green); }
.faq-a { display: none; padding-bottom: 18px; font-size: 14px; color: var(--text-muted); line-height: 1.75; font-weight: 300; }
.faq-item.open .faq-a { display: block; }

/* ── CTA SECTION (black, white text, green CTA) ─────────── */
.cta-section { background: #000; padding: 80px 24px; text-align: center; }
.cta-h2 { font-family: var(--font-display); font-size: clamp(24px, 2.8vw, 36px); font-weight: 700; color: #fff; letter-spacing: -0.015em; line-height: 1.18; margin-bottom: 16px; }
.cta-sub { font-size: 16px; color: rgba(255,255,255,0.74); line-height: 1.7; font-weight: 300; margin-bottom: 32px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; font-size: 15px; font-weight: 700; padding: 15px 32px; border-radius: var(--radius-pill); border: none; cursor: pointer; transition: background 0.2s, transform 0.15s; font-family: inherit; }
.cta-btn:hover { background: var(--green-dark); transform: translateY(-1px); }

/* ── FOOTER (black, cream brand accent) ─────────────────── */
footer { background: #000; padding: 48px 24px 32px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.12); flex-wrap: wrap; }
.footer-brand-text { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--cream); margin-bottom: 6px; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 400; max-width: 220px; line-height: 1.5; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; background: transparent; }
.footer-nav a { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.82); transition: color 0.2s; }
.footer-nav a:hover { color: var(--cream); }
.footer-social { display: flex; gap: 20px; margin-top: 16px; }
.footer-social-link { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.78); transition: color 0.2s; }
.footer-social-link:hover { color: var(--cream); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; flex-wrap: wrap; gap: 8px; }
.footer-copy { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.6); }
.footer-locale { font-size: 12px; color: rgba(255,255,255,0.6); }

/* ── SERVICE CARDS (GBP-style: icon-square + title + body) ───
   Used on service-detail pages. Cards live in .cards-grid (2-col)
   on light sections; a .service-card.featured variant gets a soft
   green-tinted background with green border. */
.cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
.service-card { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease; }
.service-card:hover { border-color: var(--green); background: var(--green-pale); transform: translateY(-2px); }
.service-card.featured { background: var(--green-pale); border-color: var(--green); }
.card-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--green-pale); border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--green-dark); }
.service-card.featured .card-icon { background: var(--white); }
.card-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.card-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; font-weight: 300; }
@media (max-width: 720px) { .cards-grid { grid-template-columns: 1fr; } }

/* ── SERVICES BENTO (white cards, 2×2 on dark sections) ───
   Shared component used on the homepage services section and on
   service-page services sections. Cards are white by default; the
   .section-dark overrides below keep that look on a black row. */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.svc-card {
  display: block;
  background: var(--white);
  border-radius: 22px;
  padding: clamp(28px, 3vw, 44px) clamp(24px, 2.6vw, 42px) clamp(24px, 2.6vw, 40px);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.22);
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 24px 56px -16px rgba(0,0,0,0.34); }
.svc-card .svc-h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.svc-card .svc-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  margin: 0;
}
@media (max-width: 720px) {
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .svc-card { padding: 32px 24px; }
}

/* ── ALTERNATING DARK SECTIONS ──────────────────────────── */
/* Apply class="section-dark" to any section to invert text colors over a black bg. */
.section-dark { background: #000 !important; color: rgba(255,255,255,0.85); }
.section-dark .section-eyebrow { color: var(--cream); }
.section-dark .section-eyebrow::before { background: var(--cream); }
.section-dark .section-h2 { color: #fff; }
.section-dark .section-sub { color: rgba(255,255,255,0.72); }
.section-dark .svc-link { color: var(--cream); }
.section-dark .svc-link svg path { stroke: var(--cream); }
.section-dark p, .section-dark li { color: rgba(255,255,255,0.78); }
.section-dark a { color: inherit; }
.section-dark .btn-primary { color: #fff; }
.section-dark .btn-primary svg path { stroke: #fff; }
/* Optional bento card style for cards inside a dark section that don't have their own surface */
.section-dark .bento-card { background: #0e0e0e; border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); padding: clamp(20px,2.5vw,32px); }
/* Review cards inside a dark section */
.section-dark .review-card { background: #0e0e0e; border-color: rgba(255,255,255,0.1); }
.section-dark .review-text { color: rgba(255,255,255,0.78); }
.section-dark .review-name { color: #fff; }
.section-dark .review-date { color: rgba(255,255,255,0.5); }
.section-dark .review-google-text { color: rgba(255,255,255,0.55); }
/* Service cards inside a dark section — preserve their white-card bento feel */
.section-dark .svc-card { background: var(--white); }
.section-dark .svc-card * { color: var(--text); }
.section-dark .svc-card .svc-h3 { color: var(--text); }
.section-dark .svc-card .svc-desc, .section-dark .svc-card .svc-list { color: var(--text-muted); }
.section-dark .svc-card .svc-link { color: var(--green-dark); }
.section-dark .svc-card .svc-link svg path { stroke: var(--green-dark); }
/* Hub eyebrow + pills (light section design) on dark — invert */
.section-dark .hub-eyebrow { color: rgba(255,255,255,0.55); }
.section-dark .hub-pill { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.18); }
.section-dark .hub-pill:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); }

/* ── REDESIGN: MOTION + DEPTH + SIGNATURE MOTIF ─────────── */
/* Scroll reveal — fade + rise, staggered via --d. Visible immediately under reduced motion. */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; transition-delay: var(--d, 0s); }
.reveal.visible { opacity: 1; transform: none; }

/* Tilted-photo signature motif — recurs in hero, #work, service pages */
.photo-frame { background: var(--white); padding: 8px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); overflow: hidden; }
.photo-frame img { border-radius: 8px; width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tilt { transition: transform .35s ease, box-shadow .35s ease; }
.photo-tilt:hover { transform: rotate(0deg) translateY(-4px) !important; box-shadow: var(--shadow-lift); }

/* Faint grain overlay for green/cream bands — pure SVG, zero image cost */
.grain { position: relative; }
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Warm radial gradient mesh — layered behind hero/CTA green bands */
.mesh-green { background:
  radial-gradient(60% 80% at 12% 18%, rgba(245,223,168,.16), transparent 60%),
  radial-gradient(50% 70% at 95% 90%, rgba(232,201,122,.14), transparent 55%),
  var(--green); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .photo-tilt { transform: none !important; }
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-menu-btn { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
