/* ==============================================
   PROPERLY STUMPED LLC — styles.css
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,600&display=swap');

/* ============ CSS VARIABLES ============ */
:root {
  --forest:    #162B16;
  --moss:      #2A4C1A;
  --fern:      #3D6B29;
  --ember:     #C4672A;
  --ember-lt:  #D97F42;
  --bark:      #5C3A1E;
  --cream:     #F4EFE3;
  --parchment: #EAE0CA;
  --straw:     #CCAA6A;
  --soil:      #140E07;
  --mist:      #C8D5B8;
  --shadow:    rgba(20, 14, 7, 0.18);

  --font-display: 'Oswald', sans-serif;
  --font-body:    'Lora', serif;

  --nav-h:  68px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max-w:  1160px;
}

/* ============ RESET ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--soil);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============ CONTAINER ============ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============ NAVIGATION ============ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--forest);
  border-bottom: 3px solid var(--ember);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--straw);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cream);
}

.nav-links a.nav-cta {
  background: var(--ember);
  color: var(--cream);
  padding: 0.5rem 1.15rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s;
}

.nav-links a.nav-cta:hover {
  background: var(--ember-lt);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 210;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.25s, opacity 0.25s;
}

.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); }

/* Mobile nav panel */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--forest);
  border-bottom: 3px solid var(--ember);
  padding: 1.5rem var(--gutter) 2rem;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 199;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
  transition: color 0.2s;
}

.nav-mobile a:hover { color: var(--cream); }

.nav-mobile a.nav-cta {
  display: inline-block;
  background: var(--ember);
  color: var(--cream);
  padding: 0.8rem 1.5rem;
  font-weight: 700;
  text-align: center;
}

/* ============ HERO ============ */
.hero {
  background: var(--forest);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(5rem, 11vw, 8.5rem);
  position: relative;
  overflow: hidden;
}

/* Diagonal hash pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 22px,
    rgba(255,255,255,0.018) 22px,
    rgba(255,255,255,0.018) 23px
  );
  pointer-events: none;
  z-index: 0;
}

/* Clipped diagonal bottom edge */
.hero-clip {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--cream);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--straw);
  border: 1px solid rgba(204,170,106,0.4);
  padding: 0.35rem 0.9rem;
  width: fit-content;
}

.hero-eyebrow::before {
  content: '▪';
  color: var(--ember);
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 11vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--cream);
}

.hero-headline em {
  font-style: normal;
  color: var(--ember);
}

.hero-subhead {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--mist);
  line-height: 1.65;
  border-left: 3px solid var(--ember);
  padding-left: 1.1rem;
  max-width: 580px;
}

.hero-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--mist);
}

.hero-bullets li::before {
  content: '✓';
  flex-shrink: 0;
  color: var(--ember);
  font-weight: 700;
  margin-top: 0.1rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero-quote-note {
  font-style: italic;
  font-size: 0.875rem;
  color: var(--straw);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s, box-shadow 0.2s;
  border: none;
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ember);
  color: var(--cream);
  box-shadow: 4px 4px 0 var(--bark);
}

.btn-primary:hover {
  background: var(--ember-lt);
  box-shadow: 6px 6px 0 var(--bark);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(200,213,184,0.5);
}

.btn-outline:hover {
  border-color: var(--cream);
  background: rgba(244,239,227,0.1);
}

.btn-outline-dark {
  background: transparent;
  color: var(--soil);
  border: 2px solid var(--soil);
}

.btn-outline-dark:hover {
  background: var(--soil);
  color: var(--cream);
}

.btn-warning {
  background: transparent;
  color: var(--straw);
  border: 2px solid rgba(204,170,106,0.55);
  font-size: 0.8rem;
  padding: 0.7rem 1.25rem;
}

.btn-warning:hover {
  background: rgba(204,170,106,0.1);
  border-color: var(--straw);
}

/* ============ PAGE HEADER (inner pages) ============ */
.page-header {
  background: var(--forest);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5.5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 22px,
    rgba(255,255,255,0.018) 22px,
    rgba(255,255,255,0.018) 23px
  );
  pointer-events: none;
}

