/* AMWhite Services Ltd — Commercial Heating & Gas
   Brand palette derived from existing logo & site:
   - Brand Teal: #26BFC5 (accessible dark teal #137C82 / #178E94)
   - Charcoal: #262A2C / #323638
   - Soft Ice Background: #EBF3F4
*/

:root {
  --teal: #26BFC5;
  --teal-bright: #2DE5E5;
  --teal-dark: #158288;
  --teal-darker: #0F656A;
  --charcoal: #262A2C;
  --charcoal-mid: #32373A;
  --charcoal-light: #444B50;
  --ice: #EBF3F4;
  --ice-border: #CFE0E2;
  --white: #FFFFFF;
  --text: #22272A;
  --text-muted: #505B61;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(24, 34, 38, 0.06);
  --max-w: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

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

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

a:hover {
  color: var(--teal-darker);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: var(--charcoal);
  padding: 10px 16px;
  font-weight: 700;
  z-index: 999;
}

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

/* Top Commercial Strip */
.top-bar {
  background: #1B1E20;
  color: #D5E2E4;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  padding: 8px 0;
}

.top-bar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--white);
}

.top-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
  display: inline-block;
}

.top-bar a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.top-bar a:hover {
  color: var(--teal-bright);
}

/* Header & Navigation */
.site-header {
  background: var(--charcoal);
  border-bottom: 4px solid var(--teal);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--white);
}

.brand img {
  height: 44px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 2px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: #E3ECEE;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 11px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(38, 191, 197, 0.16);
  color: var(--white);
}

.main-nav a[aria-current="page"] {
  color: var(--teal-bright);
  font-weight: 600;
}

.nav-cta {
  background: var(--teal) !important;
  color: #14191B !important;
  font-weight: 700 !important;
  margin-left: 6px;
}

.nav-cta:hover {
  background: var(--teal-bright) !important;
  color: #14191B !important;
}

/* Dropdown for Services on Desktop */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  background: transparent;
  border: none;
  color: #E3ECEE;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 11px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-dropdown-btn:hover,
.nav-dropdown-btn.active {
  background: rgba(38, 191, 197, 0.16);
  color: var(--teal-bright);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 245px;
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid var(--teal);
  border-radius: 0 0 8px 8px;
  padding: 8px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown-menu a {
  padding: 9px 12px;
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #24282A 0%, #31373B 60%, #263437 100%);
  color: var(--white);
  padding: 64px 0 58px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38, 191, 197, 0.14) 0%, rgba(38, 191, 197, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-bright);
  background: rgba(38, 191, 197, 0.14);
  border: 1px solid rgba(38, 191, 197, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}

.hero-lead {
  font-size: 1.08rem;
  color: #D7E4E6;
  margin: 0 0 26px;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-note {
  font-size: 0.9rem;
  color: #B4C6C9;
  margin: 0;
}

.hero-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 24px;
}

.hero-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ice);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 18px;
}

.hero-card-logo img {
  max-height: 120px;
  width: auto;
}

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
}

.hero-facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #E3ECEE;
}

.hero-facts strong {
  color: var(--white);
}

/* Sub-page Hero */
.page-hero {
  background: linear-gradient(135deg, #24282A 0%, #31373B 70%, #263437 100%);
  color: var(--white);
  padding: 44px 0 42px;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: #B4C6C9;
  margin-bottom: 12px;
}

.breadcrumbs a {
  color: var(--teal-bright);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.page-hero p {
  margin: 0;
  font-size: 1.05rem;
  color: #D7E4E6;
  max-width: 66ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--teal);
  color: #14191B;
}

.btn-primary:hover {
  background: var(--teal-bright);
  color: #14191B;
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover {
  border-color: var(--teal-bright);
  color: var(--teal-bright);
}

.btn-dark {
  background: var(--charcoal);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--charcoal-light);
  color: var(--white);
}

/* Trust Strip */
.trust-strip {
  background: var(--ice);
  border-bottom: 1px solid var(--ice-border);
  padding: 18px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
}

.check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  color: #14191B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
}

/* Sections */
.section {
  padding: 58px 0;
}

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

.section-dark {
  background: var(--charcoal);
  color: var(--white);
}

.section-header {
  max-width: 68ch;
  margin-bottom: 32px;
}

.section-header h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--charcoal);
}

