/*
Theme Name: Fibrotech Solutions
Theme URI: https://fibrotechsolution.com/
Author: Liveosoft
Author URI: https://liveosoft.com/
Description: Custom WordPress theme for Fibrotech Solutions. Built from the original static design, with editable page sections, water treatment plants as a custom post type, a blog, and enquiry handling.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fibrotech
Tags: custom-menu, custom-logo, featured-images, translation-ready
*/

/* -------------------------------------------------------------------------
   WordPress integration styles
   The main design lives in assets/css/style.css. This file only adds the
   small amount of CSS that WordPress itself needs.
   ------------------------------------------------------------------------- */

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #0b1f2a;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.skip-link {
  left: -9999px;
  position: absolute;
  top: 0;
  z-index: 100000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Header logo rendered by the theme */
.logo img {
  display: block;
  max-height: 50px;
  width: auto;
}

/* Generic rich-text areas (posts, plants, generic pages) */
.entry-content {
  color: var(--muted);
}

.entry-content > * + * {
  margin-top: 1.25em;
}

.entry-content h2 {
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.35rem, 1rem + 1.1vw, 1.8rem);
  line-height: 1.25;
  margin: 2em 0 0.7em;
}

.entry-content h3 {
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
  margin: 1.7em 0 0.6em;
}

.entry-content p {
  color: var(--muted);
  line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
  color: var(--muted);
  line-height: 1.8;
  padding-left: 1.35em;
}

.entry-content li + li {
  margin-top: 0.4em;
}

.entry-content a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-content blockquote {
  border-left: 3px solid var(--teal);
  color: var(--ink);
  font-size: 1.1rem;
  margin: 1.8em 0;
  padding: 0.25em 0 0.25em 1.2em;
}

.entry-content img {
  border-radius: var(--radius);
  height: auto;
  max-width: 100%;
}

.entry-content .wp-block-image figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Featured images on single posts / plants */
.post-thumbnail {
  margin-bottom: 28px;
}

.post-thumbnail img {
  border-radius: var(--radius-lg);
  display: block;
  height: auto;
  width: 100%;
}

/* Pagination (blog) */
.pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 42px;
}

.pagination .page-numbers {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  min-width: 42px;
  padding: 0 14px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* Small in-page form notice (non-JS fallback) */
.ft-notice {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  color: #065f46;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 22px;
  padding: 14px 18px;
}

.ft-notice--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

/* Contact information social buttons */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.social-row a {
  align-items: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  transition: background 0.2s ease;
  width: 42px;
}

.social-row a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.footer-social a {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  color: #cfe0e7;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease;
  width: 36px;
}

.footer-social a:hover {
  border-color: var(--teal);
  color: #fff;
}

/* Topbar / footer icon spacing */
.topbar .ico {
  margin-right: 5px;
  vertical-align: -2px;
}

/* Quote modal form: keep the compact styles working with WP markup */
.quote-modal form p {
  margin: 0;
}

/* Two-column card rows and plant detail layout */
.about-mission-grid,
.services-special-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr 1fr;
}

