/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #C65D2A;
  --primary-dk: #9E4820;
  --green:      #4A7C59;
  --bg:         #FAFAF7;
  --bg-alt:     #F4EDE3;
  --text:       #2C2C2C;
  --text-light: #5A5A5A;
  --border:     #E0D5C8;
  --white:      #FFFFFF;
  --max-w:      780px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

/* === Typography === */
h1, h2, h3, h4, nav, .btn {
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
}

h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.25; color: var(--primary); }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); color: var(--text); margin-top: 2.25rem; margin-bottom: .6rem; }
h3 { font-size: 1.1rem; color: var(--green); margin-top: 1.5rem; margin-bottom: .4rem; }
p  { margin-bottom: 1rem; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: .35rem; }
a  { color: var(--primary); text-decoration: underline; }
a:hover { color: var(--primary-dk); }

/* === Header / Nav === */
header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,.07);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

.logo { flex-shrink: 0; }

.logo {
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -.5px;
}
.logo span { color: var(--green); }

nav { display: flex; flex-wrap: nowrap; gap: .1rem; align-items: center; }
nav a {
  text-decoration: none;
  color: var(--text);
  font-size: .82rem;
  font-weight: 600;
  padding: .3rem .55rem;
  border-radius: 4px;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
nav a:hover, nav a.active { background: var(--bg-alt); color: var(--primary); }

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--white) 100%);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero p.lead {
  max-width: 620px;
  margin: 1rem auto 1.75rem;
  font-size: 1.05rem;
  color: var(--text-light);
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white) !important;
  text-decoration: none;
  padding: .75rem 1.75rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  transition: background .2s, transform .15s;
}
.btn:hover { background: var(--primary-dk); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary) !important;
}
.btn-outline:hover { background: var(--primary); color: var(--white) !important; }

/* === Main Content === */
main {
  max-width: var(--max-w);
  margin: 2.5rem auto;
  padding: 0 1.25rem;
}

/* === Cards (homepage nav blocks) === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 8px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .2s, transform .15s;
}
.card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.1); transform: translateY(-2px); color: var(--text); text-decoration: none; }
.card .icon { font-size: 2rem; margin-bottom: .5rem; }
.card h3 { color: var(--primary); margin-top: .25rem; font-size: 1rem; }
.card p  { font-size: .88rem; color: var(--text-light); margin-bottom: 0; }

/* === CTA Banner === */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  color: var(--white);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  text-align: center;
  margin: 3rem 0 1rem;
}
.cta-banner h2 { color: var(--white); margin-top: 0; }
.cta-banner p  { color: rgba(255,255,255,.88); margin-bottom: 1.25rem; }
.cta-banner .btn { background: var(--white); color: var(--primary) !important; }
.cta-banner .btn:hover { background: var(--bg-alt); }

/* === Steps === */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
.steps li > div { display: flex; flex-direction: column; }
.steps li > div > strong,
.steps li > strong {
  display: block;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: .4rem;
}
.steps li > div > p { margin-bottom: 0; }
.steps li::before {
  content: counter(step);
  background: var(--primary);
  color: var(--white);
  font-family: 'Trebuchet MS', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* === Tip box === */
.tip {
  background: #EEF6F1;
  border-left: 4px solid var(--green);
  border-radius: 4px;
  padding: .9rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.tip strong { color: var(--green); }

/* === FAQ / Q&A === */
.faq-item { border-top: 1px solid var(--border); padding: 1.25rem 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item h3 { color: var(--primary); margin-top: 0; font-size: 1.05rem; }

/* === Breadcrumb === */
.breadcrumb {
  font-size: .83rem;
  color: var(--text-light);
  padding: .75rem 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }

/* === Footer === */
footer {
  background: var(--text);
  color: rgba(255,255,255,.75);
  text-align: center;
  padding: 2rem 1.25rem;
  font-size: .85rem;
  margin-top: 4rem;
}
footer a { color: rgba(255,255,255,.85); }
footer a:hover { color: var(--white); }
footer .footer-links { margin-bottom: .75rem; display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* === Image Placeholders === */
.img-placeholder {
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--text-light);
  font-family: 'Trebuchet MS', sans-serif;
  font-size: .85rem;
  text-align: center;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 12px,
    rgba(0,0,0,.03) 12px,
    rgba(0,0,0,.03) 24px
  );
}
.img-placeholder .ph-icon { font-size: 2.5rem; position: relative; }
.img-placeholder .ph-label { position: relative; font-weight: 600; color: var(--text-light); }
.img-placeholder .ph-hint  { position: relative; font-size: .78rem; opacity: .7; }

/* Hero placeholder – full width, tall */
.img-placeholder.hero-img { width: 100%; height: 320px; border-radius: 0; border-left: none; border-right: none; border-top: none; margin-bottom: 0; }

/* Wide content image */
.img-placeholder.wide { width: 100%; height: 260px; margin: 1.75rem 0; }

/* Inline / float image */
.img-placeholder.inline-right {
  float: right;
  width: 280px;
  height: 210px;
  margin: 0 0 1.25rem 1.75rem;
}
.img-placeholder.inline-left {
  float: left;
  width: 280px;
  height: 210px;
  margin: 0 1.75rem 1.25rem 0;
}
.clearfix::after { content: ''; display: table; clear: both; }

/* Step image – small, inside step list context */
.img-placeholder.step-img { width: 100%; height: 180px; margin-top: .75rem; }

/* Grid of two images side by side */
.img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75rem 0;
}
.img-grid .img-placeholder { height: 200px; }

/* === Content Images (replace placeholders) === */
.img-wide, .img-inline-right, .img-inline-left, .img-step, .img-grid img {
  border-radius: 10px;
  display: block;
}
.img-wide        { width: 100%; margin: 1.75rem 0; }
.img-step        { width: 100%; margin-top: .75rem; }
.img-inline-right {
  float: right;
  width: 280px;
  margin: 0 0 1.25rem 1.75rem;
}
.img-inline-left {
  float: left;
  width: 280px;
  margin: 0 1.75rem 1.25rem 0;
}
.img-grid img    { width: 100%; height: 200px; object-fit: cover; }

/* === Hamburger button === */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .22s, opacity .22s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Responsive === */

/* Tablet (≤ 860px): slightly smaller nav */
@media (max-width: 860px) {
  nav a { font-size: .78rem; padding: .28rem .45rem; }
}

/* Mobile (≤ 640px): hamburger menu */
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; align-items: center; padding: .6rem 1rem; }
  .nav-toggle { display: flex; }

  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid var(--border);
    padding: .4rem 0 .6rem;
    gap: 0;
  }
  nav.open { display: flex; }
  nav a {
    font-size: .97rem;
    padding: .65rem .5rem;
    white-space: normal;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    width: 100%;
  }
  nav a:last-child { border-bottom: none; }

  main { margin: 1.5rem auto; }
  .hero { padding: 2rem 1.1rem 1.75rem; }
  .hero p.lead { font-size: .95rem; }
  .btn { font-size: .9rem; padding: .65rem 1.25rem; }
  .cta-banner { padding: 1.5rem 1.1rem; border-radius: 8px; }
  .img-grid { grid-template-columns: 1fr; }
  .img-inline-right, .img-placeholder.inline-right,
  .img-inline-left,  .img-placeholder.inline-left {
    float: none; width: 100%; margin: 1rem 0; height: auto;
  }
  .cards { grid-template-columns: 1fr; }
  footer { padding: 1.5rem 1rem; }
}
