/* ==========================================================================
   Bluebird Builders — site styles
   One stylesheet for every page. Colors and fonts live in :root below;
   change them there and the whole site follows.
   ========================================================================== */

:root {
  /* Colors pulled from the bluebird logo */
  --cream: #f3eed8;        /* matches the logo background exactly */
  --paper: #fbf8ee;        /* lighter cream for cards */
  --ink: #1e2b3a;          /* body text */
  --ink-soft: #5a4a3a;     /* secondary text, warm brown-gray */
  --navy: #12304f;         /* dark sections */
  --blue: #2b63a8;         /* links and accents (passes contrast on cream) */
  --blue-bright: #2a8ec5;  /* decorative only */
  --orange: #e07c2c;       /* buttons (use dark text on it) */
  --rust: #a14c15;         /* orange-family text on cream */
  --wood: #8a5a3b;
  --line: #ddd3b8;         /* borders and rules */

  --font-head: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 6px;
  --shadow: 0 1px 2px rgba(30, 43, 58, .08), 0 6px 18px rgba(30, 43, 58, .08);
  --wrap: 1140px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;     /* 18px — easy reading */
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .18 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1em; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  text-decoration: none;
  padding: .85rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.btn-primary:hover { background: #ea8c3e; color: var(--ink); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-light:hover { background: #fff; color: var(--navy); }

/* ---------- Section headings with logo-style sunburst rays ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: .6rem;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 26px; height: 18px;
  background: url("../images/rays.svg") no-repeat center / contain;
}
.eyebrow::after { transform: scaleX(-1); }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-head p { color: var(--ink-soft); font-size: 1.2rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 238, 216, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 76px;
}
.brand {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none; color: var(--navy);
}
.brand img { width: 64px; height: 64px; }
.brand-name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; line-height: 1;
}
.brand-tag {
  display: block; font-family: var(--font-body); font-weight: 400;
  font-size: .85rem; color: var(--ink-soft); margin-top: .25rem; letter-spacing: .02em;
}

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 1.75rem;
}
.site-nav a:not(.btn) {
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  color: var(--navy); text-decoration: none;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--orange); }
.site-nav .btn { padding: .6rem 1.1rem; font-size: 1.05rem; }

.nav-toggle {
  display: none;
  background: none; border: 2px solid var(--navy); border-radius: var(--radius);
  color: var(--navy); font: 700 1rem var(--font-head);
  padding: .5rem .8rem; cursor: pointer;
  align-items: center; gap: .5rem;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
  transition: transform .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .brand-tag { display: none; }
  .brand img { width: 54px; height: 54px; }
  .brand-name { font-size: 1.3rem; }

  /* Only collapse the menu when JavaScript is on to reopen it */
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px rgba(30,43,58,.08);
  }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: 0; padding-top: 1rem; }
  .site-nav a:not(.btn) { display: block; padding: .9rem 0; border-bottom: 0; }
  .site-nav .btn { display: block; text-align: center; padding: .85rem; }
  .header-inner { position: static; }
  .no-js .header-inner { flex-wrap: wrap; padding-bottom: .5rem; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-lead { font-size: 1.3rem; color: var(--ink-soft); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin: 1.75rem 0 1.25rem; }
.hero-note { font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 520px) {
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; text-align: center; }
}

/* "Snapshot" photo frame */
.snapshot {
  margin: 0;
  background: var(--paper);
  padding: .75rem .75rem 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  transform: rotate(1.25deg);
}
.snapshot img { border-radius: 2px; width: 100%; aspect-ratio: 16 / 9.5; object-fit: cover; }
.snapshot figcaption {
  font-family: var(--font-head); font-size: 1rem; color: var(--ink-soft);
  text-align: center; padding: .6rem 0 .7rem;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .snapshot { transform: none; }
}

/* ---------- Trust strip ---------- */
.trust {
  background: var(--navy); color: #fff;
  padding: 1.4rem 0;
}
.trust ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 3rem;
}
.trust li { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; }
.trust strong { font-family: var(--font-head); font-size: 1.25rem; color: #f2b277; }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: var(--shadow);
}
.card-icon { width: 52px; height: 52px; color: var(--blue); margin-bottom: 1rem; }
.card p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Our Work ---------- */
.work { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2.5rem; align-items: center; }
.project + .project { margin-top: 4rem; }
.project-meta { font-family: var(--font-head); color: var(--rust); font-weight: 600; letter-spacing: .04em; margin-bottom: .4rem; }
.project-info p { color: var(--ink-soft); }
.project-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.project-photos figure { margin: 0; }
.project-photos img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.project-photos figcaption { font-size: .95rem; color: var(--ink-soft); margin-top: .5rem; text-align: center; }
@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 520px) {
  .project-photos { grid-template-columns: 1fr; }
}

