/* =====================================================================
   Garry Landscaping Ltd — Custom Styles
   Layered on top of Tailwind (loaded via CDN in index.html).
   Design system: Industrial Elegance · Cinematic Dark-Modern
   ===================================================================== */

:root {
  --bg: #0A0A0A;
  --surface: #131313;
  --surface-1: #1A1A1A;
  --surface-2: #20201F;
  --surface-3: #2A2A2A;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ECEAE8;
  --text-muted: #B9B0B1;
  --gold: #D4AF37;
  --gold-bright: #E9C349;
  --gold-soft: #F4D679;
  --green: #2D5A27;
  --green-light: #A1D494;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}

::selection { background: var(--gold); color: #0A0A0A; }

/* ----- Type ----- */
.font-display { font-family: 'Montserrat', system-ui, sans-serif; letter-spacing: -0.02em; }
.font-label   { font-family: 'Inter', sans-serif; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; }

.headline-xl  { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.05; font-weight: 700; }
.display-xl   { font-size: clamp(2.6rem, 7vw, 5.5rem);  line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; }
.eyebrow      { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 600; }

/* ----- Glass / Panels ----- */
.glass {
  background: rgba(26, 26, 26, 0.62);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 30px 60px -30px rgba(0,0,0,0.7);
}

.glass-strong {
  background: rgba(20, 20, 20, 0.86);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  border-bottom: 1px solid var(--line);
}

.hairline { border: 1px solid var(--line); }
.hairline-strong { border: 1px solid var(--line-strong); }

/* ----- Gold CTA ----- */
.btn-gold {
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 60%, #B6911E 100%);
  color: #0A0A0A;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
  box-shadow: 0 10px 30px -10px rgba(212,175,55,0.45), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 18px 40px -10px rgba(212,175,55,0.55), 0 0 24px rgba(212,175,55,0.35), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-gold:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.36); }
.btn-ghost:active { transform: translateY(0); }

/* ----- Gold underline accent ----- */
.gold-rule {
  width: 56px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}

/* ----- Hero ----- */
.hero-img {
  background-image: url('../images/hero-driveway.webp');
  background-size: cover;
  background-position: center;
}
@media (max-width: 768px) {
  .hero-img { background-image: url('../images/hero-driveway-mobile.webp'); }
}
.hero-veil {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(0,0,0,0.10), transparent 60%),
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.25) 30%, rgba(10,10,10,0.7) 75%, var(--bg) 100%);
}
.hero-grain {
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
}

/* ----- Service Cards ----- */
.service-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border: 1px solid var(--line);
  transition: transform 380ms cubic-bezier(.2,.7,.2,1), border-color 280ms ease, box-shadow 380ms ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,175,55,0.55);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(212,175,55,0.18) inset;
}
.service-card .corner-tag {
  position: absolute; top: 16px; right: 16px;
  font-size: 0.65rem; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(10,10,10,0.6); color: var(--green-light);
  border: 1px solid rgba(161,212,148,0.32);
}

/* ----- Project Tiles ----- */
.project {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
}
.project img { transition: transform 1200ms cubic-bezier(.2,.7,.2,1); }
.project:hover img { transform: scale(1.06); }
.project .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.78) 100%);
}
.project .meta {
  position: absolute; left: 22px; right: 22px; bottom: 22px;
  transform: translateY(8px); opacity: 0.95;
  transition: transform 380ms ease, opacity 380ms ease;
}
.project:hover .meta { transform: translateY(0); opacity: 1; }

