/*
========================================================
  INBOUND FENCING — STYLESHEET

  Sections:
  1.  Variables & Reset
  2.  Typography
  3.  Header & Navigation
  4.  Hero
  5.  Home Sections (Services, About, Reviews, CTA)
  6.  Gallery Page
  7.  Colours Page
  8.  Contact Page
  9.  Footer
  10. Utilities & Animations
  11. Responsive (Mobile)
========================================================
*/


/* ─── 1. Variables & Reset ─────────────────────────── */

:root {
  --green:        #298a31;
  --green-mid:    #2e7d32;
  --green-light:  #e8f5e9;
  --blue:         #5cb6ff;
  --blue-dark:    #1d4ed8;
  --text:         #1f2937;
  --text-muted:   #6b7280;
  --bg:           #ffffff;
  --bg-alt:       #f9fafb;
  --border:       #e5e7eb;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.10);
  --shadow:       0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:    0 10px 40px rgba(0,0,0,.18);
  --radius:       10px;
  --radius-lg:    18px;
  --nav-height:   70px;
  --transition:   .25s ease;
  --max-width:    1160px;
}

/* Dark mode overrides — only colour tokens change; photos/swatches are unaffected */
html[data-theme="dark"] {
  --bg:         #111827;
  --bg-alt:     #1f2937;
  --text:       #f9fafb;
  --text-muted: #9ca3af;
  --border:     #374151;
  --green-light:#14532d;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.45);
  --shadow:     0 4px 20px rgba(0,0,0,.55);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.70);
}

/* Colour-modifier warning banner in dark mode */
html[data-theme="dark"] .dark-reader-notice {
  background: #422006;
  border-color: #92400e;
  color: #fde68a;
}
html[data-theme="dark"] .dark-reader-notice a { color: #fde68a; }

/* Smooth transition only when the user actively toggles — not on page load */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition:
    background-color .3s ease,
    border-color .3s ease,
    color .3s ease,
    box-shadow .3s ease !important;
}

/* Theme toggle button — fixed bottom-right, always visible */
.theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  color: #fff;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.theme-toggle:hover {
  background: var(--green-mid);
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }


/* ─── 2. Typography ────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--green);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1rem; }

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: .6rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .section-subtitle { margin: 0 auto; }


/* ─── 3. Header & Navigation ───────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--nav-height);
  background: var(--green);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: #fff;
}

.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.nav-logo .logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
}

.nav-logo .logo-text span {
  display: block;
  font-size: .72rem;
  font-weight: 400;
  opacity: .8;
  letter-spacing: .06em;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  align-items: center;
  gap: .2rem;
}

nav a {
  color: rgba(255,255,255,.88);
  font-size: .92rem;
  font-weight: 600;
  padding: .45rem .85rem;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}

nav a:hover,
nav a.active {
  background: rgba(255,255,255,.15);
  color: #fff;
}

.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: .45rem 1.1rem !important;
  border-radius: 6px;
  transition: background var(--transition) !important;
}

.nav-cta:hover {
  background: var(--blue-dark) !important;
  color: #fff !important;
}

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  color: rgba(255,255,255,.88);
  font-size: .92rem;
  font-weight: 600;
  padding: .45rem .85rem;
  border-radius: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: .3rem;
  transition: background var(--transition), color var(--transition);
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown-toggle.active {
  background: rgba(255,255,255,.15);
  color: #fff;
}

.dropdown-arrow { font-size: .7em; transition: transform var(--transition); }
.nav-dropdown.open .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: .4rem;
  padding-top: calc(.4rem + .5rem);
  min-width: 155px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
}

.nav-dropdown.open .dropdown-menu { display: flex; }

/* Show on hover for proper mouse devices */
@media (hover: hover) {
  .nav-dropdown:hover .dropdown-menu { display: flex; }
  .nav-dropdown:hover .nav-dropdown-toggle { background: rgba(255,255,255,.15); color: #fff; }
}

.dropdown-menu a {
  display: block;
  padding: .5rem .85rem;
  border-radius: 6px;
  color: rgba(255,255,255,.88);
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition);
}

.dropdown-menu a:hover,
.dropdown-menu a.active { background: rgba(255,255,255,.15); color: #fff; }


/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 4px;
}

.hamburger span {
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ─── 4. Hero ──────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--green) 0%, #0d2e11 60%, #1a3a1e 100%);
  overflow: hidden;
}