.plant-layout {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.plant-featured {
  border-radius: var(--radius-lg);
  height: 400px;
  margin-bottom: 32px;
  object-fit: cover;
  width: 100%;
}

.plant-lists {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 1fr;
  margin-top: 40px;
}

.plant-lists ul {
  color: var(--text);
  margin: 16px 0 0;
  padding-left: 20px;
}

.plant-related {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.plant-related a {
  color: var(--teal);
  font-weight: 600;
}

@media (max-width: 980px) {
  .plant-layout {
    grid-template-columns: 1fr;
  }

  .plant-featured {
    height: 300px;
  }
}

@media (max-width: 760px) {
  .about-mission-grid,
  .services-special-grid,
  .plant-lists {
    grid-template-columns: 1fr;
  }
}

/* Admin bar safe area for the mobile drawer */
@media (max-width: 760px) {
  body.admin-bar .menu-brand {
    padding-top: 18px;
  }
}

/* Core alignment classes */
.alignleft {
  float: left;
  margin: 0 24px 18px 0;
}

.alignright {
  float: right;
  margin: 0 0 18px 24px;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 6px;
}

.sticky {
  display: block;
}

.bypostauthor {
  display: block;
}

/* ==========================================================================
   Plant detail page
   ========================================================================== */
.plant-page {
  background: #ffffff;
}

/* Shared hero (replaces former inline styles) */
.hero .eyebrow {
  color: #7dd3fc;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}

.hero--lg { min-height: 40vh; }
.hero--md { min-height: 35vh; }
.hero--sm { min-height: 30vh; }

.hero--lg .hero-inner { padding: 60px 0 60px; }
.hero--md .hero-inner { padding: 70px 0 50px; }
.hero--sm .hero-inner { padding: 70px 0 50px; }

/* Hero extras */
.plant-hero {
  min-height: 44vh;
}

.plant-hero .eyebrow {
  color: #7dd3fc;
}

.plant-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}

.plant-hero .hero-inner {
  gap: 48px;
  padding: 0px 0 80px;
}

.plant-hero--single {
  grid-template-columns: 1fr;
}

.plant-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #cbd5e1;
}

.plant-crumbs a {
  color: #e2e8f0;
  text-decoration: none;
}

.plant-crumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.plant-crumbs [aria-current] {
  color: #7dd3fc;
}

.plant-hero .hero-actions .btn svg {
  fill: currentColor;
}

.plant-facts dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.plant-facts dl > div {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.plant-facts dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.plant-facts dd {
  margin: 4px 0 0;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.45;
}

/* Sticky in-page navigation */
.plant-tabs {
  position: sticky;
  top: var(--header);
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.plant-tabs .wrap {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.plant-tabs .wrap::-webkit-scrollbar {
  display: none;
}

.plant-tabs a {
  flex: 0 0 auto;
  padding: 16px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.plant-tabs a:hover,
.plant-tabs a:focus-visible {
  color: var(--green-dark);
  border-bottom-color: var(--green);
  outline: none;
}

/* Layout */
.plant-body {
  padding: 56px 0 72px;
}

.plant-layout {
  align-items: start;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.plant-main {
  min-width: 0;
}

.plant-section {
  scroll-margin-top: calc(var(--header) + 72px);
}

.plant-section {
  padding-top: 0;
  padding-bottom: 40px;
}

.plant-section:last-child {
  padding-bottom: 0;
}

.plant-head {
  margin-bottom: 24px;
}

.plant-head h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin: 0;
  padding-bottom: 14px;
  position: relative;
}

.plant-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--aqua));
}

/* Overview */
.plant-overview {
  font-size: 1.05rem;
}

.plant-callout {
  margin-top: 28px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--foam);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-left: 5px solid var(--green);
}

.plant-callout h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--navy);
}

.plant-callout h3 svg {
  fill: var(--green-dark);
}

.plant-callout p {
  margin: 0;
  color: var(--text);
}

/* Features */
.plant-features {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plant-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.plant-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 18px 44px rgba(22, 163, 74, 0.14);
}

.plant-tick {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(56, 189, 248, 0.18));
  color: var(--green-dark);
}

.plant-tick svg {
  display: block;
  fill: currentColor;
}

.plant-feature strong {
  display: block;
  color: var(--navy);
  line-height: 1.35;
}

.plant-feature div span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* Process steps */
.plant-steps {
  counter-reset: plant-step;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin: 0;
  padding: 0;
}

