/* ============================================================
   ANCIENT BUILDERS LIMITED — Main Stylesheet
   Last updated: 2026
   ============================================================
   TABLE OF CONTENTS
   1. Custom Properties (Brand Tokens)
   2. Reset & Base
   3. Typography
   4. Utilities
   5. Buttons
   6. Form Fields
   7. Topbar
   8. Header / Nav
   9. Mobile Nav
   10. Hero Section
   11. Hero Video
   12. Stats Bar
   13. About Section
   14. Services Section
   15. Projects Gallery
   16. Why Us Section
   17. Skills Section
   18. Values Section
   19. Compliance Section
   20. Contact Section
   21. Footer
   22. Back to Top
   23. Animations & Scroll Reveal
   24. Solar Banner Section
   25. Responsive — Tablet (≤1024px)
   26. Responsive — Mobile (≤640px)
   27. Responsive — Small Mobile (≤380px)
   ============================================================ */


/* ============================================================
   1. CUSTOM PROPERTIES (Brand Tokens)
   ============================================================
   To change brand colours, edit the values here ONLY.
   Do not use literal colour values anywhere else in this file.
   ============================================================ */
:root {
  /* Brand colours */
  --red:        #C8102E;   /* Primary red — buttons, accents */
  --red-dark:   #A00D25;   /* Hover state for red */
  --amber:      #F5A623;   /* Accent amber — badges, highlights */
  --dark:       #111827;   /* Darkest text / backgrounds */
  --dark2:      #1F2937;   /* Secondary dark — cards, footer */
  --text:       #374151;   /* Body text */
  --grey:       #6B7280;   /* Muted text, borders */
  --light:      #F8F9FB;   /* Section backgrounds */
  --border:     #E5E7EB;   /* Dividers, card outlines */
  --white:      #FFFFFF;

  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing scale */
  --sp-xs:  0.5rem;
  --sp-sm:  0.875rem;
  --sp-md:  1.25rem;
  --sp-lg:  2rem;
  --sp-xl:  3.5rem;
  --sp-2xl: 6rem;

  /* Layout */
  --max-w:    1200px;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Force light mode — no dark mode for this site */
  color-scheme: light;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;   /* accounts for sticky header height */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

svg { display: block; }

/* Prevent iOS from zooming on input focus */
input, select, textarea {
  font-size: 16px !important;
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section-h2 span {
  color: var(--red);
}

.section-sub {
  max-width: 640px;
  color: var(--grey);
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

.section-head {
  text-align: center;
  margin-bottom: var(--sp-xl);
}
.section-head .section-sub {
  margin: 0.75rem auto 0;
}


/* ============================================================
   4. UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--sp-2xl) 0;
}

/* Alternating section backgrounds */
#about,
#why,
#values,
#contact { background: var(--white); }

#services,
#skills,
#compliance { background: var(--light); }

#projects { background: var(--dark2); }


/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: background 0.2s var(--ease), transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover {
  background: var(--red-dark);
  box-shadow: 0 6px 20px rgba(200,16,46,0.3);
}

.btn-amber {
  background: var(--amber);
  color: var(--dark);
  font-weight: 700;
}
.btn-amber:hover {
  background: #e8961a;
  box-shadow: 0 6px 20px rgba(245,166,35,0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-1px);
}


/* ============================================================
   6. FORM FIELDS
   ============================================================ */
.fld {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.fld::placeholder { color: rgba(255,255,255,0.55); }
.fld:focus {
  border-color: var(--amber);
  background: rgba(255,255,255,0.16);
}

/* Contact section uses light fields */
.contact-form-panel .fld {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--dark);
}
.contact-form-panel .fld::placeholder { color: var(--grey); }
.contact-form-panel .fld:focus { border-color: var(--red); }

select.fld option { background: var(--dark2); color: var(--white); }
.contact-form-panel select.fld option { background: var(--white); color: var(--dark); }

.form-btn {
  width: 100%;
  padding: 14px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}
.form-btn:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,16,46,0.3);
}

.form-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin-top: 10px;
}
.form-msg {
  font-size: 0.85rem;
  text-align: center;
  margin-top: 10px;
  min-height: 20px;
  font-weight: 600;
}