/* Subtle geometric pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,.03) 40px,
    rgba(255,255,255,.03) 80px
  );
}

/* If you add images/hero.jpg it will show as background automatically */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s;
}

.hero-bg.loaded { opacity: .35; }

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  min-width: 0;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(37,99,235,.15);
  border: 1px solid rgba(37,99,235,.35);
  color: var(--blue);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.4rem;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.2rem;
  max-width: 700px;
}

.hero h1 span { color: var(--blue); }

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.82);
  max-width: 520px;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.15);
  justify-content: center;
}

.stat-item { text-align: center; }

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  margin-top: .25rem;
}

.hero-photos {
  display: flex;
  flex-direction: column;
  height: 600px;
  align-self: center;
}

.hero-photo-slot {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 28px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.25);
}

.hero-photo-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .8s ease-in-out;
}


/* ─── Buttons ──────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 6px 20px rgba(37,99,235,.4);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}

.btn-green {
  background: var(--green);
  color: #fff;
}

.btn-green:hover {
  background: var(--green-mid);
  box-shadow: 0 6px 20px rgba(30,77,34,.35);
}

.btn-lg {
  padding: .95rem 2.2rem;
  font-size: 1.05rem;
}


/* ─── 5. Home Sections ─────────────────────────────── */

section { padding: 5rem 1.5rem; }

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

/* Services */
.services { background: var(--bg-alt); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.2rem;
  background: var(--green-light);
  flex-shrink: 0;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card h3 { color: var(--green); margin-bottom: .5rem; }

.service-card p {
  font-size: .92rem;
  color: var(--text-muted);
  margin: 0;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--green-light);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content .section-label { display: block; }

.checkpoints {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin: 1.5rem 0 2rem;
}

.checkpoint {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
}

.checkpoint-icon {
  width: 24px;
  height: 24px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .75rem;
  flex-shrink: 0;
}

/* Why choose us */
.features { background: var(--green); color: #fff; }
.features .section-label { color: var(--blue); }
.features .section-title { color: #fff; }
.features .section-subtitle { color: rgba(255,255,255,.75); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-item h3 {
  color: var(--blue);
  margin-bottom: .5rem;
}

.feature-item p {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  margin: 0;
}

/* Reviews */
.reviews { background: var(--bg-alt); }

.reviews-widget-wrapper {
  max-width: 900px;
  margin: 0 auto;
  min-height: 200px;
}

.reviews-placeholder {
  background: #fff;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
}

.reviews-placeholder strong {
  display: block;
  margin-bottom: .5rem;
  color: var(--text);
}

.reviews-placeholder code {
  background: var(--bg-alt);
  padding: .2em .5em;
  border-radius: 4px;
  font-size: .85rem;
}

/* Fallback static reviews (shown when no widget) */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.review-stars { color: var(--blue); font-size: 1.1rem; margin-bottom: .75rem; }

.review-text {
  font-size: .95rem;
  color: var(--text);
  margin-bottom: 1rem;
  font-style: italic;
}

.review-author {
  font-weight: 700;
  font-size: .9rem;
  color: var(--green);
}

.review-source {
  font-size: .8rem;
  color: var(--text-muted);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  text-align: center;
  padding: 4rem 1.5rem;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: .75rem;
}

.cta-banner p {
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.cta-banner .btn-green:hover {
  background: var(--green-mid);
}


/* ─── 6. Terms Page ────────────────────────────────── */

.terms-section { padding: 3rem 1.5rem 5rem; }

.terms-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

.terms-actions--bottom {
  margin-top: 2.5rem;
  margin-bottom: 0;
}

/* Prose — styles for markdown-rendered content */
.prose {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  font-size: .97rem;
  line-height: 1.8;
}

.prose h1 {
  font-size: 1.8rem;
  margin-bottom: .5rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--border);
}

.prose h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
}

.prose h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}

.prose p {
  margin-bottom: 1rem;
  color: var(--text);
}

.prose ol,
.prose ul {
  padding-left: 1.6rem;
  margin-bottom: 1.2rem;
}

.prose li {
  margin-bottom: .6rem;
  color: var(--text);
}

.prose ol { list-style: decimal; }
.prose ul { list-style: disc; }

.prose strong { font-weight: 700; color: var(--text); }
.prose em     { font-style: italic; }

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.prose a {
  color: var(--green-mid);
  text-decoration: underline;
}

.prose a:hover { color: var(--green); }

.prose code {
  background: var(--bg-alt);
  padding: .15em .4em;
  border-radius: 4px;
  font-size: .88em;
  font-family: monospace;
}

@media (max-width: 700px) {
  .prose { padding: 1.5rem; }
  .terms-actions { justify-content: stretch; }
  .terms-actions .btn { width: 100%; justify-content: center; }
}


/* ─── Before & After Sliders ───────────────────────── */

.progress-section { padding: 3rem 1.5rem 5rem; }

.progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.progress-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

.progress-empty code {
  background: var(--border);
  padding: .15em .4em;
  border-radius: 4px;
  font-size: .9em;
}

.slider-card { display: flex; flex-direction: column; gap: .75rem; }

.slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: ew-resize;
  user-select: none;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  box-shadow: var(--shadow);
  outline: none;
}

.slider-wrapper:focus-visible {
  box-shadow: 0 0 0 3px rgba(46,125,50,.3);
}

.slider-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* The "after" image sits inside a clipping container */
.slider-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0); /* JS overrides the right value */
}