.page-header-clip {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 50px;
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  z-index: 1;
}

.page-header-clip.to-cream   { background: var(--cream); }
.page-header-clip.to-parchment { background: var(--parchment); }

.page-header-content { position: relative; z-index: 2; }

.page-header-eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--straw);
  margin-bottom: 0.6rem;
}

.page-header-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
  color: var(--cream);
}

.page-header-title em {
  font-style: normal;
  color: var(--ember);
}

/* ============ SECTIONS ============ */
.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-parchment { background: var(--parchment); }
.section-dark {
  background: var(--forest);
  color: var(--cream);
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 3.25rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.0;
  color: var(--soil);
  margin-bottom: 1rem;
}

.section-dark .section-title { color: var(--cream); }

.section-intro {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.75;
  max-width: 660px;
  color: var(--bark);
}

.section-dark .section-intro { color: var(--mist); }

.divider {
  width: 50px;
  height: 3px;
  background: var(--ember);
  margin-bottom: 1.75rem;
}

/* ============ SERVICE CARDS ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--cream);
  border: 2px solid var(--soil);
  padding: 1.75rem 1.6rem 2rem;
  position: relative;
  transition: transform 0.22s, box-shadow 0.22s;
  display: flex;
  flex-direction: column;
}

/* Shadow-offset frame */
.service-card::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 7px;
  right: -7px;
  bottom: -7px;
  border: 2px solid var(--ember);
  z-index: -1;
  transition: all 0.22s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px var(--shadow);
}

.service-card:hover::before {
  top: 11px;
  left: 11px;
  right: -11px;
  bottom: -11px;
}

.service-num {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.45rem;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--soil);
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.service-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ember);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.service-price small {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--bark);
  font-family: var(--font-body);
  display: block;
  margin-top: 0.2rem;
}

.service-rule {
  border: none;
  border-top: 1px solid var(--parchment);
  margin: 0.5rem 0 1rem;
  background: transparent;
}

.service-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--bark);
  flex: 1;
  margin-bottom: 1.5rem;
}

.service-card .btn {
  align-self: flex-start;
  font-size: 0.8rem;
  padding: 0.7rem 1.25rem;
}

/* Featured card (consultation) */
.service-card.featured {
  background: var(--forest);
  border-color: var(--ember);
  color: var(--cream);
}

.service-card.featured::before {
  border-color: var(--straw);
}

.service-card.featured .service-num { color: var(--straw); }
.service-card.featured .service-title { color: var(--cream); }
.service-card.featured .service-price { color: var(--straw); }
.service-card.featured .service-price small { color: var(--mist); }
.service-card.featured .service-desc { color: var(--mist); }
.service-card.featured .service-rule { border-color: rgba(255,255,255,0.15); }

/* ============ CALLOUT BOX ============ */
.callout {
  border: 2px solid var(--ember);
  background: rgba(196,103,42,0.07);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.callout-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 0.05rem;
}

.callout-body { font-size: 0.88rem; line-height: 1.65; }

.callout-body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  color: var(--ember);
}

.callout-body a {
  color: var(--ember);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.callout-body a:hover { color: var(--ember-lt); }

/* ============ INFO GRID (Why Remove / Hire a Pro) ============ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.info-card {
  padding: 1.1rem 1.25rem 1.3rem;
  background: var(--cream);
  border: 2px solid var(--soil);
  position: relative;
  display: flex;
  flex-direction: column;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid var(--ember);
  z-index: -1;
}

.info-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.info-card-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--soil);
  margin-bottom: 0.4rem;
}

.info-card-desc {
  font-size: 0.825rem;
  line-height: 1.65;
  color: var(--bark);
}

/* dark variant for "Why Hire" section */
.section-dark .info-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.18);
}

.section-dark .info-card::before {
  border-color: var(--straw);
}

.section-dark .info-card-title { color: var(--cream); }
.section-dark .info-card-desc  { color: var(--mist); }

