/* Jamie Rouleau Construction — site styles
   Warm neutrals, craft / wood / stone feel. Not fashion, not SaaS purple. */

:root {
  --cream: #f6f1ea;
  --cream-dark: #ebe3d7;
  --sand: #d8cbb8;
  --stone: #8a7a66;
  --wood: #6b4f35;
  --wood-deep: #4a3423;
  --charcoal: #2a2622;
  --ink: #1a1714;
  --muted: #5c534a;
  --white: #ffffff;
  --accent: #9a6b3f;
  --accent-hover: #7d5530;
  --line: rgba(42, 38, 34, 0.12);
  --shadow: 0 12px 40px rgba(26, 23, 20, 0.12);
  --radius: 6px;
  --header-h: 72px;
  --font-serif: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--wood-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 234, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.2;
  min-width: 0;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
}
.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.brand-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--stone);
  margin-top: 0.15rem;
}
.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  margin-bottom: 0.65rem;
  background: var(--white);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font: inherit;
  color: var(--charcoal);
  cursor: pointer;
}

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

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--wood-deep);
  color: var(--cream) !important;
  text-decoration: none !important;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.header-phone:hover {
  background: var(--accent-hover);
  color: var(--cream) !important;
}

/* ——— Layout ——— */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-tight { padding: 3rem 0; }

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.65rem;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin: 0 0 1rem; }
h3 { font-size: 1.3rem; margin: 0 0 0.6rem; }

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.5rem;
}

.muted { color: var(--muted); }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--wood-deep);
  color: var(--cream) !important;
}
.btn-primary:hover { background: var(--accent-hover); color: var(--cream) !important; }
.btn-secondary {
  background: transparent;
  border-color: var(--wood);
  color: var(--wood-deep) !important;
}
.btn-secondary:hover {
  background: var(--cream-dark);
  color: var(--ink) !important;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26, 23, 20, 0.88) 0%,
    rgba(26, 23, 20, 0.70) 48%,
    rgba(26, 23, 20, 0.35) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.25rem 3.5rem;
  width: 100%;
}
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lead { color: rgba(246, 241, 234, 0.88); }
.hero .btn-secondary {
  border-color: rgba(246, 241, 234, 0.55);
  color: var(--cream) !important;
}
.hero .btn-secondary:hover {
  background: rgba(246, 241, 234, 0.12);
  color: var(--white) !important;
}
.license-chip {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.45rem 0.85rem;
  background: rgba(246, 241, 234, 0.12);
  border: 1px solid rgba(246, 241, 234, 0.28);
  border-radius: 999px;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--cream);
}

/* ——— Cards / grids ——— */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(26, 23, 20, 0.04);
}
.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-dark);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 1.35rem 1.4rem 1.5rem; }
.card-body p { margin: 0 0 0.75rem; color: var(--muted); }
.card-body p:last-child { margin-bottom: 0; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.split-rev { direction: rtl; }
.split-rev > * { direction: ltr; }
.split-media {
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 5 / 4;
}

/* ——— Process steps ——— */
.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 600;
  line-height: 1;
  min-width: 2rem;
}
.step h3 { margin-bottom: 0.35rem; }
.step p { margin: 0; color: var(--muted); }

.process-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 1.5rem 0 0;
}
.process-flow .node {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}
.process-flow .arrow {
  color: var(--stone);
  font-size: 1.1rem;
}

/* ——— Areas ——— */
.areas-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.areas-list li {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 500;
}

/* ——— Proof / trust ——— */
.trust-bar {
  background: var(--charcoal);
  color: var(--cream);
  padding: 2.25rem 0;
}
.trust-bar h2 { color: var(--cream); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.trust-item {
  padding: 1.25rem;
  border: 1px solid rgba(246, 241, 234, 0.15);
  border-radius: var(--radius);
}
.trust-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--cream);
}
.trust-item p { margin: 0; color: rgba(246, 241, 234, 0.75); font-size: 0.98rem; }

.clients-look {
  background: var(--cream-dark);
}
.look-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
.look-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--muted);
}
.look-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  border-radius: 2px;
}

/* ——— Page hero (inner) ——— */
.page-hero {
  padding: 3.25rem 0 2.5rem;
  background:
    linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 0.75rem; }

/* ——— Contact form ——— */
.form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(26, 23, 20, 0.04);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.15rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
}
.form-field .req { color: var(--accent); }
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
  background: var(--white);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.form-actions { margin-top: 1.25rem; }
.contact-aside {
  background: var(--charcoal);
  color: var(--cream);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.75rem;
}
.contact-aside h2 { color: var(--cream); font-size: 1.35rem; }
.contact-aside a { color: var(--cream); }
.contact-aside a:hover { color: var(--sand); }
.contact-aside dl { margin: 1rem 0 0; }
.contact-aside dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sand);
  margin-top: 1rem;
}
.contact-aside dd { margin: 0.25rem 0 0; font-size: 1.05rem; }
.contact-aside .license {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(246, 241, 234, 0.18);
  font-size: 0.95rem;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--ink);
  color: rgba(246, 241, 234, 0.78);
  padding: 3rem 0 2rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h2,
.site-footer h3 {
  color: var(--cream);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}
