/* ==========================================================
   Harry McNeil Builders Inc — site styles
   Layout style: clean white, red accent, boxy logo, quiet gray
   ========================================================== */

:root {
  --red: #c4161c;
  --red-dark: #9e1016;
  --ink: #3a3a3a;
  --ink-light: #6b6b6b;
  --line: #e3e3e3;
  --bg-soft: #ececec;
  --bg-dark: #4a4a4a;
  --bg-footer: #1c1a19;
  --white: #ffffff;
  --max: 1140px;
  font-size: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 0.95rem;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { font-weight: 600; line-height: 1.2; }

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

.trust-bar {
  background: var(--red);
  color: var(--white);
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 16px;
}
.trust-bar .dot { margin: 0 12px; opacity: 0.7; }
@media (max-width: 560px) {
  .trust-bar { font-size: 0.65rem; letter-spacing: 0.08em; }
  .trust-bar .dot { margin: 0 7px; }
}

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

.site-header {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
}

.logo-block {
  background: var(--red);
  color: var(--white);
  width: 84px;
  height: 118px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  letter-spacing: 1px;
  margin-bottom: -56px;           /* hangs below the nav bar */
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  flex: 0 0 auto;
  text-decoration: none;
}
.logo-block:hover { text-decoration: none; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

nav.main-nav > a,
nav.main-nav > .has-drop > a.top-link {
  display: inline-block;
  padding: 20px 16px;
  color: var(--ink-light);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
nav.main-nav > a:hover,
nav.main-nav .has-drop > a.top-link:hover { color: var(--red); }

nav.main-nav a.cta {
  background: var(--red);
  color: var(--white);
  padding: 8px 16px;
  margin-left: 8px;
}
nav.main-nav a.cta:hover { background: var(--red-dark); color: var(--white); }

/* services dropdown */
.has-drop { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  min-width: 220px;
  display: none;
  z-index: 60;
}
.has-drop:hover .dropdown,
.has-drop:focus-within .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #f2f2f2;
}
.dropdown a:hover { background: #faf5f5; color: var(--red); }

/* mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 16px;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav > a,
  nav.main-nav .has-drop > a.top-link { padding: 12px 24px; }
  .dropdown {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
    padding-left: 16px;
  }
  nav.main-nav a.cta { margin: 8px 24px 0; text-align: center; }
  .logo-block { width: 70px; height: 96px; font-size: 1.5rem; margin-bottom: -40px; }
}

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

.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 26px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--red-dark); color: var(--white); text-decoration: none; }

.btn-outline {
  display: inline-block;
  border: 1px solid var(--red);
  color: var(--red);
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 9px 22px;
  text-decoration: none;
}
.btn-outline:hover { background: #faf0f0; text-decoration: none; }

/* ---------- Home hero ---------- */

.hero {
  padding: 88px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 0.9fr;
  gap: 28px;
  align-items: start;
}
.hero-copy h1 {
  font-size: 2.1rem;
  font-weight: 600;
  color: #2f2f2f;
  margin-bottom: 16px;
}
.hero-copy p {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-bottom: 22px;
  max-width: 260px;
}
.hero-main-img { width: 100%; height: 340px; object-fit: cover; }
.hero-side { display: grid; gap: 18px; }
.hero-side img { width: 100%; height: 161px; object-fit: cover; }

@media (max-width: 860px) {
  .hero { padding: 70px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy p { max-width: none; }
  .hero-main-img, .hero-side img { height: auto; }
  .hero-side { grid-template-columns: 1fr 1fr; }
}

/* ---------- Section headings ---------- */

.section-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 500;
  color: #2f2f2f;
  margin: 48px 0 32px;
}

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

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 30px;
  padding-bottom: 64px;
}
.svc-card img { width: 100%; height: 175px; object-fit: cover; }
.svc-card a.svc-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--red);
}
@media (max-width: 860px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
}

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

