/* ============================================================
   HYDOR SERVICES — MAIN STYLESHEET
   Brand: #105754 (teal) | #FFFFFF | #1a7a6e (hover) | #222222
   Fonts: Montserrat (headings) | Inter (body)
   ============================================================ */

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

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

body {
  font-family: 'Inter', sans-serif;
  color: #222222;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #222222;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section--teal { background: #105754; color: #ffffff; }
.section--teal h2, .section--teal h3, .section--teal h4 { color: #ffffff; }
.section--light { background: #f7f9f9; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  border: none;
  text-align: center;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: #105754;
  color: #ffffff;
}
.btn--primary:hover { background: #1a7a6e; transform: translateY(-1px); }

.btn--white {
  background: #ffffff;
  color: #105754;
}
.btn--white:hover { background: #e8f4f3; transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  color: #105754;
  border: 2px solid #105754;
}
.btn--outline:hover { background: #105754; color: #ffffff; }

.btn--lg { padding: 1.1rem 2.5rem; font-size: 1.05rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.nav__logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #105754;
  letter-spacing: -0.01em;
}

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

.nav__links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #222222;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav__links a:hover { color: #105754; }

/* Dropdown */
.nav__dropdown { position: relative; }

.nav__dropdown-toggle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #222222;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  padding: 0;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav__dropdown-toggle:hover { color: #105754; }
.nav__dropdown-toggle svg { transition: transform 0.2s; }
.nav__dropdown.open .nav__dropdown-toggle svg { transform: rotate(180deg); }

.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  min-width: 260px;
  padding: 0.5rem 0;
  z-index: 200;
}
.nav__dropdown.open .nav__dropdown-menu { display: block; }

.nav__dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: #222222;
  transition: background 0.15s, color 0.15s;
}
.nav__dropdown-menu a:hover { background: #f0f8f7; color: #105754; }

.nav__cta { margin-left: 0.5rem; }

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #222222;
  border-radius: 2px;
  transition: all 0.3s;
}

.nav__mobile {
  display: none;
  background: #ffffff;
  border-top: 1px solid #e8eaea;
  padding: 1rem 0 1.5rem;
}
.nav__mobile.open { display: block; }

.nav__mobile a, .nav__mobile-services-toggle {
  display: block;
  padding: 0.7rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #222222;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.nav__mobile a:hover, .nav__mobile-services-toggle:hover { color: #105754; }

.nav__mobile-services {
  display: none;
  background: #f7f9f9;
}
.nav__mobile-services.open { display: block; }
.nav__mobile-services a {
  padding-left: 2.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav__mobile-cta {
  padding: 1rem 1.5rem 0;
}
.nav__mobile-cta .btn { width: 100%; text-align: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    linear-gradient(rgba(16, 87, 84, 0.78), rgba(16, 87, 84, 0.78)),
    url('/assets/images/home.jpg') center / cover no-repeat;
  color: #ffffff;
  min-height: 550px;
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
}

.hero > .container {
  width: 100%;
}

.hero__content {
  max-width: 600px;
}

.hero__eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1rem;
}

.hero h1 { color: #ffffff; margin-bottom: 1.25rem; }

.hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 0.5rem 0.875rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: #ffffff;
}

.announcement-banner {
  display: block;
  width: 100%;
  background: #E8B84B;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  padding: 10px 1rem;
  line-height: 1.5;
  transition: opacity 0.2s ease;
  position: sticky;
  top: 0;
  z-index: 101;
}

.announcement-banner:hover {
  opacity: 0.9;
}


/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: #ffffff;
  border: 1px solid #e2eaea;
  border-radius: 8px;
  padding: 2rem 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(16,87,84,0.12);
  transform: translateY(-3px);
  border-color: #105754;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background: #f0f8f7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #105754;
}

.service-card h3 { margin-bottom: 0.75rem; font-size: 1.1rem; }
.service-card p { color: #555; font-size: 0.9rem; flex: 1; margin-bottom: 1.25rem; }

.service-card__link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: #105754;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s;
}
.service-card:hover .service-card__link { gap: 0.6rem; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.why-grid--2col { grid-template-columns: repeat(2, 1fr); }

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

.why-item__icon {
  width: 72px;
  height: 72px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #105754;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.section--teal .why-item h3 { color: #ffffff; margin-bottom: 0.75rem; }
.section--teal .why-item p { color: rgba(255,255,255,0.8); font-size: 0.9rem; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step__img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1rem;
  border: 3px solid #105754;
}

.step__number {
  width: 56px;
  height: 56px;
  background: #105754;
  color: #ffffff;
  border-radius: 50%;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step h3 { margin-bottom: 0.75rem; }
.step p { color: #555; font-size: 0.9rem; }

/* ============================================================
   AREAS
   ============================================================ */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.area-tag {
  background: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: #105754;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid #e2eaea;
  border-radius: 8px;
  padding: 1.75rem;
}

.testimonial-card__stars {
  color: #f5a623;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-card__text {
  font-size: 0.925rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-card__author {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: #105754;
}

.testimonial-card__highlights {
  font-size: 0.775rem;
  color: #888;
  margin-top: 0.25rem;
}

/* Section on teal bg */
.section--light .testimonial-card { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

/* ============================================================
   QUOTE FORM
   ============================================================ */
.quote-form {
  max-width: 680px;
  margin: 0 auto;
}

.quote-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

.form-group label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
}

.section--teal .form-group label { color: rgba(255,255,255,0.9); }
.section:not(.section--teal) .form-group label { color: #333; }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  background: rgba(255,255,255,0.95);
  color: #222;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.section:not(.section--teal) .form-group input,
.section:not(.section--teal) .form-group select,
.section:not(.section--teal) .form-group textarea {
  border: 1px solid #d0d8d8;
  background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #105754;
  box-shadow: 0 0 0 3px rgba(16,87,84,0.15);
}

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

.form-group select { cursor: pointer; }

.form__submit { margin-top: 1.5rem; text-align: center; }
.form__submit .btn { min-width: 220px; }

.form__note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 0;
}

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #105754;
  display: block;
  margin-bottom: 0.75rem;
}
.section-header .section-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #105754;
  display: block;
  margin-bottom: 0.75rem;
}

.section--teal .section-header .section-label { color: rgba(255,255,255,0.7); }

.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: #555; font-size: 1.05rem; }
.section--teal .section-header p { color: rgba(255,255,255,0.8); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #ffffff;
  color: #555;
  padding: 4rem 0 2rem;
  border-top: 1px solid #e8e8e8;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.footer__logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0a3d3b;
}

.footer h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a3d3b;
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links a {
  font-size: 0.875rem;
  color: #666;
  transition: color 0.2s;
}
.footer__links a:hover { color: #105754; }

.footer__links-note {
  font-size: 0.8rem;
  color: #999;
}

.footer__credentials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__credential {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #666;
}

.footer__credential svg { color: #105754; flex-shrink: 0; }

.footer__bottom {
  border-top: 1px solid #e8e8e8;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: #999;
}

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  background: #105754;
  color: #ffffff;
  padding: 4rem 0 3.5rem;
}

.page-hero .breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.65); }
.page-hero .breadcrumb a:hover { color: #ffffff; }
.page-hero .breadcrumb span { margin: 0 0.4rem; }

.page-hero h1 { color: #ffffff; margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 640px; }

.page-hero--centered { text-align: center; }
.page-hero--centered p { margin-left: auto; margin-right: auto; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.divider {
  height: 1px;
  background: #e2eaea;
  margin: 0;
}

/* Trust bar */
.trust-bar {
  background: #f7f9f9;
  border-bottom: 1px solid #e2eaea;
  padding: 0.75rem 0;
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: #333;
}

.trust-item svg { color: #105754; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid--2col { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .hero { min-height: 450px; }
  .hero__content { max-width: 100%; text-align: center; }

  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .quote-form__grid { grid-template-columns: 1fr; }

  .why-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero__badges { flex-direction: column; align-items: center; }
  .trust-bar__inner { gap: 1.25rem; }
}

/* ============================================================
   CONTACT / GET A QUOTE PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}

.contact-sidebar {
  background: #f7f9f9;
  border: 1px solid #e2eaea;
  border-radius: 8px;
  padding: 2rem;
}

.contact-sidebar h3 { margin-bottom: 1.5rem; font-size: 1.1rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.contact-detail:last-child { margin-bottom: 0; }

.contact-detail svg { color: #105754; flex-shrink: 0; margin-top: 3px; }

.contact-detail strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #222;
  margin-bottom: 0.2rem;
}

.contact-detail p { margin: 0; font-size: 0.9rem; color: #555; }

.map-embed {
  width: 100%;
  overflow: hidden;
  height: 520px;
  border-top: 1px solid #e2eaea;
  border-bottom: 1px solid #e2eaea;
}

.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .map-embed { height: 340px; }
}

/* ============================================================
   POLISH: ANIMATIONS & ENHANCED INTERACTIONS
   ============================================================ */

/* --- Hero entrance (above-the-fold, CSS-driven) --- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow { animation: heroFadeUp 0.6s ease both; animation-delay: 0.3s; }
.hero h1       { animation: heroFadeUp 0.6s ease both; animation-delay: 0.45s; }
.hero__sub     { animation: heroFadeUp 0.6s ease both; animation-delay: 0.6s; }
.hero__cta     { animation: heroFadeUp 0.6s ease both; animation-delay: 0.75s; }
.hero__badges  { animation: heroFadeUp 0.6s ease both; animation-delay: 0.9s; }

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Enhanced button depth on hover --- */
.btn { transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.18s ease; }
.btn--primary:hover { background: #1a7a6e; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16,87,84,0.35); }
.btn--white:hover   { background: #f0faf9; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.btn--outline:hover { background: #105754; color: #ffffff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(16,87,84,0.22); }

/* --- Service card icon scale on hover --- */
.service-card__icon { transition: transform 0.25s ease; }
.service-card:hover .service-card__icon { transform: scale(1.15); }

/* --- Area tag lift on hover --- */
.area-tag { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.area-tag:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.13); }

/* --- Nav elevated shadow on scroll --- */
.nav--scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.13) !important; }

/* --- Page hero cascade (service pages) --- */
.page-hero .breadcrumb { animation: heroFadeUp 0.6s ease both; animation-delay: 0.3s; }
.page-hero h1           { animation: heroFadeUp 0.6s ease both; animation-delay: 0.45s; }
.page-hero p            { animation: heroFadeUp 0.6s ease both; animation-delay: 0.6s; }
.page-hero__cta         { animation: heroFadeUp 0.6s ease both; animation-delay: 0.75s; }

/* --- Respect reduced-motion preference --- */
@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow, .hero h1, .hero__sub, .hero__cta, .hero__badges { animation: none; }
  .page-hero .breadcrumb, .page-hero h1, .page-hero p, .page-hero__cta { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   FLIP CARDS (Homepage Services Grid)
   ============================================================ */

/* Tablet: 2-column (not on mobile — 768px block handles that) */
@media (max-width: 900px) and (min-width: 769px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

.flip-card {
  height: 320px;
  perspective: 1200px;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.flip-card.flipped:hover {
  transform: none;
  box-shadow: none;
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
  border-radius: 10px;
}

.flip-card.flipped .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card__front,
.flip-card__back {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* ---- Front ---- */
.flip-card__front { background: #111; }
.flip-card__front--teal { background: #105754; }

.flip-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.flip-card:hover .flip-card__img { transform: scale(1.04); }

.flip-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 55%);
  pointer-events: none;
}

.flip-card__front-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  pointer-events: none;
}

.flip-card__title {
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.flip-card__hint {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  align-self: flex-end;
}

/* ---- Back ---- */
.flip-card__back {
  background: #105754;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
}

.flip-card__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.flip-card__close:hover { background: rgba(255, 255, 255, 0.28); }

.flip-card__back-title {
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.25;
  padding-right: 2rem;
}

.flip-card__desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 0 0 1.5rem;
  flex: 1;
}

.flip-card__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #ffffff;
  background: transparent;
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.flip-card__cta:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #105754;
}

@media (prefers-reduced-motion: reduce) {
  .flip-card__inner { transition: none; }
  .flip-card__img { transition: none; }
  .flip-card:hover { transform: none; box-shadow: none; }
}

/* ============================================================
   SERVICE INTRO — two-column layout (service pages)
   ============================================================ */

.service-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: stretch;
  margin-top: 3rem;
}

.service-intro__image {
  align-self: stretch;
}

.service-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  display: block;
}

.service-intro__content .section-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #105754;
  display: block;
  margin-bottom: 0.75rem;
}

.service-intro__content h2 { margin-bottom: 1rem; }

.service-intro__content p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
}

.service-intro__content p + p { margin-top: 1.25rem; }

@media (max-width: 768px) {
  .service-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-intro__image img { height: 260px; }
}

/* ============================================================
   SCHEME CALLOUT (heat pump page)
   ============================================================ */

.scheme-callout {
  border-left: 4px solid #105754;
  background: #f0f7f7;
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 2rem;
  margin-top: 2.5rem;
}

.scheme-callout__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a3d3b;
  margin: 0 0 0.35rem;
}

.scheme-callout__amount {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #105754;
  margin: 0 0 1rem;
}

.scheme-callout__body {
  color: #444;
  font-size: 0.925rem;
  line-height: 1.75;
  margin: 0 0 1rem;
}

.scheme-callout__link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #105754;
  text-decoration: none;
}

.scheme-callout__link:hover { text-decoration: underline; }

/* ============================================================
   WHY-ITEM CARD VARIANT (heat pump suitability cards)
   ============================================================ */

.section--teal-light { background: #e8f4f3; }

.why-item--bordered {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.why-item--bordered .why-item__icon {
  width: 80px;
  height: 80px;
  background: #f0f8f7;
  color: #105754;
  margin-bottom: 1.5rem;
}

.why-item--bordered h3 {
  color: #0a3d3b;
  margin-bottom: 1rem;
}

.why-item--bordered p {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================================
   PROCESS CARDS — horizontal layout (heat pump page)
   ============================================================ */

.process-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 3rem;
}

.process-card {
  display: grid;
  grid-template-columns: 40% 60%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

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

.process-card__content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.process-card__content .step__number {
  margin: 0 0 1.25rem;
}

.process-card__content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.process-card__content p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}

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

  .process-card__image img {
    height: 220px;
  }
}

/* ============================================================
   AREAS PAGE — image hero & area cards
   ============================================================ */

.page-hero--image {
  background:
    linear-gradient(rgba(16, 87, 84, 0.65), rgba(16, 87, 84, 0.65)),
    url('/assets/images/glasgow.jpg') center 90% / cover no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.area-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.area-card {
  background: #ffffff;
  border-left: 4px solid #105754;
  border-radius: 12px;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 0 0 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
  transition: all 0.3s ease;
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  background: #f5fafa;
}

.area-card h3 {
  color: #0a3d3b;
  font-size: 1.1rem;
  margin: 0;
}

.area-card__towns {
  font-size: 0.82rem;
  color: #888;
  margin: 0;
  letter-spacing: 0.01em;
}

.area-card p:not(.area-card__towns) {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

.area-card__link {
  color: #105754;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.25rem;
}

.area-card__link:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .area-card { flex: 0 0 calc(50% - 0.75rem); max-width: calc(50% - 0.75rem); }
}

@media (max-width: 600px) {
  .area-card { flex: 0 0 100%; max-width: 100%; }
}

/* ============================================================
   QUOTE SECTION — background image with teal overlay
   ============================================================ */

#quote {
  background:
    linear-gradient(rgba(16, 87, 84, 0.78), rgba(16, 87, 84, 0.78)),
    url('/assets/images/cosy-home.webp') center / cover no-repeat;
}

/* ============================================================
   COVERAGE SECTION — background image with teal overlay
   ============================================================ */

#coverage {
  background:
    linear-gradient(rgba(16, 87, 84, 0.78), rgba(16, 87, 84, 0.78)),
    url('/assets/images/glasgow-skyline.jpg') center / cover no-repeat;
}

/* ============================================================
   SERVICE PAGE HEROES — background image with teal overlay
   ============================================================ */

.page-hero--boiler {
  background:
    linear-gradient(rgba(16, 87, 84, 0.78), rgba(16, 87, 84, 0.78)),
    url('/assets/images/boiler-upgrades.jpg') center / cover no-repeat;
}

.page-hero--central-heating {
  background:
    linear-gradient(rgba(16, 87, 84, 0.78), rgba(16, 87, 84, 0.78)),
    url('/assets/images/central-heating.jpg') center / cover no-repeat;
}

.page-hero--heat-pump {
  background:
    linear-gradient(rgba(16, 87, 84, 0.78), rgba(16, 87, 84, 0.78)),
    url('/assets/images/air-source-heat-pumps.jpg') center / cover no-repeat;
}

.page-hero--underfloor {
  background:
    linear-gradient(rgba(16, 87, 84, 0.78), rgba(16, 87, 84, 0.78)),
    url('/assets/images/underfloor-heating.jpg') center / cover no-repeat;
}

.page-hero--unvented {
  background:
    linear-gradient(rgba(16, 87, 84, 0.78), rgba(16, 87, 84, 0.78)),
    url('/assets/images/system-boiler.png') center / cover no-repeat;
}

.page-hero--commercial {
  background:
    linear-gradient(rgba(16, 87, 84, 0.78), rgba(16, 87, 84, 0.78)),
    url('/assets/images/commercial-boiler-room.jpg') center / cover no-repeat;
}

/* ============================================================
   MOBILE RESPONSIVENESS FIXES
   ============================================================ */

/* --- Commercial gas: 6-card grid — 2-col tablet, 1-col mobile --- */
@media (max-width: 1024px) {
  .services-grid--commercial { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .services-grid--commercial { grid-template-columns: 1fr; }
}

/* --- Flip cards: fix height and "find out more" visibility on mobile --- */
@media (max-width: 768px) {
  .flip-card { height: 280px; }

  .flip-card__front-content {
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
    row-gap: 0.25rem;
    align-content: flex-end;
  }

  .flip-card__title { font-size: 0.95rem; }

  .flip-card__hint {
    font-size: 0.7rem;
    white-space: normal;
  }
}

/* --- Homepage process steps: keep circular image correctly sized on mobile --- */
@media (max-width: 768px) {
  .step { padding: 1.5rem 1rem; }

  .step__img {
    width: 140px;
    height: 140px;
  }
}

/* --- Service page process cards: ensure image is visible when stacked --- */
@media (max-width: 768px) {
  .process-card__image {
    min-height: 200px;
  }

  .process-card__content {
    padding: 1.75rem;
  }
}

/* --- Section padding: tighten on small mobile --- */
@media (max-width: 480px) {
  .section { padding: 2.5rem 0; }
}

/* ============================================================
   ABOUT PAGE — SPECIFIC SECTION STYLES
   ============================================================ */

/* About hero: full-bleed background image */
.page-hero--about {
  background:
    linear-gradient(rgba(16, 87, 84, 0.78), rgba(16, 87, 84, 0.78)),
    url('/assets/images/glasgow-picture.jpg') center / cover no-repeat;
}

/* Values: white cards on light-teal background */
.why-item--card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 36px;
  text-align: center;
}

.why-item--card .why-item__icon {
  background: #f0f8f7;
  color: #105754;
  margin-bottom: 1.75rem;
}

.why-item--card h3 {
  margin-bottom: 1rem;
}

/* Credentials: full-bleed background image with white text */
.section--credentials {
  background:
    linear-gradient(rgba(16, 87, 84, 0.78), rgba(16, 87, 84, 0.78)),
    url('/assets/images/gas-safety.jpg') center / cover no-repeat;
  color: #ffffff;
}

.section--credentials h2,
.section--credentials h3,
.section--credentials h4 { color: #ffffff; }

.section--credentials .section-header .section-label { color: rgba(255, 255, 255, 0.7); }
.section--credentials .section-header p { color: rgba(255, 255, 255, 0.8); }
.section--credentials p { color: rgba(255, 255, 255, 0.85); }

/* Work With Us: full-bleed background image with white text */
.section--cta-bg {
  background:
    linear-gradient(rgba(16, 87, 84, 0.78), rgba(16, 87, 84, 0.78)),
    url('/assets/images/cosy-home.webp') center / cover no-repeat;
  color: #ffffff;
}

.section--cta-bg h2,
.section--cta-bg h3,
.section--cta-bg h4 { color: #ffffff; }

.section--cta-bg .section-header .section-label { color: rgba(255, 255, 255, 0.7); }
.section--cta-bg .section-header p { color: rgba(255, 255, 255, 0.8); }

/* Nav phone number */
.nav__phone {
  color: #105754;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.nav__phone:hover { text-decoration: underline; }
@media (max-width: 900px) { .nav__phone { display: none; } }

/* Hero phone link */
.hero__phone {
  margin-top: 1.25rem;
  font-size: 0.95rem;
}
.hero__phone a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-decoration: none;
}
.hero__phone a:hover { color: #ffffff; text-decoration: underline; }

/* Phone link inside form note (teal bg) */
.form__note a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}
.form__note a:hover { color: #ffffff; }
