/* =============================================
   SUSSEX LAWNS – Modern CSS
   ============================================= */

/* ---------- 1. CSS Custom Properties ---------- */
:root {
  /* Colours */
  --green-900: #1a3a1a;
  --green-800: #1e4620;
  --green-700: #2d6a2d;
  --green-600: #3a8a3a;
  --green-500: #4caf50;
  --green-400: #81c784;
  --green-100: #e8f5e9;
  --green-50:  #f1f8f1;

  --earth-700: #5d4037;
  --earth-500: #795548;
  --earth-100: #efebe9;

  --white: #ffffff;
  --off-white: #fafaf8;
  --gray-100: #f5f5f5;
  --gray-200: #e0e0e0;
  --gray-500: #9e9e9e;
  --gray-700: #424242;
  --gray-900: #1a1a1a;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);

  /* Transitions */
  --transition: 0.25s ease;
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* ---------- 3. Layout Helpers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-alt {
  background: var(--green-50);
}

/* ---------- 4. Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--green-400);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--green-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ---------- 6. Section Headers ---------- */
.section-tag {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.section-intro {
  font-size: 1.05rem;
  color: var(--gray-700);
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

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

/* ---------- 7. Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  max-width: 250px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-900);
  transition: color var(--transition);
  padding: 0.25rem 0;
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--green-600);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green-600);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.nav-cta {
  background: var(--green-700);
  color: var(--white);
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(45, 106, 45, 0.2);
  white-space: nowrap;
}
.nav-link.nav-cta::after { display: none; }
.nav-link.nav-cta:hover {
  background: var(--green-800);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 106, 45, 0.3);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--green-50); }
.nav-toggle:focus-visible { outline: 2px solid var(--green-500); }

.hamburger {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger open state */
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 58, 26, 0.82) 0%,
    rgba(26, 58, 26, 0.55) 60%,
    rgba(0,0,0,0.3) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--nav-height) + var(--space-xl)) var(--space-md) var(--space-xl);
  max-width: 780px;
  animation: heroFadeIn 1s ease forwards;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  backdrop-filter: blur(6px);
  margin-bottom: var(--space-md);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto var(--space-lg);
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.hero-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  font-size: 0.95rem;
  opacity: 0.9;
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--white);
  transition: opacity var(--transition);
}
.hero-phone:hover { opacity: 0.8; }

.hero-divider {
  opacity: 0.4;
  font-size: 1.1rem;
}

.hero-hours {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.85;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.65);
  animation: bounce 2s ease-in-out infinite;
  transition: color var(--transition);
}
.hero-scroll-hint:hover { color: var(--white); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---------- 9. About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-text p {
  color: var(--gray-700);
  margin-bottom: var(--space-sm);
}

.about-text p:last-of-type {
  margin-bottom: var(--space-lg);
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: var(--space-lg);
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--gray-700);
}

.about-list svg {
  flex-shrink: 0;
  color: var(--green-600);
  margin-top: 3px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green-700);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- 10. Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.service-img-wrap {
  height: 200px;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.service-card:hover .service-img {
  transform: scale(1.06);
}

.service-body {
  padding: var(--space-md);
}

.service-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-xs);
}

.service-body h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 0.5rem;
}

.service-body p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* ---------- 11. Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  width: 100%;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,58,26,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-overlay span {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--white);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-sm);
}

.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:focus-visible { outline: 3px solid var(--green-400); outline-offset: 3px; }

/* ---------- 12. Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  animation: fadeIn 0.2s ease;
}

.lightbox[hidden] { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1;
  opacity: 0.75;
  transition: opacity var(--transition), transform var(--transition);
  padding: 0.25rem 0.5rem;
}

.lightbox-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.lightbox-close:focus-visible { outline: 2px solid var(--green-400); }

/* ---------- 13. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-lg);
  align-items: stretch;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.contact-item h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 0.25rem;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--gray-700);
  margin: 0;
}

.contact-link {
  display: block;
  font-size: 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--green-700);
  transition: color var(--transition);
}
.contact-link:hover { color: var(--green-900); }

.contact-cta-row {
  margin-top: auto;
  padding-top: var(--space-sm);
}

.contact-map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 380px;
  box-shadow: var(--shadow-md);
}

/* ---------- 14. Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.75);
  padding: var(--space-lg) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-logo {
  background: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
}

.footer-logo-img {
  height: 42px;
  width: auto;
}

.footer-text {
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }

/* ---------- 15. Responsive ---------- */

