/* =====================================================
   Mega Renovations Enterprises Inc. — megarenovationsfl.com
   ===================================================== */

:root {
  --navy-900: #0c1826;
  --navy-800: #12263c;
  --navy-700: #1a3450;
  --orange-500: #f5820d;
  --orange-600: #e07408;
  /* WCAG AA-compliant orange for text on white/paper-warm backgrounds */
  --orange-text: #a34f00;
  --ink: #1c2733;
  --ink-soft: #4a5866;
  --paper: #ffffff;
  --paper-warm: #f6f4f0;
  --line: #e3e0da;
  --line-dark: rgba(255, 255, 255, 0.14);
  --text-on-dark: #e9eef4;
  --text-on-dark-soft: #b6c2cf;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  --shadow-card: 0 2px 6px rgba(12, 24, 38, 0.06), 0 12px 28px rgba(12, 24, 38, 0.08);
  --container: 1140px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

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

.icon { width: 24px; height: 24px; flex: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange-500);
  color: var(--navy-900);
  font-weight: 700;
  padding: 10px 18px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: 0.03em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--orange-text); }
a:hover { color: #7f3e00; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  line-height: 1;
  padding: 15px 28px;
  border-radius: 6px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange-500);
  color: var(--navy-900);
}
.btn-primary:hover {
  background: #ff9327;
  color: var(--navy-900);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-outline:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-dark {
  background: var(--navy-800);
  color: #fff;
}
.btn-dark:hover { background: var(--navy-700); color: #fff; }

.btn-lg { font-size: 1.15rem; padding: 17px 34px; }
.btn-sm { font-size: 0.95rem; padding: 11px 18px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-900);
  border-bottom: 3px solid var(--orange-500);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark { width: 42px; height: 42px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.35rem;
  color: #fff;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-500);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a:not(.btn) {
  color: var(--text-on-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}
.nav-menu a:not(.btn):hover { color: var(--orange-500); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  margin: 5px 0;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(245, 130, 13, 0.14), transparent 55%),
    linear-gradient(160deg, rgba(18, 38, 60, 0.86) 0%, rgba(12, 24, 38, 0.93) 70%),
    url("../images/hero-worker.jpg") center 30% / cover no-repeat,
    var(--navy-900);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding-top: clamp(64px, 10vw, 120px);
  padding-bottom: clamp(72px, 11vw, 132px);
  max-width: 820px;
  margin: 0;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  color: var(--orange-500);
  border: 1px solid rgba(245, 130, 13, 0.45);
  border-radius: 999px;
  padding: 7px 18px;
  margin-bottom: 26px;
}

.hero h1 { color: #fff; }

.hero-sub {
  font-size: 1.13rem;
  color: var(--text-on-dark-soft);
  max-width: 640px;
  margin: 18px auto 34px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.hero-stripe {
  position: relative;
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--orange-500) 0 22px,
    var(--navy-900) 22px 44px
  );
}

/* ---------- Trust bar ---------- */

.trust-bar {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.02rem;
  color: var(--navy-800);
}

.trust-item .icon { color: var(--orange-600); }

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 8vw, 100px) 0;
}

.section-dark {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(245, 130, 13, 0.1), transparent 50%),
    var(--navy-900);
  color: var(--text-on-dark);
}
.section-dark h2 { color: #fff; }

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

.section-eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  color: var(--orange-text);
  margin-bottom: 10px;
}
.section-dark .section-eyebrow { color: var(--orange-500); }

.section-sub { color: var(--ink-soft); }