/* ============================================================
   7. TOPBAR
   ============================================================ */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  padding: 7px 0;
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-contact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-item svg { width: 13px; height: 13px; color: var(--red); }
.topbar-item a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.topbar-item a:hover { color: var(--white); }


/* ============================================================
   8. HEADER / NAV
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--dark);
  transition: box-shadow 0.3s;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.logo-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-top: 1px;
}

/* Desktop nav links */
header nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
header nav a {
  padding: 6px 13px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
  transition: color 0.2s, background 0.2s;
}
header nav a:hover,
header nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
header nav a.active { color: var(--amber); }

/* Header CTA button */
.header-cta {
  padding: 9px 20px;
  font-size: 0.82rem;
  flex-shrink: 0;
}

/* Hamburger */
.ham {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--white);
  margin-left: auto;
  border-radius: 4px;
  transition: background 0.2s;
}
.ham:hover { background: rgba(255,255,255,0.1); }

/* Scrolled state */
header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}


/* ============================================================
   9. MOBILE NAV
   ============================================================ */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--dark2);
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.mobile-nav.open {
  display: flex;
  max-height: 600px;
}
.mobile-nav a {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--white); }
.mobile-nav .mobile-cta {
  margin-top: 12px;
  text-align: center;
  background: var(--red);
  color: var(--white);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  border-bottom: none;
}
.mobile-nav .mobile-cta:hover { background: var(--red-dark); }


/* ============================================================
   10. HERO SECTION
   ============================================================ */
#hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--dark2);
  overflow: hidden;
  padding: 0;
}

/* Photo background fallback */
.hero-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(17,24,39,0.88) 0%, rgba(17,24,39,0.65) 50%, rgba(17,24,39,0.85) 100%),
    url('../images/hero/hero-main.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero-body {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

/* Hero content (left side) */
.hero-content { display: flex; flex-direction: column; gap: 0; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,16,46,0.2);
  border: 1px solid rgba(200,16,46,0.4);
  color: #FF8CA0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  width: fit-content;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-h1 span { color: var(--amber); }

.hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero form (right side) */
.hero-form {
  background: rgba(17,24,39,0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-form-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}
.hero-form-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}


/* ============================================================
   11. HERO VIDEO
   ============================================================
   To enable video background:
   1. Place your video file in: video/hero-bg.mp4
   2. Remove the "hidden" attribute from the <video> tag in index.html
   3. The video element becomes visible and covers the hero section
   ============================================================ */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Dark overlay on top of the video */
  /* (handled by the ::after pseudo-element below) */
}

/* Video dark overlay — same darkness as the photo gradient */
#hero:has(.hero-video-bg:not([hidden]))::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,24,39,0.82) 0%, rgba(17,24,39,0.55) 50%, rgba(17,24,39,0.78) 100%);
  z-index: 1;
  pointer-events: none;
}

/* When video is shown, hide the photo div */
#hero:has(.hero-video-bg:not([hidden])) .hero-photo {
  display: none;
}