.plant-steps li {
  counter-increment: plant-step;
  list-style: none;
  position: relative;
  padding: 54px 20px 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, var(--mist) 100%);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.plant-steps li::before {
  content: counter(plant-step);
  position: absolute;
  left: 20px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.plant-steps strong {
  display: block;
  color: var(--navy);
  line-height: 1.35;
}

.plant-steps span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* Specifications */
.plant-specs {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.plant-specs th,
.plant-specs td {
  padding: 15px 20px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.plant-specs tr:last-child th,
.plant-specs tr:last-child td {
  border-bottom: 0;
}

.plant-specs th {
  width: 34%;
  background: var(--navy);
  color: #ffffff;
  font-weight: 600;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.plant-specs tr:nth-child(even) td {
  background: var(--mist);
}

.plant-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* Applications and benefits */
.plant-lists {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.plant-list-card {
  padding: 26px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.plant-list-card h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.plant-list-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plant-list-card li {
  position: relative;
  padding-left: 26px;
  line-height: 1.5;
}

.plant-list-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.plant-list-card--accent {
  background: var(--navy);
  border-color: var(--navy);
  color: #e2e8f0;
}

.plant-list-card--accent h3,
.plant-list-card--accent li {
  color: #ffffff;
}

/* Gallery */
.plant-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.plant-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease;
}

.plant-gallery img:hover {
  transform: scale(1.03);
}

/* FAQs */
.plant-faqs {
  display: grid;
  gap: 12px;
}

.plant-faqs details {
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.45);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.plant-faqs details[open] {
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.1);
}

.plant-faqs summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  color: var(--navy);
}

.plant-faqs summary::-webkit-details-marker {
  display: none;
}

.plant-faqs summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--foam);
  color: var(--green-dark);
  font-size: 20px;
  line-height: 1;
}

.plant-faqs details[open] summary::after {
  content: "\2212";
  background: var(--green);
  color: #ffffff;
}

.plant-faqs summary:focus-visible {
  outline: 2px solid var(--green-dark);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.plant-faqs details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

/* Sidebar */
.plant-aside {
  position: sticky;
  top: calc(var(--header) + 72px);
  display: grid;
  gap: 16px;
  max-height: calc(100vh - var(--header) - 88px);
  overflow-y: auto;
  scrollbar-width: none;
}

.plant-aside::-webkit-scrollbar {
  display: none;
}

.plant-quote {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  border-top: 5px solid var(--green);
}

.plant-quote h3 {
  margin: 0;
}

.plant-quote-text {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.plant-help {
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #e2e8f0;
}

.plant-help h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1.05rem;
}

.plant-help a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: #e2e8f0;
  text-decoration: none;
  word-break: break-word;
}

.plant-help a:hover {
  color: #7dd3fc;
}

.plant-help svg {
  flex: 0 0 18px;
  fill: var(--green);
}

/* Related products */
.plant-more {
  padding: 72px 0 80px;
  background: linear-gradient(180deg, var(--foam), #ecfeff);
  border-top: 1px solid rgba(34, 197, 94, 0.18);
}

@media (max-width: 1080px) {
  .plant-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
  }
}

@media (max-width: 980px) {
  .plant-hero .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .plant-layout {
    grid-template-columns: 1fr;
  }

  .plant-aside {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .plant-body {
    padding: 40px 0 56px;
  }
}

@media (max-width: 760px) {
  .plant-features,
  .plant-lists {
    grid-template-columns: 1fr;
  }

  .plant-section {
    padding-bottom: 32px;
  }
}

@media (max-width: 560px) {
  .plant-specs th,
  .plant-specs td {
    display: block;
    width: 100%;
  }

  .plant-specs th {
    border-bottom: 0;
    padding-bottom: 8px;
  }

  .plant-quote,
  .plant-help {
    padding: 22px;
  }
}

/* Product list: more room between cards */
.plant-grid {
  gap: 28px;
}

/* Sidebar quote form: compact inputs */
.plant-quote input,
.plant-quote select,
.plant-quote textarea {
  padding: 9px 12px;
}

/* Footer legal links */
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.legal-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Highlight the menu item for the current page */
.menu .current-menu-item > a,
.menu .current-menu-ancestor > a,
.menu .current-menu-parent > a {
  color: var(--teal-dark);
}

@media (min-width: 761px) {
  .menu .current-menu-item > a::after,
  .menu .current-menu-ancestor > a::after,
  .menu .current-menu-parent > a::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .menu .sub-menu .current-menu-item > a {
    background: var(--foam);
  }
}

@media (max-width: 760px) {
  .menu .current-menu-item > a,
  .menu .current-menu-ancestor > a,
  .menu .current-menu-parent > a {
    background: var(--foam);
  }
}

/* "View All" link at the end of a sub-menu */
.menu .sub-menu .menu-view-all > a {
  color: var(--green-dark);
  font-weight: 800;
}

@media (min-width: 761px) {
  .menu .sub-menu .menu-view-all {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }
}

/* Honeypot: off-screen for people, still present for bots */
.ft-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
}

/* ==========================================================================
   Services page
   ========================================================================== */
.services-page .svc-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.services-page .svc-head .eyebrow {
  justify-content: center;
}

.services-page .svc-head .lead {
  margin-left: auto;
  margin-right: auto;
}

/* Intro: lead copy beside a quick index of the services */
.svc-intro {
  padding: clamp(48px, 6vw, 80px) 0 clamp(24px, 3vw, 40px);
}

.svc-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.svc-lead {
  margin: 0;
  color: var(--navy);
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.5;
}

.svc-body {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.svc-index {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--foam), #ecfeff);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.svc-index h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.svc-index ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc-index a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease;
}

.svc-index a:hover {
  background: #ffffff;
  color: var(--green-dark);
}

.svc-index-num {
  flex: 0 0 auto;
  min-width: 28px;
  color: var(--green-dark);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 13px;
}

/* Service cards */
.svc-portfolio {
  padding-top: clamp(32px, 4vw, 56px);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 26px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  scroll-margin-top: calc(var(--header) + 24px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.svc-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--aqua));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.svc-card:hover,
.svc-card:target {
  transform: translateY(-6px);
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 24px 56px rgba(22, 163, 74, 0.16);
}

.svc-card:hover::before,
.svc-card:target::before {
  transform: scaleX(1);
}

.svc-num {
  position: absolute;
  top: 22px;
  right: 24px;
  color: rgba(148, 163, 184, 0.45);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
}

.svc-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(56, 189, 248, 0.16));
  color: var(--green-dark);
}

