/* ============================================================
   style.css — Dunedin Landscaping site theme
   Loads after grid.css and core.css.
   ============================================================ */

/* ── 1. BRAND / COLOR OVERRIDES ──────────────────────────── */

:root {
  /* Brand greens */
  --color-brand:              #4d7c5a;
  --color-brand-hover:        #2d5040;

  /* Light surfaces — slight green tint */
  --color-surface:            #f3f5f2;
  --color-surface-alt:        #e8ede6;

  /* Navigation */
  --color-nav-a:              #2d3b30;
  --color-nav-a-hover:        #4d7c5a;
  --color-nav-mobile-bg:      #1c2b22;
  --color-nav-mobile-a:       #e0eae3;
  --color-nav-mobile-a-hover: #9dd3b0;

  /* Header */
  --color-header-bg:          #ECEADD;
  --color-header-shadow:      rgba(0, 0, 0, 0.10);

  /* Footer */
  --color-footer-bg:          #1c2b22;
  --color-footer-text:        #e0eae3;
  --color-footer-a:           #c8dece;
  --color-footer-a-hover:     #ffffff;

  /* Typography */
  --font-heading:             'Poppins', ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Header / nav sizing (tuned for this site; structural defaults in core.css) */
  --header-height:            120px;  /* full desktop height */
  --header-height-compact:    72px;   /* collapsed desktop height (after scroll) */
  --header-height-mobile:     72px;   /* fixed header height below 1024px */
  --header-padding-top:       8px;
  --header-padding-bottom:    8px;
  --logo-max-width:           250px;  /* the logo is very wide (~3.81:1) */
}

/* Apply Poppins to headings */
h1, h2, h3, h4 { font-family: var(--font-heading); }


/* ── 2. SITE-WIDE BUTTON STYLES ───────────────────────────── */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
}
.btn-primary:hover {
  background: var(--color-brand-hover);
  border-color: var(--color-brand-hover);
  color: #fff;
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.8);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}
.btn-lg {
  padding: 15px 36px;
  font-size: 1.05rem;
}


/* ── 3. NAVIGATION ACTIVE STATES ─────────────────────────── */
/* Handled in core.css §5 now (mobile colour + the desktop underline at the
   1024px breakpoint). Kept here intentionally empty so the section numbering
   in this file is stable. */


/* ── 4. BANNER COMPONENT ──────────────────────────────────── */

.banner {
  --banner-height-xs: 380px;
  --banner-height-md: 480px;
  --banner-height-lg: 560px;
  --banner-height-xl: 620px;
  position: relative;
  min-height: var(--banner-height-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #2d3b30;
}
@media (min-width: 768px)  { .banner { min-height: var(--banner-height-md); } }
@media (min-width: 1024px) { .banner { min-height: var(--banner-height-lg); } }
@media (min-width: 1280px) { .banner { min-height: var(--banner-height-xl); } }

/* Lift a .container child above the overlay */
.banner > .container { position: relative; z-index: 1; width: 100%; }

/* Dark overlay so text is legible over any photo */
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.58) 100%);
}

.banner-caption {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 2rem 1rem;
  max-width: 860px;
  margin-inline: auto;
}
.banner-caption h1 {
  color: #fff;
  font-size: clamp(1.9rem, 5vw, 3.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  letter-spacing: -0.01em;
}
.banner-caption p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 2rem;
  opacity: 0.92;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
  font-weight: 400;
}
.banner-caption .btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Placeholder gradient when no photo yet */
.banner-placeholder {
  background-color: #2d3b30;
  background-image: linear-gradient(135deg, #1c2b22 0%, #3a5c42 50%, #2d3b30 100%);
}

/* ── Service page banner: photo-right / gradient-left split ──
   Mobile:  full photo + semi-transparent overlay + centred text
   Desktop: photo anchored right, gradient fades to solid left,
            text left-aligned within the container               */
.banner-split {
  --banner-height-xs: 380px;
  --banner-height-md: 420px;
  --banner-height-lg: 460px;
  --banner-height-xl: 500px;
  background-position: center center;
}
.banner-split .banner-overlay {
  background: rgba(20, 32, 24, 0.52);
}
.banner-split .banner-caption {
  text-align: center;
  max-width: 640px;
  padding: 2rem 1rem;
}
.banner-split .banner-caption h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}
.banner-split .banner-caption .btn-group {
  justify-content: center;
}

@media (min-width: 768px) {
  .banner-split { background-position: right center; }
  .banner-split .banner-overlay {
    background: linear-gradient(
      to right,
      #1c2b22        0%,
      #1c2b22       38%,
      rgba(28,43,34,0.88) 52%,
      rgba(28,43,34,0.3)  68%,
      transparent   85%
    );
  }
  .banner-split .banner-caption {
    text-align: left;
    max-width: 580px;
    padding: 2.5rem 0;
    margin-inline: 0;
  }
  .banner-split .banner-caption .btn-group { justify-content: flex-start; }
}


