﻿/* ===== EZ Construction / ezreorepairs.com ===== */

:root {
  --navy: #0d2340;
  --navy-light: #16345c;
  --navy-lighter: #1f4470;
  --accent: #ffd400;
  --accent-dark: #b58900;
  --gray-50: #f7f8fa;
  --gray-100: #eef1f5;
  --gray-200: #dde3ea;
  --text: #1c2733;
  --text-muted: #5b6b7d;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(13, 35, 64, 0.08);
  --shadow-lg: 0 12px 40px rgba(13, 35, 64, 0.14);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--text-muted); }

a { color: var(--accent-dark); text-decoration: none; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section--tight { padding: 48px 0; }

.section--gray { background: var(--gray-50); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #c3d0e0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(255, 212, 0, 0.14);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section--navy .eyebrow {
  color: #ffe066;
  background: rgba(255, 212, 0, 0.18);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p { font-size: 1.05rem; }

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn--accent {
  background: var(--accent);
  color: var(--navy);
}
.btn--accent:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn--outline-dark {
  background: transparent;
  border-color: var(--navy-lighter);
  color: var(--navy);
}
.btn--outline-dark:hover { background: var(--gray-100); }

.btn--block { width: 100%; justify-content: center; }

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(13,35,64,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.15;
  color: var(--navy);
  margin-right: 12px;
  flex-shrink: 0;
}

.logo .logo-badge {
  width: auto;
  height: auto;
  background: none;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.7rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.logo small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.65rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--accent-dark); }
.main-nav a.active { color: var(--accent-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.98rem;
  white-space: nowrap;
}
.header-phone i { color: var(--accent-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 940px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .header-phone span { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 600px) {
  .header-inner { padding: 12px 16px; }
  .logo .logo-badge { font-size: 2.3rem; }
  .logo { font-size: 1.05rem; gap: 8px; margin-right: 8px; }
  .logo small { font-size: 0.58rem; }
  .header-actions { gap: 8px; }
  .header-actions .btn--accent { padding: 10px 14px; font-size: 0.85rem; }
  .header-phone { display: none; }
}

/* ===== Hero ===== */

.hero {
  background:
    linear-gradient(120deg, rgba(9, 24, 45, 0.93) 0%, rgba(9, 24, 45, 0.82) 35%, rgba(9, 24, 45, 0.62) 100%),
    url('../images/hero-bg.png') center center / cover no-repeat;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  padding: 110px 24px 90px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { color: var(--white); }
.hero p.lede { font-size: 1.15rem; color: #cfdaea; max-width: 540px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
  max-width: 520px;
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; gap: 10px; }
}
.hero-stats div { text-align: left; }
.hero-stats .num {
  font-family: 'Sora', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent);
}
.hero-stats .label { font-size: 0.82rem; color: #b9c8dc; }

.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(6px);
}
.hero-panel h3 { color: var(--white); margin-bottom: 18px; }
.hero-panel ul { list-style: none; padding: 0; margin: 0; }
.hero-panel li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #dbe5f1;
  font-size: 0.94rem;
}
.hero-panel li:last-child { border-bottom: none; }
.hero-panel i { color: var(--accent); margin-top: 3px; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 60px; }
}

/* ===== Page header (non-home hero) ===== */

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 70px 24px 60px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: #cfdaea; max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

/* ===== Cards / Grids ===== */

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

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card .icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(255, 212, 0, 0.14);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.card--flat {
  box-shadow: none;
  border: 1px solid var(--gray-200);
}

.stars {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.card p + strong {
  display: block;
  color: var(--navy);
  margin-top: 4px;
}

.review-title {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.stat-card {
  text-align: center;
  padding: 28px 16px;
}
.stat-card .num {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--navy);
}
.stat-card .label {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

/* ===== Process steps ===== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.steps--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: 30px 22px 22px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Coverage / placeholder tiles ===== */

.tile {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.tile-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--accent-dark);
  font-weight: 600;
}
.tile-visual {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: rgba(255,255,255,0.9);
  background: linear-gradient(135deg, var(--navy-light), var(--accent-dark));
}
.tile-visual.alt1 { background: linear-gradient(135deg, #1f4470, #2f6ea3); }
.tile-visual.alt2 { background: linear-gradient(135deg, var(--navy), #3a3a3a); }
.tile-visual.alt3 { background: linear-gradient(135deg, var(--accent-dark), #5c4a0a); }
.tile-visual.photo {
  padding: 0;
  height: 220px;
  overflow: hidden;
}
.tile-visual.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.tile:hover .tile-visual.photo img { transform: scale(1.06); }
.tile-body { padding: 20px 22px 24px; }
.tile-body h3 { margin-bottom: 6px; }
.tile-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

/* ===== CTA banner ===== */

.cta-banner {
  background: linear-gradient(120deg, var(--accent-dark), var(--accent));
  color: var(--navy);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--navy); margin-bottom: 8px; }
.cta-banner p { color: rgba(13, 35, 64, 0.8); margin: 0; }
.cta-banner .btn--accent { background: var(--navy); color: var(--white); }
.cta-banner .btn--accent:hover { background: #051526; }

/* ===== Forms ===== */

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--text);
  background: var(--gray-50);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 120px; }
.hp-field { position: absolute; left: -9999px; }

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 14px;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-info-list .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 212, 0, 0.14);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-list strong { display: block; color: var(--navy); }

/* ===== Footer ===== */

.site-footer {
  background: #081627;
  color: #a9b8cc;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.footer-logo .logo-badge {
  width: auto; height: auto; background: none;
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.7rem; line-height: 1; font-weight: 800; letter-spacing: -0.03em;
  flex-shrink: 0;
}
.site-footer p { color: #8b9bb0; font-size: 0.92rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #a9b8cc; font-size: 0.92rem; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #6d7f96;
}

/* ===== Full project gallery grid (detail pages) ===== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-grid .photo {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-100);
}
.gallery-grid .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cfdaea;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 14px;
}
.back-link:hover { color: var(--white); }

/* ===== Project galleries ===== */

.project-block { margin-bottom: 64px; }
.project-block:last-child { margin-bottom: 0; }

.project-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.project-block-head h3 { margin: 0; font-size: 1.4rem; }
.project-block-head .tile-tag { margin: 0; }

.carousel-wrap {
  position: relative;
}

.carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 6px;
  margin: 0 -4px;
  padding-left: 4px;
  padding-right: 4px;
}

.carousel .photo {
  flex: 0 0 auto;
  width: 300px;
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  background: var(--gray-100);
}
.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

@media (max-width: 640px) {
  .carousel .photo { width: 78vw; }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(13, 35, 64, 0.75);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s ease;
}
.carousel-btn:hover { background: var(--navy); }
.carousel-btn.prev { left: -18px; }
.carousel-btn.next { right: -18px; }

@media (max-width: 640px) {
  .carousel-btn { display: none; }
}

.home-gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .home-gallery-strip { grid-template-columns: repeat(2, 1fr); } }

.home-gallery-strip a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.home-gallery-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.home-gallery-strip a:hover img { transform: scale(1.06); }

/* ===== Misc utility ===== */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.list-check i { color: var(--accent-dark); margin-top: 4px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

.badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
}
.badge-strip span { display: flex; align-items: center; gap: 8px; }
.badge-strip i { color: var(--accent-dark); }
