/* ==========================================================================
   Creative Carpentry Co — Design Tokens
   Navy, gold and white per the client's real logo and the reference layout
   (split-photo hero, layered about section, numbered process steps).
   Display: Poppins
   Body: Inter
   Data/labels: IBM Plex Mono
   ========================================================================== */

:root {
  --navy: #14233a;
  --navy-2: #1c3050;
  --navy-deep: #0c1524;
  --gold: #dc963c;
  --gold-dim: #c17e28;
  --white: #ffffff;
  --offwhite: #f6f7f9;
  --charcoal: #1c2230;
  --grey: #5a6472;
  --grey-light: #8f97a3;
  --line: rgba(20, 35, 58, 0.12);

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  line-height: 1.18;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--grey); }

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

.eyebrow {
  font-family: var(--font-mono);
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--gold); }

.level-rule { height: 1px; background: var(--line); margin: 46px 0; }

/* ---------- Top bar ---------- */
.top-bar { background: var(--navy-deep); color: rgba(255,255,255,0.75); padding: 8px 0; font-family: var(--font-mono); font-size: 0.76rem; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-bar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; max-width: var(--container); margin: 0 auto; }
.brand img { height: 52px; width: auto; }

nav.main-nav { display: flex; align-items: center; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links > a, .nav-item > button {
  font-size: 0.84rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--navy); font-weight: 600; transition: color 0.2s; padding: 6px 0; border-bottom: 2px solid transparent;
  background: none; border-top: none; border-left: none; border-right: none; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
}
.nav-links > a:hover, .nav-links > a.active, .nav-item:hover > button, .nav-item.open > button { color: var(--gold-dim); border-bottom-color: var(--gold); }

.nav-item { position: relative; }
.dropdown {
  display: none;
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 20px 50px rgba(20,35,58,0.14);
  padding: 16px; margin-top: 14px;
  min-width: 260px;
}
.nav-item:hover .dropdown, .nav-item.open .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 6px; font-size: 0.9rem; color: var(--charcoal); border-bottom: 1px solid var(--line); }
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { color: var(--gold-dim); }

.call-btn {
  font-family: var(--font-mono); background: var(--gold); color: var(--navy-deep);
  padding: 11px 20px; font-weight: 700; font-size: 0.86rem;
  display: flex; align-items: center; gap: 8px; transition: background 0.15s, transform 0.15s;
  border-radius: 999px;
}
.call-btn:hover { background: #eaa953; transform: translateY(-2px); }

.nav-toggle { display: none; background: none; border: none; color: var(--navy); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 980px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); max-height: 80vh; overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links > a, .nav-item > button { padding: 16px 24px; border-bottom: 1px solid var(--line); width: 100%; justify-content: space-between; }
  .dropdown { position: static; transform: none; display: none; box-shadow: none; border: none; border-radius: 0; margin-top: 0; background: var(--offwhite); min-width: 0; padding: 0; }
  .nav-item.open .dropdown { display: block; }
  .dropdown a { padding: 12px 24px; }
  .nav-toggle { display: block; }
}