/* ── 5. SECTION COMPONENT ────────────────────────────────── */

.section {
  --section-padding-y:    72px;
  --section-padding-y-sm: 48px;
  --section-padding-y-lg: 120px;

  padding-block: var(--section-padding-y);
}
.section-sm { padding-block: var(--section-padding-y-sm); }
.section-lg { padding-block: var(--section-padding-y-lg); }

.section-bg-light { background: var(--color-surface); }
.section-bg-dark  {
  background: #1a2920;
  color: #e0eae3;
}
.section-bg-dark h1, .section-bg-dark h2, .section-bg-dark h3,
.section-bg-dark h4, .section-bg-dark h5, .section-bg-dark h6 { color: #fff; }
.section-bg-dark a { color: #9dd3b0; }

.section-bg-brand {
  background: var(--color-brand);
  color: #fff;
}
.section-bg-brand h1, .section-bg-brand h2, .section-bg-brand h3,
.section-bg-brand h4, .section-bg-brand h5, .section-bg-brand h6,
.section-bg-brand a { color: #fff; }

.section-bordered {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}


/* ── 5b. IMAGE UTILITIES ─────────────────────────────────── */

.img-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}


/* ── 6. INTRO-BLOCK COMPONENT ────────────────────────────── */

.intro-block {
  --intro-max-width: 64ch;
  --intro-eyebrow-color: var(--color-brand);
  --intro-lead-color: var(--color-text-muted);

  max-width: var(--intro-max-width);
  margin-inline: auto;
  text-align: center;
  margin-bottom: 3rem;
}
.intro-block.intro-left {
  margin-inline: 0;
  text-align: left;
  max-width: 100%;
}
.intro-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--intro-eyebrow-color);
  margin-bottom: 0.75rem;
}
.intro-heading { margin-bottom: 0.75rem; }
.intro-lead {
  font-size: 1.1rem;
  color: var(--intro-lead-color);
  margin-bottom: 0;
}


/* ── 7. ICON GRID COMPONENT ──────────────────────────────── */

.icon-grid {
  --icon-card-size: 80px;
  --icon-card-bg: var(--color-brand);
  --icon-card-color: #fff;
  --icon-card-padding: 1.5rem;
}
.icon-card {
  text-align: center;
  padding: var(--icon-card-padding);
  height: 100%;
  transition: transform var(--transition-fast);
}
.icon-card:hover { transform: translateY(-4px); }
.icon-card-circle {
  width: var(--icon-card-size);
  height: var(--icon-card-size);
  background: var(--icon-card-bg);
  color: var(--icon-card-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: background var(--transition-fast);
}
.icon-card:hover .icon-card-circle { background: var(--color-brand-hover); }
.icon-card-circle svg, .icon-card-circle img { width: 44%; height: 44%; }
.icon-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text-strong);
}
.icon-card-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.55;
}
.icon-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-brand);
  letter-spacing: 0.02em;
}
.icon-card-link:hover { color: var(--color-brand-hover); }


/* ── 8. CTA STRIP COMPONENT ──────────────────────────────── */

.cta-strip {
  --cta-strip-padding-y: 64px;
  --cta-strip-bg: var(--color-brand);
  --cta-strip-color: #fff;

  background: var(--cta-strip-bg);
  color: var(--cta-strip-color);
  padding-block: var(--cta-strip-padding-y);
  text-align: center;
}
.cta-strip h2, .cta-strip h3 { color: inherit; margin-bottom: 0.5em; }
.cta-strip p { margin-bottom: 1.5rem; opacity: 0.92; }