/* ============================================================
   12. STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--red);
  padding: 32px 0;
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  flex: 1;
  min-width: 120px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ============================================================
   13. ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-body {
  color: var(--grey);
  margin-bottom: 28px;
  font-size: 1.02rem;
  line-height: 1.8;
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.about-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.apoint-icon {
  width: 40px;
  height: 40px;
  background: rgba(200,16,46,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}
.apoint-icon svg { width: 20px; height: 20px; }
.apoint-title {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
  margin-bottom: 3px;
}
.apoint-desc {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.6;
}

.about-img-wrap {
  position: relative;
}
.about-main-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--dark2), var(--dark));
}
.about-stat-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--red);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(200,16,46,0.35);
}
.about-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.about-stat-label {
  font-size: 0.78rem;
  opacity: 0.85;
  margin-top: 4px;
  font-weight: 600;
}


/* ============================================================
   14. SERVICES SECTION
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.svc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.svc-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--dark2);
}
.svc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.svc-card:hover .svc-img img { transform: scale(1.05); }
.svc-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(17,24,39,0.4) 100%);
}

/* Placeholder backgrounds when photo is missing */
.bg-concrete-fallback     { background: linear-gradient(135deg, #374151, #1F2937); }
.bg-steel-fallback        { background: linear-gradient(135deg, #1F2937, #111827); }
.bg-elec-fallback         { background: linear-gradient(135deg, #2D3748, #1A202C); }
.bg-general-fallback      { background: linear-gradient(135deg, #3D4A5C, #2D3748); }
.bg-consult-fallback      { background: linear-gradient(135deg, #1F2937, #374151); }
.bg-reno-fallback         { background: linear-gradient(135deg, #374151, #2D3748); }
.bg-solar-fallback        { background: linear-gradient(135deg, #78350F, #92400E); } /* warm amber-brown for solar */

.svc-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}
/* Amber badge variant — used for Solar */
.svc-badge--amber {
  background: var(--amber);
  color: var(--dark);
}

.svc-body { padding: 22px; }

.svc-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.svc-desc {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.6;
  margin-bottom: 14px;
}
.svc-list {
  font-size: 0.83rem;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.svc-list li::before {
  content: '—';
  color: var(--red);
  margin-right: 7px;
  font-weight: 700;
}
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--red);
  transition: gap 0.2s;
}
.svc-link svg { width: 14px; height: 14px; }
.svc-link:hover { gap: 8px; }


/* ============================================================
   15. PROJECTS GALLERY
   ============================================================ */
#projects .section-h2 { color: var(--white); }
#projects .section-sub { color: rgba(255,255,255,0.55); }

.projects-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.proj-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.proj-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark);
  cursor: pointer;
}
.proj-card.tall  { height: 320px; }
.proj-card.short { height: 210px; }
.proj-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
  background: linear-gradient(135deg, var(--dark), var(--dark2));
}
.proj-card:hover .proj-photo { transform: scale(1.06); }
.proj-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(17,24,39,0.88) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.proj-card:hover .proj-overlay { opacity: 1; }
.proj-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}
.proj-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: 3px;
}


/* ============================================================
   16. WHY US SECTION
   ============================================================ */
.why-intro {
  text-align: center;
  margin-bottom: var(--sp-xl);
}
.why-intro .section-h2 { margin-top: 6px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.why-item:hover {
  border-color: var(--red);
  box-shadow: 0 8px 28px rgba(200,16,46,0.1);
  transform: translateY(-3px);
}

.why-icon {
  width: 44px;
  height: 44px;
  background: rgba(200,16,46,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}
.why-icon svg { width: 20px; height: 20px; }

.why-title {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.why-desc {
  font-size: 0.85rem;
  color: var(--grey);
  line-height: 1.65;
}


/* ============================================================
   17. SKILLS SECTION
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.skill-photo {
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--dark2), var(--dark));
  width: 100%;
}

.skills-right .section-h2 { margin-bottom: 12px; }
.skills-intro {
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.skill-bars { display: flex; flex-direction: column; gap: 18px; }
.skill-item {}
.skill-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 7px;
}
.skill-pct { color: var(--red); }
.skill-track {
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--amber));
  border-radius: 100px;
  width: 0; /* set to 0 — JS animates to data-width% on scroll */
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================================
   18. VALUES SECTION
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.value-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 28px rgba(200,16,46,0.1);
  transform: translateY(-3px);
}
.value-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(200,16,46,0.12);
  line-height: 1;
  margin-bottom: 12px;
}
.value-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.value-desc {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.65;
}


/* ============================================================
   19. COMPLIANCE SECTION
   ============================================================ */
.compliance-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.compliance-body {
  color: var(--grey);
  line-height: 1.75;
  margin-top: 16px;
}
.compliance-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.badge-item:hover {
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(200,16,46,0.1);
  transform: translateY(-2px);
}
.badge-dot {
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}


/* ============================================================
   20. CONTACT SECTION
   ============================================================ */
#contact { padding: 0; background: var(--white); }

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.contact-info {
  background: var(--dark);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.contact-sub {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 40px;
}
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(200,16,46,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.contact-val {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  line-height: 1.6;
  transition: color 0.2s;
}
a.contact-val:hover { color: var(--white); }

.contact-form-panel {
  background: var(--light);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-form-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.contact-form-sub {
  font-size: 0.85rem;
  color: var(--grey);
  margin-bottom: 20px;
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}


/* ============================================================
   21. FOOTER
   ============================================================ */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  padding-top: 60px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--red);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-logo-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
}
.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.footer-tagline {
  font-style: italic;
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a,
.footer-links span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  line-height: 1.5;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--white); }


/* ============================================================
   22. BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(200,16,46,0.3);
  transition: background 0.2s, transform 0.2s, opacity 0.3s;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}
.back-to-top:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}


/* ============================================================
   23. ANIMATIONS & SCROLL REVEAL
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes countPulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

/* Hero entrance animations (run on page load) */
.hero-tag  { animation: fadeIn  0.6s ease both; animation-delay: 0.10s; }
.hero-h1   { animation: fadeUp  0.7s ease both; animation-delay: 0.25s; }
.hero-sub  { animation: fadeUp  0.7s ease both; animation-delay: 0.42s; }
.hero-btns { animation: fadeUp  0.7s ease both; animation-delay: 0.58s; }
.hero-form { animation: slideLeft 0.8s ease both; animation-delay: 0.35s; }

/* Scroll reveal — initial state */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.from-left  { transform: translateX(-28px); }
.reveal.from-right { transform: translateX(28px); }
.reveal.scale      { transform: scale(0.94); }

/* Activated by JS when element enters viewport */
.reveal.visible {
  opacity: 1 !important;
  transform: none !important;
}

/* Stagger children — children start hidden */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.55s; opacity: 1; transform: none; }

/* Stat counter pop */
.stat-num.popped { animation: countPulse 0.4s ease; }


/* ============================================================
   24. RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  /* Header: hide desktop nav, show hamburger */
  header nav, .header-cta { display: none; }
  .ham { display: flex; }

  /* Hero */
  .hero-body { grid-template-columns: 1fr; gap: 40px; }
  .hero-form { max-width: 520px; }
  .hero-h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }

  /* Sections */
  .about-grid  { grid-template-columns: 1fr; gap: 48px; }
  .about-img-wrap { order: -1; }
  .about-stat-card { left: 0; bottom: -16px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-mosaic { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; gap: 40px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }

  .compliance-inner { grid-template-columns: 1fr; gap: 40px; }

  .contact-split { grid-template-columns: 1fr; }
  .contact-info  { padding: 60px 40px; }
  .contact-form-panel { padding: 60px 40px; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}


/* ============================================================
   25. RESPONSIVE — MOBILE (≤640px)
   ============================================================ */
@media (max-width: 640px) {
  :root { --sp-2xl: 4rem; }

  .topbar { display: none; } /* hide topbar on small screens */

  .header-inner { gap: 0; }

  /* Hero */
  #hero { min-height: 80vh; }
  .hero-body { padding: 60px 20px; }
  .hero-h1 { font-size: 2.2rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns a { width: 100%; text-align: center; justify-content: center; }
  .hero-form { padding: 24px 20px; }

  /* Stats */
  .stats-inner { gap: 28px; }
  .stat-num { font-size: 2rem; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Projects */
  .projects-mosaic { grid-template-columns: 1fr; }
  .proj-card.tall, .proj-card.short { height: 220px; }
  .proj-overlay { opacity: 1; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; }

  /* Values */
  .values-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-info, .contact-form-panel { padding: 48px 24px; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .footer-bottom-right { flex-direction: column; gap: 6px; }

  /* Back to top */
  .back-to-top { bottom: 20px; right: 20px; }
}


/* ============================================================
   26. RESPONSIVE — SMALL MOBILE (≤380px)
   ============================================================ */
@media (max-width: 380px) {
  .logo-name small { display: none; }
  .hero-h1 { font-size: 1.9rem; }
  .section-h2 { font-size: 1.75rem; }
  .stat-num { font-size: 1.8rem; }
  .contact-h2 { font-size: 1.6rem; }
}


/* ============================================================
   24. SOLAR BANNER SECTION
   Full-width second hero promoting solar services.
   Dark/amber colour scheme to stand apart from the red brand.
   ============================================================ */

/* ── Nav accent for Solar link ── */
header nav .nav-solar,
.mobile-nav a[href="#solar"] {
  color: var(--amber);
}
header nav .nav-solar:hover,
header nav .nav-solar.active {
  color: var(--amber) !important;
  border-bottom-color: var(--amber);
}

/* ── Section wrapper ── */
.solar-banner {
  position: relative;
  overflow: hidden;
  background: #0d1117;
  padding: 80px 0;
}

/* Subtle radial amber glow in the top-right corner */
.solar-banner__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 90% 10%, rgba(245,166,35,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 10% 90%, rgba(200,16,46,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Animated faint horizontal lines (circuit-board feel) */
.solar-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 39px,
    rgba(245,166,35,0.05) 39px,
    rgba(245,166,35,0.05) 40px
  );
  pointer-events: none;
}

/* ── Inner layout: two columns ── */
.solar-banner__inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: center;
}

/* ── Content column ── */
.solar-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.3);
  color: var(--amber);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.solar-banner__sun {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  animation: spinSlow 18s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.solar-banner__h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 18px;
}

.solar-banner__h2 span {
  color: var(--amber);
}

.solar-banner__sub {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin-bottom: 28px;
}

/* ── Bullet list ── */
.solar-banner__list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.solar-banner__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.925rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
}

.solar-banner__list li svg {
  width: 16px;
  height: 16px;
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── CTA row ── */
.solar-banner__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.solar-banner__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.solar-banner__more:hover {
  color: var(--amber);
}

.solar-banner__more svg {
  transition: transform 0.2s;
}

.solar-banner__more:hover svg {
  transform: translateX(3px);
}

/* ── Right: stat cards column ── */
.solar-banner__stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.solar-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(245,166,35,0.15);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background 0.25s, border-color 0.25s;
}

.solar-stat:hover {
  background: rgba(245,166,35,0.07);
  border-color: rgba(245,166,35,0.35);
}

.solar-stat__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245,166,35,0.1);
  border-radius: 8px;
  color: var(--amber);
}

.solar-stat__icon svg {
  width: 22px;
  height: 22px;
}

.solar-stat__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  white-space: nowrap;
}

.solar-stat__label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
  margin-top: 2px;
}

/* ── Responsive: solar banner ── */
@media (max-width: 1024px) {
  .solar-banner__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .solar-banner__stats {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .solar-stat {
    flex: 1 1 200px;
  }
}

@media (max-width: 640px) {
  .solar-banner { padding: 60px 0; }
  .solar-banner__list {
    grid-template-columns: 1fr;
  }
  .solar-banner__stats {
    flex-direction: column;
  }
  .solar-stat { flex: unset; }
}


/* ============================================================
   END OF STYLESHEET
   ============================================================ */
