/*
Theme Name: Trade Plumber Theme
Theme URI: https://example.com
Author: Trade Website Builder
Description: Lightweight plumber/trade landing page theme with a classic blue and red landing page design, admin options, responsive header and builder-friendly templates.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: trade-plumber-theme
*/

:root{
  --tp-primary:#2354c7;
  --tp-secondary:#e6322b;
  --tp-dark:#0e2f87;
  --tp-light:#eef3ff;
  --tp-text:#202124;
  --tp-heading:#111827;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--tp-text);background:#fff;line-height:1.55}
a{text-decoration:none}
img{max-width:100%;height:auto}
.site-main{width:100%}
.tp-container{max-width:1180px;margin:0 auto;padding:0 22px}

.tp-site-header{background:#fff;border-bottom:1px solid #e5e7eb;z-index:99999;width:100%}
.tp-site-header.tp-sticky{position:sticky;top:0}
.admin-bar .tp-site-header.tp-sticky{top:32px}
.tp-header-inner{max-width:1180px;margin:0 auto;padding:12px 22px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:22px}
.tp-logo{display:flex;align-items:center;gap:10px;font-weight:900;color:var(--tp-dark);text-transform:uppercase}
.tp-logo img{max-height:52px;max-width:210px;width:auto}
.tp-logo-text{font-size:22px;line-height:1.1}
.tp-nav{display:flex;justify-content:flex-end;align-items:center;gap:24px;font-size:14px;font-weight:800}
.tp-nav a{color:var(--tp-heading)}
.tp-nav a:hover{color:var(--tp-secondary)}
.tp-call{background:var(--tp-secondary);color:#fff!important;padding:11px 16px;border-radius:2px;font-weight:900;text-transform:uppercase;font-size:13px;white-space:nowrap}
.tp-menu-toggle{display:none;background:var(--tp-primary);color:#fff;border:0;padding:10px 12px;border-radius:3px;font-weight:900;cursor:pointer}

.tp-hero{background:linear-gradient(90deg,#f7fbff,#dde8ff);min-height:390px;display:flex;align-items:center;background-size:cover;background-position:center}
.tp-hero-overlay{background:linear-gradient(90deg,rgba(255,255,255,.82),rgba(255,255,255,.35));width:100%}
.tp-hero-box{max-width:620px;padding:70px 0}
.tp-hero h1{font-size:42px;line-height:1.08;margin:0 0 12px;color:var(--tp-heading);text-transform:uppercase;font-weight:900}
.tp-hero p{font-size:17px;margin:0 0 22px;color:#222}
.tp-btn{display:inline-block;background:var(--tp-secondary);color:#fff!important;padding:13px 19px;border-radius:2px;text-transform:uppercase;font-size:13px;font-weight:900}
.tp-btn-blue{background:var(--tp-primary)}

.tp-features{max-width:1180px;margin:-40px auto 0;position:relative;z-index:5;padding:0 22px;display:grid;grid-template-columns:repeat(4,1fr)}
.tp-feature{background:var(--tp-primary);color:#fff;padding:24px 20px;border-right:1px solid rgba(255,255,255,.22);min-height:130px}
.tp-feature h3{color:#fff;font-size:16px;margin:0 0 8px}
.tp-feature p{margin:0;font-size:13px;color:#e8efff}
.tp-section{padding:60px 22px}
.tp-inner{max-width:1180px;margin:0 auto}
.tp-grid-2{display:grid;grid-template-columns:1.4fr .8fr;gap:40px;align-items:center}
.tp-section h2{font-size:30px;line-height:1.12;text-transform:uppercase;margin:0 0 18px;color:var(--tp-heading)}
.tp-section h2 span,.tp-red{color:var(--tp-secondary)}
.tp-light{background:var(--tp-light)}
.tp-offer{background:var(--tp-primary);color:#fff;padding:34px;text-align:center}
.tp-offer h3{font-size:42px;line-height:1;margin:0 0 8px;color:#fff;text-transform:uppercase}
.tp-offer p{color:#fff}
.tp-bluebar{background:var(--tp-primary);color:#fff;text-align:center;padding:24px 22px;text-transform:uppercase;font-size:22px;font-weight:300}
.tp-bluebar strong{font-weight:900;color:#fff}
.tp-bluebar a{margin-left:24px}
.tp-colour-split{display:grid;grid-template-columns:1fr 1fr}
.tp-colour-block{padding:52px 10%;color:#fff}
.tp-colour-block h2{color:#fff}
.tp-colour-block ul{columns:2;margin:18px 0 0;padding-left:18px}
.tp-colour-block li{margin-bottom:7px}
.tp-footer{background:var(--tp-primary);color:#fff;padding:48px 22px}
.tp-footer h3,.tp-footer p,.tp-footer a{color:#fff}
.tp-footer-inner{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr 1fr;gap:30px}
.entry-content > *:first-child{margin-top:0}
.page .entry-header{max-width:1180px;margin:40px auto 20px;padding:0 22px}
.page .entry-content{max-width:1180px;margin:0 auto;padding:0 22px 60px}
.page-template-template-full-width .entry-content,.page-template-template-canvas .entry-content{max-width:none;padding:0}

@media(max-width:900px){
  .admin-bar .tp-site-header.tp-sticky{top:46px}
  .tp-header-inner{grid-template-columns:minmax(60px,1fr) auto minmax(44px,1fr);padding:12px 4%;gap:10px}
  .tp-logo{grid-column:1;justify-content:flex-start;overflow:hidden;min-width:0}
  .tp-logo img{max-height:44px;max-width:115px;object-fit:contain}
  .tp-logo-text{font-size:18px;line-height:1.1;max-width:130px}
  .tp-call{grid-column:2;justify-self:center;font-size:12px;padding:10px 10px}
  .tp-menu-toggle{display:block;grid-column:3;justify-self:end}
  .tp-nav{display:none;grid-column:1/-1;flex-direction:column;align-items:flex-start;gap:10px;background:#fff;padding:12px 0;width:100%}
  .tp-nav.open{display:flex}
  .tp-nav a{display:block;width:100%;padding:9px 0}
  .tp-hero{min-height:430px}
  .tp-hero h1{font-size:32px}
  .tp-hero-box{padding:54px 0}
  .tp-features{grid-template-columns:1fr;margin:0;padding:0}
  .tp-grid-2,.tp-colour-split,.tp-footer-inner{grid-template-columns:1fr}
  .tp-colour-block{padding:42px 22px}
  .tp-colour-block ul{columns:1}
  .tp-bluebar a{display:block;margin:15px auto 0;width:max-content}
}
@media(max-width:520px){
  .tp-header-inner{grid-template-columns:minmax(52px,1fr) auto minmax(44px,1fr);gap:8px}
  .tp-logo img{max-height:38px;max-width:88px}
  .tp-logo-text{font-size:16px;max-width:110px}
  .tp-call{font-size:12px;padding:10px 9px}
  .tp-menu-toggle{padding:10px 11px}
  .tp-section{padding:52px 22px}
}
