/* TEJ Heating (Plymouth) Ltd — site styles. Colours and type follow the Wix design. */
:root {
  --blue: #2b6ca3;
  --blue-light: #5ab7e8;
  --navy: #0f3d66;
  --navy-deep: #0a2a47;
  --ink: #1a1a1a;
  --muted: #5b6670;
  --paper: #f4f8fb;
  --line: #dfe7ee;
  --white: #fff;
  --radius: 10px;
  --head: "Century Gothic", Futura, "Avenir Next", Avenir, "Trebuchet MS", "Segoe UI", sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 var(--body); color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: .02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 10px; }

/* Header */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand img { width: 74px; height: auto; }
.brand span { font-family: var(--head); font-size: 1.05rem; line-height: 1.25; }
.brand small { display: block; color: var(--muted); font-size: .8rem; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-family: var(--head); text-decoration: none; color: var(--ink); font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue-light); }
.nav .call { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); border: 1.5px solid var(--blue); border-radius: 999px; padding: 7px 16px; letter-spacing: .02em; }
.nav .call:hover { background: var(--blue); color: #fff; border-bottom-color: var(--blue); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; color: var(--navy); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .call { margin-top: 12px; justify-content: center; }
  .brand span { display: none; }
}

/* Hero */
.hero { position: relative; background: var(--navy) center/cover no-repeat; min-height: 520px; display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.86) 38%, rgba(255,255,255,0) 68%); }
.hero .wrap { position: relative; }
.hero-text { max-width: 520px; padding: 60px 0; }
.hero h1 { color: var(--blue); text-transform: uppercase; }
.hero .lede { font-family: var(--head); color: var(--blue); font-size: 1.25rem; margin: 0 0 1em; }
.hero .lede em { font-style: italic; }
.hero p { color: var(--ink); }
.btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-family: var(--head); letter-spacing: .04em; padding: 12px 26px; border-radius: 999px; border: 0; font-size: 1rem; cursor: pointer; }
.btn:hover { background: var(--navy); }
.btn.ghost { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); margin-left: 10px; }
.btn.ghost:hover { background: var(--blue); color: #fff; }
@media (max-width: 820px) {
  .hero { min-height: 0; }
  .hero::before { background: rgba(255,255,255,.88); }
  .btn.ghost { margin: 10px 0 0; }
}

/* Hero without a photo: blue field with the TEJ roundel. A photo can go back in later
   with style="background-image:url(/img/hero.jpg)" and without the "plain" class. */
.hero.plain { background: radial-gradient(circle at 78% 45%, #3f86c2 0%, #2b6ca3 28%, #164a7a 62%, #0a2a47 100%); }
.hero.plain::before { display: none; }
.hero.plain .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 40px; }
.hero.plain h1, .hero.plain .lede { color: #fff; }
.hero.plain .lede em { color: #bfe3f7; }
.hero.plain p { color: #e3eef8; }
.hero.plain .btn { background: #fff; color: var(--navy); }
.hero.plain .btn:hover { background: var(--blue-light); color: #fff; }
.hero.plain .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.hero.plain .btn.ghost:hover { background: #fff; color: var(--navy); }
.hero-badge { justify-self: center; position: relative; width: min(340px, 80%); aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 14px rgba(255,255,255,.12), 0 0 0 30px rgba(255,255,255,.06), 0 30px 60px rgba(0,0,0,.25); }
.hero-badge img { width: 78%; }
.hero-badge span { position: absolute; bottom: -14px; background: var(--blue-light); color: #fff; font-family: var(--head); letter-spacing: .08em; padding: 6px 16px; border-radius: 999px; font-size: .9rem; }
@media (max-width: 820px) {
  .hero.plain .wrap { grid-template-columns: 1fr; }
  .hero-badge { width: 180px; order: -1; margin-top: 40px; }
  .hero.plain .hero-text { padding-top: 10px; }
}

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--paper); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { color: var(--blue); }
.section-head p { color: var(--muted); margin: 0; }

/* Brands band: logos on white diamonds over a blue gradient, as on the Wix site */
.band { background: linear-gradient(120deg, #2b6ca3 0%, #164a7a 55%, #0a2a47 100%); color: #fff; padding: 70px 0; }
.band h2 { color: #fff; text-align: center; margin-bottom: 40px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.logo-row li { width: 190px; height: 150px; background: #fff; clip-path: polygon(50% 0, 100% 22%, 100% 78%, 50% 100%, 0 78%, 0 22%); display: grid; place-items: center; padding: 34px 26px; }
.logo-row img { max-height: 70px; width: auto; object-fit: contain; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 24px; position: relative; margin: 0; }
.quote::before { content: "\201C"; font-family: Georgia, serif; position: absolute; top: -6px; left: 20px; font-size: 4.2rem; color: var(--blue-light); line-height: 1; }
.quote p { margin: 14px 0 12px; color: #33414d; }
.quote cite { font-style: normal; font-family: var(--head); color: var(--blue); }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 30px 40px; align-items: center; list-style: none; margin: 0; padding: 0; }
.clients li { display: grid; place-items: center; height: 90px; }
.clients img { max-height: 80px; width: auto; object-fit: contain; filter: saturate(.95); }

.intro { max-width: 820px; margin: 0 auto; text-align: center; font-size: 1.15rem; color: #33414d; }

/* Contact */
.contact { background: var(--navy); color: #fff; padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; align-items: start; }
.contact h2 { color: #fff; }
.contact h3 { color: var(--blue-light); font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; margin: 26px 0 6px; }
.contact a { color: #fff; }
.contact p { margin: 0 0 4px; }
.form-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 34px; }
.form-card h3 { color: var(--blue); text-transform: none; letter-spacing: 0; font-size: 1.5rem; margin: 0 0 20px; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: .85rem; color: var(--blue); margin-bottom: 4px; }
input, textarea { width: 100%; font: inherit; font-size: 1rem; border: 1px solid #c9d6e2; background: #eef3fb; border-radius: 6px; padding: 11px 12px; color: var(--ink); }
input:focus, textarea:focus { outline: 2px solid var(--blue-light); border-color: var(--blue); background: #fff; }
textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -5000px; }
.form-card .btn { margin-top: 18px; width: 100%; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.alert { border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; }
.alert.ok { background: #e7f6ec; color: #1d6b37; }
.alert.err { background: #fdecec; color: #9b1c1c; }
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* About */
.page-head { background: linear-gradient(120deg, #2b6ca3 0%, #0f3d66 100%); color: #fff; padding: 64px 0 56px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 8px 0 0; color: #d8e9f7; font-family: var(--head); font-size: 1.15rem; }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: start; }
.directors { list-style: none; margin: 0; padding: 0; }
.directors li { background: var(--paper); border-left: 4px solid var(--blue-light); border-radius: 6px; padding: 16px 18px; margin-bottom: 14px; }
.directors b { display: block; font-family: var(--head); font-weight: 400; font-size: 1.2rem; color: var(--navy); }
.directors span { color: var(--muted); font-size: .95rem; }
.stats { display: flex; gap: 30px; flex-wrap: wrap; margin: 26px 0 0; }
.stats div { border-top: 3px solid var(--blue-light); padding-top: 8px; }
.stats b { display: block; font-family: var(--head); font-weight: 400; font-size: 2rem; color: var(--blue); line-height: 1.1; }
.stats span { color: var(--muted); font-size: .9rem; }
.accred { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.accred-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.accred-card h3 { color: var(--navy); }
.accred-card p { color: #33414d; margin: 0; }
.accred-card .cert { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 36px; list-style: none; padding: 0; margin: 40px 0 0; }
.badges img { max-height: 90px; width: auto; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* Helpful links */
.link-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.link-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.link-group h2 { font-size: 1.3rem; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; }
.link-group ul { list-style: none; margin: 0; padding: 0; }
.link-group li { border-top: 1px solid var(--line); }
.link-group a { display: flex; justify-content: space-between; padding: 11px 0; text-decoration: none; color: var(--ink); }
.link-group a::after { content: "\2197"; color: var(--blue); }
.link-group a:hover { color: var(--blue); }

/* Footer */
.site-foot { background: var(--navy-deep); color: #b9cde0; padding: 34px 0; font-size: .9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.site-foot a { color: #fff; }

@media (max-width: 600px) {
  .logo-row { gap: 14px; }
  .logo-row li { width: calc(50% - 7px); height: 120px; padding: 28px 20px; }
  .logo-row img { max-height: 54px; }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .section { padding: 56px 0; }
}

/* Help videos */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.jump a { text-decoration: none; border: 1.5px solid var(--blue); border-radius: 999px; padding: 7px 16px; font-family: var(--head); font-size: .95rem; }
.jump a:hover { background: var(--blue); color: #fff; }
.video-group { margin-bottom: 50px; scroll-margin-top: 110px; }
.video-group h2 { color: var(--blue); text-transform: uppercase; letter-spacing: .05em; font-size: 1.5rem; border-bottom: 2px solid var(--line); padding-bottom: 10px; }
.videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.video-link { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.video-link:hover { border-color: var(--blue-light); box-shadow: 0 8px 22px rgba(15,61,102,.12); }
.video-thumb, .video-link iframe { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border: 0; background: linear-gradient(135deg, #2b6ca3, #0f3d66) center/cover no-repeat; }
.play { width: 64px; height: 44px; border-radius: 12px; background: rgba(10,42,71,.82); position: relative; }
.play::after { content: ""; position: absolute; left: 26px; top: 12px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.video-link:hover .play { background: #e52d27; }
.video-title { display: block; padding: 14px 16px 16px; font-size: .98rem; line-height: 1.4; }
.makers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.makers a { display: inline-block; border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; text-decoration: none; color: var(--ink); }
.makers a:hover { border-color: var(--blue); color: var(--blue); }