/* ---------- Hero (split navy panel + photo, matches reference) ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
.hero-panel {
  background: var(--navy); color: var(--white);
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 60px;
}
.hero-panel h1 { color: var(--white); }
.hero-panel .lead { color: rgba(255,255,255,0.78); max-width: 42ch; }
.hero-photo { position: relative; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-panel { padding: 50px 24px; }
  .hero-photo img { min-height: 260px; }
}

.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

.btn {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.03em;
  padding: 15px 28px; font-size: 0.82rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 10px; transition: transform 0.15s, background 0.15s;
  border-radius: 999px;
}
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { transform: translateY(-2px); background: #eaa953; }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.4); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-dark { background: var(--navy-deep); color: var(--white); }
.btn-dark:hover { background: #060c15; }

.spec-card { border: 1px solid var(--line); background: var(--offwhite); padding: 26px; border-radius: 8px; }
.spec-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); font-family: var(--font-mono); font-size: 0.85rem; }
.spec-row:last-child { border-bottom: none; }
.spec-row span:first-child { color: var(--grey-light); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.72rem; }
.spec-row span:last-child { color: var(--navy); font-weight: 600; }

/* ---------- About section with layered photos (matches reference) ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.layered-photos { position: relative; padding: 30px 40px 40px 0; }
.layered-photos .back-photo { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.layered-photos .back-photo img { width: 100%; height: 320px; object-fit: cover; opacity: 0.5; }
.layered-photos .front-photo {
  position: absolute; bottom: 0; left: 40px; width: 68%;
  border-radius: 8px; overflow: hidden; border: 4px solid var(--white); box-shadow: 0 24px 50px rgba(20,35,58,0.2);
}
.layered-photos .front-photo img { width: 100%; height: 260px; object-fit: cover; }

.icon-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
@media (max-width: 700px) { .icon-row { grid-template-columns: 1fr; } }
.icon-item { display: flex; gap: 14px; align-items: flex-start; }
.icon-item .icon-circle {
  width: 46px; height: 46px; border-radius: 50%; background: var(--offwhite); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold-dim); font-size: 1.3rem;
}
.icon-item h3 { font-size: 0.98rem; margin-bottom: 4px; }
.icon-item p { font-size: 0.88rem; margin-bottom: 0; }

/* ---------- Numbered process section (matches reference "3 easy steps") ---------- */
.process-band { background: var(--offwhite); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
@media (max-width: 800px) { .process-grid { grid-template-columns: 1fr; } }
.process-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 32px 26px; position: relative; overflow: hidden; }
.process-card .ghost-num {
  position: absolute; top: -10px; right: 10px; font-family: var(--font-display); font-weight: 700;
  font-size: 4.5rem; color: var(--offwhite); line-height: 1; z-index: 0;
}
.process-card h3, .process-card p { position: relative; z-index: 1; }
.process-card h3 { margin-top: 10px; }

/* ---------- Trust strip ---------- */
.trust-strip { border-bottom: 1px solid var(--line); padding: 20px 0; background: var(--white); }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: center; }
.trust-item { font-family: var(--font-mono); font-size: 0.8rem; color: var(--grey); text-transform: uppercase; letter-spacing: 0.05em; display: flex; align-items: center; gap: 8px; }
.trust-item::before { content: '\2713'; color: var(--gold-dim); }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--offwhite); border: 1px solid var(--line); padding: 28px; border-radius: 8px;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.service-card .tag { font-family: var(--font-mono); color: var(--gold-dim); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
.service-card h3 { margin: 10px 0 8px; font-size: 1.08rem; }
.service-card p { font-size: 0.9rem; margin-bottom: 0; }

.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .areas-grid { grid-template-columns: 1fr; } }
.area-card { background: var(--offwhite); border: 1px solid var(--line); padding: 22px; border-radius: 8px; transition: border-color 0.2s; }
.area-card:hover { border-color: var(--gold); }
.area-card h3 { margin-bottom: 6px; font-size: 1rem; }
.area-card p { font-size: 0.85rem; margin-bottom: 0; }

.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item summary {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.02em;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  color: var(--navy); font-size: 0.9rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--gold-dim); font-size: 1.3rem; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin-top: 12px; margin-bottom: 0; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid figure { margin: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.gallery-grid img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.3s; }
.gallery-grid figure:hover img { transform: scale(1.05); }

.hero-image-panel { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(20,35,58,0.14); }
.hero-image-panel img { width: 100%; height: 380px; object-fit: cover; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.cta-band { background: var(--navy); color: var(--white); padding: 56px 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.cta-band h2 { color: var(--white); margin: 0; }
.cta-band p { color: rgba(255,255,255,0.7); margin: 4px 0 0; }
.cta-band .btn-primary { background: var(--gold); color: var(--navy-deep); }
.cta-band .btn-primary:hover { background: #eaa953; }

footer.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--offwhite); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--gold-dim); margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--grey); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold-dim); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: 0.78rem; color: var(--grey-light); font-family: var(--font-mono);
}

.text-center { text-align: center; }

.page-hero { padding: 56px 0 46px; border-bottom: 1px solid var(--line); background: var(--offwhite); }
.breadcrumb { font-family: var(--font-mono); font-size: 0.78rem; color: var(--grey-light); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 18px; }
.breadcrumb a { color: var(--grey); }
.breadcrumb a:hover { color: var(--gold-dim); }

.error-page { text-align: center; padding: 120px 0; }
.error-page .code { font-family: var(--font-display); font-size: 5.5rem; color: var(--gold); line-height: 1; font-weight: 700; }
