/*
Theme Name: Benison Engineering
Theme URI: https://www.benisonengineering.com
Author: Benison Engineering Limited
Author URI: https://www.benisonengineering.com
Description: Custom WordPress theme for Benison Engineering Limited — Engineering, Procurement, Construction and General Contractor. Built with the company's brand colours extracted from its logo and complimentary card.
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: benison
*/

/* ==========================================================================
   1. VARIABLES (brand colours pulled from the logo / complimentary card)
   ========================================================================== */
:root {
  --color-dark: #0c2426;         /* deep teal-navy, logo background */
  --color-dark-2: #103436;
  --color-primary: #12897a;      /* main teal-green from logo/card */
  --color-primary-light: #1caa96;
  --color-accent: #35c9b0;       /* bright teal accent for highlights */
  --color-white: #ffffff;
  --color-off-white: #f3f9f8;
  --color-light-bg: #eef6f5;
  --color-text: #182626;
  --color-text-muted: #4f6664;
  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(12, 36, 38, 0.12);
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-accent); }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 800;
}
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--color-light-bg); }
.section--dark {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-2) 100%);
  color: var(--color-off-white);
}
.section--dark h2, .section--dark h3 { color: var(--color-white); }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--color-text-muted); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(18, 137, 122, 0.35);
}
.btn-primary:hover { background: var(--color-accent); color: var(--color-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-outline:hover { background: var(--color-white); color: var(--color-dark); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline-dark:hover { background: var(--color-primary); color: var(--color-white); }

/* ==========================================================================
   3. HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--color-white);
  box-shadow: 0 2px 14px rgba(12,36,38,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding img { height: 52px; width: auto; }
.site-branding .site-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--color-dark);
  line-height: 1.1;
  margin: 0;
}
.site-branding .site-title span {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--color-primary);
  font-weight: 700;
}
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.main-navigation a {
  color: var(--color-dark);
  font-weight: 600;
  font-size: 15px;
}
.main-navigation a:hover { color: var(--color-primary); }
.header-cta { display: flex; align-items: center; gap: 20px; }
.header-phone {
  font-weight: 700;
  color: var(--color-dark);
  font-size: 14px;
}
.header-phone span { display: block; font-size: 11px; color: var(--color-text-muted); font-weight: 500; }
.menu-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--color-dark); cursor: pointer; }

/* ==========================================================================
   4. HERO
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--color-dark) 0%, var(--color-dark-2) 55%, var(--color-primary) 130%);
  color: var(--color-white);
  overflow: hidden;
  padding: 110px 0 130px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53,201,176,0.25) 0%, rgba(53,201,176,0) 70%);
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 16px;
  display: inline-block;
}
.hero h1 { color: var(--color-white); font-size: 46px; max-width: 620px; }
.hero h1 em { color: var(--color-accent); font-style: normal; }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,0.85); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-figure {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(4px);
}
.hero-figure img { border-radius: 6px; }
.hero-slogan {
  margin-top: 24px;
  font-family: 'Brush Script MT', cursive;
  font-size: 22px;
  color: var(--color-accent);
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}
.hero-stats .stat strong { display: block; font-size: 30px; color: var(--color-white); font-family: var(--font-heading); }
.hero-stats .stat span { font-size: 13px; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================================================
   5. SERVICES
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--color-white);
  border: 1px solid #e3efee;
  border-radius: var(--radius);
  padding: 34px 26px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(12,36,38,0.16); }
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 18px; }
.service-card p { color: var(--color-text-muted); font-size: 14.5px; margin: 0; }

/* ==========================================================================
   6. ABOUT
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 18px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--font-heading);
}
.about-badge strong { display: block; font-size: 26px; }
.about-badge span { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.about-list { list-style: none; padding: 0; margin: 24px 0; }
.about-list li { padding-left: 30px; position: relative; margin-bottom: 12px; font-weight: 600; color: var(--color-dark); }
.about-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: 800;
}

/* ==========================================================================
   7. GALLERY / PROJECTS
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(12,36,38,0.85), rgba(12,36,38,0));
  color: #fff;
  padding: 18px 16px 12px;
  font-weight: 700;
  font-size: 14px;
}

/* ==========================================================================
   8. WHY CHOOSE US / STATS BAND
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.why-card { text-align: center; padding: 10px; }
.why-card .num { font-family: var(--font-heading); font-size: 40px; color: var(--color-accent); font-weight: 800; }
.why-card h4 { color: var(--color-white); margin-top: 6px; }
.why-card p { color: rgba(255,255,255,0.75); font-size: 14px; }

/* ==========================================================================
   9. CONTACT / CTA
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info-list { list-style: none; padding: 0; margin: 0; }
.contact-info-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-icon {
  flex: 0 0 44px;
  height: 44px;
  width: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.contact-info-list strong { display: block; color: var(--color-dark); font-family: var(--font-heading); font-size: 15px; }
.contact-info-list span, .contact-info-list a { color: var(--color-text-muted); font-size: 14.5px; }
.contact-form { background: var(--color-white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; border: 1px solid #e3efee; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1px solid #d8e6e4;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--color-off-white);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form label { font-weight: 700; font-size: 13px; color: var(--color-dark); display: block; margin-bottom: 6px; }
.cta-band {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 60px 0;
}
.cta-band h2 { color: var(--color-white); }

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 54px; margin-bottom: 14px; }
.footer-tagline { font-family: 'Brush Script MT', cursive; color: var(--color-accent); font-size: 20px; margin-top: 8px; }
.footer-col h4 { color: var(--color-white); font-size: 15px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 14.5px; }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom {
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* ==========================================================================
   11. PAGE / SINGLE / WIDGETS DEFAULT STYLING
   ========================================================================== */
.page-hero {
  background: linear-gradient(120deg, var(--color-dark), var(--color-dark-2));
  color: var(--color-white);
  padding: 70px 0;
  text-align: center;
}
.page-hero h1 { color: var(--color-white); margin-bottom: 0; }
.entry-content { max-width: 820px; margin: 0 auto; padding: 70px 0; }
.entry-content img { border-radius: var(--radius); margin: 20px 0; }
.widget { margin-bottom: 30px; }
.widget h2, .widget-title { font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================================================
   12. RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .hero .container, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .main-navigation { display: none; }
  .menu-toggle { display: block; }
  .main-navigation.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    padding: 20px;
  }
  .main-navigation.is-open ul { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 600px) {
  .services-grid, .gallery-grid { grid-template-columns: 1fr; }
  .header-phone { display: none; }
}