/* Tablets & Mobile Navigation Breakpoint (<= 992px) */
@media (max-width: 992px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 0.4rem;
    border-bottom: 2px solid var(--green-100);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .nav-menu.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 1.05rem;
    color: var(--green-900);
    display: block;
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--green-50);
    color: var(--green-700);
  }

  .nav-link::after { display: none; }

  .nav-link.nav-cta {
    padding: 0.95rem;
    text-align: center;
    background: var(--green-700);
    color: var(--white);
    margin-top: 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    display: block;
    width: 100%;
    box-shadow: 0 4px 12px rgba(45, 106, 45, 0.25);
  }

  .nav-link.nav-cta:hover {
    background: var(--green-800);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets layout */
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-map-wrap {
    min-height: 280px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile layout */
@media (max-width: 640px) {
  :root {
    --space-2xl: 4rem;
  }

  /* Hero mobile */
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-contact {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-divider { display: none; }

  /* Stats mobile */
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Services mobile */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Gallery mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Footer mobile */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  :root {
    --nav-height: 64px;
  }

  .navbar {
    padding: 0 0.85rem;
  }

  .logo-img {
    height: 38px;
    max-width: 190px;
  }

  .hero-title {
    font-size: 2.1rem;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .hero-title {
    font-size: 2rem;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* =============================================
   TURF CALCULATOR STYLES
   ============================================= */

.calc-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.calc-shape-selector {
  display: flex;
  border-bottom: 2px solid var(--green-100);
}

.calc-shape-btn {
  flex: 1;
  cursor: pointer;
  user-select: none;
}

.calc-shape-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.calc-shape-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-500);
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  margin-bottom: -2px;
}

.calc-shape-inner svg {
  width: 64px;
  height: 48px;
  color: var(--gray-200);
  transition: color var(--transition);
}

.calc-shape-btn:hover .calc-shape-inner {
  color: var(--green-700);
  background: var(--green-50);
}

.calc-shape-btn:hover .calc-shape-inner svg { color: var(--green-600); }

.calc-shape-btn input:checked + .calc-shape-inner {
  color: var(--green-700);
  border-bottom-color: var(--green-600);
  background: var(--green-50);
}

.calc-shape-btn input:checked + .calc-shape-inner svg { color: var(--green-600); }

.calc-shape-btn input:focus-visible + .calc-shape-inner {
  outline: 2px solid var(--green-500);
  outline-offset: -2px;
}

.calc-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-lg);
  align-items: start;
}

.calc-inputs.hidden { display: none; }

.calc-diagram {
  background: var(--green-50);
  border: 1.5px solid var(--green-100);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-diagram svg {
  width: 100%;
  max-width: 240px;
  height: auto;
}

.calc-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.calc-fieldset {
  border: 1.5px solid var(--green-100);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.calc-fieldset legend {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--green-700);
  padding: 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.calc-field label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-700);
  letter-spacing: 0.02em;
}

.calc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.calc-input-wrap input[type="number"] {
  width: 100%;
  padding: 0.7rem 2.5rem 0.7rem 0.9rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  -moz-appearance: textfield;
  appearance: textfield;
}

.calc-input-wrap input[type="number"]::-webkit-outer-spin-button,
.calc-input-wrap input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

.calc-input-wrap input[type="number"]:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(74,175,80,0.18);
}

.calc-unit {
  position: absolute;
  right: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-500);
  pointer-events: none;
}

.calc-help {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.calc-tip {
  font-size: 0.82rem;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  line-height: 1.5;
}

.calc-wastage {
  border-top: 1.5px solid var(--green-100);
  padding-top: var(--space-md);
}

.calc-wastage-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray-700);
}

.calc-wastage-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.wastage-btn {
  padding: 0.45rem 1rem;
  border-radius: 100px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-700);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.wastage-btn:hover { border-color: var(--green-500); color: var(--green-700); }

.wastage-btn.active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
}

.wastage-btn:focus-visible { outline: 3px solid var(--green-400); outline-offset: 2px; }

