/*
Theme Name: Timber Roof Tech
Theme URI: https://www.timberrooftech.co.za
Author: Timber Roof Tech
Author URI: https://www.timberrooftech.co.za
Description: Custom WordPress theme for Timber Roof Tech — trusted timber trusses since 1986.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: timber-roof-tech
Tags: business, roofing, one-page
*/

:root {
  --green: #145a32;
  --green-dark: #0b3320;
  --gold: #f1c40f;
  --white: #ffffff;
  --cream: #f7f5ef;
  --charcoal: #1f2933;
  --muted: #64748b;
  --border: #e5e7eb;
  --shadow: 0 18px 45px rgba(0,0,0,.12);
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { width: min(1160px, 92%); margin: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: .25s ease;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--gold); color: var(--green-dark); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border: 2px solid rgba(255,255,255,.75); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--green); }

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,51,32,.96);
  color: var(--white);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: .5px;
}
.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 20px;
}
.brand small { display: block; color: var(--gold); font-size: 12px; letter-spacing: 0; }

/* WordPress menu */
.main-navigation ul { list-style: none; display: flex; gap: 24px; align-items: center; }
.main-navigation a { color: rgba(255,255,255,.9); font-weight: 700; font-size: 14px; }
.main-navigation a:hover { color: var(--gold); }
.main-navigation ul ul { display: none; }
.menu-btn { display: none; background: transparent; color: white; border: none; font-size: 28px; cursor: pointer; }

/* ── HERO ── */
.hero {
  min-height: 88vh;
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(11,51,32,.95), rgba(20,90,50,.75), rgba(20,90,50,.1)),
    url('images/hero-roof.jpg') center/cover no-repeat;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 8px;
  background: var(--gold);
}
.hero-content { max-width: 760px; padding: 80px 0; }
.eyebrow {
  display: inline-flex;
  background: rgba(241,196,15,.16);
  border: 1px solid rgba(241,196,15,.5);
  color: var(--gold);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 900;
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(42px, 7vw, 82px);
  line-height: .96;
  letter-spacing: -2.5px;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.hero p { font-size: clamp(18px, 2vw, 23px); color: rgba(255,255,255,.9); max-width: 650px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--white);
  margin-top: -46px;
  position: relative;
  z-index: 5;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust-item strong { color: var(--green); display: block; font-size: 24px; }
.trust-item span { color: var(--muted); font-weight: 700; font-size: 14px; }

/* ── SECTIONS ── */
section { padding: 88px 0; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head span { color: var(--green); font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -1.5px; color: var(--green-dark); margin: 8px 0 16px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: center; }
.about-card {
  background: var(--white);
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 8px solid var(--gold);
}
.about-card p { margin-bottom: 16px; }
.image-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
  background: url('images/about-roof.jpg') center/cover no-repeat;
}

/* ── SERVICES ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  border-top: 6px solid var(--gold);
  transition: .25s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--green);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.service-card h3 { color: var(--green-dark); font-size: 22px; margin-bottom: 12px; }
.service-card ul { padding-left: 18px; color: var(--muted); }

/* ── INDUSTRIES ── */
.industries { background: var(--green-dark); color: var(--white); }
.industries h2, .industries .section-head span { color: var(--white); }
.industries .section-head p { color: rgba(255,255,255,.75); }
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.industry {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  padding: 22px;
  border-radius: 18px;
  font-weight: 800;
}
.industry::before { content: "✓"; color: var(--gold); margin-right: 8px; }

/* ── PROCESS ── */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { background: var(--white); border-radius: 18px; padding: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.07); }
.step b { color: var(--gold); font-size: 30px; display: block; margin-bottom: 10px; }
.step strong { color: var(--green-dark); display: block; margin-bottom: 6px; }

/* ── GALLERY ── */
.gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: 230px; gap: 16px; }
.gallery div { border-radius: 20px; overflow: hidden; background: var(--green); box-shadow: 0 10px 30px rgba(0,0,0,.09); position: relative; }
.gallery div:nth-child(1) { grid-row: span 2; background: url('images/project-1.jpg') center/cover no-repeat; }
.gallery div:nth-child(2) { background: url('images/project-2.jpg') center/cover no-repeat; }
.gallery div:nth-child(3) { background: url('images/project-3.jpg') center/cover no-repeat; }
.gallery div:nth-child(4) { background: url('images/project-4.jpg') center/cover no-repeat; }
.gallery div:nth-child(5) { background: url('images/project-5.jpg') center/cover no-repeat; }

/* ── QUOTE / CONTACT ── */
.quote {
  background:
    linear-gradient(90deg, rgba(11,51,32,.96), rgba(20,90,50,.92)),
    url('images/contact-bg.jpg') center/cover no-repeat;
  color: var(--white);
  border-radius: 34px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  align-items: center;
  box-shadow: var(--shadow);
}
.quote h2 { color: var(--white); }
.quote p { color: rgba(255,255,255,.82); font-size: 18px; }

/* Contact Form 7 / WPForms compatible styles */
.wpcf7-form, .wpforms-form, form.quote-form {
  background: var(--white);
  padding: 26px;
  border-radius: 24px;
  display: grid;
  gap: 12px;
}
.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select,
.wpforms-form input,
.wpforms-form textarea,
.wpforms-form select,
form.quote-form input,
form.quote-form textarea,
form.quote-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
}
form.quote-form textarea { min-height: 110px; resize: vertical; }
.wpcf7-submit, .wpforms-submit, form.quote-form button[type="submit"] {
  background: var(--gold);
  color: var(--green-dark);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: .25s ease;
}
.wpcf7-submit:hover, .wpforms-submit:hover, form.quote-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ── FOOTER ── */
footer { background: var(--green-dark); color: var(--white); padding: 44px 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; }
footer h3 { color: var(--gold); margin-bottom: 12px; }
footer p, footer a { color: rgba(255,255,255,.78); }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 20px; color: rgba(255,255,255,.62); font-size: 14px; }

/* ── WHATSAPP FAB ── */
.whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #25d366;
  color: white;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: var(--shadow);
  z-index: 60;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .main-navigation ul {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--green-dark);
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .main-navigation ul.open { display: flex; }
  .menu-btn { display: block; }
  .trust-bar,
  .about-grid,
  .services-grid,
  .industry-grid,
  .process-grid,
  .quote,
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery div:nth-child(1) { grid-row: span 1; }
  section { padding: 64px 0; }
}
