/* =========================================================
   Cedar Electrical — Stylesheet
   ========================================================= */

:root {
  --yellow: #f4c522;
  --yellow-dark: #e0af00;
  --navy: #14161f;
  --navy-soft: #1b1e2a;
  --ink: #1a1c26;
  --gray: #6b6f7b;
  --gray-light: #9a9ea8;
  --cream: #fbf8ef;
  --white: #ffffff;
  --border: #e9e6da;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow: 0 20px 45px -20px rgba(20, 22, 31, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Kill the default mobile "tap highlight" flash and the browser's default
   focus ring on links/buttons (it can render as a stray orange/blue circle
   or oval over pill-shaped buttons); keyboard users still get a clear,
   intentional outline via :focus-visible. */
a, button {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--yellow-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.text-accent { color: var(--yellow-dark); position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--yellow-dark);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s ease, color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 10px 24px -10px rgba(244, 197, 34, 0.7);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -12px rgba(244, 197, 34, 0.85);
  background: var(--yellow-dark);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-3px);
}
.btn-block { width: 100%; }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; margin-top: 6px; }
.btn-arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Placeholder images ---------- */
.img-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 10px, transparent 10px 20px),
    linear-gradient(145deg, #232636, #14161f);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(255,255,255,0.55);
  min-height: 120px;
}
.img-placeholder::before {
  content: '🖼';
  font-size: 1.6rem;
  opacity: 0.5;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -140%);
}
.img-placeholder::after {
  content: attr(data-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 0 10px;
  position: relative;
  top: 10px;
}

/* Once a real photo is dropped into a placeholder box, it should fill the
   box completely (no gaps, no visible striped background) and the
   decorative placeholder icon/label should disappear. */
.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.img-placeholder:has(img) {
  background: none;
}
.img-placeholder:has(img)::before,
.img-placeholder:has(img)::after {
  content: none;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}
.site-header.scrolled {
  box-shadow: 0 8px 24px -16px rgba(20,22,31,0.25);
  border-color: var(--border);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
  transition: padding 0.35s ease;
}
/* Explicit column assignment keeps logo/actions pinned to their sides even
   when the nav (the middle column's only item) is display:none on mobile —
   otherwise grid auto-placement would slide header-actions into the gap. */
.header-inner .logo { grid-column: 1; justify-self: start; }
.header-inner .main-nav { grid-column: 2; }
.header-inner .header-actions { grid-column: 3; justify-self: end; }
.site-header.scrolled .header-inner { padding-top: 12px; padding-bottom: 12px; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--navy);
  flex-shrink: 0;
}
.logo img {
  height: 42px;
  width: auto;
  display: block;
  transition: height 0.35s ease;
}
.site-header.scrolled .logo img { height: 34px; }
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: var(--yellow);
  border-radius: 10px;
  font-size: 1.1rem;
  transform: rotate(0deg);
  transition: transform 0.5s var(--ease);
}
.logo:hover .logo-icon { transform: rotate(-14deg) scale(1.05); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-sub { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.18em; color: var(--gray); margin-top: 3px; }

.main-nav ul { display: flex; gap: 34px; }
.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--yellow-dark);
  transition: width 0.3s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--yellow-dark); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-call-btn { display: inline-flex; align-items: center; gap: 9px; }
.icon-circle {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  z-index: 600;
}
.hamburger span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s ease, background 0.3s ease;
}

/* When the mobile nav drawer is open, header content sitting under/near
   the dark overlay needs to switch to a light color to stay visible. */
body.nav-open .hamburger span { background: var(--white); }
body.nav-open .site-header .logo-text { color: var(--white); }
body.nav-open .site-header .logo-sub { color: rgba(255, 255, 255, 0.55); }
body.nav-open .header-actions > .btn-primary { opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { overflow: hidden; }

/* Full-bleed hero photo with a soft left-to-right shade so the copy on the
   left stays readable, no matter what the photo looks like. */
.hero-banner {
  position: relative;
  overflow: hidden;
  padding: 120px 0 76px;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(14, 15, 22, 0.78) 0%,
    rgba(14, 15, 22, 0.55) 32%,
    rgba(14, 15, 22, 0.18) 58%,
    rgba(14, 15, 22, 0) 76%
  );
}