.wastage-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.25);
  padding: 1px 6px;
  border-radius: 100px;
}

.wastage-btn:not(.active) .wastage-badge {
  background: var(--green-100);
  color: var(--green-700);
}

.calc-result {
  background: var(--green-50);
  border: 1.5px solid var(--green-100);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-result-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-500);
  text-align: center;
}

.calc-result-empty svg { opacity: 0.4; }
.calc-result-empty p { font-size: 0.9rem; max-width: 280px; }

.calc-result-data { width: 100%; }
.calc-result-data.hidden { display: none; }

.calc-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.calc-result-card {
  background: var(--white);
  border: 1.5px solid var(--green-100);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.calc-result-card--highlight {
  background: var(--green-800);
  border-color: var(--green-800);
  color: var(--white);
}

.calc-result-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
}

.calc-result-card--highlight .calc-result-label { color: rgba(255,255,255,0.75); }

.calc-result-inc {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
  text-transform: none;
}

.calc-result-value {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--green-800);
  line-height: 1;
}

.calc-result-card--highlight .calc-result-value { color: var(--white); }

.calc-result-unit {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-500);
}

.calc-result-card--highlight .calc-result-unit { color: rgba(255,255,255,0.65); }

.calc-result-note {
  font-size: 0.85rem;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: var(--space-md);
  font-style: italic;
}

.calc-result-cta {
  text-align: center;
  border-top: 1.5px solid var(--green-100);
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.calc-result-cta p { font-size: 0.9rem; color: var(--gray-700); }
.calc-result-cta .btn { min-width: 200px; justify-content: center; }

.btn-outline-green {
  background: transparent;
  color: var(--green-700);
  border: 2px solid var(--green-400);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  min-width: 200px;
  text-align: center;
}

.btn-outline-green:hover { background: var(--green-50); border-color: var(--green-600); }
.btn-outline-green:focus-visible { outline: 3px solid var(--green-400); outline-offset: 2px; }

@media (max-width: 768px) {
  .calc-body { padding: var(--space-md); }
  .calc-inputs { grid-template-columns: 1fr; }
  .calc-diagram { max-height: 160px; }
  .calc-result-grid { grid-template-columns: 1fr; }
  .calc-result-value { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  .calc-shape-selector { flex-direction: column; border-bottom: none; }
  .calc-shape-btn { border-bottom: 1.5px solid var(--green-100); }
  .calc-shape-inner {
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.9rem var(--space-sm);
    gap: var(--space-sm);
    border-bottom: none;
    border-left: 3px solid transparent;
    margin-bottom: 0;
  }
  .calc-shape-inner svg { width: 40px; height: 30px; }
  .calc-shape-btn input:checked + .calc-shape-inner {
    border-bottom-color: transparent;
    border-left-color: var(--green-600);
  }
  .calc-wastage-label { flex-direction: column; align-items: flex-start; }
}

/* =============================================
   REVIEWS / TESTIMONIALS STYLES
   ============================================= */

.reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--green-50);
  border: 1px solid var(--green-200, #c8e6c9);
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  margin-top: var(--space-sm);
  font-size: 0.9rem;
}

.reviews-stars {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 1.1rem;
}

.reviews-score {
  color: var(--green-900);
  font-family: var(--font-heading);
  font-size: 0.85rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.review-card {
  background: var(--white);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.review-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 0.75rem;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-author {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 2px;
}

.review-location {
  font-size: 0.82rem;
  color: var(--gray-500);
  display: block;
}

.review-rating {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.review-text {
  color: var(--gray-700);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
  font-style: italic;
  flex-grow: 1;
}

.review-service {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-700);
  background: var(--green-50);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}

/* =============================================
   WHATSAPP BUTTONS & FLOATING WIDGET
   ============================================= */

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-whatsapp:hover {
  background: #1eb956;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-cta-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: auto;
  padding-top: var(--space-sm);
}

/* Floating WhatsApp widget */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  background: #1eb956;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.2);
  color: var(--white);
}

.whatsapp-float:focus-visible {
  outline: 3px solid var(--green-400);
  outline-offset: 3px;
}

.whatsapp-icon {
  width: 26px;
  height: 26px;
}

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

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    padding: 12px;
    border-radius: 50%;
  }
  .whatsapp-label {
    display: none;
  }
}
