/* ALD CAD - ald-cad.com stylesheet
   Font substitute: Josefin Sans (Google) for Brandon Grotesque headings/nav.
   Body: Nunito Sans (Google) for Avenir LT 35 Light paragraphs. */

@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400&family=Nunito+Sans:wght@300;400;600&display=swap');

:root {
  --gray-box: #f6f6f6;      /* home hero + service row boxes, footer */
  --gray-box-2: #ececec;    /* about box */
  --gray-strong: #cccccc;   /* house plans bands/boxes */
  --ink: #000;
  --muted: #555;
  --line: #b3b3b3;
  --head-font: 'Josefin Sans', 'Century Gothic', sans-serif;
  --body-font: 'Nunito Sans', 'Avenir', 'Helvetica Neue', Arial, sans-serif;
  --maxw: 944px;            /* content column (content column ~944px, ~168px side margins at 1280) */
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.875;      /* Avenir LT 35 Light body: 15px / 28.125px */
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
  /* sticky footer: column layout so footer pins to bottom on short pages */
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

body > main { flex: 1 0 auto; }
body > .site-footer { flex-shrink: 0; }

img { display: block; max-width: 100%; }
a { color: inherit; }

/* Body copy: Avenir LT 35 Light equivalent (Nunito Sans, airy and light) */
p, li, .field input, .field textarea {
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.875;
  letter-spacing: normal;
}

h1, h2, h3, h4 {
  font-family: var(--head-font);
  font-weight: 300;
  color: var(--ink);
  margin: 0;
  letter-spacing: normal;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  width: 100%;              /* fill the column; without this the flex item shrinks to content */
  max-width: var(--maxw);   /* align header to the same 944px content column as the page */
  margin: 0 auto;
  padding: 22px 0 14px;     /* logo flush to left column edge, nav flush to right column edge */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo img { width: 86px; height: 86px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

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

.main-nav a {
  font-family: var(--head-font);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: normal;
  color: #2b2b2b;
  text-decoration: none;
}
.main-nav a:hover { color: #000; }
.main-nav a.active { color: #000; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: #000;
  color: #fff;
  font-family: var(--head-font);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: normal;
  text-decoration: none;
  padding: 12px 32px;
  border: 0;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: #222; }

/* ---------- Headings scale ---------- */
.h-section {           /* 40px H2 section headings (40px / 54px, ls normal) */
  font-size: 40px;
  line-height: 54px;
  letter-spacing: normal;
}
.h-hero {              /* home welcome H1 22px */
  font-size: 22px;
  line-height: 1.45;
  font-weight: 300;
}
.h-item {              /* 22px H3 subheads (DRAFTING, questions, project titles); 22px / 31px */
  font-size: 22px;
  line-height: 31px;
  letter-spacing: normal;
  font-weight: 300;
}

/* ---------- Home hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 20px auto 0;
  padding: 0 20px;
  position: relative;
}
.hero-img {
  width: 80%;
  height: auto;
  margin-left: auto;      /* photo right-aligned within the column */
  display: block;
}
.hero-welcome {
  background: var(--gray-box);
  max-width: 340px;
  margin-top: -128px;      /* overlap the lower-left of the hero photo */
  position: relative;
  padding: 26px 30px 30px;
  z-index: 2;
}
.hero-welcome .h-hero {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: normal;
}

/* ---------- Service rows (home) ---------- */
.service {
  max-width: var(--maxw);
  margin: 44px auto;
  padding: 0 20px;
  background: transparent;
  display: flex;
  align-items: stretch;
}
.service .txt {
  flex: 1;
  background: var(--gray-box);
  padding: 34px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service .txt h3 { margin-bottom: 12px; }
.service .txt p { margin: 0; color: #222; }
.service .media { flex: 0 0 auto; display: flex; }
.service .media img { height: 300px; width: 260px; object-fit: cover; }
.service.img-left .media { order: 0; }
.service.img-left .txt { order: 1; }
.service.text-left .txt { order: 0; }
.service.text-left .media { order: 1; }
.service .media.two img { width: 220px; }

/* ---------- CTA block ---------- */
.cta {
  text-align: center;
  padding: 44px 20px 64px;
}
.cta p {
  font-family: var(--head-font);
  font-weight: 300;
  font-size: 17px;
  letter-spacing: normal;
  line-height: 1.5;
  margin: 4px 0;
  color: #111;
}
.cta a.inline { color: #111; text-decoration: underline; }
.cta .btn { margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--gray-box);
  padding: 28px 20px 30px;
  margin-top: 20px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}
.footer-nav {
  list-style: none;
  margin: 0 0 14px;
  padding: 0 0 14px;
  display: flex;
  justify-content: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}
.footer-nav a {
  font-family: var(--head-font);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: normal;
  color: #333;
  text-decoration: none;
}
.footer-copy {
  font-family: var(--head-font);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: normal;
  color: #444;
  margin: 0;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* ---------- Page hero heading (centered section pages) ---------- */
.page-head {
  text-align: center;
  padding: 50px 20px 34px;
}

/* ---------- FAQ rows ---------- */
.faq-list { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.faq-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 40px auto;
  background: var(--gray-box);
}
.faq-row .media { flex: 0 0 auto; display: flex; }
.faq-row .media img { width: 300px; height: 300px; object-fit: cover; }
.faq-row .qa { flex: 1; padding: 30px 36px; display: flex; flex-direction: column; justify-content: center; }
.faq-row.img-right .media { order: 1; }
.faq-row.img-right .qa { order: 0; }
.faq-row .qa .h-item { margin-bottom: 10px; }
.faq-row .qa .q + .q { margin-top: 26px; }
.faq-row .qa p { margin: 0; color: #222; }

/* ---------- About ---------- */
.about-section {
  max-width: var(--maxw);
  margin: 40px auto 50px;
  padding: 0 20px;
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.about-box {
  background: var(--gray-box-2);
  padding: 48px 44px;
  flex: 0 0 48%;
  align-self: center;
  z-index: 2;
  margin-right: -48px;
}
.about-box .h-section { margin-bottom: 22px; line-height: 1.15; }
.about-box p { color: #222; margin: 0 0 16px; }
.about-box .btn { margin-top: 12px; }
.about-media { flex: 1; }
.about-media img { width: 100%; height: auto; }

/* ---------- Contact ---------- */
.contact-section {
  max-width: 1000px;
  margin: 40px auto 60px;
  padding: 0 24px;
  display: flex;
  gap: 50px;
  align-items: flex-start;
}
.contact-info { flex: 0 0 38%; padding-top: 6px; }
.contact-info .h-section { margin-bottom: 26px; }
.contact-info a { color: #333; }
.contact-info .phone { margin: 10px 0 22px; color: #333; }
.social { display: flex; gap: 14px; }
.social img { width: 34px; height: 34px; }
.contact-form { flex: 1; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 34px;
}
.field { position: relative; }
.field.full { grid-column: 1 / -1; }
/* in-field placeholders; labels kept for a11y, visually hidden */
.field label {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #b3b3b3;
  background: transparent;
  font-family: var(--body-font);
  font-size: 15px;
  padding: 8px 0;
  color: #000;
  outline: none;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #6b6b6b;
  opacity: 1;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field textarea:focus { border-bottom-color: #000; }
.form-actions { margin-top: 34px; text-align: center; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note {
  margin-top: 18px;
  color: #1a7a2e;
  font-size: 15px;
}
.form-note.error { color: #b00020; }

/* ---------- Projects ---------- */
.projects-list { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.project-row {
  display: flex;
  gap: 0;
  align-items: stretch;
  margin: 50px auto;
}
.project-gallery {
  flex: 0 0 58%;
  position: relative;
  background: #fff;
  border: 1px solid #e2e2e2;
  overflow: hidden;
}
.project-gallery .frame {
  position: relative;
  width: 100%;
  aspect-ratio: 585 / 390;   /* plan crop 3:2 landscape */
  background: #fff;
}
.project-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  cursor: zoom-in;
}
.project-gallery img.active { display: block; }
.gallery-nav {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  pointer-events: none;
}
.gallery-nav button {
  pointer-events: auto;
  width: 40px; height: 40px;
  border: 0;
  background: rgba(255,255,255,.7);
  color: #111;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: background .15s;
}
.gallery-nav button:hover { background: rgba(255,255,255,.95); }
.gallery-count {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.55);
  color: #fff;
  font-family: var(--head-font);
  font-size: 12px;
  letter-spacing: .5px;
  padding: 3px 10px;
  border-radius: 2px;
  pointer-events: none;
}
.project-info {
  flex: 1;
  background: var(--gray-box);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-info h3 { margin-bottom: 14px; }
.project-info p { margin: 0 0 12px; color: #222; }
.project-info .dur { color: #222; margin-bottom: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
}
.lightbox .lb-close,
.lightbox .lb-prev,
.lightbox .lb-next {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  opacity: .8;
  transition: opacity .15s;
}
.lightbox .lb-close:hover,
.lightbox .lb-prev:hover,
.lightbox .lb-next:hover { opacity: 1; }
.lightbox .lb-close { top: 18px; right: 26px; font-size: 40px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); font-size: 54px; padding: 10px 18px; }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); font-size: 54px; padding: 10px 18px; }
.lightbox .lb-count {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: var(--head-font);
  font-size: 14px;
  letter-spacing: .5px;
  opacity: .85;
}

/* ---------- House Plans ---------- */
.hp-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 10px;
  color: #333;
}
.hp-h1 {
  text-align: center;
  padding: 46px 20px 18px;
}
.hp-h1 h1 { font-size: 52px; font-weight: 300; letter-spacing: normal; }

.hp-steps-band { background: #e9e9e9; padding: 44px 20px; margin-top: 40px; }
.hp-steps {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.hp-step { text-align: left; }
.hp-step .card { background: #fff; padding: 0; }
.hp-step img { width: 100%; height: 320px; object-fit: cover; }
.hp-step .cap { padding: 18px 20px 22px; }
.hp-step .cap .num {
  font-family: var(--head-font);
  font-weight: 300;
  font-size: 19px;
  letter-spacing: normal;
  margin: 0 0 8px;
}
.hp-step .cap p { margin: 0; color: #333; }

.hp-set {
  max-width: var(--maxw);
  margin: 44px auto;
  padding: 0 20px;
  display: flex;
  gap: 40px;
  align-items: center;
}
.hp-set .media { flex: 0 0 260px; }
.hp-set .media img { width: 260px; height: 312px; object-fit: cover; }
.hp-set .body { flex: 1; }
.hp-set .body h4 { font-size: 40px; font-weight: 300; letter-spacing: normal; margin-bottom: 14px; line-height: 1.2; }
.hp-set .body > p { margin: 0 0 10px; color: #333; }
.hp-set .body ul { margin: 0; padding-left: 20px; color: #333; }
.hp-set .body ul li { margin: 3px 0; }

.hp-note {
  text-align: center;
  max-width: 820px;
  margin: 20px auto;
  padding: 24px 20px;
  color: #333;
}
.hp-note p { margin: 8px 0; }

.hp-ready-band { background: #cccccc; padding: 50px 20px; }
.hp-ready {
  max-width: var(--maxw);
  margin: 0 auto;
}
.hp-ready h2 { font-size: 38px; font-weight: 300; letter-spacing: normal; }
.hp-ready .sub { color: #333; margin: 10px 0 30px; }
.hp-form .form-grid { grid-template-columns: repeat(3, 1fr); max-width: 720px; }
.hp-form .field.msg { grid-column: 1 / -1; }
.hp-form .form-actions { text-align: left; max-width: 720px; }
.hp-form .btn { background: #9fb0b5; color: #fff; }
.hp-form .btn:hover { background: #8ba0a6; }

/* ---------- Mobile nav overlay ---------- */
.mobile-menu { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .service, .faq-row, .about-section, .contact-section,
  .project-row, .hp-set, .about-box { flex-direction: column; }
  .about-box { margin-right: 0; align-self: stretch; }
  .about-media { flex: none; width: 100%; }
  .service .media img, .faq-row .media img { width: 100%; height: auto; }
  .service .media, .faq-row .media { width: 100%; }
  .service .media.two { flex-direction: row; }
  .service .media.two img { width: 50%; height: auto; }
  .faq-row.img-right .media { order: 0; }
  .project-gallery { flex: none; width: 100%; }
  .hp-steps { grid-template-columns: 1fr; }
  .hp-set .media { flex: none; width: 100%; }
  .hp-set .media img { width: 100%; height: auto; }
  .contact-info { width: 100%; }
  .hp-form .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header { flex-wrap: wrap; padding: 16px 18px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 4px 6px;
  }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions { text-align: left; }
  .footer-nav { flex-wrap: wrap; gap: 14px; }
  .hp-h1 h1 { font-size: 36px; }
  .h-section { font-size: 32px; }
  .cta p { font-size: 19px; }
}
