/* Beacon Build & Renovation — one-page site
   Deep navy + warm amber. Mobile-first. */

:root {
  --navy: #0b1c33;
  --navy-deep: #071322;
  --navy-mid: #163050;
  --navy-soft: #1c3a5c;
  --amber: #e8a317;
  --amber-bright: #f3b63a;
  --amber-dark: #b47b0c;
  --cream: #f5f0e6;
  --cream-dark: #e7dfcf;
  --paper: #fffdf8;
  --ink: #121a26;
  --muted: #4d5968;
  --muted-on-navy: #c5cdd8;
  --line: #d8d0c2;
  --line-on-navy: rgba(245, 240, 230, 0.14);
  --shadow: 0 10px 30px rgba(11, 28, 51, 0.08);
  --header-h: 4.25rem;
  --sticky-h: 0px;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --radius: 0.75rem;
  --max: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2rem);
}

@media (max-width: 52rem) {
  :root {
    --sticky-h: 4.25rem;
    --header-h: 3.75rem;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
}

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

a {
  color: var(--navy-mid);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--amber-dark);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3.5rem;
  z-index: 100;
  background: var(--amber);
  color: var(--navy);
  font-weight: 650;
  padding: 0.6rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* ----- Layout ----- */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-dark);
}

.section-head h2,
.hero h1 {
  margin: 0 0 0.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--navy);
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
}

.lede,
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.rule {
  display: block;
  width: 2.75rem;
  height: 3px;
  margin: 0 0 1.25rem;
  background: var(--amber);
  border: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.7rem 1.35rem;
  border-radius: 0.5rem;
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-amber {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}

.btn-amber:hover,
.btn-amber:focus-visible {
  background: var(--amber-bright);
  color: var(--navy);
}

.btn-navy {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}

.btn-navy:hover,
.btn-navy:focus-visible {
  background: var(--navy-mid);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 253, 248, 0.45);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 253, 248, 0.08);
  color: var(--paper);
  border-color: var(--amber);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.icon-phone,
.icon-arrow {
  flex-shrink: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  color: var(--paper);
  border-bottom: 1px solid var(--line-on-navy);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--paper);
  min-width: 0;
}

.brand:hover {
  color: var(--paper);
}

.logo-mark {
  width: 2.5rem;
  height: 2.9rem;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-place {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted-on-navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line-on-navy);
  border-radius: 0.4rem;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}

.nav-toggle svg {
  margin: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--amber-bright);
}

.header-call {
  margin-left: 0.25rem;
  min-height: 2.6rem;
  padding-inline: 1rem;
  font-size: 0.92rem;
}

@media (max-width: 64rem) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-call {
    display: none;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--line-on-navy);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.8rem 0.2rem;
    border-bottom: 1px solid var(--line-on-navy);
    min-height: 2.75rem;
    display: flex;
    align-items: center;
  }
}

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

.hero {
  position: relative;
  background: var(--navy);
  color: var(--paper);
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.5rem, 9vw, 7rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 88% 30%, rgba(232, 163, 23, 0.22), transparent 62%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(22, 48, 80, 0.9), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 64rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.7fr);
    gap: 3rem;
  }
}

.hero .eyebrow {
  color: var(--amber-bright);
}

.hero h1 {
  color: var(--paper);
  font-size: clamp(2.15rem, 6.2vw, 4.15rem);
  max-width: 14ch;
}

.hero .lede {
  color: var(--muted-on-navy);
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-art {
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.hero-lighthouse {
  width: min(100%, 22rem);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(232, 163, 23, 0.25));
}

.hero-lighthouse .beam {
  transform-origin: 160px 70px;
  animation: glow 3.6s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.7; }
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 253, 248, 0.06);
  border: 1px solid var(--line-on-navy);
  border-radius: 999px;
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 500;
}

.trust-row svg {
  width: 1rem;
  height: 1rem;
  color: var(--amber);
}

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

.services {
  background: var(--cream);
}

