/*
Theme Name: Thermlux V24
Author: Thermlux
Description: Thermlux Property Inspections — clean WordPress conversion of the supplied website.
Version: 24.0.0
Text Domain: thermlux
*/
:root{
  --bg: #080f16;
  --surface: #111a23;
  --surface-2: #1a2330;
  --line: #232c3a;
  --teal: #0e93a3;
  --teal-bright: #14b3b8;
  --teal-dark: #0b6f7d;
  --orange: #f58a18;
  --orange-dark: #d9740a;
  --text: #f3f5f7;
  --muted: #a6acb9;
  --whatsapp: #25d366;
}
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Inter', sans-serif;
  line-height:1.55;
}
h1,h2,h3,.display{
  font-family:'Oswald', sans-serif;
  text-transform:uppercase;
  letter-spacing:0.02em;
  font-weight:700;
  line-height:1.08;
}
.mono{ font-family:'JetBrains Mono', monospace; }
a{ color:inherit; text-decoration:none; }
.wrap{ max-width:1120px; margin:0 auto; padding:0 24px; }
.grad-text{
  background:linear-gradient(90deg, var(--teal-bright), var(--orange));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.arc-rule{
  height:3px;
  width:64px;
  border-radius:2px;
  background:linear-gradient(90deg, var(--teal), var(--orange));
  margin-bottom:16px;
}
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 28px;
  border-radius:8px;
  font-family:'Oswald', sans-serif;
  text-transform:uppercase;
  font-size:14px;
  letter-spacing:0.06em;
  font-weight:600;
  cursor:pointer;
  border:none;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn:focus-visible{ outline:2px solid var(--teal); outline-offset:2px; }
.btn-primary{
  background:var(--teal);
  color:#fff;
  box-shadow:0 8px 22px -10px rgba(14,147,163,.6);
}
.btn-primary:hover{ background:var(--teal-dark); }
.btn-ghost{
  background:transparent;
  color:var(--text);
  border:1px solid var(--line);
}
.btn-ghost:hover{ border-color:var(--teal); background:transparent; }

/* NAV */
nav{
  position:sticky; top:0; z-index:50;
  background:rgba(8,15,22,0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
nav .wrap{ display:flex; align-items:center; justify-content:space-between; height:76px; }
.logo-mark{ display:flex; align-items:center; gap:12px; }
.logo-mark img{ height:38px; width:auto; display:block; }
.logo-text{ display:flex; flex-direction:column; line-height:1.15; }
.logo-text .brand{ font-family:'Oswald',sans-serif; font-weight:700; font-size:17px; letter-spacing:0.03em; color:var(--text); }
.logo-text .sub{ font-family:'Inter',sans-serif; font-weight:500; font-size:9.5px; letter-spacing:0.14em; color:var(--muted); text-transform:uppercase; }
.navlinks{ display:none; gap:26px; font-size:14px; color:var(--muted); }
.navlinks a{ position:relative; padding-bottom:4px; }
.navlinks a.active{ color:var(--teal); }
.navlinks a.active::after{ content:''; position:absolute; left:0; right:0; bottom:-6px; height:2px; background:var(--teal); border-radius:2px; }
.navlinks a:hover{ color:var(--text); }
@media (min-width:900px){ .navlinks{ display:flex; } }

/* PAGE HEADER (non-home pages) */
.page-header{ padding:64px 0 40px; border-bottom:1px solid var(--line); }
.page-header .eyebrow{ color:var(--teal); font-size:13px; letter-spacing:0.14em; text-transform:uppercase; font-weight:600; margin-bottom:14px; }
.page-header h1{ font-size:clamp(32px,4.6vw,48px); margin-bottom:14px; }
.page-header p{ color:var(--muted); max-width:560px; font-size:16px; }


/* SERVICES PAGE HEADER — full-bleed inspection image with vignette + soft fade */
.services-page-header{
  position:relative;
  min-height:390px;
  display:flex;
  align-items:center;
  overflow:hidden;
  isolation:isolate;
  background-image:url('services-header.jpg');
  background-size:cover;
  background-position:center 48%;
  border-bottom:1px solid var(--line);
}
.services-page-header::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(8,15,22,.96) 0%, rgba(8,15,22,.84) 28%, rgba(8,15,22,.46) 51%, rgba(8,15,22,.10) 78%, rgba(8,15,22,.20) 100%),
    linear-gradient(180deg, rgba(8,15,22,.12) 0%, rgba(8,15,22,0) 22%, rgba(8,15,22,0) 67%, rgba(8,15,22,.72) 100%);
}
.services-page-header::after{
  content:"";
  position:absolute;
  inset:-12%;
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 48%, rgba(4,10,16,.20) 70%, rgba(4,10,16,.72) 100%),
    linear-gradient(180deg, rgba(4,10,16,.10) 0%, rgba(4,10,16,0) 55%, rgba(4,10,16,.88) 100%);
}
.services-page-header .wrap{ position:relative; z-index:3; width:100%; }
.services-page-header .page-header-overlay{
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:linear-gradient(90deg, rgba(8,15,22,.42) 0%, rgba(8,15,22,.18) 35%, rgba(8,15,22,0) 66%);
}
.services-page-header .eyebrow{ text-shadow:0 2px 10px rgba(0,0,0,.55); }
.services-page-header h1{ text-shadow:0 3px 18px rgba(0,0,0,.65); }
.services-page-header p{ color:#e1e5ea; text-shadow:0 2px 12px rgba(0,0,0,.70); }

/* LOCATIONS PAGE HEADER — Costa del Sol terrace / coastline image, matched to services header */
.locations-page-header{
  position:relative;
  min-height:390px;
  display:flex;
  align-items:center;
  overflow:hidden;
  isolation:isolate;
  background-image:url('locations-header.jpg');
  background-size:cover;
  background-position:center 52%;
  border-bottom:1px solid var(--line);
}
.locations-page-header::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(8,15,22,.90) 0%, rgba(8,15,22,.72) 25%, rgba(8,15,22,.36) 49%, rgba(8,15,22,.10) 76%, rgba(8,15,22,.18) 100%),
    linear-gradient(180deg, rgba(8,15,22,.10) 0%, rgba(8,15,22,0) 22%, rgba(8,15,22,0) 67%, rgba(8,15,22,.68) 100%);
}
.locations-page-header::after{
  content:"";
  position:absolute;
  inset:-12%;
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 48%, rgba(4,10,16,.18) 70%, rgba(4,10,16,.68) 100%),
    linear-gradient(180deg, rgba(4,10,16,.08) 0%, rgba(4,10,16,0) 55%, rgba(4,10,16,.82) 100%);
}
.locations-page-header .wrap{ position:relative; z-index:3; width:100%; }
.locations-page-header .page-header-overlay{
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:linear-gradient(90deg, rgba(8,15,22,.32) 0%, rgba(8,15,22,.12) 35%, rgba(8,15,22,0) 66%);
}
.locations-page-header .eyebrow{ text-shadow:0 2px 10px rgba(0,0,0,.55); }
.locations-page-header h1{ text-shadow:0 3px 18px rgba(0,0,0,.65); }
.locations-page-header p{ color:#e1e5ea; text-shadow:0 2px 12px rgba(0,0,0,.70); }

/* HERO (home only) */
.hero{ padding:56px 0 72px; position:relative; overflow:hidden; }
.hero-grid{ display:grid; gap:40px; align-items:center; }
@media (min-width:900px){ .hero-grid{ grid-template-columns:0.85fr 1.15fr; } }
.eyebrow{ color:var(--teal); font-size:13px; letter-spacing:0.14em; text-transform:uppercase; font-weight:600; margin-bottom:16px; }
.hero h1{ font-size:clamp(34px, 4.6vw, 50px); margin-bottom:20px; }
.hero-highlight{ color:var(--teal-bright); }
.hero p.lead{ color:var(--muted); font-size:16px; max-width:440px; margin-bottom:32px; }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; }