/* ----- Before / After slider ----- */
.ba {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  user-select: none;
  cursor: ew-resize;
  background: #111;
}
.ba .pane { position: absolute; inset: 0; }
.ba .pane img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba .pane.after {
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0s;
}
.ba .handle {
  position: absolute; top: 0; bottom: 0;
  left: 50%; width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  transform: translateX(-1px);
  pointer-events: none;
}
.ba .knob {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 999px;
  background: rgba(10,10,10,0.78);
  border: 1.5px solid var(--gold);
  display: grid; place-items: center;
  color: var(--gold);
  box-shadow: 0 0 0 6px rgba(212,175,55,0.08), 0 10px 30px rgba(0,0,0,0.6);
  pointer-events: none;
}
.ba .tag {
  position: absolute; top: 16px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 0.65rem; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 700;
  background: rgba(10,10,10,0.7); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
}
.ba .tag.before { left: 16px; color: #fff; }
.ba .tag.after  { right: 16px; color: var(--gold); border-color: rgba(212,175,55,0.4); }

/* ----- Process numbers ----- */
.step-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  background: linear-gradient(180deg, rgba(212,175,55,0.92), rgba(212,175,55,0.15));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ----- Testimonials ----- */
.testimonial {
  border-radius: 18px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  border: 1px solid var(--line);
  position: relative;
}
.testimonial::before {
  content: '“'; position: absolute; top: -28px; left: 18px;
  font-family: 'Montserrat', serif; font-size: 100px; font-weight: 800;
  color: var(--gold); opacity: 0.65; line-height: 1;
}

/* ----- FAQ ----- */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 8px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 600;
  transition: color 220ms ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold); }
.faq-item .plus {
  width: 28px; height: 28px; border-radius: 999px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--gold);
  transition: transform 320ms ease, background 220ms ease;
  flex-shrink: 0;
}
.faq-item[open] .plus { transform: rotate(45deg); background: rgba(212,175,55,0.12); }
.faq-item .body { padding: 0 8px 22px; color: var(--text-muted); line-height: 1.7; max-width: 70ch; }

/* ----- Form ----- */
.field {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}
.field:focus {
  outline: none;
  border-color: rgba(212,175,55,0.7);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 4px rgba(212,175,55,0.12);
}
.field::placeholder { color: rgba(255,255,255,0.32); }
.field-label {
  display: block;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600; margin-bottom: 8px;
}
select.field {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D4AF37'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
  padding-right: 44px;
}

/* ----- Sticky mobile call bar ----- */
.mobile-cta {
  position: fixed;
  bottom: 14px; left: 14px; right: 14px;
  z-index: 60;
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #0A0A0A;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  box-shadow: 0 18px 40px -10px rgba(212,175,55,0.55), 0 0 0 1px rgba(255,255,255,0.18) inset;
}

/* ----- Scroll reveal ----- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 800ms ease, transform 900ms cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }
.reveal.delay-4 { transition-delay: 320ms; }
.reveal.delay-5 { transition-delay: 400ms; }
.reveal.delay-6 { transition-delay: 480ms; }
.reveal.delay-7 { transition-delay: 560ms; }
.reveal.delay-8 { transition-delay: 640ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ----- Marquee (trust strip) ----- */
.marquee {
  display: flex; gap: 64px; align-items: center;
  animation: marquee 38s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----- Spinner for form submit ----- */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(10,10,10,0.25);
  border-top-color: #0A0A0A;
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----- Mobile nav drawer ----- */
.drawer {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(24px);
  display: flex; flex-direction: column;
  padding: 28px 24px;
  transform: translateY(-110%);
  transition: transform 420ms cubic-bezier(.4,0,.2,1);
}
.drawer.open { transform: translateY(0); }
.drawer a { padding: 18px 4px; font-size: 1.6rem; font-weight: 600; border-bottom: 1px solid var(--line); color: #fff; }
.drawer a:hover { color: var(--gold); }

/* ----- Utility ----- */
.container-x { max-width: 1280px; margin-inline: auto; padding-inline: 24px; }
@media (min-width: 1024px) { .container-x { padding-inline: 48px; } }

.section-pad { padding-block: 80px; }
@media (min-width: 1024px) { .section-pad { padding-block: 128px; } }

/* Image fade-in once loaded */
img[loading="lazy"] { opacity: 0; transition: opacity 600ms ease; }
img[loading="lazy"].loaded { opacity: 1; }