.svc-icon svg {
  display: block;
  fill: currentColor;
}

.svc-card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.svc-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

/* Specialised services on a dark band */
.svc-dark {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0;
  background:
    radial-gradient(700px 320px at top right, rgba(52, 211, 153, 0.18), transparent),
    linear-gradient(160deg, #04141b, #0a2a36);
  color: #e2e8f0;
}

.svc-head--light h2 {
  color: #ffffff;
}

.svc-head--light .eyebrow {
  color: #7dd3fc;
}

.svc-head--light .lead {
  color: #cbd5e1;
}

.svc-special-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.svc-special {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.svc-special:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(52, 211, 153, 0.45);
  transform: translateY(-3px);
}

.svc-special-tick {
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.18);
  color: #34d399;
}

.svc-special-tick svg {
  display: block;
  fill: currentColor;
}

.svc-special h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.35;
}

.svc-special p {
  margin: 8px 0 0;
  color: #cbd5e1;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .svc-intro-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .svc-grid,
  .svc-special-grid {
    grid-template-columns: 1fr;
  }

  .services-page .svc-head {
    margin-bottom: 32px;
  }
}

.svc-actions {
  margin: 44px 0 0;
  text-align: center;
}

/* Phones: the shared hero padding wins over the per-size and plant-page rules */
@media (max-width: 760px) {
  .hero--lg .hero-inner,
  .hero--md .hero-inner,
  .hero--sm .hero-inner,
  .plant-hero .hero-inner {
    padding: 0 0 28px;
  }
}

.entry-meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}