/* ============ FAQ ACCORDION ============ */
.faq-list {
  margin-top: 2rem;
  border-top: 2px solid var(--soil);
}

details.faq-item {
  border-bottom: 1px solid rgba(26,18,10,0.18);
}

details.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.3rem 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.975rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--soil);
  user-select: none;
  transition: color 0.2s;
}

details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::marker { display: none; }

details.faq-item summary:hover { color: var(--ember); }

details.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ember);
  line-height: 1;
  transition: transform 0.25s;
  font-family: var(--font-display);
}

details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item[open] summary { color: var(--ember); }

.faq-body {
  padding: 0 1rem 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--bark);
  max-width: 740px;
}

.faq-body ul {
  list-style: disc;
  padding-left: 1.35rem;
  margin-top: 0.5rem;
}

.faq-body li { margin-bottom: 0.3rem; }

/* ============ PRICE NOTE ============ */
.price-note {
  font-size: 0.825rem;
  font-style: italic;
  color: var(--bark);
  margin-top: 1.5rem;
  padding: 0.8rem 1.1rem;
  border-left: 3px solid var(--straw);
  background: rgba(204,170,106,0.1);
  line-height: 1.6;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--soil);
  color: var(--mist);
  padding: 2.5rem 0;
  border-top: 3px solid var(--ember);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cream);
}

.footer-brand span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--straw);
  font-weight: 400;
  margin-top: 0.2rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.875rem;
}

.footer-contact a {
  color: var(--mist);
  transition: color 0.2s;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
}

.footer-contact a:hover {
  color: var(--straw);
  text-decoration-color: var(--straw);
}

.footer-copy {
  width: 100%;
  font-size: 0.72rem;
  color: rgba(200,213,184,0.45);
  letter-spacing: 0.05em;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 0.5rem;
}

/* ============ NAV LOGO IMAGE ============ */
.nav-logo-img {
  height: 46px;
  width: 46px;
  min-width: 46px;
  max-height: 46px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 2px solid var(--ember);
  display: block;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.nav-logo:hover .nav-logo-img {
  border-color: var(--ember-lt);
}

/* ============ FOOTER LOGO ============ */
.footer-logo-img {
  height: 64px;
  width: 64px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 2px solid var(--ember);
  flex-shrink: 0;
  display: block;
}


/* ============ PHOTO BANNER ============ */
.photo-banner {
  height: 240px;
  overflow: hidden;
  width: 100%;
}

.photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* ============ FEATURED CARD LAYOUT (Consultation) ============ */
.featured-layout {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  width: 100%;
}

.featured-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-body .service-desc {
  flex: 1;
  margin-bottom: 1.5rem;
}

.featured-aside {
  width: 200px;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.15);
}

.featured-aside img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  opacity: 0.88;
  filter: sepia(15%);
}

/* ============ EQUIPMENT PHOTO ============ */
.equipment-photo {
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
}

.equipment-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.equipment-photo figcaption {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--straw);
  padding: 0.55rem 1rem;
  background: rgba(255,255,255,0.04);
}

/* ============ HERO ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero .hero-eyebrow  { animation: fadeUp 0.5s ease both; animation-delay: 0.05s; }
.hero .hero-headline { animation: fadeUp 0.5s ease both; animation-delay: 0.18s; }
.hero .hero-subhead  { animation: fadeUp 0.5s ease both; animation-delay: 0.30s; }
.hero .hero-bullets  { animation: fadeUp 0.5s ease both; animation-delay: 0.40s; }
.hero .hero-ctas     { animation: fadeUp 0.5s ease both; animation-delay: 0.50s; }
.hero .hero-quote-note { animation: fadeUp 0.5s ease both; animation-delay: 0.58s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 767px) {
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .hero-headline {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .featured-layout {
    flex-direction: column;
  }

  .featured-aside {
    width: 100%;
    height: 200px;
  }

  .photo-banner {
    height: 160px;
  }

  .equipment-photo img {
    height: 220px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