/* ---------- Services ---------- */

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

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange-500);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px 26px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.service-photo {
  margin: -30px -26px 0;
}
.service-photo img {
  display: block;
  width: 100%;
  height: 185px;
  object-fit: cover;
}
.service-photo + .service-icon {
  position: relative;
  margin-top: -28px;
  box-shadow: 0 0 0 4px var(--paper);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(12, 24, 38, 0.08), 0 20px 40px rgba(12, 24, 38, 0.12);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--navy-800);
  color: var(--orange-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon .icon { width: 30px; height: 30px; }

.service-card p { color: var(--ink-soft); font-size: 0.98rem; }

.service-tag {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-800);
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ---------- Why us ---------- */

.why-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.why-copy p { color: var(--text-on-dark-soft); }
.why-copy .btn { margin-top: 10px; }

.why-photo {
  grid-column: 1 / -1;
  margin: 16px 0 0;
}
.why-photo img {
  display: block;
  width: 100%;
  height: clamp(220px, 26vw, 320px);
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.why-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 8px;
}
.why-list li:nth-child(odd) { background: rgba(255, 255, 255, 0.045); }

.why-list .check { color: var(--orange-500); margin-top: 2px; }

.why-list strong { color: #fff; }
.why-list div { color: var(--text-on-dark-soft); }

/* ---------- Process ---------- */

.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}

.process-step {
  position: relative;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange-500);
  color: var(--navy-900);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.process-step p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Area strip ---------- */

.area-strip {
  background: var(--orange-500);
  color: var(--navy-900);
}

.area-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  padding-bottom: 26px;
}

.area-inner p {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0;
}

/* ---------- Estimate / contact ---------- */

.estimate-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.estimate-copy p { color: var(--text-on-dark-soft); }

.contact-list {
  list-style: none;
  margin: 26px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-list .icon { color: var(--orange-500); }

.contact-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.12rem;
}
.contact-list a:hover { color: var(--orange-500); }

.license-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-on-dark-soft);
  border-top: 1px solid var(--line-dark);
  padding-top: 20px;
  margin-top: 26px;
}
.license-note .icon { color: var(--orange-500); width: 20px; height: 20px; }

.estimate-form {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 34px 30px 30px;
}

.form-title {
  color: var(--navy-800);
  margin-bottom: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field { margin-bottom: 16px; }

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy-800);
}

.req { color: var(--orange-text); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #857f73;
  border-radius: 6px;
  padding: 12px 14px;
}

.form-field textarea { resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--orange-500);
  outline-offset: 1px;
  border-color: var(--orange-500);
}

/* Honeypot — hidden from humans, present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

.form-alert {
  background: #fdf0e3;
  border: 1px solid var(--orange-text);
  border-left-width: 4px;
  border-radius: 6px;
  color: #7f3e00;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 11px 14px;
  margin: 0 0 16px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: var(--text-on-dark-soft);
  border-top: 3px solid var(--orange-500);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 40px;
  padding-bottom: 26px;
}

.footer-name {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.3rem;
  color: #fff;
  margin: 0;
}

.footer-tag { font-size: 0.9rem; margin: 4px 0 0; }

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.footer-contact a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-weight: 600;
}
.footer-contact a:hover { color: var(--orange-500); }

.footer-legal {
  border-top: 1px solid var(--line-dark);
  padding-top: 18px;
  padding-bottom: 22px;
  font-size: 0.85rem;
}
.footer-legal p { margin: 0; }

/* ---------- Floating call button (mobile) ---------- */

.fab-call {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--orange-500);
  color: var(--navy-900);
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.fab-call .icon { width: 26px; height: 26px; }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .services-grid,
  .process-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .why-grid,
  .estimate-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .trust-item { justify-content: flex-start; }
}

/* The desktop header needs ~900px of width; below that, switch to the hamburger. */
@media (max-width: 899px) {
  .nav-toggle { display: block; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-800);
    border-bottom: 3px solid var(--orange-500);
    padding: 8px 0 16px;
  }
  .nav-menu.open { display: flex; }

  .nav-menu li { text-align: center; }
  .nav-menu a:not(.btn) {
    display: block;
    padding: 13px 24px;
    font-size: 1.05rem;
  }
  .nav-phone { padding: 10px 24px 0; }
  .nav-phone .btn { width: 100%; }

  .site-nav { position: static; }
  .header-inner { position: relative; }
}

@media (max-width: 720px) {
  .hero-ctas .btn { width: 100%; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .area-inner { justify-content: center; text-align: center; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-contact { align-items: flex-start; }

  .fab-call { display: flex; }

  /* Keep the last line of the footer clear of the floating call button */
  .footer-legal { padding-bottom: 94px; }
}