.cta-strip-dark  { --cta-strip-bg: #1c2b22; }
.cta-strip-light {
  --cta-strip-bg: var(--color-surface);
  --cta-strip-color: var(--color-text-strong);
}
.cta-strip-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.btn-cta-primary, .btn-cta-secondary {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-cta-primary {
  background: #fff;
  color: #1c2b22;
}
.btn-cta-primary:hover { background: rgba(255,255,255,0.88); color: #1c2b22; }

.btn-cta-secondary {
  background: transparent;
  color: var(--cta-strip-color);
  border-color: currentColor;
}
.btn-cta-secondary:hover { background: rgba(255,255,255,0.12); color: var(--cta-strip-color); }

.cta-strip-light .btn-cta-primary { background: var(--color-brand); color: #fff; }
.cta-strip-light .btn-cta-primary:hover { background: var(--color-brand-hover); color: #fff; }
.cta-strip-light .btn-cta-secondary { border-color: var(--color-brand); color: var(--color-brand); }

/* Big phone number display */
.cta-phone {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  font-family: var(--font-heading);
  color: inherit;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: block;
  margin-bottom: 0.25rem;
}
.cta-phone:hover { color: inherit; opacity: 0.85; }


/* ── 9. TESTIMONIAL COMPONENT ────────────────────────────── */

.testimonial {
  --testimonial-bg: #fff;
  --testimonial-quote-color: var(--color-text-strong);
  --testimonial-mark-color: var(--color-brand);
  --testimonial-avatar-size: 48px;

  background: var(--testimonial-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 0.25rem; left: 1rem;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--testimonial-mark-color);
  opacity: 0.15;
  font-family: var(--font-serif);
}
.testimonial-quote {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--testimonial-quote-color);
  flex: 1;
  margin: 0 0 1.25rem 0;
  font-style: italic;
}
.testimonial-attribution {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: var(--testimonial-avatar-size);
  height: var(--testimonial-avatar-size);
  border-radius: 50%;
  background: var(--color-surface-alt);
  flex: 0 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-brand);
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name {
  font-weight: 600;
  color: var(--color-text-strong);
  font-size: 0.95rem;
}
.testimonial-role {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}


/* ── 10. HOME PAGE SPECIFICS ─────────────────────────────── */

/* Intro — two-column layout */
.intro-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .intro-two-col { grid-template-columns: 1fr 1fr; }
}

.intro-image-placeholder {
  background: var(--color-surface-alt);
  background-image: linear-gradient(135deg, #d8e5db 0%, #b8d0bc 100%);
  border-radius: 8px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a9b82;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Equipment callout list */
.equipment-list {
  background: var(--color-surface);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  list-style: none;
  margin: 0;
}
.equipment-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text);
}
.equipment-list li:last-child { border-bottom: none; }
.equipment-list li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-brand);
  border-radius: 50%;
  flex: 0 0 auto;
  margin-top: 0.45rem;
}

/* Discount strip */
.discount-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}
.discount-badge {
  background: rgba(77,124,90,0.12);
  color: var(--color-brand-hover);
  border: 2px solid var(--color-brand);
  border-radius: 4px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* Prose body spacing */
.prose p + p { margin-top: 0.25em; }


/* ── 10b. ABOUT PAGE — SERVICE AREA CARDS ────────────────── */

.area-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  height: 100%;
}
.area-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-strong);
}
.area-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}


/* ── 10c. CONTACT PAGE — CONTACT CARDS ───────────────────── */

.contact-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2.25rem 1.5rem;
  height: 100%;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.contact-card-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(77,124,90,0.12);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card-icon svg { width: 28px; height: 28px; }
.contact-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}
.contact-card-value {
  font-size: 1.15rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--color-text-strong);
  margin: 0;
}
.contact-card-value a { color: inherit; }
.contact-card-value a:hover { color: var(--color-brand); }
.contact-card-value.is-text {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}


/* ── 11. FOOTER ENHANCEMENTS ─────────────────────────────── */

footer { margin-top: 0; }

.footer-heading {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: var(--color-footer-a);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--color-footer-a-hover); }

.footer-contact p { font-size: 0.875rem; margin-bottom: 0.5rem; }
.footer-contact a { color: var(--color-footer-a); }
.footer-contact a:hover { color: var(--color-footer-a-hover); }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 2.5rem 0 1.5rem;
}
.footer-bottom {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }


/* ── 12. LIGHTBOX COMPONENT (service-page galleries) ──────── */
/* site.js builds a shared <dialog id="nt-lightbox"> from any
   [data-lightbox-group] thumbnails. Without this CSS the slides stack
   vertically and the controls collapse into the corner. */

.gallery-thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform var(--transition-fast);
}
.gallery-thumb:hover img { transform: scale(1.05); }

.lightbox-dialog {
  --lightbox-backdrop: rgba(0, 0, 0, 0.92);
  --lightbox-control-color: #fff;
  --lightbox-caption-color: #fff;

  border: 0;
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  background: transparent;
  color: var(--lightbox-control-color);
  box-shadow: none;
}
.lightbox-dialog::backdrop { background: var(--lightbox-backdrop); }
.lightbox-track {
  display: flex;
  width: 100%; height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.lightbox-track::-webkit-scrollbar { display: none; }
.lightbox-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  margin: 0;
}
.lightbox-slide img {
  max-width: 100%;
  max-height: calc(100% - 3rem);
  object-fit: contain;
  display: block;
}
.lightbox-slide figcaption {
  color: var(--lightbox-caption-color);
  text-align: center;
  padding: 0.75rem 1rem 0;
  font-size: 0.95rem;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  background: rgba(0, 0, 0, 0.4);
  color: var(--lightbox-control-color);
  border: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.lightbox-close { top: 1rem; right: 1rem; font-size: 1.75rem; }
.lightbox-prev  { top: 50%; left: 1rem;  transform: translateY(-50%); }
.lightbox-next  { top: 50%; right: 1rem; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(0, 0, 0, 0.7);
}