.hero-grid {
  position: relative;
  z-index: 2;
}
.hero-copy { max-width: 620px; }
.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  margin-bottom: 16px;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  margin-bottom: 22px;
  color: var(--white);
}
.hero-copy p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 440px;
  margin-bottom: 32px;
  font-size: 1.02rem;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-banner .btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}
.hero-banner .btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

/* Trusted-since badge — anchored to the bottom-right corner of the hero
   banner itself, independent of the text column. */
.hero-badge {
  position: absolute;
  z-index: 3;
  right: 32px;
  bottom: 28px;
  width: 118px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.badge-spin { width: 100%; height: 100%; animation: spin 14s linear infinite; }
.badge-spin path { fill: none; }
.badge-spin text { fill: var(--navy); text-transform: uppercase; }
.badge-center {
  position: absolute;
  font-size: 1.4rem;
  background: var(--yellow);
  color: var(--navy);
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

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

/* Marquee strip */
.marquee {
  background: var(--navy);
  overflow: hidden;
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  gap: 14px;
  white-space: nowrap;
  width: max-content;
  animation: marqueeScroll 22s linear infinite;
}
.marquee-track span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}
.marquee-track .dot { color: var(--yellow); }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

/* =========================================================
   FEATURES
   ========================================================= */
.features { padding: 56px 0; border-bottom: 1px solid var(--border); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  transition: background 0.3s ease, transform 0.3s ease;
}
.feature-item:hover { background: var(--cream); transform: translateY(-4px); }
.feature-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.feature-item h4 { font-size: 1.02rem; margin-bottom: 2px; }
.feature-item p { color: var(--gray); font-size: 0.9rem; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding: 100px 0; background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about-collage { position: relative; padding: 30px 40px 40px 0; }
.collage-img-1 { width: 78%; aspect-ratio: 3/3.6; }
.collage-img-2 {
  width: 55%;
  aspect-ratio: 4/3;
  position: absolute;
  right: 0;
  top: 0;
  border: 6px solid var(--cream);
}
.about-years {
  position: absolute;
  left: -10px;
  top: 40%;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.years-number { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--yellow); }
.about-years span:nth-child(2) { font-size: 1.3rem; font-weight: 800; color: var(--yellow); }
.about-years p { font-size: 0.72rem; color: rgba(255,255,255,0.8); margin-top: 2px; }
.about-caption {
  position: absolute;
  bottom: 0;
  right: 10%;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  max-width: 170px;
}
.about-caption span { font-size: 1.2rem; }
.about-caption p { font-size: 0.72rem; font-weight: 600; color: var(--navy); line-height: 1.4; }

.about-copy h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 18px; }
.about-copy > p { color: var(--gray); margin-bottom: 26px; max-width: 480px; }

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 30px;
}
.checklist li {
  position: relative;
  padding-left: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0; top: -1px;
  width: 18px; height: 18px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 50%;
  font-size: 0.68rem;
  display: flex; align-items: center; justify-content: center;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.stat-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  transition: transform 0.35s var(--ease);
}
.stat-box:hover { transform: translateY(-6px); }
.stat-icon { font-size: 1.2rem; }
.stat-number { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--yellow); }
.stat-box > span:nth-child(3) { font-family: var(--font-head); font-weight: 800; color: var(--yellow); font-size: 1.2rem; }
.stat-box p { font-size: 0.75rem; color: rgba(255,255,255,0.75); margin-top: 2px; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding: 100px 0; }
.services-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: flex-start;
}
.services-copy h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 18px; }
.services-copy p { color: var(--gray); margin-bottom: 28px; max-width: 420px; }

