/* Martinez's Home Exteriors LLC — navy / red / white / silver */
:root {
  --navy: #0b1f3a;
  --navy-deep: #061427;
  --navy-mid: #14325a;
  --red: #c8102e;
  --red-bright: #e01838;
  --red-dark: #9a0c22;
  --silver: #c5ced8;
  --silver-bright: #e8eef5;
  --white: #ffffff;
  --off-white: #f4f7fb;
  --text: #1a2332;
  --muted: #5a6a7e;
  --shadow: 0 12px 40px rgba(6, 20, 39, 0.18);
  --shadow-soft: 0 6px 20px rgba(6, 20, 39, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ——— Top bar ——— */
.topbar {
  background: var(--navy-deep);
  color: var(--silver);
  font-size: 0.85rem;
  padding: 0.45rem 0;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: var(--silver-bright); }
.topbar a:hover { color: #fff; }
.topbar-phones { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(197,206,216,0.35);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
}
.lang-toggle:hover { background: rgba(255,255,255,0.16); }

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #0d2748 0%, var(--navy) 100%);
  box-shadow: 0 4px 24px rgba(0,0,0,0.28);
  border-bottom: 3px solid var(--red);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand img {
  height: 72px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}
.brand-text {
  display: none;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand-text span {
  color: var(--silver);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--silver);
  color: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-size: 1.1rem;
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--silver-bright);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: #fff; border-bottom-color: var(--red); }
.nav .btn-nav {
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  color: #fff !important;
  border: none;
  border-bottom: none !important;
  border-radius: 999px;
  padding: 0.55rem 1.1rem !important;
  box-shadow: 0 4px 14px rgba(200,16,46,0.4);
}
.nav .btn-nav:hover {
  background: linear-gradient(180deg, #f02848, var(--red-bright));
}

/* ——— Hero ——— */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(200,16,46,0.18), transparent 50%),
    radial-gradient(ellipse at 80% 0%, rgba(197,206,216,0.12), transparent 45%),
    linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 45%, #1a3d6e 100%);
  color: #fff;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to top right, var(--off-white) 49%, transparent 51%);
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 860px) {
  .hero .container { grid-template-columns: 1.15fr 0.85fr; }
  .brand-text { display: flex; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(197,206,216,0.35);
  color: var(--silver-bright);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.hero h1 .accent {
  display: block;
  background: linear-gradient(90deg, #fff, var(--silver));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.15));
}
.hero h1 .red-line {
  color: var(--red-bright);
  text-shadow: 0 0 24px rgba(200,16,46,0.45);
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--silver-bright);
  max-width: 36rem;
  margin-bottom: 1.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--red-bright), var(--red-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(200,16,46,0.45);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #f53a55, var(--red));
}
.btn-secondary {
  background: rgba(255,255,255,0.08);
  border-color: var(--silver);
  color: #fff;
}
.btn-secondary:hover { background: rgba(255,255,255,0.16); }
.btn-dark {
  background: linear-gradient(180deg, var(--navy-mid), var(--navy-deep));
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-outline-red {
  background: #fff;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline-red:hover { background: #fff5f6; }

.hero-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.hero-phones a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-phones a:hover { color: var(--silver-bright); }

.hero-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(197,206,216,0.35);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.hero-card img {
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
}
.hero-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.stat {
  background: rgba(6,20,39,0.45);
  border: 1px solid rgba(197,206,216,0.2);
  border-radius: 12px;
  padding: 0.85rem;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
}
.stat span {
  font-size: 0.75rem;
  color: var(--silver);
}

/* ——— Sections ——— */
section { padding: 3.5rem 0; }
.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.25rem;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}
.section-head p { color: var(--muted); }

/* Services */
.services { background: #fff; }
.services-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}
.service-card {
  background: linear-gradient(180deg, #fff 0%, var(--off-white) 100%);
  border: 1px solid #e1e8f0;
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--red));
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--navy), var(--navy-mid));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 6px 16px rgba(11,31,58,0.25);
}
.service-card.featured {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff;
  border-color: transparent;
}
.service-card.featured::before {
  background: linear-gradient(90deg, var(--red-bright), #ffd0d7);
}
.service-card.featured h3 { color: #fff; }
.service-card.featured p { color: var(--silver-bright); }
.service-card.featured .service-icon {
  background: linear-gradient(145deg, var(--red-bright), var(--red-dark));
}
.service-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
}
.service-tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-bright);
  background: rgba(200,16,46,0.12);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}
.service-card.featured .service-tag {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Why us */
.why {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(200,16,46,0.08), transparent 40%),
    var(--off-white);
}
.why-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .why-grid { grid-template-columns: 0.9fr 1.1fr; }
}
.why-visual {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy-mid));
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(197,206,216,0.25);
  text-align: center;
}
.why-visual img {
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}
.why-visual p {
  color: var(--silver-bright);
  font-size: 0.95rem;
}
.why-list {
  display: grid;
  gap: 0.9rem;
}
.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid #e1e8f0;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
}
.why-check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--red-bright), var(--red-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(200,16,46,0.35);
}
.why-item h3 {
  font-size: 1.02rem;
  color: var(--navy);
  margin-bottom: 0.15rem;
}
.why-item p { color: var(--muted); font-size: 0.92rem; }