/* Draggable handle */
.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;            /* JS overrides this */
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}

.slider-handle-line {
  flex: 1;
  width: 2px;
  background: rgba(255,255,255,.9);
}

.slider-handle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1.1rem;
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* Before / After labels */
.slider-label {
  position: absolute;
  top: .75rem;
  padding: .25rem .7rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  pointer-events: none;
}

.slider-label-before {
  right: .75rem;
  background: rgba(0,0,0,.55);
  color: #fff;
}

.slider-label-after {
  left: .75rem;
  background: var(--green);
  color: #fff;
}

.slider-caption {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 700px) {
  .progress-grid { grid-template-columns: 1fr; }
}


/* ─── 7. Gallery Page ──────────────────────────────── */

.page-hero {
  background: var(--green);
  color: #fff;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.page-hero h1 { color: #fff; margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.8); max-width: 520px; margin: 0 auto; }

.gallery-section { padding: 3rem 1.5rem 5rem; }

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: .45rem 1.1rem;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
  background: var(--bg);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--bg-alt);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,77,34,.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-overlay .zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: .9;
}

.gallery-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  text-align: center;
  white-space: nowrap;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  background: rgba(255,255,255,.15);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover { background: rgba(255,255,255,.3); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 1.8rem;
  background: rgba(255,255,255,.15);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.3); }

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }


/* ─── 7. Options Page ──────────────────────────────── */

.options-section { padding: 3rem 1.5rem 5rem; }

/* Tabs */
.options-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.tab-btn {
  padding: .55rem 1.6rem;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: var(--bg);
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-light);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
}

/* Product cards (profiles + sleepers) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-grid--two {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--green);
}

.product-icon img {
  height: 110px;
  width: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.product-icon--circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
}

.product-icon--circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-colours-note {
  margin-top: 1rem;
  padding: .6rem .9rem;
  background: var(--green-light);
  border-left: 3px solid var(--green);
  border-radius: 4px;
  font-size: .88rem;
  color: var(--text);
}

.product-card h3 { color: var(--green); margin-bottom: .75rem; }

.product-card p {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 1.2rem;
}

.product-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.product-features li {
  font-size: .9rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.product-features li::before {
  content: '✓';
  color: var(--green-mid);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05rem;
}

/* Clickable product card (anchor wrapping the card) */
a.product-card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* Profile detail page */
.profile-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 3rem;
  align-items: start;
}

.profile-detail-image {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-detail-image img {
  width: 100%;
  display: block;
}

.profile-gallery-section {
  background: var(--bg-alt);
}

/* Colours sub-section */
.colours-section { padding: 3rem 1.5rem 5rem; }

.colours-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
}

.dark-reader-notice {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: #fffbe6;
  border: 1px solid #f0c000;
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  margin-bottom: 1.5rem;
  font-size: .9rem;
  color: #5a4200;
  line-height: 1.5;
}

.dark-reader-notice .dr-icon { font-size: 1.2rem; flex-shrink: 0; }

.dark-reader-notice a { color: #5a4200; font-weight: 600; }

.colours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.2rem;
}