.section-dark .section-header h2 {
  color: var(--white);
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.section-dark .section-header p {
  color: #CFDCDF;
}

/* Cards & Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--ice-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card-accent {
  border-top: 4px solid var(--teal);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--charcoal);
}

.card p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-link {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link:hover {
  text-decoration: underline;
}

/* PPM Spotlight Box */
.ppm-banner {
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius);
  border-left: 6px solid var(--teal);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
}

.ppm-banner h2 {
  margin: 0 0 12px;
  font-size: 1.6rem;
  color: var(--white);
}

.ppm-banner p {
  margin: 0 0 18px;
  color: #D5E2E4;
}

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

.ppm-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: #E7F0F1;
}

/* Notice Callout (Commercial Only) */
.notice-box {
  background: var(--ice);
  border-left: 4px solid var(--teal-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.96rem;
}

.notice-box strong {
  color: var(--charcoal);
}

/* Bullet Lists */
.clean-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.clean-list li {
  position: relative;
  padding-left: 24px;
}

.clean-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

/* Sector Pills */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  background: var(--white);
  border: 1px solid var(--ice-border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--charcoal);
}

/* Compliance / Cert Table */
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--ice-border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--ice-border);
  vertical-align: top;
}

th {
  background: var(--charcoal);
  color: var(--white);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

.cert-code {
  display: inline-block;
  background: var(--ice);
  border: 1px solid var(--ice-border);
  color: var(--teal-darker);
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Content + Sidebar Layout for Service Pages */
.content-grid {
  display: grid;
  grid-template-columns: 1.65fr 0.95fr;
  gap: 36px;
  align-items: start;
}

.prose h2 {
  margin: 30px 0 12px;
  font-size: 1.45rem;
  color: var(--charcoal);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 22px 0 8px;
  font-size: 1.12rem;
  color: var(--charcoal);
}

.prose p {
  margin: 0 0 15px;
}

.sidebar-card {
  background: var(--ice);
  border: 1px solid var(--ice-border);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 94px;
}

.sidebar-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--charcoal);
}

.sidebar-card p {
  margin: 0 0 16px;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.sidebar-phone {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--charcoal);
  text-decoration: none;
  margin-bottom: 6px;
}

.sidebar-phone:hover {
  color: var(--teal-dark);
}

.sidebar-email {
  display: block;
  font-size: 0.94rem;
  margin-bottom: 18px;
  word-break: break-word;
}

.sidebar-divider {
  border: 0;
  border-top: 1px solid var(--ice-border);
  margin: 18px 0;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--ice-border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.faq-item summary {
  font-weight: 700;
  color: var(--charcoal);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--teal-dark);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact Form */
.form-card {
  background: var(--white);
  border: 1px solid var(--ice-border);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #BFD3D6;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--text);
  background: var(--white);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal-dark);
}

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.94rem;
  display: none;
}

.form-status.show {
  display: block;
}

.form-status.success {
  background: #E4F7F5;
  border: 1px solid #8AD8D3;
  color: #0D5559;
}

.form-status.error {
  background: #FDF0EE;
  border: 1px solid #EAB5AE;
  color: #82251A;
}

.hidden-field {
  display: none !important;
}

/* Optional Photo Gallery Grid (ready when you add real plant room photos) */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.photo-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--ice-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-card figcaption {
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* CTA Strip */
.cta-band {
  background: var(--charcoal);
  color: var(--white);
  padding: 46px 0;
  border-top: 4px solid var(--teal);
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cta-band h2 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  color: var(--white);
}

.cta-band p {
  margin: 0;
  color: #D2E0E2;
}

/* Footer */
.site-footer {
  background: #1C1F21;
  color: #C3D2D5;
  padding: 48px 0 28px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 46px;
  width: auto;
  margin-bottom: 12px;
}

.site-footer h3 {
  color: var(--white);
  font-size: 0.98rem;
  margin: 0 0 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: #C3D2D5;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--teal-bright);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  color: #93A5A8;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .ppm-banner,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .sidebar-card {
    position: static;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 4px solid var(--teal);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 20px;
    gap: 4px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-dropdown-btn {
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    display: flex;
    flex-direction: column;
    border: none;
    border-left: 2px solid var(--teal);
    border-radius: 0;
    box-shadow: none;
    margin-left: 12px;
    padding: 4px 0 4px 10px;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }

  .grid-3,
  .grid-2,
  .form-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 44px 0 42px;
  }

  .ppm-banner {
    padding: 24px;
  }
}

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