/* Area */
.area {
  background: linear-gradient(145deg, var(--navy-deep), var(--navy) 60%, #1a3d6e);
  color: #fff;
}
.area .section-head h2 { color: #fff; }
.area .section-head p { color: var(--silver); }
.area .eyebrow { color: var(--red-bright); }
.cities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}
.city {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(197,206,216,0.28);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--silver-bright);
}
.city:hover { background: rgba(255,255,255,0.14); color: #fff; }
.area-note {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--silver);
  font-size: 0.95rem;
}

/* Quote form */
.quote { background: #fff; }
.quote-panel {
  display: grid;
  gap: 1.5rem;
  background: linear-gradient(160deg, var(--off-white), #fff);
  border: 1px solid #e1e8f0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
@media (min-width: 860px) {
  .quote-panel { grid-template-columns: 0.9fr 1.1fr; padding: 2rem; }
}
.quote-copy h2 {
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.65rem;
}
.quote-copy p { color: var(--muted); margin-bottom: 1rem; }
.quote-bullets li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.quote-bullets li::before {
  content: "✓";
  color: var(--red);
  font-weight: 800;
}
.form-grid {
  display: grid;
  gap: 0.85rem;
}
.form-grid .row {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 560px) {
  .form-grid .row { grid-template-columns: 1fr 1fr; }
}
label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
input, select, textarea {
  width: 100%;
  border: 1.5px solid #cfd8e3;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(20,50,90,0.15);
}
textarea { min-height: 110px; resize: vertical; }
.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
}
.form-actions { margin-top: 0.35rem; }
.form-actions .btn { width: 100%; }

/* CTA strip */
.cta-strip {
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--red-bright));
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}
.cta-strip h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 0.85rem;
}
.cta-strip .hero-actions { justify-content: center; margin-bottom: 0; }
.cta-strip .btn-secondary {
  border-color: #fff;
  background: rgba(255,255,255,0.12);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: var(--silver);
  padding: 2.5rem 0 1.5rem;
  border-top: 3px solid var(--red);
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-brand img {
  height: 80px;
  width: auto;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
}
.footer-brand p { font-size: 0.92rem; max-width: 22rem; }
.footer-brand .slogan {
  color: #fff;
  font-weight: 800;
  margin: 0.5rem 0 0.35rem;
}
.footer-col h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  color: var(--silver);
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(197,206,216,0.15);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  font-size: 0.82rem;
}
.legal-name { opacity: 0.85; }

/* Mobile nav */
@media (max-width: 859px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 3px solid var(--red);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(197,206,216,0.12);
  }
  .nav .btn-nav {
    text-align: center;
    margin-top: 0.35rem;
  }
  .brand img { height: 58px; }
}

/* Utils */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
