/* Birch Cove Builders - site styles
   Colors are set once here. Change a value and every page updates. */
:root {
  --ink: #231F20;
  --blue: #3351A0;
  --blue-dark: #22356B;
  --muted: #4A4F5C;
  --line: #D7DCE5;
  --paper: #EEF2F8;
  --light-text: #E3E9F5;
  --accent: #E9912C;
  --accent-light: #FFC98A;   /* orange for small text on dark photos */
  --error: #B42318;
  --focus: #1D4ED8;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 16px; }

body {
  margin: 0;
  font-family: 'Source Sans 3', Helvetica, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #FFFFFF;
  overflow-wrap: break-word;
}

h1, h2, h3, .wordmark, .eyebrow, .price {
  font-family: 'Archivo', Helvetica, sans-serif;
}

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

a { color: var(--blue); }
a:hover { color: var(--ink); }

/* Visible keyboard focus everywhere */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hero :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: #FFFFFF; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--ink); color: #FFFFFF; padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #FFFFFF; }

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

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #FFFFFF; }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px;
}
.wordmark {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 1.75rem; letter-spacing: 0.02em; line-height: 1.1;
  color: var(--ink); text-decoration: none;
}
.wordmark img { width: 76px; height: 76px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-weight: 600; font-size: 0.9375rem; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 24px; background: var(--accent); color: var(--ink);
  text-decoration: none; border: 0; font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { color: var(--ink); filter: brightness(1.05); }
.nav .btn { min-height: 44px; padding: 10px 18px; }
.btn-note { margin: 10px 0 0; font-size: 0.9375rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: flex-end; background: var(--blue-dark); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  /* darkens the left side so the headline stays readable over any photo */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,24,40,0.86) 0%, rgba(20,24,40,0.7) 45%, rgba(20,24,40,0.15) 100%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 64px; padding-bottom: 64px; }
.hero-text { max-width: 660px; color: #FFFFFF; text-shadow: 0 1px 3px rgba(0,0,0,0.45); }
.hero h1 { font-weight: 800; font-size: 3.5rem; line-height: 1.05; margin: 14px 0 18px; }
.hero p { font-size: 1.25rem; margin: 0 0 28px; color: var(--light-text); }
.hero .eyebrow {
  /* small orange text sits on its own dark band so it stays readable over any photo */
  display: inline-block; color: var(--accent-light); background: rgba(20,24,40,0.82);
  padding: 4px 10px; text-shadow: none;
}
.hero .btn { text-shadow: none; }
.hero .btn-note { font-size: 1rem; margin: 12px 0 0; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.tight-top { padding-top: 40px; }
.section.paper { background: var(--paper); }
.eyebrow { font-weight: 700; letter-spacing: 0.12em; font-size: 0.8125rem; color: var(--muted); text-transform: uppercase; }
h2 { font-weight: 800; font-size: 2.25rem; line-height: 1.1; margin: 10px 0 28px; }
h3 { font-weight: 700; font-size: 1.3125rem; margin: 0; }
.lead { color: var(--muted); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px; align-items: center; }
.split + .split { margin-top: 64px; }
.split h3 { font-weight: 800; font-size: 1.75rem; line-height: 1.15; margin-bottom: 14px; }
.split p { margin: 0 0 14px; }
.split img.portrait { max-height: 640px; width: auto; justify-self: center; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card p { margin: 0; color: var(--muted); }
a.card-link { text-decoration: none; color: inherit; }
a.card-link:hover h3, a.card-link:focus-visible h3 { text-decoration: underline; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; counter-reset: step; }
.steps li { display: flex; gap: 18px; counter-increment: step; }
.steps li::before {
  content: counter(step); font-family: 'Archivo', Helvetica, sans-serif; font-weight: 800;
  font-size: 1.5rem; color: var(--blue); min-width: 32px; line-height: 1.2;
}

/* Locally owned section with the shoreline photo */
.local { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; align-items: center; }
.local h2 { font-size: 1.75rem; margin: 0 0 16px; }
.local p { margin: 0; }
.local figure { margin: 0; }
.local figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 8px; }

/* ---------- Call to action band ---------- */
.cta-band { background: var(--blue); color: #FFFFFF; }
.cta-band .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0 0 8px; }
.cta-band p { margin: 0; color: var(--light-text); max-width: 640px; }

/* ---------- Contact form ---------- */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px; align-items: start; }
.contact-info h1 { font-weight: 800; font-size: 2.25rem; line-height: 1.1; margin: 10px 0 20px; }
.contact-info .lead { margin: 0 0 20px; }
.contact-info .contact-lines { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.contact-info .license { color: var(--muted); margin-top: 12px; }
.logo-house { width: 220px; margin-bottom: 24px; }

.form { display: flex; flex-direction: column; gap: 20px; }
.form-intro { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.9375rem; padding: 0; }
.req, .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field select, .field textarea, .field input[type="file"] {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #6B7180; border-radius: 0;
  background: #FFFFFF; color: var(--ink); font: inherit;
}
.field input[type="file"] { padding: 9px 10px; }
.field textarea { min-height: 128px; resize: vertical; }
.field .hint { margin: 0; font-size: 0.875rem; color: var(--muted); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.choice { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 400; }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }

.form .field [aria-invalid="true"] { border: 2px solid var(--error); }
.error-msg { margin: 0; color: var(--error); font-weight: 600; font-size: 0.9375rem; }
.error-msg:empty { display: none; }
.error-summary { border: 2px solid var(--error); padding: 16px 20px; background: #FEF3F2; }
.error-summary h2 { font-size: 1.125rem; margin: 0 0 8px; color: var(--error); }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: var(--error); font-weight: 600; }
.form .btn { align-self: flex-start; }
.form .submit-note { margin: -8px 0 0; font-size: 0.875rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9CDD6; font-size: 0.875rem; }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: #FFFFFF; }

/* ---------- Tablets and phones: photo on top, text on solid blue below ---------- */
@media (max-width: 900px) {
  .hero { display: block; min-height: 0; background: var(--blue-dark); }
  .hero > img { position: static; width: 100%; height: auto; aspect-ratio: 3 / 2; max-height: 60vh; }
  .hero::after { display: none; }
  .hero .wrap { padding-top: 32px; padding-bottom: 40px; }
  .hero-text { text-shadow: none; }
  .hero .eyebrow { background: none; padding: 0; }
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 2.25rem; }
  .hero p { font-size: 1.125rem; }
  h2 { font-size: 1.85rem; }
  .section { padding: 56px 0; }
  .nav { gap: 16px; }
  .wordmark img { width: 56px; height: 56px; }
  .wordmark { font-size: 1.25rem; gap: 10px; }
  .contact-info h1 { font-size: 1.9rem; }
  .logo-house { display: none; }   /* the header already shows the logo; get visitors to the form sooner */
  .split img.portrait { max-height: 520px; }
}
