/* ==========================================================================
   Raccoon Mountain Woodworks — stylesheet
   Warm, handcrafted palette: walnut, oak, cream.
   ========================================================================== */

:root {
  --walnut:      #3d2b1f;
  --walnut-soft: #5a4432;
  --oak:         #a9743f;
  --oak-light:   #c8945c;
  --cream:       #f4ede2;
  --cream-deep:  #e8dccb;
  --logo-cream:  #fbeed4;  /* matches the logo artwork background exactly */
  --charcoal:    #2b2320;
  --ink:         #33291f;
  --paper:       #fbf7f0;
  --shadow:      rgba(61, 43, 31, 0.18);

  --font-head: "Georgia", "Times New Roman", serif;
  --font-body: "Helvetica Neue", Arial, sans-serif;

  --maxw: 1120px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--walnut);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

a { color: var(--oak); }

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--logo-cream);
  color: var(--walnut);
  border-bottom: 1px solid var(--cream-deep);
  box-shadow: 0 2px 10px var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.25rem;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand .logo {
  height: 56px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--walnut);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 0.03em;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--oak);
  border-bottom-color: var(--oak);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--walnut);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--oak);
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1.7rem;
  border-radius: var(--radius);
  font-weight: bold;
  letter-spacing: 0.03em;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover { background: var(--oak-light); }
.btn:active { transform: translateY(1px); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--cream);
  color: var(--cream);
}
.btn-outline:hover { background: var(--cream); color: var(--walnut); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(43, 35, 32, 0.62), rgba(43, 35, 32, 0.72)),
    url("../images/web/hero.jpg") center/cover no-repeat,
    var(--walnut-soft);
  color: var(--cream);
  text-align: center;
  padding: 6rem 1.25rem;
}
.hero h1 {
  color: var(--cream);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 0.35em;
}
.hero p.tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  max-width: 620px;
  margin: 0 auto 1.8rem;
  color: var(--cream-deep);
}
.hero .btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--cream); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.75rem; }
.section-head h1,
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.section-head p { color: var(--walnut-soft); font-size: 1.08rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oak);
  font-weight: bold;
  margin-bottom: 0.6rem;
}

/* Feature / service cards */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: 0 4px 14px var(--shadow);
}
.card .icon {
  width: 46px; height: 46px;
  margin-bottom: 1rem;
  color: var(--oak);
}
.card h3 { font-size: 1.3rem; }
.card p { margin: 0; color: var(--walnut-soft); }

/* About split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.signature {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--walnut);
  margin: 0.2rem 0 1.4rem;
}
.split .media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--oak-light), var(--walnut-soft));
  box-shadow: 0 10px 30px var(--shadow);
  overflow: hidden;
}
.split .media img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px var(--shadow);
  background: var(--cream-deep);
}
.gallery .thumb {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery figure:hover .thumb { transform: scale(1.05); }
.gallery figcaption {
  padding: 0.9rem 1rem;
  background: var(--paper);
  font-family: var(--font-head);
  color: var(--walnut);
}
.gallery figcaption span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--walnut-soft);
}

/* Placeholder tile when no photo yet */
.ph {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, var(--cream-deep) 0 12px, var(--cream) 12px 24px);
  color: var(--walnut-soft);
  font-family: var(--font-head);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
}
.contact-info a { color: var(--oak); text-decoration: none; font-weight: bold; }
.contact-info a:hover { text-decoration: underline; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--cream-deep);
}
.contact-line .icon { width: 28px; height: 28px; color: var(--oak); flex: none; }
.contact-line .label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--walnut-soft);
}
.contact-line .value { font-size: 1.1rem; font-weight: bold; }
.contact-line .value-note {
  display: block;
  font-size: 0.9rem;
  font-weight: normal;
  color: var(--walnut-soft);
  margin-top: 1.1rem;
  line-height: 1.45;
}

/* Service-area block (label + map, no icon) */
.service-area-line { align-items: flex-start; border-bottom: 0; }
.service-area-body { width: 100%; }

/* Service-area map */
.service-map {
  margin: 0.7rem 0 0;
  max-width: 360px;
}
.service-map .sa-map {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
}
.service-map figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--walnut-soft);
}
.sa-neighbor { fill: var(--cream-deep); stroke: var(--paper); stroke-width: 0.8; opacity: 0.6; }
.sa-state    { fill: #e3c99f; stroke: #fff; stroke-width: 1; }
.sa-stlabel  { fill: var(--walnut-soft); font-family: var(--font-head); font-size: 11px; font-weight: bold; opacity: 0.65; text-anchor: middle; }
.sa-range    { fill: var(--oak); fill-opacity: 0.13; stroke: var(--oak); stroke-width: 2; stroke-dasharray: 5 4; }
.sa-dot      { fill: var(--oak); stroke: #fff; stroke-width: 1.4; }
.sa-hub      { fill: var(--walnut); stroke: #fff; stroke-width: 2; }
.sa-label {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  fill: var(--walnut);
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 2.6px;
  stroke-linejoin: round;
}
.sa-hublabel { font-size: 11.5px; font-weight: bold; }

form.contact-form { display: grid; gap: 1.1rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--walnut);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  font-size: 1.05rem; line-height: 1.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a4432' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem;
}
.field select option { font-size: 1.05rem; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--oak);
  box-shadow: 0 0 0 3px rgba(169, 116, 63, 0.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--walnut-soft); margin: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--charcoal);
  color: var(--cream-deep);
  padding: 2.5rem 1.25rem;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer a { color: var(--oak-light); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .foot-brand {
  font-family: var(--font-head);
  color: var(--cream);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.site-footer .foot-links { margin: 0.8rem 0; }
.site-footer .foot-links a { margin: 0 0.7rem; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--logo-cream);
    padding: 0.5rem 1.25rem 1rem;
    border-bottom: 1px solid var(--cream-deep);
    box-shadow: 0 8px 16px var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0; border-bottom: 1px solid var(--cream-deep); }
  .brand .logo { height: 46px; }
}

@media (max-width: 460px) {
  .gallery { grid-template-columns: 1fr; }
  .hero { padding: 4rem 1.25rem; }
}