.site-footer a {
  color: rgba(246, 241, 234, 0.85);
  text-decoration: none;
}
.site-footer a:hover { color: var(--cream); text-decoration: underline; }
.footer-brand .brand-name {
  color: var(--cream);
  font-size: 1.2rem;
}
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(246, 241, 234, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.9rem;
}

/* ——— Utilities ——— */
.bg-white { background: var(--white); }
.bg-cream-dark { background: var(--cream-dark); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.cta-band {
  background: var(--wood-deep);
  color: var(--cream);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--cream); }
.cta-band p { color: rgba(246, 241, 234, 0.85); max-width: 36rem; margin: 0 auto 1.5rem; }
.cta-band .btn-primary {
  background: var(--cream);
  color: var(--wood-deep) !important;
}
.cta-band .btn-primary:hover {
  background: var(--white);
}
.cta-band .btn-secondary {
  border-color: rgba(246, 241, 234, 0.45);
  color: var(--cream) !important;
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .grid-3, .grid-4, .trust-grid, .footer-grid, .areas-list {
    grid-template-columns: 1fr 1fr;
  }
  .split, .split-rev {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1rem;
    gap: 0;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }
  .header-phone { font-size: 0.88rem; padding: 0.5rem 0.75rem; }
  .brand-logo { width: 48px; height: 48px; }
  .brand-name { font-size: 0.95rem; }
  .grid-2, .grid-3, .grid-4, .trust-grid, .footer-grid, .areas-list, .form-grid {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 560px; }
  .hero-content { padding-top: 4rem; }
}

@media (max-width: 480px) {
  .header-inner { flex-wrap: wrap; }
  .brand { order: 1; flex: 1; }
  .header-phone { order: 2; }
  .nav-toggle { order: 3; }
}


/* Contact form PHP mail status + honeypot */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status--ok {
  color: #2f5d3a;
  border-left: 3px solid #2f5d3a;
  padding-left: 0.75rem;
}
.form-status--err {
  color: #8a2f2f;
  border-left: 3px solid #8a2f2f;
  padding-left: 0.75rem;
}
/* No-JavaScript return messages (contact.html#sent, #err-*): shown only when targeted */
.nojs-msg { display: none; margin: 0 0 1rem; scroll-margin-top: 6rem; }
.nojs-msg:target { display: block; }
.js .nojs-msg:target { display: none; }

/* Inline field error (phone) */
/* One line under Phone: a grey hint, replaced by the red error when there is a problem.
   The line is always there, so the fields below don't jump; a two-line error grows it only while shown. */
.field-msg {
  margin-top: -0.1rem;
  font-size: 0.85rem;
  line-height: 1.35;
  min-height: 1.35em;
}
.field-hint,
.field-error { margin: 0; }
.field-hint { color: var(--muted); }
.field-hint[hidden] { display: none; }
.field-error { color: #8a2f2f; }
.field-error .nowrap { white-space: nowrap; }
.form-field input[aria-invalid="true"] {
  border-color: #8a2f2f;
}

/* ——— Hero logo medallion (front page) ——— */
.hero-with-logo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2.5rem;
}
.hero-with-logo .hero-copy { min-width: 0; }
.hero-logo {
  margin: 0;
  width: clamp(200px, 26vw, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(145deg, #e9dcc6, #b08a5a 55%, #e9dcc6);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.hero-logo img {
  display: block;
  width: 100%;
  border-radius: 50%;
}
@media (max-width: 700px) {
  .hero-with-logo {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-logo {
    order: -1;
    width: 150px;
    padding: 4px;
  }
}
@media (max-width: 520px) {
  .brand-tag { display: none; }
}

/* ——— UX review pass 2026-09-30 (JamieR UX) ——— */
.hero-with-logo { column-gap: clamp(2rem, 5vw, 4.5rem); padding-top: 3.5rem; padding-bottom: 3rem; }
.hero-with-logo h1 { max-width: 21ch; font-size: clamp(2rem, 3.4vw, 2.75rem); }
.hero-logo { width: clamp(180px, 22vw, 300px); justify-self: end; }
.hero-logo img { max-width: 100%; height: auto; }
.brand-tag { color: var(--muted); }
.header-phone { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 900px) {
  .brand-tag { display: none; }
}
@media (max-width: 760px) {
  .process-flow .arrow { display: none; }
  .footer-nav a, .card-body a { display: inline-block; padding: 0.6rem 0; }
}
@media (max-width: 700px) {
  .hero-with-logo { padding-top: 1.75rem; padding-bottom: 2.25rem; gap: 1rem; }
  .hero-with-logo h1 { max-width: none; font-size: 1.8rem; }
  .hero-logo { width: 104px; padding: 3px; justify-self: start; }
  .hero .lead { font-size: 1.05rem; margin-bottom: 1.1rem; }
  .license-chip { margin-top: 1rem; }
}
@media (max-width: 760px) {
  .areas-more a, .contact-aside dd a, .form-note a { display: inline-block; padding: 0.5rem 0; }
}

/* Balanced heading wraps (UX r3) */
.page-hero h1 { text-wrap: balance; }
.page-hero .lead { text-wrap: pretty; }

@media (max-width: 900px) and (min-width: 340px) {
  .areas-list { grid-template-columns: 1fr 1fr; }
}