.services-list { display: flex; flex-direction: column; gap: 16px; }
.service-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: transform 0.4s var(--ease), background 0.4s ease;
  position: relative;
  overflow: hidden;
}
.service-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(244,197,34,0.12), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}
.service-row:hover::before { transform: translateX(120%); }
.service-row:hover { transform: translateX(8px); background: #1e2130; }
.service-thumb { width: 74px; height: 64px; flex-shrink: 0; min-height: unset; }
.service-thumb::before { transform: translate(-50%, -110%); font-size: 1rem; }
.service-thumb::after { font-size: 0.55rem; top: 4px; }
.service-info { flex: 1; }
.service-info h4 { color: var(--yellow); font-size: 1.02rem; margin-bottom: 4px; }
.service-info p { color: rgba(255,255,255,0.65); font-size: 0.85rem; }
.service-row .arrow {
  color: var(--white);
  font-size: 1.3rem;
  transition: transform 0.35s var(--ease);
}
.service-row:hover .arrow { transform: translate(4px, -4px); }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects { padding: 100px 0; background: var(--cream); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card { cursor: pointer; }
.project-img { aspect-ratio: 4/3; margin-bottom: 14px; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.project-card:hover .project-img { transform: translateY(-8px); box-shadow: var(--shadow); }
/* Show the whole project photo rather than cropping it to the 4:3 frame */
.project-img img { object-fit: contain; }
.img-placeholder.project-img:has(img) { background: var(--cream); }
.project-card h4 { font-size: 1rem; margin-bottom: 2px; }
.project-card p { color: var(--gray); font-size: 0.85rem; }

/* =========================================================
   TEAM
   ========================================================= */
.team { padding: 100px 0; }
.team-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 50px; align-items: center; }
.team-copy h2 { font-size: clamp(1.8rem, 3vw, 2.2rem); margin-bottom: 16px; }
.team-copy p { color: var(--gray); margin-bottom: 20px; max-width: 380px; }
.link-underline {
  font-weight: 700;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.link-underline:hover { color: var(--yellow-dark); border-color: var(--yellow-dark); }

.team-grid-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-photo { aspect-ratio: 3/3.6; margin-bottom: 14px; transition: transform 0.45s var(--ease); }
.team-member:hover .team-photo { transform: translateY(-8px) rotate(-1deg); }
.team-member h5 { font-size: 0.98rem; margin-bottom: 2px; }
.team-member p { font-size: 0.82rem; color: var(--gray); }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner { background: var(--navy); padding: 80px 0; overflow: hidden; }
.cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}
.cta-inner h2 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 16px; }
.cta-inner > div:first-child p { color: rgba(255,255,255,0.65); margin-bottom: 28px; max-width: 420px; }
.cta-img { aspect-ratio: 16/10; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: 100px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
}
.contact-form-wrap h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { position: relative; margin-bottom: 18px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: none;
}
.form-group select { appearance: none; color: var(--ink); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--yellow-dark);
  box-shadow: 0 0 0 4px rgba(244,197,34,0.18);
}
.form-group label {
  position: absolute;
  left: 18px;
  top: 16px;
  color: var(--gray-light);
  font-size: 0.95rem;
  pointer-events: none;
  transition: transform 0.25s var(--ease), font-size 0.25s var(--ease), color 0.25s ease, top 0.25s ease;
  background: var(--cream);
  padding: 0 4px;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -9px;
  font-size: 0.72rem;
  color: var(--yellow-dark);
  font-weight: 700;
}
.select-label {
  top: -9px !important;
  font-size: 0.72rem !important;
  color: var(--gray) !important;
  font-weight: 700;
  background: var(--cream);
}
.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: #eef8ee;
  color: #2f7a3d;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}
.form-success.show { display: block; animation: fadeInUp 0.5s var(--ease); }

.contact-side {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-side h3 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 22px; }
.contact-side p { font-weight: 700; letter-spacing: 0.04em; color: rgba(255,255,255,0.7); font-size: 0.85rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding-top: 50px; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-top p { color: var(--white); font-weight: 700; font-size: 1.05rem; }
.footer-top span { font-size: 0.85rem; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  min-width: 240px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form button {
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s ease;
}
.newsletter-form button:hover { transform: translateY(-2px); background: var(--yellow-dark); }

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0;
}
.footer-brand p { font-size: 0.87rem; margin: 16px 0 20px; max-width: 280px; }
.logo-footer {
  color: var(--white);
  display: inline-flex;
  width: fit-content;
}
.logo-footer img { height: 34px; width: auto; display: block; }
.social-icons { display: flex; gap: 10px; }
.social-icons a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
.social-icons a svg { width: 18px; height: 18px; display: block; }
.social-icons a:hover { background: var(--yellow); color: var(--navy); transform: translateY(-3px); }

.footer-col h5 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; font-size: 0.87rem; margin-bottom: 12px; transition: color 0.3s ease, transform 0.3s ease; }
.footer-col a:hover { color: var(--yellow); transform: translateX(3px); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--yellow); }

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.35s var(--ease);
  z-index: 400;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); background: var(--yellow-dark); }