.process {
  background: var(--bg-soft);
  padding: 64px 0 72px;
}
.process h2 {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 500;
  max-width: 620px;
  margin: 0 auto 46px;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
  margin-bottom: 44px;
}
.step .step-icon { margin: 0 auto 14px; width: 54px; height: 54px; }
.step h3 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #2f2f2f;
}
.step p { font-size: 0.78rem; color: var(--ink-light); }
.process .center { text-align: center; }
@media (max-width: 860px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ---------- Projects ---------- */

.projects { padding-bottom: 72px; }
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.proj-card img { width: 100%; height: 190px; object-fit: cover; }
.proj-card h3 { font-size: 0.9rem; margin: 14px 0 8px; }
.proj-card h3 a { color: #2f2f2f; }
.proj-card h3 a span { color: var(--red); }
.proj-card p { font-size: 0.8rem; color: var(--ink-light); }
@media (max-width: 860px) { .proj-grid { grid-template-columns: 1fr; } }

/* ---------- Dark testimonial band ---------- */

.testimonial {
  background: var(--bg-dark);
  color: #f0f0f0;
  padding: 90px 0;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.testimonial blockquote {
  font-size: 0.95rem;
  line-height: 1.75;
}
.testimonial .attrib {
  display: block;
  text-align: right;
  margin-top: 18px;
  font-size: 0.8rem;
  color: #cfcfcf;
}
.photo-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.tile {
  position: relative;
  height: 165px;
  overflow: hidden;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .tile-label {
  position: absolute;
  inset: 18px;
  background: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #2f2f2f;
  padding: 10px;
}
.tile .tile-label span { color: var(--red); }
@media (max-width: 860px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ---------- Consultation band ---------- */

.consult { padding: 80px 0; }
.consult-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.consult-grid > img { width: 100%; height: 360px; object-fit: cover; }
.consult h2 { font-size: 1.3rem; font-weight: 500; margin-bottom: 14px; }
.consult p.lede { font-size: 0.85rem; color: var(--ink-light); margin-bottom: 22px; }
.consult .topic { border-top: 1px solid var(--line); padding: 16px 0; }
.consult .topic h3 { font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.consult .topic p { font-size: 0.82rem; color: var(--ink-light); }
.consult .btn-outline { margin-top: 20px; }
@media (max-width: 860px) {
  .consult-grid { grid-template-columns: 1fr; }
  .consult-grid > img { height: auto; }
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #333;
}
.page-hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,.05) 60%);
}
.page-hero h1 {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 0 24px 44px;
}

/* ---------- Interior page body ---------- */

.page-body { padding: 56px 0 72px; }
.page-body h2.lead {
  font-size: 1.45rem;
  font-weight: 500;
  color: #2f2f2f;
  margin-bottom: 20px;
  max-width: 760px;
}
.page-body p { margin-bottom: 16px; max-width: 820px; color: #4d4d4d; }
.page-body strong { color: #2f2f2f; }

.feature-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin: 40px 0 28px;
}
.feature-cols .col .f-icon { width: 58px; height: 58px; margin-bottom: 14px; }
.feature-cols ul { list-style: none; }
.feature-cols li {
  font-size: 0.85rem;
  padding: 4px 0;
  color: #4d4d4d;
}
.feature-cols li::before { content: "– "; }
@media (max-width: 860px) { .feature-cols { grid-template-columns: 1fr; } }

.two-col {
  background: var(--bg-soft);
  padding: 64px 0;
}
.two-col .inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.two-col h2 {
  color: var(--red);
  font-size: 1.6rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.two-col p { font-size: 0.9rem; margin-bottom: 16px; color: #4d4d4d; }
.two-col img { width: 100%; height: 320px; object-fit: cover; }
@media (max-width: 860px) {
  .two-col .inner { grid-template-columns: 1fr; }
  .two-col img { height: auto; }
}

/* ---------- Contact page ---------- */

.contact-hero {
  padding: 72px 0 24px;
}
.contact-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #111;
  text-transform: uppercase;
}
.contact-hero h1 span { color: var(--red); font-weight: 700; font-size: 0.55em; vertical-align: middle; margin-left: 10px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  padding: 32px 0 80px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card {
  border: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(0,0,0,.08);
  padding: 40px 40px 48px;
}
.form-card .brand-serif {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--red);
  text-align: center;
  font-size: 2rem;
  margin-bottom: 8px;
}
.form-card h2 {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 8px;
}
.form-card p.note {
  text-align: center;
  font-size: 0.83rem;
  color: var(--ink-light);
  margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #2f2f2f;
}
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #9fc1e0;
  border-radius: 6px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}
.contact-info h2 { font-size: 1.1rem; margin-bottom: 16px; }
.contact-info p { margin-bottom: 14px; font-size: 0.9rem; }
.contact-info .big { font-size: 1.3rem; font-weight: 700; color: #2f2f2f; }
.placeholder-tag {
  display: inline-block;
  background: #fff3cd;
  border: 1px solid #ffe08a;
  color: #7a5d00;
  font-size: 0.7rem;
  padding: 1px 8px;
  border-radius: 10px;
  vertical-align: middle;
  margin-left: 6px;
}

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

.site-footer {
  background: var(--bg-footer);
  color: #cfcac6;
  padding: 64px 0 40px;
  font-size: 0.82rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: 48px;
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-brand {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--white);
  font-size: 1.7rem;
  margin: 10px 0 14px;
}
.site-footer a { color: #cfcac6; }
.site-footer a:hover { color: var(--white); }
.footer-links a { display: block; padding: 3px 0; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; }
.footer-news input {
  width: 100%;
  padding: 9px 12px;
  border: none;
  margin-bottom: 12px;
  font-size: 0.85rem;
}
.footer-news .btn { padding: 9px 22px; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid #363330;
  font-size: 0.75rem;
  color: #8f8a86;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* accessibility */
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