/* ---------- How we work ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  counter-reset: step;
}
.steps li { counter-increment: step; position: relative; padding-top: 4.25rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 1.6rem/1 var(--font-head);
  color: var(--navy); background: var(--paper);
  border: 2px solid var(--orange);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 1.6rem; left: 4rem; right: -.75rem;
  border-top: 2px dashed var(--line);
}
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .steps li::after { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { background: var(--paper); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-copy p { font-size: 1.2rem; }
.about-logo { max-width: 400px; justify-self: center; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-logo { max-width: 260px; grid-row: 1; }
}

/* ---------- Call to action band ---------- */
.cta {
  background: var(--navy); color: #e9e4cf; text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  border-top: 6px solid var(--orange);
}
.cta h2 { color: #fff; }
.cta p { font-size: 1.25rem; max-width: 40ch; margin: 0 auto 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0c2241; color: #cfd6df;
  padding: 3.5rem 0 2rem; font-size: 1rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #f2b277; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; }
.footer-brand strong { font: 700 1.35rem var(--font-head); color: #fff; display: block; margin-bottom: .25rem; }
.site-footer h3 { color: #fff; font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 2.5rem; padding-top: 1.5rem; font-size: .9rem; color: #9fb0c3;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ==========================================================================
   Contact page
   ========================================================================== */
.page-intro { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; text-align: center; }
.page-intro h1 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 18ch; margin-left: auto; margin-right: auto; }
.page-intro p:last-child { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; margin: 0 auto; }

.contact-section { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.form-title { font-size: 1.6rem; margin-bottom: 1.25rem; }
.form-lead { color: var(--ink-soft); margin-top: -.5rem; }
.optional { font-family: var(--font-body); font-weight: 400; font-size: .9em; color: var(--ink-soft); }

.field { margin: 0 0 1.25rem; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.field label, .field legend {
  display: block; font-weight: 600; color: var(--navy); margin-bottom: .4rem; padding: 0;
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1.05rem; color: var(--ink);
  background: #fff;
  border: 1.5px solid #cbbf9f;
  border-radius: var(--radius);
  padding: .7rem .85rem;
  min-height: 48px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%2312304f' stroke-width='2'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .9rem center;
  padding-right: 2.5rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43, 99, 168, .2);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #b3261e; }

/* Big, easy-to-tap radio choices */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem; }
.choice {
  display: flex !important; align-items: center; gap: .65rem;
  font-weight: 400 !important; color: var(--ink) !important;
  background: #fff; border: 1.5px solid #cbbf9f; border-radius: var(--radius);
  padding: .7rem .85rem; margin: 0 !important; cursor: pointer; min-height: 48px;
  transition: border-color .15s, background-color .15s;
}
.choice input { width: 1.15rem; height: 1.15rem; min-height: 0; margin: 0; accent-color: var(--blue); flex-shrink: 0; }
.choice:hover { border-color: var(--blue); }
.choice:has(input:checked) { border-color: var(--blue); background: #eaf1f9; }
.choice:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }

.details-group { border-top: 1px dashed var(--line); padding-top: 1.25rem; margin-bottom: .25rem; }

.btn-block { display: block; width: 100%; text-align: center; padding: 1rem; font-size: 1.2rem; }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }

.form-fine { font-size: .95rem; color: var(--ink-soft); text-align: center; margin: .85rem 0 0; }
.form-error {
  background: #fbeceb; border: 1px solid #e3b4b0; color: #7a1d16;
  border-radius: var(--radius); padding: .8rem 1rem; font-size: 1rem;
}
.form-success {
  background: #eef5ec; border: 1px solid #b9d3b2; border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin-bottom: 2rem;
}
.form-success:focus { outline: none; }
.form-success h2 { font-size: 1.6rem; margin-bottom: .3rem; }
.form-success p:last-child { margin-bottom: 0; }

.drawings-note {
  background: var(--cream); border-left: 4px solid var(--blue-bright);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .85rem 1rem; font-size: 1rem;
}
.drawings-note strong { display: block; color: var(--navy); }

.gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Sidebar */
.contact-aside h2 { font-size: 1.6rem; }
.mini-steps { margin: 0 0 2rem; padding-left: 1.4rem; }
.mini-steps li { margin-bottom: .9rem; color: var(--ink-soft); padding-left: .25rem; }
.mini-steps li::marker { font: 700 1.1rem var(--font-head); color: var(--rust); }
.mini-steps strong { color: var(--ink); }
.aside-box {
  background: var(--navy); color: #e9e4cf;
  border-radius: var(--radius); padding: 1.5rem 1.6rem;
}
.aside-box h3 { color: #f2b277; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .3rem; }
.aside-box p { margin-bottom: 1.1rem; }
.aside-box p:last-child { margin-bottom: 0; }
.aside-box a { color: #fff; }

/* Current page in the nav */
.site-nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--orange); }

/* ---------- 404 page ---------- */
.not-found { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0; }
.not-found img { width: 180px; margin: 0 auto 1.5rem; }
.not-found p { color: var(--ink-soft); font-size: 1.2rem; }