.colour-swatch {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

.colour-swatch:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.swatch-block {
  aspect-ratio: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform .3s;
}

.colour-swatch:hover .swatch-block { transform: scale(1.05); }

.swatch-info {
  padding: .75rem;
  background: var(--bg);
}

.swatch-name {
  font-weight: 700;
  font-size: .88rem;
  color: var(--text);
  margin-bottom: .2rem;
}

.swatch-hex {
  font-size: .78rem;
  color: var(--text-muted);
  font-family: monospace;
}

.swatch-aliases {
  font-size: .72rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: .25rem;
  line-height: 1.4;
}

/* Colour fullscreen modal */
.colour-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.colour-modal.open {
  opacity: 1;
  pointer-events: all;
}

.colour-modal-bg {
  position: absolute;
  inset: 0;
  transition: background .3s;
}

.colour-modal-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.colour-modal-name {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: .5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.colour-modal-hex {
  font-size: 1.4rem;
  font-family: monospace;
  opacity: .85;
  text-shadow: 0 1px 10px rgba(0,0,0,.2);
}

.colour-modal-aliases {
  font-size: 1rem;
  margin-top: 1rem;
  opacity: .75;
  font-style: italic;
  text-shadow: 0 1px 8px rgba(0,0,0,.2);
}

.colour-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  font-size: 2rem;
  color: inherit;
  background: rgba(0,0,0,.2);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.colour-modal-close:hover { background: rgba(0,0,0,.35); }

.colour-modal-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .85rem;
  opacity: .7;
  white-space: nowrap;
}


/* ─── 8. Contact Page ──────────────────────────────── */

.contact-section { padding: 3rem 1.5rem 5rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h2 { margin-bottom: 1rem; }

.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-text strong {
  display: block;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .15rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.contact-item-text a:hover { color: var(--green); }

.contact-form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .45rem;
  color: var(--text);
}

.form-group input:not([type="checkbox"]),
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-group input:not([type="checkbox"]):focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(46,125,50,.1);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin-top: .45rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  cursor: pointer;
  user-select: none;
}

/* Custom checkbox — replaces native browser styling */
.checkbox-label input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
  cursor: pointer;
  position: relative;
  transition: background var(--transition), border-color var(--transition);
}

.checkbox-label input[type="checkbox"]:checked {
  background: var(--green);
  border-color: var(--green);
}

/* White tick drawn with a rotated border */
.checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(46,125,50,.2);
}

.checkbox-label:hover input[type="checkbox"]:not(:checked) {
  border-color: var(--green-mid);
}

.form-submit { width: 100%; margin-top: .5rem; justify-content: center; }

.form-success {
  display: none;
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  color: var(--green);
  font-weight: 600;
  margin-top: 1rem;
  text-align: center;
}


/* ─── 9. Footer ────────────────────────────────────── */

footer {
  background: #111b13;
  color: rgba(255,255,255,.75);
  padding: 3.5rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .nav-logo { margin-bottom: 1rem; }

.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.social-links {
  display: flex;
  gap: .6rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--transition);
}

.social-link:hover { background: var(--blue); }

.footer-col h4 {
  color: #fff;
  font-size: .95rem;
  margin-bottom: 1.2rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.footer-col li a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}

.footer-col li a:hover { color: var(--blue); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a { color: var(--blue); }


/* ─── 10. Utilities & Animations ───────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Loading spinner */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 2rem auto;
}

@keyframes spin { to { transform: rotate(360deg); } }


/* ─── 11. Responsive ───────────────────────────────── */

@media (max-width: 1040px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photos { display: none; }
  .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats   { justify-content: center; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image { max-width: 480px; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 700px) {
  :root { --nav-height: 64px; }

  /* Mobile nav */
  .hamburger { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    background: var(--green);
    padding: 1rem;
    box-shadow: var(--shadow);
  }

  nav.open { display: block; }

  nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  nav a { padding: .75rem 1rem; display: block; }

  /* Dropdown expands inline on mobile instead of floating */
  .nav-dropdown { position: static; }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: .75rem 1rem;
    border-radius: 6px;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    background: rgba(0,0,0,.18);
    box-shadow: none;
    border: none;
    border-radius: 6px;
    min-width: 0;
    padding: .25rem;
    margin-top: .25rem;
  }

  .hero { min-height: 0; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
  .hero-inner { padding: 2.5rem 1.5rem; }

  .profile-detail-grid { grid-template-columns: 1fr; }
  .profile-detail-image { position: static; }

  section { padding: 3.5rem 1.2rem; }

  .form-row { grid-template-columns: 1fr; }
  .form-services { grid-template-columns: 1fr; }
  .contact-form-card { padding: 1.5rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }

  .colours-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid .gallery-item { min-height: 150px; }
}