.heat-visual{
  border-radius:16px;
  overflow:hidden;
  position:relative;
  line-height:0;
}
.heat-visual img{ width:100%; height:100%; display:block; object-fit:cover; }

/* SECTION SHELL */
section{ padding:80px 0; }
.explore-section{ padding-top:24px; }
.section-head{ max-width:640px; margin-bottom:44px; }
.section-head h2{ font-size:clamp(26px,3.2vw,36px); }
.section-head p{ color:var(--muted); margin-top:12px; }

/* nav quick links (used on home to jump to pages) */
.quicklinks{ display:grid; gap:16px; grid-template-columns:repeat(2,1fr); }
@media (min-width:760px){ .quicklinks{ grid-template-columns:repeat(4,1fr); } }
.quicklink{
  background:var(--surface); border:1px solid var(--line); border-radius:14px;
  padding:22px; text-align:left; transition:border-color .15s ease;
}
.quicklink:hover{ border-color:var(--teal); }
.quicklink .num{ font-family:'JetBrains Mono',monospace; color:var(--teal); font-size:12px; margin-bottom:10px; display:block; }
.quicklink h4{ font-family:'Oswald',sans-serif; text-transform:uppercase; font-size:15px; margin-bottom:6px; }
.quicklink p{ font-size:13px; color:var(--muted); }

