/* ==========================================================================
   Bludorn Builders — shared stylesheet
   Official brand palette: charcoal #231F20 + rust/copper #8D401E on warm white
   ========================================================================== */

:root {
  --ink:        #231F20;   /* charcoal / logo black */
  --ink-soft:   #2C2725;
  --rust:       #8D401E;   /* logo rust / copper — accent */
  --rust-dark:  #723318;
  --rust-light: #A64E27;
  --paper:      #F6F3EE;   /* warm off-white page bg */
  --paper-2:    #EFEAE3;   /* alt section bg */
  --card:       #FFFFFF;
  --line:       #E3DCD3;   /* warm border */
  --muted:      #5C554F;   /* body text on light */
  --muted-2:    #857D75;
  --on-dark:    #EFE8E0;   /* text on charcoal */
  --on-dark-2:  #C9BFB4;

  --serif: Georgia, "Times New Roman", serif;
  --sans:  Arial, Helvetica, sans-serif;
  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--rust); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--rust-dark); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); letter-spacing: .01em; }

.page-wrap { width: 100%; overflow-x: hidden; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  background: var(--rust);
  color: #fff;
  padding: 15px 30px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .16em;
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid var(--rust);
  cursor: pointer;
  text-align: center;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--rust-dark); border-color: var(--rust-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--paper-2); color: var(--ink); border-color: var(--paper-2); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 44px);
  background: rgba(246,243,238,.96);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .brand img { height: 52px; width: auto; }
