/*
Theme Name: TrueFlow Drainage Child
Theme URI: https://example.com/
Description: Custom child theme for TrueFlow Drainage LTD, built to run with Hello Elementor as the parent theme.
Author: TrueFlow Drainage LTD
Template: hello-elementor
Version: 1.3.0
Text Domain: trueflow-drainage
*/

:root{
  --tf-navy:#073B5C;
  --tf-blue:#0B86A6;
  --tf-cyan:#22B8C9;
  --tf-green:#49B96E;
  --tf-dark:#062A40;
  --tf-text:#243447;
  --tf-muted:#64748B;
  --tf-light:#F5F9FC;
  --tf-white:#FFFFFF;
  --tf-border:#DCE7EF;
  --tf-radius:16px;
  --tf-shadow:0 12px 35px rgba(11,31,58,.10);
  --tf-container:1180px;
}

html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--tf-text);
  background:#fff;
  font-family:Arial,Helvetica,sans-serif;
  line-height:1.7;
}
a{color:var(--tf-blue);text-decoration:none}
a:hover{color:var(--tf-navy)}
img{max-width:100%;height:auto}

.tf-container{
  width:min(100% - 40px,var(--tf-container));
  margin-inline:auto;
}
.tf-section{padding:88px 0}
.tf-section--light{background:var(--tf-light)}
.tf-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
  color:var(--tf-blue);
  font-size:13px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.tf-eyebrow:before{
  content:"";
  width:28px;height:3px;border-radius:10px;background:var(--tf-cyan);
}
.tf-title{
  color:var(--tf-navy);
  font-size:clamp(32px,4vw,52px);
  line-height:1.08;
  margin:0 0 18px;
  font-weight:800;
}
.tf-lead{
  max-width:720px;
  color:var(--tf-muted);
  font-size:18px;
}
.tf-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:50px;
  padding:0 24px;
  border-radius:10px;
  background:var(--tf-blue);
  color:#fff!important;
  font-weight:800;
  box-shadow:0 8px 20px rgba(8,126,164,.22);
  transition:.2s ease;
}
.tf-btn:hover{
  transform:translateY(-2px);
  background:var(--tf-navy);
}
.tf-btn--outline{
  background:transparent;
  color:var(--tf-navy)!important;
  border:2px solid var(--tf-navy);
  box-shadow:none;
}
.tf-btn--outline:hover{color:#fff!important}

.tf-header{
  position:sticky;
  top:0;
  z-index:999;
  background:rgba(255,255,255,.97);
  border-bottom:1px solid rgba(220,231,239,.9);
  backdrop-filter:blur(10px);
}
.tf-header__inner{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
}
.tf-logo{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--tf-navy)!important;
  font-weight:900;
  font-size:21px;
  line-height:1.05;
}
.tf-logo-mark{
  width:42px;height:42px;border-radius:12px;
  display:grid;place-items:center;
  color:#fff;background:linear-gradient(135deg,var(--tf-blue),var(--tf-cyan));
  font-size:20px;
  box-shadow:0 8px 18px rgba(8,126,164,.22);
}
.tf-logo small{
  display:block;
  margin-top:4px;
  color:var(--tf-muted);
  font-size:10px;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.tf-nav{display:flex;align-items:center;gap:25px}
.tf-nav--open{display:flex}
.tf-nav a{color:var(--tf-navy);font-weight:700;font-size:14px}
.tf-nav a:hover{color:var(--tf-blue)}
.tf-header__call{display:inline-flex!important;color:#fff!important}
.tf-menu-toggle{
  display:none;
  border:0;background:transparent;
  font-size:28px;color:var(--tf-navy);
}

.tf-hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 85% 20%,rgba(22,184,212,.24),transparent 30%),
    linear-gradient(120deg,#071625 0%,#0B1F3A 58%,#083E58 100%);
  color:#fff;
  padding:105px 0 95px;
}
.tf-hero:after{
  content:"";
  position:absolute;
  width:460px;height:460px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:50%;
  right:-180px;bottom:-250px;
}
.tf-hero__grid{
  position:relative;z-index:1;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:60px;
  align-items:center;
}
.tf-hero h1{
  margin:0 0 22px;
  color:#fff;
  font-size:clamp(42px,6vw,72px);
  line-height:1.02;
  letter-spacing:-.03em;
}
.tf-hero p{
  max-width:690px;
  color:rgba(255,255,255,.82);
  font-size:19px;
}
.tf-hero__actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:30px}
.tf-hero .tf-btn--outline{
  border-color:rgba(255,255,255,.5);
  color:#fff!important;
}
.tf-hero-card{
  padding:32px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:22px;
  background:rgba(255,255,255,.08);
  box-shadow:0 25px 70px rgba(0,0,0,.18);
  backdrop-filter:blur(10px);
}
.tf-hero-card h3{color:#fff;margin-top:0}
.tf-hero-card p{font-size:15px}
.tf-check{display:flex;gap:10px;align-items:flex-start;margin:15px 0;color:#fff}
.tf-check span{
  flex:0 0 24px;width:24px;height:24px;border-radius:50%;
  display:grid;place-items:center;background:var(--tf-cyan);font-weight:900;
}

.tf-section-head{margin-bottom:42px}
.tf-section-head.center{text-align:center}
.tf-section-head.center .tf-lead{margin-inline:auto}

.tf-services{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.tf-service{
  padding:30px;
  border:1px solid var(--tf-border);
  border-radius:var(--tf-radius);
  background:#fff;
  box-shadow:0 5px 20px rgba(11,31,58,.04);
  transition:.2s ease;
}
.tf-service:hover{transform:translateY(-5px);box-shadow:var(--tf-shadow)}
.tf-icon{
  width:58px;height:58px;border-radius:15px;
  display:grid;place-items:center;
  background:#E7F7FB;
  color:var(--tf-blue);
  font-size:27px;
  margin-bottom:20px;
}
.tf-service-card__image{width:100%;height:180px;object-fit:cover;border-radius:12px;margin:-4px 0 22px;display:block}
.tf-service h3{margin:0 0 10px;color:var(--tf-navy);font-size:22px}
.tf-service p{margin:0 0 18px;color:var(--tf-muted)}

.tf-split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}
.tf-image-placeholder{
  min-height:420px;
  border-radius:24px;
  background:
    linear-gradient(135deg,rgba(8,126,164,.85),rgba(11,31,58,.92)),
    repeating-linear-gradient(45deg,transparent 0 12px,rgba(255,255,255,.05) 12px 24px);
  display:grid;place-items:center;
  color:#fff;text-align:center;padding:35px;
}
.tf-image-placeholder strong{font-size:30px;display:block}
.tf-list{padding:0;margin:25px 0;list-style:none}
.tf-list li{display:flex;gap:12px;margin:13px 0}
.tf-list li:before{content:"✓";color:var(--tf-blue);font-weight:900}

.tf-process{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.tf-step{
  padding:28px;
  background:#fff;
  border:1px solid var(--tf-border);
  border-radius:var(--tf-radius);
}
.tf-step__number{
  width:42px;height:42px;border-radius:50%;
  display:grid;place-items:center;
  background:var(--tf-navy);color:#fff;font-weight:900;
  margin-bottom:18px;
}
.tf-step h3{margin:0 0 8px;color:var(--tf-navy)}

.tf-cta{
  padding:65px 0;
  background:linear-gradient(120deg,var(--tf-blue),var(--tf-navy));
  color:#fff;
}
.tf-cta__inner{
  display:flex;align-items:center;justify-content:space-between;gap:30px;
}
.tf-cta h2{margin:0 0 8px;color:#fff;font-size:clamp(30px,4vw,46px)}
.tf-cta p{margin:0;color:rgba(255,255,255,.82)}
.tf-cta .tf-btn{background:#fff;color:var(--tf-navy)!important}

.tf-page-hero{
  padding:75px 0;
  background:linear-gradient(135deg,#F5F9FC,#E7F7FB);
}
.tf-page-hero h1{margin:0;color:var(--tf-navy);font-size:clamp(38px,5vw,60px);line-height:1.05}
.tf-breadcrumb{font-size:13px;color:var(--tf-muted);margin-bottom:14px}

.tf-service-detail{
  display:grid;
  grid-template-columns:1fr 1.2fr;
  grid-template-areas:"media content";
  gap:34px;
  padding:34px 0;
  border-bottom:1px solid var(--tf-border);
}
.tf-service-detail .tf-icon{margin:0}
.tf-service-detail__content{grid-area:content}
.tf-service-detail__media{grid-area:media;}
.tf-service-detail h2{margin:0 0 12px;color:var(--tf-navy);font-size:34px}
.tf-service-detail p{color:var(--tf-muted)}
.tf-service-detail ul{color:var(--tf-muted)}


.tf-service-detail__media img{display:block;width:100%;height:100%;min-height:260px;object-fit:cover}
.tf-service-detail__media{background:var(--tf-light);border:1px solid var(--tf-border);box-shadow:0 12px 28px rgba(7,59,92,.08)}
.tf-service-detail__content{padding-top:4px}
.tf-service-detail__content .tf-icon{display:none}
.tf-service-image{width:100%;height:260px;object-fit:cover;display:block}
.tf-footer__brand{display:flex;align-items:center;gap:16px;margin-bottom:16px}
.tf-footer__logo{width:135px;height:auto;max-height:52px;object-fit:contain;background:#fff;border-radius:10px;padding:6px}
.tf-footer__brand h3{margin:0}

.tf-contact-grid{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:30px;
}
.tf-contact-card{
  padding:30px;
  background:var(--tf-light);
  border:1px solid var(--tf-border);
  border-radius:var(--tf-radius);
}
.tf-contact-card h3{color:var(--tf-navy);margin-top:0}
.tf-contact-item{display:flex;gap:15px;margin:20px 0}
.tf-contact-item .tf-icon{flex:0 0 48px;width:48px;height:48px;margin:0;font-size:20px}
.tf-contact-item strong{display:block;color:var(--tf-navy)}
.tf-contact-item a{font-weight:700}

.tf-form input,.tf-form textarea,.tf-form select{
  width:100%;box-sizing:border-box;
  padding:14px 16px;
  border:1px solid var(--tf-border);
  border-radius:10px;
  background:#fff;
  color:var(--tf-text);
  font:inherit;
}
.tf-form textarea{min-height:150px;resize:vertical}
.tf-form label{display:block;margin:0 0 7px;color:var(--tf-navy);font-weight:700}
.tf-form .field{margin-bottom:18px}

.tf-footer{background:#071625;color:#CBD5E1;padding:60px 0 25px}
.tf-footer__grid{
  display:grid;grid-template-columns:1.3fr .8fr .8fr;
  gap:40px;padding-bottom:35px;
}
.tf-footer h3{color:#fff;margin-top:0}
.tf-footer a{color:#CBD5E1}
.tf-footer a:hover{color:#fff}
.tf-footer__bottom{
  padding-top:22px;border-top:1px solid rgba(255,255,255,.12);
  font-size:13px;display:flex;justify-content:space-between;gap:20px;
}
.tf-mobile-call{
  display:none;
  position:fixed;left:14px;right:14px;bottom:14px;
  z-index:1000;text-align:center;
  padding:14px;border-radius:12px;
  background:var(--tf-blue);color:#fff!important;
  font-weight:900;box-shadow:0 12px 35px rgba(0,0,0,.25);
}

.elementor-page .tf-section:first-child{padding-top:70px}
.elementor-widget-text-editor a{font-weight:700}

@media (max-width:900px){
  .tf-nav{display:none}
  .tf-nav.tf-nav--open{display:flex;position:absolute;left:14px;right:14px;top:70px;flex-direction:column;align-items:stretch;gap:0;padding:12px;background:#fff;border:1px solid var(--tf-border);border-radius:14px;box-shadow:0 18px 40px rgba(7,59,92,.16)}
  .tf-menu-toggle{display:block}
  .tf-header__call{display:none!important}
  .tf-hero__grid,.tf-split,
.tf-service-detail__media img{display:block;width:100%;height:100%;min-height:260px;object-fit:cover}
.tf-service-detail__media{background:var(--tf-light);border:1px solid var(--tf-border);box-shadow:0 12px 28px rgba(7,59,92,.08)}
.tf-service-detail__content{padding-top:4px}
.tf-service-detail__content .tf-icon{display:none}
.tf-service-image{width:100%;height:260px;object-fit:cover;display:block}
.tf-footer__brand{display:flex;align-items:center;gap:16px;margin-bottom:16px}
.tf-footer__logo{width:135px;height:auto;max-height:52px;object-fit:contain;background:#fff;border-radius:10px;padding:6px}
.tf-footer__brand h3{margin:0}

.tf-contact-grid{grid-template-columns:1fr}
  .tf-services{grid-template-columns:repeat(2,1fr)}
  .tf-process{grid-template-columns:repeat(2,1fr)}
  .tf-hero{padding:80px 0}
  .tf-hero-card{max-width:650px}
  .tf-footer__grid{grid-template-columns:1fr 1fr}
  .tf-mobile-call{display:block}
}
@media (max-width:600px){
  .tf-container{width:min(100% - 28px,var(--tf-container))}
  .tf-section{padding:62px 0}
  .tf-services,.tf-process,.tf-footer__grid{grid-template-columns:1fr}
  .tf-hero{padding:65px 0}
  .tf-hero h1{font-size:43px}
  .tf-hero p{font-size:17px}
  .tf-hero__actions{flex-direction:column}
  .tf-hero__actions .tf-btn{width:100%}
  .tf-service{padding:24px}
  .tf-service-detail{grid-template-columns:1fr}
  .tf-cta__inner{flex-direction:column;align-items:flex-start}
  .tf-footer__bottom{flex-direction:column}
  .tf-page-hero{padding:55px 0}
}


.tf-logo-img{
  display:block;
  width:auto;
  max-width:150px;
  max-height:42px;
  object-fit:contain;
}
.tf-about-card{
  padding:36px;
  background:#fff;
  border:1px solid var(--tf-border);
  border-radius:var(--tf-radius);
  box-shadow:0 5px 20px rgba(11,31,58,.04);
}
.tf-about-card h3{color:var(--tf-navy);margin-top:0;font-size:24px}
.tf-service-detail__media{min-height:260px;border-radius:18px;overflow:hidden;display:grid;place-items:center}
.tf-service-detail--with-image{
  grid-template-columns:1fr 1.2fr;
}
@media (max-width:900px){
  .tf-service-detail--with-image{grid-template-columns:1fr;grid-template-areas:"media" "content"}
  .tf-service-detail{grid-template-columns:1fr;grid-template-areas:"media" "content"}
  .tf-service-detail__media{min-height:260px}
}
@media (max-width:600px){
  .tf-logo-img{max-width:130px;max-height:38px}
  .tf-header__inner{min-height:64px}
  .tf-menu-toggle{font-size:26px;padding:8px}
  .tf-nav{gap:0}
  .tf-nav a{padding:11px 8px;font-size:16px}
  .tf-mobile-call{bottom:10px;left:10px;right:10px}
  .tf-page-hero h1{font-size:38px}
  .tf-service-detail h2{font-size:28px}
}

.tf-services-page-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.tf-service-detail--card{display:flex;flex-direction:column;padding:0;overflow:hidden;border:1px solid var(--tf-border);border-radius:20px;background:#fff;box-shadow:0 8px 28px rgba(7,59,92,.07)}
.tf-service-detail--card .tf-service-detail__media{width:100%;border:0;border-radius:0;min-height:0}
.tf-service-detail--card .tf-service-image{height:245px;min-height:245px}
.tf-service-detail--card .tf-service-detail__content{padding:28px}
.tf-service-detail--card h2{font-size:28px}
@media (max-width:900px){.tf-services-page-grid{grid-template-columns:1fr}.tf-service-detail--card .tf-service-image{height:230px;min-height:230px}}
@media (max-width:600px){.tf-service-detail--card .tf-service-detail__content{padding:22px}.tf-service-detail--card h2{font-size:25px}}


/* TrueFlow v1.2.0 final brand/mobile overrides */
:root{
  --tf-navy:#073B5C;
  --tf-blue:#0B86A6;
  --tf-cyan:#22B8C9;
  --tf-green:#49B96E;
  --tf-dark:#062A40;
  --tf-text:#243447;
  --tf-muted:#64748B;
  --tf-light:#F2F8FA;
  --tf-white:#FFFFFF;
  --tf-border:#CFE1E8;
}

/* Keep the actual logo only in header/footer, sized compactly. */
.tf-logo-img{max-width:118px!important;max-height:36px!important;width:auto!important;height:auto!important}
.tf-logo{gap:0}
.tf-footer__logo{width:145px!important;max-width:145px!important;max-height:58px!important;background:transparent!important;padding:0!important;border-radius:0!important}
.tf-footer__brand{margin-bottom:14px}
.tf-footer__brand h3{display:none!important}

/* Homepage service cards are icon-only, as originally requested. */
.tf-service-card__image{display:none!important}

/* Services page remains a clean two-column image-led layout. */
.tf-services-page-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:30px!important}
.tf-service-detail--card .tf-service-image{height:250px!important;min-height:250px!important}
.tf-service-detail--card .tf-service-detail__media{background:#eaf5f8!important}

/* Remove Hello Elementor colours from the mobile menu and make the menu span the viewport. */
.tf-menu-toggle,
.tf-menu-toggle:hover,
.tf-menu-toggle:focus,
.tf-menu-toggle:active{
  color:var(--tf-navy)!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline:none!important;
}
.tf-nav.tf-nav--open{
  left:0!important;
  right:0!important;
  top:64px!important;
  width:100%!important;
  box-sizing:border-box!important;
  padding:12px 18px 18px!important;
  border:0!important;
  border-top:1px solid var(--tf-border)!important;
  border-radius:0 0 18px 18px!important;
  background:#fff!important;
  box-shadow:0 18px 36px rgba(7,59,92,.18)!important;
}
.tf-nav.tf-nav--open a{color:var(--tf-navy)!important;background:#fff!important;border-radius:10px!important}
.tf-nav.tf-nav--open a:hover,.tf-nav.tf-nav--open a:focus{color:#fff!important;background:var(--tf-blue)!important}

/* Mobile hero breathing room and better tap targets. */
@media (max-width:600px){
  .tf-hero{padding:54px 0 68px!important}
  .tf-hero__grid{gap:26px!important;padding:0 7px!important}
  .tf-hero h1{margin-bottom:24px!important;line-height:1.06!important}
  .tf-hero p{margin-bottom:24px!important;line-height:1.65!important}
  .tf-hero__actions{gap:12px!important;margin-top:22px!important}
  .tf-hero__actions .tf-btn{min-height:54px!important;padding:0 20px!important}
  .tf-hero-card{padding:25px 22px!important;margin:0 4px!important;border-radius:18px!important}
  .tf-check{margin:14px 0!important;line-height:1.5!important}
  .tf-section-head{margin-bottom:30px!important}
  .tf-service{padding:24px 22px!important}
  .tf-icon{width:54px;height:54px;margin-bottom:16px!important}
  .tf-services-page-grid{grid-template-columns:1fr!important;gap:22px!important}
  .tf-service-detail--card .tf-service-image{height:220px!important;min-height:220px!important}
  .tf-logo-img{max-width:108px!important;max-height:34px!important}
  .tf-header__inner{min-height:64px!important}
  .tf-menu-toggle{font-size:28px!important;padding:8px 4px!important}
}

/* Prevent Elementor's theme button/menu colours from leaking into this child theme. */
.elementor a{color:inherit}
.elementor-button{background:var(--tf-blue)!important;color:#fff!important}
.elementor-button:hover{background:var(--tf-navy)!important;color:#fff!important}


/* TrueFlow v1.3.0 brand system and mobile hero spacing */
:root{
  --tf-navy:#073B5C;
  --tf-blue:#0B86A6;
  --tf-cyan:#22B8C9;
  --tf-green:#49B96E;
  --tf-dark:#062A40;
  --tf-text:#243447;
  --tf-muted:#64748B;
  --tf-light:#F2F8FA;
  --tf-white:#FFFFFF;
  --tf-border:#CFE1E8;
  --tf-radius:16px;
  --tf-shadow:0 12px 35px rgba(7,59,92,.10);
}

/* Keep the site palette consistent even when Elementor widgets are present. */
body,.elementor,
.elementor-widget-text-editor,.elementor-widget-heading,
.elementor-widget-icon-list{color:var(--tf-text)}
.elementor h1,.elementor h2,.elementor h3,.elementor h4,.elementor h5,.elementor h6{color:var(--tf-navy)}
.elementor a:not(.elementor-button){color:var(--tf-blue)}
.elementor a:not(.elementor-button):hover{color:var(--tf-navy)}
.elementor-button{background:var(--tf-blue)!important;color:#fff!important;border-color:var(--tf-blue)!important}
.elementor-button:hover{background:var(--tf-navy)!important;border-color:var(--tf-navy)!important;color:#fff!important}

/* Branded visual: uses the logo's blue/cyan/green language without placing the logo in content. */
.tf-brand-visual{position:relative;overflow:hidden;border-radius:22px;background:var(--tf-light);border:1px solid var(--tf-border);box-shadow:var(--tf-shadow)}
.tf-brand-visual img{display:block;width:100%;height:auto;aspect-ratio:900/650;object-fit:cover}

@media (max-width:600px){
  /* Extra breathing room before the 'Drainage problems? We can help.' block. */
  .tf-hero .tf-hero-card{margin-top:22px!important;padding-top:30px!important}
  .tf-hero__grid{padding-top:2px!important}
  .tf-brand-visual{border-radius:18px}
}

.tf-service-detail__media{position:relative}
.tf-image-credit{position:absolute;left:10px;bottom:10px;padding:4px 8px;border-radius:6px;background:rgba(6,42,64,.78);color:#fff;font-size:10px;line-height:1.3;letter-spacing:.01em}