/* =========================================================
   PAGE LOADER
   ========================================================= */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-bolt {
  font-size: 2.6rem;
  color: var(--yellow);
  animation: pulseBolt 1s ease-in-out infinite;
}
@keyframes pulseBolt {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   RESPONSIVE — TABLET (≤1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .container { padding-left: 24px; padding-right: 24px; }

  .main-nav { display: none; }

  .hamburger { display: flex; }

  .main-nav.open {
    display: block;
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--navy);
    padding: 110px 32px 40px;
    z-index: 550;
    animation: slideIn 0.4s var(--ease);
  }
  .main-nav.open ul { flex-direction: column; gap: 26px; }
  .main-nav.open .nav-link { color: var(--white); font-size: 1.1rem; }
  .main-nav.open .nav-link::after { background: var(--yellow); }

  .hero-banner { padding: 90px 0 60px; }
  .hero-copy { max-width: none; text-align: center; margin: 0 auto; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-badge { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-collage { max-width: 460px; margin: 0 auto 20px; padding: 30px 30px 40px 0; }
  .checklist { grid-template-columns: 1fr 1fr; }

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

  .team-grid { grid-template-columns: 1fr; }
  .team-copy { text-align: center; }
  .team-copy p { margin-left: auto; margin-right: auto; }

  .cta-inner { grid-template-columns: 1fr; text-align: center; }
  .cta-inner > div:first-child { order: 2; }
  .cta-inner > div:first-child p { margin-left: auto; margin-right: auto; }
  .cta-img { order: 1; max-width: 420px; margin: 0 auto; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-main { grid-template-columns: 1fr 1fr; }
}

@keyframes slideIn {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* =========================================================
   RESPONSIVE — MOBILE (≤680px)
   ========================================================= */
@media (max-width: 680px) {
  .container { padding-left: 20px; padding-right: 20px; }

  .main-nav.open { inset: 0; }

  /* Keep the call button visible at every width (it's the only phone
     contact left in the header) but shrink it so it fits beside the
     hamburger on narrow screens. */
  .header-call-btn { padding: 11px 16px; font-size: 0.82rem; gap: 6px; }
  .header-call-btn span { display: none; }
  .header-call-btn::after { content: 'Call'; }

  .hero-banner { padding: 70px 0 50px; }
  .hero-copy h1 { font-size: 2.1rem; }

  .marquee-track span { font-size: 0.85rem; }

  .features-grid { grid-template-columns: 1fr; gap: 14px; }

  .about { padding: 64px 0; }
  .about-years { padding: 12px 16px; left: 0; }
  .years-number { font-size: 1.5rem; }
  .about-caption { max-width: 140px; padding: 12px; right: 0; }
  .checklist { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; gap: 10px; }
  .stat-box { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 18px; }

  .services { padding: 64px 0; }
  .service-row { flex-wrap: wrap; }

  .projects { padding: 64px 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }

  .team { padding: 64px 0; }
  .team-grid-photos { grid-template-columns: 1fr 1fr; }
  .team-member:last-child { grid-column: span 2; max-width: 200px; margin: 0 auto; }

  .cta-banner { padding: 56px 0; }

  .contact { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Simplified mobile footer: logo/brand block leads, a compact two-column
     link grid follows (the "Our Services" column is dropped as redundant
     with the main nav), then the newsletter prompt, then the legal bar. */
  .site-footer { display: flex; flex-direction: column; }
  .footer-top { order: 2; flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex: 1; min-width: 0; }

  .footer-main { order: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-main .footer-col:nth-child(3) { display: none; }

  .footer-bottom { order: 3; flex-direction: column; text-align: center; }

  .back-to-top { bottom: 18px; right: 18px; width: 42px; height: 42px; }
}