/* SERVICES */
.cat-grid{ display:grid; gap:24px; }
@media (min-width:760px){ .cat-grid{ grid-template-columns:1fr 1fr; } }
.cat-card{ background:var(--surface); border:1px solid var(--line); border-radius:20px; padding:32px; }
.cat-card .tag{ font-size:12px; letter-spacing:.1em; text-transform:uppercase; font-weight:600; margin-bottom:8px; }
.cat-card.property .tag{ color:var(--teal); }
.cat-card.diagnostics .tag{ color:var(--orange); }
.cat-card h3{ font-size:22px; margin-bottom:18px; }
.svc-list{ list-style:none; display:flex; flex-direction:column; gap:12px; }
.svc-list li{ display:flex; align-items:flex-start; gap:14px; padding:16px; background:var(--surface-2); border-radius:14px; font-size:14.5px; }
.svc-icon{ width:44px; height:44px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.svc-icon svg{ width:20px; height:20px; fill:none; stroke:#fff; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.property .svc-icon{ background:var(--teal); }
.diagnostics .svc-icon{ background:var(--orange); }
.svc-body{ display:flex; align-items:flex-start; gap:10px; }
.svc-list p{ font-size:12.5px; color:var(--muted); margin-top:2px; }
.dot{ width:8px; height:8px; border-radius:50%; flex-shrink:0; margin-top:6px; }
.property .dot{ background:var(--teal); }
.diagnostics .dot{ background:var(--orange); }

/* PRICING PAGE HEADER — roof image, matched to Tools and Locations */
.pricing-page-header{
  position:relative;
  min-height:390px;
  display:flex;
  align-items:center;
  overflow:hidden;
  isolation:isolate;
  background-image:url('pricing-header.jpg');
  background-size:cover;
  background-position:center 50%;
  border-bottom:1px solid var(--line);
}
.pricing-page-header::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(8,15,22,.90) 0%, rgba(8,15,22,.70) 25%, rgba(8,15,22,.34) 49%, rgba(8,15,22,.10) 76%, rgba(8,15,22,.20) 100%),
    linear-gradient(180deg, rgba(8,15,22,.10) 0%, rgba(8,15,22,0) 22%, rgba(8,15,22,0) 67%, rgba(8,15,22,.72) 100%);
}
.pricing-page-header::after{
  content:"";
  position:absolute;
  inset:-12%;
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 48%, rgba(4,10,16,.20) 70%, rgba(4,10,16,.70) 100%),
    linear-gradient(180deg, rgba(4,10,16,.08) 0%, rgba(4,10,16,0) 55%, rgba(4,10,16,.84) 100%);
}
.pricing-page-header .wrap{ position:relative; z-index:3; width:100%; }
.pricing-page-header .page-header-overlay{
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:linear-gradient(90deg, rgba(8,15,22,.34) 0%, rgba(8,15,22,.12) 35%, rgba(8,15,22,0) 66%);
}
.pricing-page-header .eyebrow{ text-shadow:0 2px 10px rgba(0,0,0,.55); }
.pricing-page-header h1{ text-shadow:0 3px 18px rgba(0,0,0,.65); }
.pricing-page-header p{ color:#e1e5ea; text-shadow:0 2px 12px rgba(0,0,0,.70); }

@media (max-width:899px){
  .pricing-page-header{
    min-height:360px;
    padding:56px 0 44px;
    background-position:center center;
  }
  .pricing-page-header::before{
    background:
      linear-gradient(90deg, rgba(8,15,22,.92) 0%, rgba(8,15,22,.64) 52%, rgba(8,15,22,.24) 100%),
      linear-gradient(180deg, rgba(8,15,22,.08) 0%, rgba(8,15,22,0) 50%, rgba(8,15,22,.78) 100%);
  }
  .pricing-page-header .page-header-overlay{
    background:linear-gradient(90deg, rgba(8,15,22,.30) 0%, rgba(8,15,22,.06) 100%);
  }
}

/* PRICING TOOL */
.price-tool{ background:var(--surface); border:1px solid var(--line); border-radius:20px; padding:36px; }
.step-label{ font-size:12px; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); margin-bottom:12px; font-weight:600; }
.chip-row{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:32px; }
.chip{ padding:10px 18px; border-radius:999px; border:1px solid var(--line); background:var(--surface-2); color:var(--text); font-size:14px; cursor:pointer; transition:all .15s ease; }
.chip.active{ border-color:transparent; background:var(--teal); color:#fff; font-weight:600; }
.chip:focus-visible{ outline:2px solid var(--teal); outline-offset:2px; }
.result{ margin-top:8px; padding:28px; border-radius:14px; background:var(--surface-2); display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; }
.result .price{ font-family:'JetBrains Mono',monospace; font-size:40px; font-weight:600; }
.result .price .cur{ font-size:20px; color:var(--muted); }
.result .desc{ color:var(--muted); font-size:14px; max-width:340px; }

/* LOCATIONS */
.loc-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
@media (min-width:700px){ .loc-grid{ grid-template-columns:repeat(4,1fr); } }
.loc-card{ padding:22px 16px; border-radius:12px; background:var(--surface); border:1px solid var(--line); text-align:center; font-family:'Oswald',sans-serif; font-size:15px; letter-spacing:.02em; transition:border-color .15s ease; }
.loc-card:hover{ border-color:var(--teal); }
.loc-card small{ display:block; font-family:'Inter',sans-serif; color:var(--muted); font-size:11.5px; margin-top:4px; letter-spacing:0; text-transform:none; }

/* TOOLS */
.tool-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
@media (min-width:760px){ .tool-grid{ grid-template-columns:repeat(5,1fr); } }
.tool-card{ background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:24px 16px; text-align:center; }
.tool-icon{ width:42px; height:42px; margin:0 auto 14px; border-radius:50%; background:linear-gradient(135deg, var(--teal), var(--orange)); display:flex; align-items:center; justify-content:center; font-size:19px; }
.tool-card h4{ font-family:'Oswald',sans-serif; font-size:14px; text-transform:uppercase; letter-spacing:.03em; margin-bottom:6px; }
.tool-card p{ font-size:12.5px; color:var(--muted); }

/* ABOUT */
.about-grid{ display:grid; gap:36px; align-items:start; }
@media (min-width:860px){ .about-grid{ grid-template-columns:0.8fr 1.2fr; } }
.about-card{ background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:28px; }
.about-card .name{ font-family:'Oswald',sans-serif; font-size:20px; margin-bottom:2px; }
.about-card .role{ color:var(--teal); font-size:13px; text-transform:uppercase; letter-spacing:.08em; margin-bottom:20px; }
.badge-row{ display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.badge{ font-size:11.5px; padding:6px 10px; border-radius:6px; background:var(--surface-2); color:var(--muted); border:1px solid var(--line); }
.about-copy p{ color:var(--muted); margin-bottom:16px; }
.about-copy p:last-child{ margin-bottom:0; }

/* BLOG */
.blog-grid{ display:grid; gap:16px; }
@media (min-width:700px){ .blog-grid{ grid-template-columns:repeat(3,1fr); } }
.blog-card{ background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:22px; }
.blog-card .kicker{ font-size:11px; color:var(--teal); text-transform:uppercase; letter-spacing:.08em; font-weight:600; margin-bottom:10px; }
.blog-card h4{ font-size:15.5px; line-height:1.4; font-weight:500; font-family:'Inter',sans-serif; text-transform:none; letter-spacing:0; }
.blog-card.hub{ background:linear-gradient(160deg, #0e2426, var(--surface)); border-color:var(--teal); grid-column:1/-1; }
.blog-card.hub h4{ font-size:19px; }

/* CONTACT */
.contact-grid{ display:grid; gap:32px; }
@media (min-width:900px){ .contact-grid{ grid-template-columns:1fr 1fr; } }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:12.5px; color:var(--muted); margin-bottom:6px; text-transform:uppercase; letter-spacing:.05em; }
.field input, .field select, .field textarea{ width:100%; padding:12px 14px; border-radius:8px; background:var(--surface-2); border:1px solid var(--line); color:var(--text); font-family:'Inter',sans-serif; font-size:14.5px; }
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--teal); }
.field textarea{ resize:vertical; min-height:80px; }
.whatsapp-preview{ background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:24px; display:flex; flex-direction:column; gap:14px; }
.wa-head{ display:flex; align-items:center; gap:10px; }
.wa-icon{ width:34px; height:34px; border-radius:50%; background:rgba(37,211,102,0.15); color:var(--whatsapp); display:flex; align-items:center; justify-content:center; font-size:16px; }
.wa-body{ font-size:13.5px; color:var(--muted); border-top:1px solid var(--line); padding-top:14px; display:flex; flex-direction:column; gap:6px; }
.wa-body b{ color:var(--text); font-weight:500; }
.wa-placeholder{ color:var(--muted); font-size:13.5px; font-style:italic; }

/* LEGAL */
.legal-block{ margin-bottom:48px; }
.legal-block h3{ font-size:20px; margin-bottom:14px; color:var(--teal); }
.legal-block p, .legal-block li{ color:var(--muted); font-size:14.5px; margin-bottom:10px; }
.legal-block ol{ padding-left:20px; }
.legal-block li{ margin-bottom:14px; }
.legal-nav{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:40px; }
.legal-nav a{ font-size:13px; padding:8px 14px; border-radius:999px; border:1px solid var(--line); color:var(--muted); }
.legal-nav a:hover{ border-color:var(--teal); color:var(--text); }

/* FOOTER */
footer{ border-top:1px solid var(--line); padding:48px 0 32px; margin-top:40px; }
.foot-grid{ display:grid; gap:32px; margin-bottom:32px; }
@media (min-width:760px){ .foot-grid{ grid-template-columns:1.4fr 1fr 1fr; } }
.foot-col h5{ font-size:12.5px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin-bottom:14px; }
.foot-col a, .foot-col li{ display:block; font-size:14px; color:var(--text); margin-bottom:10px; list-style:none; }
.foot-col a:hover{ color:var(--teal); }
.foot-logo .logo-mark{ margin-bottom:14px; }
.foot-logo img{ height:34px; }
.foot-contact-row{ display:flex; align-items:center; gap:10px; margin-bottom:12px; color:var(--text); font-size:14px; }
.foot-contact-row svg{ width:16px; height:16px; flex-shrink:0; stroke:var(--teal); fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.foot-bottom{ display:flex; flex-direction:column; align-items:center; gap:16px; color:var(--muted); font-size:12.5px; border-top:1px solid var(--line); padding-top:24px; text-align:center; }
.social-icons{ display:flex; gap:14px; align-items:center; justify-content:center; }
.social-icons a{ display:flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:50%; border:1px solid var(--teal); color:var(--teal-bright); transition:color .15s, border-color .15s, background .15s; }
.social-icons a:hover{ color:#fff; border-color:var(--teal-bright); background:var(--teal); }
.social-icons svg{ width:21px; height:21px; fill:currentColor; }
.social-icons a[aria-label="Email"] svg{ fill:none; }


/* =========================================================
   THERMLUX MOBILE EXPERIENCE — V5
   Desktop layout remains unchanged above 899px.
   ========================================================= */

/* Mobile navigation controls */
.menu-toggle{
  display:none;
  width:44px;
  height:44px;
  padding:9px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--surface);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
}
.menu-toggle span{
  display:block;
  width:20px;
  height:2px;
  border-radius:2px;
  background:var(--text);
  transition:transform .18s ease, opacity .18s ease;
}
.menu-toggle.is-open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2){ opacity:0; }
.menu-toggle.is-open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.mobile-menu{ display:none; }

@media (max-width:899px){
  body{ overflow-x:hidden; }

  .wrap{
    width:100%;
    max-width:none;
    padding-left:18px;
    padding-right:18px;
  }

  nav{
    position:sticky;
    top:0;
  }
  nav .wrap{
    height:64px;
    gap:10px;
  }
  .logo-mark{ gap:8px; min-width:0; }
  .logo-mark img{ height:32px; }
  .logo-text .brand{ font-size:15px; }
  .logo-text .sub{ font-size:8px; letter-spacing:.11em; }

  /* Hide the desktop navigation and desktop Book Now button. */
  .navlinks{ display:none !important; }
  nav > .wrap > .btn{ display:none; }
  .menu-toggle{ display:flex; margin-left:auto; }

  /* Slide/drop-down mobile navigation. */
  .mobile-menu{
    position:absolute;
    top:64px;
    left:10px;
    right:10px;
    display:flex;
    flex-direction:column;
    gap:4px;
    padding:10px;
    background:rgba(17,26,35,.98);
    border:1px solid var(--line);
    border-radius:12px;
    box-shadow:0 18px 45px rgba(0,0,0,.45);
    opacity:0;
    visibility:hidden;
    transform:translateY(-8px);
    pointer-events:none;
    transition:opacity .16s ease, transform .16s ease, visibility .16s ease;
  }
  .mobile-menu.is-open{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
    pointer-events:auto;
  }
  .mobile-menu a{
    display:block;
    padding:13px 14px;
    border-radius:8px;
    color:var(--text);
    font-family:'Oswald',sans-serif;
    text-transform:uppercase;
    letter-spacing:.04em;
    font-size:15px;
  }
  .mobile-menu a:hover,
  .mobile-menu a:focus{
    background:var(--surface-2);
    color:var(--teal-bright);
  }
  .mobile-menu .mobile-book{
    margin-top:5px;
    background:var(--teal);
    text-align:center;
    font-weight:600;
  }

  /* Home hero: text first, image second, with comfortable reading width. */
  .hero{
    padding:34px 0 48px;
  }
  .hero-grid{
    grid-template-columns:1fr !important;
    gap:28px;
  }
  .hero h1{
    font-size:clamp(34px,10vw,44px);
    line-height:1.02;
    margin-bottom:18px;
  }
  .hero p.lead{
    max-width:none;
    font-size:15px;
    line-height:1.6;
    margin-bottom:24px;
  }
  .hero-ctas{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }
  .hero-ctas .btn{
    width:100%;
    justify-content:center;
    min-height:48px;
  }
  .heat-visual{
    width:100%;
    aspect-ratio:4/3;
    max-height:none;
    border-radius:14px;
  }
  .heat-visual img{
    width:100%;
    height:100%;
    object-fit:cover;
  }

  section{ padding:52px 0; }
  .section-head{
    margin-bottom:28px;
  }
  .section-head h2{
    font-size:29px;
  }
  .section-head p{
    font-size:14px;
  }

  /* One-column cards are much easier to scan on phones. */
  .quicklinks{
    grid-template-columns:1fr;
    gap:10px;
  }
  .quicklink{
    padding:17px 18px;
    border-radius:12px;
    display:grid;
    grid-template-columns:38px 1fr;
    column-gap:10px;
    align-items:start;
  }
  .quicklink .num{
    grid-row:1 / span 2;
    margin:2px 0 0;
  }
  .quicklink h4{
    margin-bottom:3px;
  }

  /* Locations page image header — preserve the coastline and terrace on small screens. */
  .locations-page-header{
    min-height:360px;
    padding:56px 0 44px;
    background-position:58% center;
  }
  .locations-page-header::before{
    background:
      linear-gradient(90deg, rgba(8,15,22,.92) 0%, rgba(8,15,22,.78) 40%, rgba(8,15,22,.40) 72%, rgba(8,15,22,.18) 100%),
      linear-gradient(180deg, rgba(8,15,22,.08), rgba(8,15,22,0) 48%, rgba(8,15,22,.76) 100%);
  }
  .locations-page-header::after{
    background:
      radial-gradient(ellipse at center, rgba(0,0,0,0) 44%, rgba(4,10,16,.22) 72%, rgba(4,10,16,.72) 100%),
      linear-gradient(180deg, rgba(4,10,16,.06), rgba(4,10,16,0) 52%, rgba(4,10,16,.86) 100%);
  }

  /* Services page image header — keep the subject on the right and soften the edges on small screens. */
  .services-page-header{
    min-height:360px;
    padding:56px 0 44px;
    background-position:64% center;
  }
  .services-page-header::before{
    background:
      linear-gradient(90deg, rgba(8,15,22,.96) 0%, rgba(8,15,22,.86) 42%, rgba(8,15,22,.48) 72%, rgba(8,15,22,.20) 100%),
      linear-gradient(180deg, rgba(8,15,22,.10), rgba(8,15,22,0) 48%, rgba(8,15,22,.78) 100%);
  }
  .services-page-header::after{
    background:
      radial-gradient(ellipse at center, rgba(0,0,0,0) 44%, rgba(4,10,16,.25) 72%, rgba(4,10,16,.75) 100%),
      linear-gradient(180deg, rgba(4,10,16,.08), rgba(4,10,16,0) 52%, rgba(4,10,16,.90) 100%);
  }

  /* Non-home page headers. */
  .page-header{
    padding:42px 0 28px;
  }
  .page-header h1{
    font-size:36px;
  }
  .page-header p{
    font-size:14.5px;
    line-height:1.6;
  }

  /* Services */
  .cat-grid,
  .about-grid,
  .contact-grid{
    grid-template-columns:1fr !important;
    gap:16px;
  }
  .cat-card{
    padding:20px;
    border-radius:15px;
  }
  .cat-card h3{
    font-size:20px;
    margin-bottom:14px;
  }
  .svc-list{
    gap:9px;
  }
  .svc-list li{
    padding:13px;
    gap:10px;
    font-size:14px;
  }
  .svc-icon{
    width:38px;
    height:38px;
  }
  .svc-icon svg{
    width:18px;
    height:18px;
  }

  /* Pricing */
  .price-tool{
    padding:20px 16px;
    border-radius:15px;
  }
  .chip-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-bottom:24px;
  }
  .chip{
    min-height:44px;
    padding:9px 10px;
    font-size:13px;
    text-align:center;
  }
  .result{
    align-items:stretch;
    flex-direction:column;
    padding:20px;
    gap:12px;
  }
  .result .price{
    font-size:34px;
  }
  .result .desc{
    max-width:none;
    font-size:13px;
  }
  .result .btn{
    width:100%;
    justify-content:center;
  }

  /* Locations and tools */
  .loc-grid{
    grid-template-columns:1fr 1fr;
    gap:9px;
  }
  .loc-card{
    padding:16px 8px;
    font-size:14px;
  }
  .loc-card small{
    font-size:10.5px;
  }
  .tool-grid{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .tool-card{
    padding:18px 10px;
  }
  .tool-card h4{
    font-size:13px;
  }
  .tool-card p{
    font-size:11.5px;
  }

  /* About */
  .about-card{
    padding:20px;
    border-radius:14px;
  }
  .about-copy p{
    font-size:14px;
  }

  /* Blog */
  .blog-grid{
    grid-template-columns:1fr !important;
  }
  .blog-card.hub{
    grid-column:auto;
  }

  /* Contact */
  .field input,
  .field select,
  .field textarea{
    font-size:16px; /* avoids iOS Safari zoom */
    min-height:46px;
  }
  .field textarea{
    min-height:110px;
  }
  .whatsapp-preview{
    padding:18px;
  }

  /* Legal */
  .legal-block{
    margin-bottom:34px;
  }
  .legal-block p,
  .legal-block li{
    font-size:14px;
  }
  .legal-nav{
    gap:7px;
    margin-bottom:28px;
  }
  .legal-nav a{
    font-size:12px;
    padding:7px 11px;
  }

  /* Footer */
  footer{
    padding:38px 0 24px;
    margin-top:24px;
  }
  .foot-grid{
    gap:25px;
    grid-template-columns:1fr !important;
  }
  .foot-bottom{
    gap:13px;
    font-size:11.5px;
  }
  .social-icons{ gap:16px; }
  .social-icons a{ width:44px; height:44px; }
  .social-icons svg{ width:22px; height:22px; }

  /* Make all ordinary CTA buttons finger-friendly. */
  .btn{
    min-height:46px;
    padding:12px 18px;
  }

  /* Prevent long words/URLs from breaking the mobile layout. */
  p, li, a, h1, h2, h3, h4, h5{
    overflow-wrap:anywhere;
  }
}

/* Very small phones */
@media (max-width:380px){
  .wrap{ padding-left:14px; padding-right:14px; }
  nav .wrap{ height:60px; }
  .mobile-menu{ top:60px; }
  .logo-mark img{ height:29px; }
  .logo-text .brand{ font-size:14px; }
  .hero h1{ font-size:32px; }
  .loc-grid,
  .tool-grid{
    grid-template-columns:1fr;
  }
  .chip-row{
    grid-template-columns:1fr;
  }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion:reduce){
  *, *::before, *::after{
    scroll-behavior:auto !important;
    transition:none !important;
  }
}


/* =========================================================
   THERMLUX HOME QUICKLINK ICONS — V6
   ========================================================= */
.quicklink{
  position:relative;
  overflow:hidden;
}
.quicklink .quick-icon{
  width:42px;
  height:42px;
  min-width:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(31,190,205,.28);
  border-radius:11px;
  background:linear-gradient(145deg, rgba(20,190,205,.13), rgba(255,178,76,.06));
  color:var(--teal-bright);
  box-shadow:inset 0 0 18px rgba(20,190,205,.04);
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}
.quicklink .quick-icon svg{
  width:25px;
  height:25px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.quicklink .quicklink-copy{
  min-width:0;
}
.quicklink:hover .quick-icon{
  transform:translateY(-2px) scale(1.04);
  border-color:rgba(31,190,205,.65);
  background:linear-gradient(145deg, rgba(20,190,205,.2), rgba(255,178,76,.09));
}
.quicklink h4{
  position:relative;
}
@media (max-width:899px){
  .quicklink{
    grid-template-columns:44px 1fr;
    column-gap:12px;
    align-items:center;
  }
  .quicklink .quick-icon{
    grid-row:1 / span 2;
    width:44px;
    height:44px;
    min-width:44px;
  }
  .quicklink .quick-icon svg{
    width:25px;
    height:25px;
  }
  .quicklink-copy{
    padding-top:1px;
  }
}

/* TOOLS PAGE HEADER — inspection equipment image, matched to Services and Locations */
.tools-page-header{
  position:relative;
  min-height:390px;
  display:flex;
  align-items:center;
  overflow:hidden;
  isolation:isolate;
  background-image:url('tools-header.jpg');
  background-size:cover;
  background-position:center 48%;
  border-bottom:1px solid var(--line);
}
.tools-page-header::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(8,15,22,.90) 0%, rgba(8,15,22,.70) 25%, rgba(8,15,22,.34) 49%, rgba(8,15,22,.10) 76%, rgba(8,15,22,.20) 100%),
    linear-gradient(180deg, rgba(8,15,22,.10) 0%, rgba(8,15,22,0) 22%, rgba(8,15,22,0) 67%, rgba(8,15,22,.72) 100%);
}
.tools-page-header::after{
  content:"";
  position:absolute;
  inset:-12%;
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 48%, rgba(4,10,16,.20) 70%, rgba(4,10,16,.70) 100%),
    linear-gradient(180deg, rgba(4,10,16,.08) 0%, rgba(4,10,16,0) 55%, rgba(4,10,16,.84) 100%);
}
.tools-page-header .wrap{ position:relative; z-index:3; width:100%; }
.tools-page-header .page-header-overlay{
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:linear-gradient(90deg, rgba(8,15,22,.34) 0%, rgba(8,15,22,.12) 35%, rgba(8,15,22,0) 66%);
}
.tools-page-header .eyebrow{ text-shadow:0 2px 10px rgba(0,0,0,.55); }
.tools-page-header h1{ text-shadow:0 3px 18px rgba(0,0,0,.65); }
.tools-page-header p{ color:#e1e5ea; text-shadow:0 2px 12px rgba(0,0,0,.70); }

@media (max-width:899px){
  .tools-page-header{
    min-height:360px;
    padding:56px 0 44px;
    background-position:62% center;
  }
  .tools-page-header::before{
    background:
      linear-gradient(90deg, rgba(8,15,22,.94) 0%, rgba(8,15,22,.80) 40%, rgba(8,15,22,.42) 72%, rgba(8,15,22,.18) 100%),
      linear-gradient(180deg, rgba(8,15,22,.08), rgba(8,15,22,0) 48%, rgba(8,15,22,.78) 100%);
  }
  .tools-page-header::after{
    background:
      radial-gradient(ellipse at center, rgba(0,0,0,0) 44%, rgba(4,10,16,.24) 72%, rgba(4,10,16,.74) 100%),
      linear-gradient(180deg, rgba(4,10,16,.06), rgba(4,10,16,0) 52%, rgba(4,10,16,.88) 100%);
  }
}

/* THERMLUX V15 NAVIGATION — one header, one menu, no duplicate template markup */
.thermlux-nav{position:sticky;top:0;z-index:99999;width:100%;}
.thermlux-nav-wrap{position:relative;z-index:2;}
.thermlux-book-now{padding:10px 20px;font-size:12.5px;}
@media (min-width:900px){#thermlux-menu-toggle{display:none!important;}#thermlux-mobile-menu{display:none!important;}}
@media (max-width:899px){
 .thermlux-nav-wrap{height:64px;}
 .thermlux-book-now{display:none!important;}
 #thermlux-menu-toggle{display:flex;margin-left:auto;position:relative;z-index:100000;}
 #thermlux-mobile-menu{position:absolute;top:64px;left:0;right:0;display:block;max-height:0;overflow:hidden;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-6px);transition:max-height .22s ease,opacity .16s ease,transform .16s ease,visibility .16s ease;background:rgba(8,15,22,.98);border-bottom:1px solid var(--line);box-shadow:0 18px 40px rgba(0,0,0,.4);}
 #thermlux-mobile-menu.is-open{max-height:520px;opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0);}
 .mobile-menu-inner{display:flex;flex-direction:column;gap:4px;padding-top:10px;padding-bottom:12px;}
 #thermlux-mobile-menu a{display:block;padding:13px 14px;border-radius:8px;color:var(--text);font-family:'Oswald',sans-serif;text-transform:uppercase;letter-spacing:.04em;font-size:15px;}
 #thermlux-mobile-menu a:hover,#thermlux-mobile-menu a:focus{background:var(--surface-2);color:var(--teal-bright);}
 #thermlux-mobile-menu .mobile-book{margin-top:5px;background:var(--teal);text-align:center;font-weight:600;}
}

/* V16 blog article */
.featured-article{ padding:54px 0 24px; }
.article-card{ background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:clamp(24px,4vw,48px); max-width:900px; margin:0 auto; box-shadow:0 18px 50px rgba(0,0,0,.18); }
.article-meta{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:16px; }
.article-meta span{ color:var(--teal-bright); border:1px solid rgba(20,179,184,.35); background:rgba(14,147,163,.08); border-radius:999px; padding:6px 10px; font-size:11px; text-transform:uppercase; letter-spacing:.08em; font-weight:600; }
.article-card h2{ font-size:clamp(30px,4.4vw,46px); line-height:1.08; margin-bottom:16px; }
.article-intro{ color:var(--muted); font-size:18px; line-height:1.65; max-width:760px; margin-bottom:32px; }
.article-body{ max-width:780px; }
.article-body p{ color:#d6dbe2; margin:0 0 18px; }
.article-body h3{ font-size:24px; margin:38px 0 14px; }
.article-body ul{ margin:0 0 22px 22px; color:#d6dbe2; }
.article-body li{ margin:8px 0; padding-left:4px; }
.article-note{ font-size:13px; color:var(--muted)!important; border-left:3px solid var(--teal); padding-left:14px; }
.cost-table{ border:1px solid var(--line); border-radius:12px; overflow:hidden; margin:20px 0 24px; }
.cost-row{ display:grid; grid-template-columns:170px 1fr; gap:20px; padding:14px 16px; border-bottom:1px solid var(--line); }
.cost-row:last-child{ border-bottom:0; }
.cost-row strong{ color:var(--teal-bright); font-family:'JetBrains Mono',monospace; font-size:14px; }
.cost-row span{ color:#d6dbe2; font-size:14px; }
.article-takeaway{ margin-top:36px; padding:24px; border:1px solid var(--teal); border-radius:14px; background:linear-gradient(160deg,#0e2426,var(--surface)); }
.article-takeaway .kicker{ color:var(--teal-bright); font-size:11px; text-transform:uppercase; letter-spacing:.1em; font-weight:700; margin-bottom:10px; }
.article-takeaway p{ margin-bottom:10px; }
.article-takeaway p:last-child{ margin-bottom:0; font-size:19px; }
@media (max-width:600px){
  .featured-article{ padding-top:34px; }
  .article-card{ padding:22px 18px; border-radius:12px; }
  .article-card h2{ font-size:30px; }
  .article-intro{ font-size:16px; }
  .cost-row{ grid-template-columns:1fr; gap:5px; }
}


/* Version 17 blog/SEO enhancements */
.article-body a{ color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.article-body a:hover{ opacity:.85; }
.article-card .article-intro{ font-size:19px; line-height:1.65; color:#eef1f5; }
.blog-card h4 a{ color:inherit; text-decoration:none; }
.blog-card h4 a:hover{ text-decoration:underline; text-underline-offset:3px; }

/* V18: Fuengirola plumbing article card */
.blog-card-link{display:block;color:inherit;text-decoration:none;transition:transform .18s ease,border-color .18s ease,background .18s ease;}
.blog-card-link:hover{transform:translateY(-3px);border-color:var(--teal-bright);}
.fuengirola-plumbing-card{grid-column:span 1;background:linear-gradient(160deg,#0e2426,var(--surface));border-color:var(--teal);}
.fuengirola-plumbing-card h4{font-size:18px;margin-bottom:10px;}
.fuengirola-plumbing-card p{color:var(--muted);font-size:13px;line-height:1.55;margin:0 0 16px;}
.fuengirola-plumbing-card .read-more{color:var(--teal-bright);font-size:12px;font-weight:600;letter-spacing:.04em;}
.plumbing-article-page{padding-top:40px;}
.plumbing-article-page + section{padding-top:0;}


/* THERMLUX V22 — mobile navigation portal */
.thermlux-mobile-drawer{display:none;}
@media (max-width:899px){
 .thermlux-mobile-drawer{display:block!important;position:fixed!important;top:64px!important;left:0!important;right:0!important;width:100vw!important;height:calc(100dvh - 64px)!important;max-height:none!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;z-index:2147483647!important;padding:12px 14px 28px!important;box-sizing:border-box!important;background:rgba(8,15,22,.99)!important;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;box-shadow:0 18px 45px rgba(0,0,0,.55)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(-6px)!important;transition:opacity .16s ease,transform .16s ease,visibility .16s ease!important;}
 .thermlux-mobile-drawer.is-open{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translateY(0)!important;}
 .thermlux-mobile-drawer-inner{width:100%!important;max-width:520px!important;margin:0 auto!important;display:flex!important;flex-direction:column!important;gap:5px!important;}
 .thermlux-mobile-drawer a{display:flex!important;align-items:center!important;min-height:50px!important;width:100%!important;box-sizing:border-box!important;padding:13px 16px!important;color:var(--text)!important;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:9px!important;font-family:'Oswald',sans-serif!important;text-transform:uppercase!important;letter-spacing:.04em!important;font-size:16px!important;line-height:1.2!important;text-decoration:none!important;}
 .thermlux-mobile-drawer a:active,.thermlux-mobile-drawer a:focus,.thermlux-mobile-drawer a:hover{color:var(--teal-bright)!important;background:var(--surface-2)!important;}
 html.thermlux-mobile-menu-open,html.thermlux-mobile-menu-open body{overflow:hidden!important;}
}
@media (min-width:900px){.thermlux-mobile-drawer,#thermlux-v22-menu-toggle{display:none!important;}}