.primary { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.primary a {
  color: var(--ink); font-size: 12px; letter-spacing: .16em; font-weight: 700;
  text-transform: uppercase; padding: 6px 0; position: relative;
}
.primary a:hover { color: var(--rust); }
.primary a.active { color: var(--rust); }
.primary a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--rust);
}
.primary .btn { color: #fff; padding: 11px 22px; }
.primary .btn:hover { color: #fff; }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: all .25s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 78vh; display: flex; align-items: center;
  background-size: cover; background-position: center;
  color: #fff; padding: clamp(60px, 10vh, 120px) clamp(20px, 6vw, 80px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(20,17,17,.82) 0%, rgba(20,17,17,.55) 55%, rgba(20,17,17,.30) 100%);
}
.hero-inner { position: relative; max-width: 720px; }
.hero .eyebrow { color: #fff; opacity: .9; }
.hero h1 {
  color: #fff; font-size: clamp(34px, 6vw, 62px); line-height: 1.08; margin: 14px 0 8px;
}
.hero .rule { background: var(--rust-light); }
.hero p { color: #f1ece6; font-size: clamp(16px, 1.5vw, 19px); max-width: 560px; margin: 20px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* page hero (interior pages, shorter) */
.page-hero { min-height: 46vh; }

/* rotating hero slideshow */
.hero.has-slideshow { background-image: none; }
.hero-slideshow { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }
.hero::before { z-index: 1; }
.hero .hero-inner { position: relative; z-index: 2; }

/* ============ Section scaffolding ============ */
.section { padding: clamp(56px, 8vw, 100px) clamp(20px, 6vw, 80px); }
.section.alt { background: var(--paper-2); }
.section.paper { background: var(--card); }
.section-inner { max-width: var(--wrap); margin: 0 auto; }

.eyebrow {
  display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .26em;
  text-transform: uppercase; font-weight: 700; color: var(--rust); margin-bottom: 12px;
}
.section-header { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-header h2 { font-size: clamp(28px, 4vw, 40px); }
.section-header p { color: var(--muted); margin-top: 14px; font-size: 17px; }
.rule { width: 54px; height: 3px; background: var(--rust); margin: 16px 0 0; }
.section-header .rule { margin: 18px auto 0; }
h2 .rule { margin-top: 14px; }

/* ============ Audience split (home) ============ */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path-card {
  position: relative; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end;
  color: #fff; background-size: cover; background-position: center; isolation: isolate;
}
.path-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,17,17,.15) 0%, rgba(20,17,17,.78) 100%);
  transition: background .3s ease;
}
.path-card:hover::before { background: linear-gradient(180deg, rgba(141,64,30,.25) 0%, rgba(20,17,17,.82) 100%); }
.path-card .path-body { padding: 34px; }
.path-card h3 { color: #fff; font-size: 28px; margin-bottom: 8px; }
.path-card p { color: #ece5dd; font-size: 15px; margin-bottom: 18px; max-width: 90%; }
.path-card .path-link {
  color: #fff; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
}
.path-card .path-link span { color: var(--rust-light); transition: margin .2s ease; display: inline-block; }
.path-card:hover .path-link span { margin-left: 6px; }

/* ============ Promise / value cards ============ */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.value-card {
  background: var(--card); border: 1px solid var(--line); padding: 34px 28px; text-align: center;
}
.section.dark .value-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.value-icon { width: 52px; height: 52px; margin: 0 auto 18px; color: var(--rust); }
.section.dark .value-icon { color: var(--rust-light); }
.value-icon svg { width: 100%; height: 100%; }
.value-card h3 { font-size: 21px; margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: 15px; }
.section.dark .value-card h3 { color: #fff; }
.section.dark .value-card p { color: var(--on-dark-2); }

/* ============ Feature rows ============ */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(48px, 7vw, 88px); }
.feature-row.reverse .feature-text { order: 2; }
.feature-text h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 8px; }
.feature-text p { color: var(--muted); margin-top: 16px; }
.feature-text .btn { margin-top: 26px; }
.feature-list { list-style: none; margin: 22px 0 4px; }
.feature-list li {
  position: relative; padding: 9px 0 9px 30px; color: var(--ink); font-size: 15.5px;
  border-bottom: 1px solid var(--line);
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 15px; height: 9px;
  border-left: 2.5px solid var(--rust); border-bottom: 2.5px solid var(--rust); transform: rotate(-45deg);
}
.feature-image { overflow: hidden; }
.feature-image img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }

/* ============ Dark section ============ */
.section.dark { background: var(--ink); color: var(--on-dark); }
.section.dark h2 { color: #fff; }
.section.dark .eyebrow { color: var(--rust-light); }
.section.dark .section-header p { color: var(--on-dark-2); }

/* ============ Gallery ============ */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.filter-btn {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  padding: 9px 20px; font-family: var(--sans); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 700; cursor: pointer; transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--rust); color: var(--rust); }
.filter-btn.active { background: var(--rust); border-color: var(--rust); color: #fff; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.card-image { aspect-ratio: 4/3; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-image img { transform: scale(1.05); }
.card-body { padding: 20px 22px 24px; }
.project-title { font-size: 18px; margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }
.tag {
  display: inline-block; color: var(--rust); font-size: 10.5px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
}
.hidden { display: none !important; }

/* masonry-ish gallery (simple) */
.photo-grid { columns: 3 280px; column-gap: 18px; }
.photo-grid figure { break-inside: avoid; margin: 0 0 18px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.photo-grid img { width: 100%; display: block; transition: transform .5s ease; }
.photo-grid figure:hover img { transform: scale(1.04); }

/* ============ CTA band ============ */
.cta-band {
  background: var(--rust); color: #fff; text-align: center;
  padding: clamp(52px, 7vw, 88px) clamp(20px, 6vw, 80px);
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 12px; }
.cta-band p { color: #f4e7de; font-size: 17px; max-width: 560px; margin: 0 auto 26px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 56px); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-row svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--rust); margin-top: 3px; }
.contact-row strong {
  display: block; color: var(--ink); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 700; margin-bottom: 4px;
}
.contact-row a, .contact-row span { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.contact-form { background: var(--card); padding: 30px; border: 1px solid var(--line); }
.contact-form label {
  display: block; color: var(--ink); font-size: 11px; letter-spacing: .18em;
  font-weight: 700; text-transform: uppercase; margin-bottom: 6px;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 13px 14px; background: #fff; border: 1px solid var(--line);
  font-family: var(--sans); font-size: 16px; color: var(--ink); margin-bottom: 16px;
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--rust); outline-offset: 1px; border-color: var(--rust);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-msg { display: none; padding: 11px 14px; margin-bottom: 14px; font-size: 14px; }
.form-msg.success { display: block; background: #eaf3ec; color: #1e6b3f; border-left: 3px solid #2a9d5a; }
.form-msg.error { display: block; background: #f8ebe7; color: #8a2f1e; border-left: 3px solid var(--rust); }
.map-wrap { margin-top: 40px; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ============ Footer ============ */
.site-footer { background: var(--ink); color: var(--on-dark-2); padding: clamp(48px, 6vw, 72px) clamp(20px, 6vw, 80px) 0; }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto; display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr; gap: 40px; padding-bottom: 40px;
}
.footer-inner .brand img { height: 66px; width: auto; margin-bottom: 8px; }
.footer-tagline { font-family: var(--serif); color: #fff; font-size: 19px; line-height: 1.35; margin-bottom: 12px; }
.site-footer p { color: var(--on-dark-2); font-size: 14.5px; }
.site-footer ul { list-style: none; }
.site-footer ul li { padding: 6px 0; font-size: 14.5px; color: var(--on-dark-2); }
.site-footer ul li a { color: #fff; }
.site-footer ul li a:hover { color: var(--rust-light); }
.footer-bottom {
  max-width: var(--wrap); margin: 0 auto; border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0; font-size: 12.5px; color: var(--on-dark-2); text-align: center;
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .primary {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 clamp(18px,4vw,44px);
  }
  .primary.open { max-height: 460px; padding: 6px clamp(18px,4vw,44px) 16px; }
  .primary a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .primary a.active::after { display: none; }
  .primary .btn { margin-top: 12px; text-align: center; }
  .paths { grid-template-columns: 1fr; }
  .feature-row, .feature-row.reverse .feature-text { grid-template-columns: 1fr; order: 0; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-image img { min-height: 260px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .photo-grid { columns: 2 200px; }
}
@media (max-width: 480px) {
  .hero { min-height: 70vh; }
  .photo-grid { columns: 1; }
}

/* ============ Discreet staff login (footer) ============ */
.staff-login {
  color: var(--on-dark-2); opacity: .45; margin-left: 12px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.staff-login:hover { opacity: 1; color: var(--rust-light); }