.card-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 70rem) {
  .card-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .service-card:nth-child(3) {
    grid-column: span 2;
  }

  .service-card:nth-child(4) {
    grid-column: 1 / span 3;
  }

  .service-card:nth-child(5) {
    grid-column: 4 / span 3;
  }
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-card .icon-wrap {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  background: var(--navy);
  color: var(--amber);
}

.service-card .icon-wrap svg {
  width: 1.35rem;
  height: 1.35rem;
}

.service-card h3 {
  margin: 0.2rem 0 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.service-card p,
.service-card ul {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.service-card ul {
  padding-left: 1.1rem;
}

.service-card li + li {
  margin-top: 0.2rem;
}

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

.why {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.why-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 60rem) {
  .why-grid {
    grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
    gap: 4rem;
    align-items: start;
  }
}

.feature-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
  }
}

.feature {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.25rem;
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature h3 svg {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--amber-dark);
  flex-shrink: 0;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.area {
  background: var(--cream);
}

.town-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.town-list li {
  padding: 0.45rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 550;
  font-size: 0.95rem;
  color: var(--navy);
}

.area-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

/* ----- Gallery ----- */

.gallery {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.photo-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 40rem) {
  .photo-grid img {
    height: 14.5rem;
    min-height: 14.5rem;
  }
}

@media (min-width: 70rem) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.photo-grid figure {
  margin: 0;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.photo-grid img {
  width: 100%;
  height: 11.5rem;
  min-height: 11.5rem;
  flex: 1 1 auto;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--navy-mid);
}

.photo-grid figcaption {
  margin: 0;
  padding: 0.7rem 0.85rem 0.8rem;
  background: var(--paper);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
}

@media (min-width: 70rem) {
  .photo-grid figure:first-child {
    grid-column: span 2;
  }

  .photo-grid figure:first-child img {
    height: 24rem;
    min-height: 24rem;
  }
}

/* ----- Quote ----- */

.quote {
  background: var(--navy-deep);
  color: var(--paper);
}

.quote .eyebrow {
  color: var(--amber-bright);
}

.quote .section-head h2,
.quote .section-head p {
  color: var(--paper);
}

.quote .section-head p {
  color: var(--muted-on-navy);
}

.quote-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 64rem) {
  .quote-grid {
    grid-template-columns: minmax(16rem, 0.75fr) minmax(0, 1.15fr);
    gap: 3.5rem;
    align-items: start;
  }
}

.quote-aside p {
  color: var(--muted-on-navy);
  margin: 0 0 1.25rem;
}

.quote-aside a.phone-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--amber-bright);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.quote-aside a.phone-lg:hover {
  color: var(--amber);
}

.aside-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--cream);
  font-size: 0.98rem;
}

.aside-meta li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line-on-navy);
}

.aside-meta a {
  color: var(--amber-bright);
}

.yelp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.35rem;
  color: var(--paper);
  font-weight: 650;
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 0.15rem;
}

.yelp-link:hover {
  color: var(--amber-bright);
}

.quote-form {
  background: var(--navy);
  border: 1px solid var(--line-on-navy);
  border-radius: calc(var(--radius) + 0.15rem);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field-full {
    grid-column: 1 / -1;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--cream);
}

.req {
  color: var(--amber-bright);
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--cream-dark);
  border-radius: 0.45rem;
  min-height: 3rem;
  padding: 0.6rem 0.8rem;
  width: 100%;
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--amber);
}

.form-actions {
  margin-top: 0.5rem;
}

.form-hint {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--muted-on-navy);
}

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

.site-footer {
  background: var(--navy);
  color: var(--muted-on-navy);
  padding: 2.5rem 0 2rem;
  border-top: 3px solid var(--amber);
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 52rem) {
  .footer-inner {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.site-footer .brand-name {
  color: var(--paper);
}

.site-footer p,
.site-footer li {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
}

.site-footer h2 {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 650;
}

.site-footer a {
  color: var(--cream);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--amber-bright);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.copyright {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-on-navy);
  font-size: 0.85rem;
  color: var(--muted-on-navy);
}

/* ----- Sticky mobile call bar ----- */

.sticky-call {
  display: none;
}

@media (max-width: 52rem) {
  .sticky-call {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    align-items: stretch;
    background: var(--navy);
    border-top: 1px solid var(--line-on-navy);
    padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
    gap: 0.5rem;
  }

  .sticky-call .btn {
    flex: 1;
    min-height: 3rem;
    padding-inline: 0.6rem;
    font-size: 0.92rem;
  }

  .sticky-call .btn-navy {
    flex: 0 1 auto;
    background: transparent;
    color: var(--paper);
    border-color: var(--line-on-navy);
  }
}


/* Mobile polish */
@media (max-width: 63.99rem) {
  .hero-art {
    display: none;
  }
}

@media (max-width: 52rem) {
  .hero {
    padding-bottom: calc(2.25rem + var(--sticky-h) + env(safe-area-inset-bottom, 0px));
  }

  .hero .btn-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero .btn-row .btn {
    width: 100%;
  }
}

a[href^="tel:"] {
  white-space: nowrap;
}


/* Hero with a real job photo */
.hero-has-photo {
  background-color: var(--navy);
  background-image: url("images/siding-blue-multifamily.jpg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}

.hero-has-photo::before {
  background:
    linear-gradient(
      90deg,
      rgba(7, 19, 34, 0.96) 0%,
      rgba(11, 28, 51, 0.92) 36%,
      rgba(11, 28, 51, 0.62) 58%,
      rgba(11, 28, 51, 0.28) 78%,
      rgba(11, 28, 51, 0.18) 100%
    );
}

.hero-has-photo .hero-art {
  display: none;
}

@media (max-width: 63.99rem) {
  .hero-has-photo {
    background-position: 65% center;
  }

  .hero-has-photo::before {
    background:
      linear-gradient(
        180deg,
        rgba(7, 19, 34, 0.88) 0%,
        rgba(11, 28, 51, 0.86) 62%,
        rgba(11, 28, 51, 0.78) 100%
      );
  }
}
