/* ---------- Variables ---------- */
:root {
  --navy: #33505c;
  --navy-dark: #24393f;
  --teal: #7fa3ac;
  --teal-soft: #9db8bf;
  --rose: #a97c66;
  --rose-dark: #8a6250;
  --cream: #f6f1ea;
  --cream-2: #efe7db;
  --taupe: #6b5d54;
  --text-dark: #2c2622;
  --text-light: #faf6f0;
  --border-soft: rgba(0,0,0,0.08);
  --font-head: 'Marcellus', 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;
  --font-tagline: 'Allura', cursive;
  --max-width: 1160px;
}

* { box-sizing: border-box; }

.icon {
  width: 26px; height: 26px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.icon-lg { width: 40px; height: 40px; stroke-width: 1.4; }
.icon-sm { width: 18px; height: 18px; stroke-width: 1.8; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.2  0 0 0 0 0.16  0 0 0 0 0.13  0 0 0 0.035 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
    var(--cream);
  line-height: 1.65;
  font-size: 16px;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); letter-spacing: 0.02em; position: relative; padding-bottom: 0.35em; }
h2::after {
  content: ""; display: block; position: absolute; left: 0; bottom: 0;
  width: 78px; height: 10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='78' height='10'><line x1='0' y1='5' x2='30' y2='5' stroke='%23a97c66' stroke-width='1.4'/><path d='M39 1 L43 5 L39 9 L35 5 Z' fill='%23a97c66'/><line x1='48' y1='5' x2='78' y2='5' stroke='%23a97c66' stroke-width='1.4'/></svg>");
  background-repeat: no-repeat;
}
.eyebrow {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--rose);
  margin: 0 0 0.6em; opacity: 0.9;
}
.section-dark .eyebrow { color: #e0bd9c; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.35em; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul { padding-left: 1.1em; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.7em 1.5em;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn-primary { background: var(--rose); color: #fff; }
.btn-primary:hover { background: var(--rose-dark); }
.btn-outline { background: transparent; color: var(--text-light); border-color: var(--text-light); }
.btn-outline-sm { background: transparent; color: var(--navy); border-color: var(--navy); padding: 0.5em 1.1em; font-size: 0.78rem; }
.btn-ghost { background: transparent; color: var(--text-light); border-color: rgba(255,255,255,0.5); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-lg { padding: 0.9em 2em; font-size: 0.95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,0.08); }
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: padding .3s ease;
}
.site-header.is-scrolled .header-inner { padding-top: 8px; padding-bottom: 8px; }
.main-nav a.active { color: var(--rose-dark); border-color: var(--rose); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-dark); margin-left: 18px; }
.logo-mark { width: 46px; height: 46px; flex-shrink: 0; object-fit: contain; display: block; }
.logo-text { display: flex; flex-direction: column; font-family: var(--font-head); line-height: 1.05; }
.logo-text strong { font-size: 1.15rem; letter-spacing: 0.12em; }
.logo-text em { font-style: normal; font-size: 0.62rem; letter-spacing: 0.3em; color: var(--rose); text-transform: uppercase; }

.main-nav { flex: 1; min-width: 0; }
.main-nav > ul {
  list-style: none; display: flex; align-items: center; justify-content: center;
  gap: 0; margin: 0; padding: 0; flex-wrap: nowrap; white-space: nowrap;
}
.main-nav > ul > li { display: flex; align-items: center; }
.main-nav > ul > li + li::before {
  content: ""; display: inline-block; width: 1px; height: 14px;
  background: rgba(0,0,0,0.15); margin: 0 16px;
}
.main-nav a {
  text-decoration: none; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-dark); padding-bottom: 4px; border-bottom: 2px solid transparent;
  line-height: 1;
}
.has-submenu { position: relative; }
.submenu { list-style: none; margin: 0; padding: 0; }
@media (min-width: 781px) {
  /* Keep this item the same single-line height as its siblings — the
     "Make a Payment" sub-link floats just beneath as a small always-visible
     caption instead of stretching the row and throwing off the nav baseline. */
  .has-submenu { display: flex; align-items: center; }
  .submenu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    margin-top: 6px; white-space: nowrap;
  }
  .submenu a {
    display: block; padding: 0; border-bottom: none; white-space: nowrap;
    font-size: 0.64rem; letter-spacing: 0.04em; color: var(--rose-dark); opacity: 0.85;
  }
}
@media (max-width: 780px) {
  .has-submenu { display: flex; flex-direction: column; align-items: center; gap: 3px; }
  .submenu { padding-left: 18px; margin-top: 12px; display: flex; flex-direction: column; gap: 14px; }
}
.main-nav a:hover { border-color: var(--rose); }
.nav-accent { color: var(--rose-dark) !important; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn-ghost { color: var(--text-dark); border-color: var(--navy); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--text-dark); }

/* ---------- Hero ---------- */
.hero {
  min-height: 78vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 80px 24px;
  background:
    radial-gradient(ellipse at top left, rgba(76,110,121,0.82) 0%, rgba(51,80,92,0.88) 45%, rgba(36,57,63,0.93) 100%),
    url("assets/photo-home.jpg");
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.15;
  background-image:
    repeating-linear-gradient(115deg, transparent 0 60px, rgba(255,255,255,0.06) 60px 62px);
}
.hero-badge {
  position: absolute; top: 24px; left: 30px; width: 260px; height: 260px; z-index: 1;
}
.hero-badge::before {
  content: ""; position: absolute; z-index: -1;
  top: -40px; left: -56px; width: 410px; height: 350px;
  background: radial-gradient(ellipse at 35% 30%, rgba(127,167,176,0.85) 0%, rgba(76,110,121,0.55) 45%, transparent 75%);
  border-radius: 40%;
}
.hero-badge svg, .hero-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 780px) {
  .hero-badge { width: 160px; height: 160px; top: 14px; left: 14px; }
  .hero-badge::before { width: 280px; height: 240px; top: -26px; left: -36px; }
  /* On short mobile viewports the centered hero text can rise up under the
     corner badge — anchor it to the top with room to clear the badge instead
     of relying on vertical centering. min-height is bumped to 100vh (and
     bottom padding increased) so the two stacked hero buttons ("Request a
     Proposal" / "For Homeowners") always have room to clear the bouncing
     scroll-cue arrow pinned to the very bottom, regardless of exact content
     height on a given phone. */
  .hero { align-items: flex-start; padding-top: 210px; padding-bottom: 110px; min-height: 100vh; }
}

.hero-content { position: relative; max-width: 760px; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: 0.03em;
  margin-bottom: 0.3em;
}
.hero .tagline {
  font-family: var(--font-tagline);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  color: #e9d9c8;
  margin-bottom: 0.6em;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 auto 26px; max-width: 260px;
}
.ornament span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(233,217,200,0.6), transparent); }
.ornament svg { width: 14px; height: 14px; fill: var(--rose); flex-shrink: 0; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 66px; transform: translateX(-50%); z-index: 2;
  width: 30px; height: 30px; border: 1px solid rgba(255,255,255,0.7); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.12);
}
.scroll-cue span {
  width: 6px; height: 6px; border-right: 1px solid #fff; border-bottom: 1px solid #fff;
  transform: rotate(45deg); margin-top: -4px;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: rotate(45deg) translate(0,0); opacity: .6; }
  50% { transform: rotate(45deg) translate(3px,3px); opacity: 1; }
}

.hero-divider {
  position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 44px;
  display: block;
}
.hero-divider path { fill: var(--taupe); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; position: relative; }
.section-dark {
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='104'><path d='M45 2 L83 24 V78 L45 100 L7 78 V24 Z' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1.5'/></svg>") 0 0/90px 104px,
    var(--taupe);
  color: var(--text-light);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--text-light); }
.section-dark .card { background: rgba(255,255,255,0.08); }
.section-dark a { color: #f0dcc7; }

#services {
  background:
    linear-gradient(rgba(107,93,84,0.92), rgba(107,93,84,0.92)),
    url("assets/photo-services.jpg");
  background-size: cover; background-position: center;
}
#proposal {
  background:
    linear-gradient(rgba(107,93,84,0.88), rgba(107,93,84,0.88)),
    url("assets/photo-proposal.jpg");
  background-size: cover; background-position: center;
}
#contact {
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='70'><path d='M30 2 L55 16 V52 L30 66 L5 52 V16 Z' fill='none' stroke='rgba(51,80,92,0.07)' stroke-width='1.2'/></svg>") 0 0/60px 70px,
    linear-gradient(rgba(246,241,234,0.93), rgba(246,241,234,0.93)),
    url("assets/photo-contact.jpg");
  background-size: 60px 70px, cover, cover;
  background-position: top left, top right, top right;
  background-repeat: repeat, no-repeat, no-repeat;
}

.section-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-bottom: 28px;
}
.section-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.lede { font-size: 1.15rem; font-style: italic; opacity: 0.9; margin-bottom: 1.4em; max-width: 100%; }
.prose { max-width: 100%; }
.prose-strong { max-width: 100%; font-size: 1.05rem; opacity: 0.95; border-left: 3px solid var(--rose); padding-left: 1em; margin: 1.6em 0; }

.stat-strip {
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
  margin: 2em 0; padding: 28px 0; border-top: 1px solid rgba(255,255,255,0.15); border-bottom: 1px solid rgba(255,255,255,0.15);
}
.stat-number-wrap { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px; max-width: 190px; }
.stat-number {
  font-family: var(--font-head); font-size: 3.6rem; font-weight: 700; color: var(--rose);
  line-height: 1;
}
.stat-plus { font-family: var(--font-head); font-size: 2rem; color: var(--rose); }
.stat-label { flex-basis: 100%; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; margin-top: 6px; }

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px; }
.card {
  background: rgba(0,0,0,0.03); border-radius: 4px; padding: 28px 30px; position: relative;
}
.card::before, .card::after,
.act-card::before, .act-card::after {
  content: ""; position: absolute; width: 14px; height: 14px; opacity: 0.55;
  border-color: var(--rose); border-style: solid; border-width: 0;
}
.card::before { top: 8px; left: 8px; border-top-width: 1px; border-left-width: 1px; }
.card::after { bottom: 8px; right: 8px; border-bottom-width: 1px; border-right-width: 1px; }

.callout {
  background: var(--cream-2); border-radius: 10px; padding: 24px 28px; margin-bottom: 34px;
  border-left: 4px solid var(--teal);
}
.link-download { font-weight: 600; text-decoration: underline; }

.banner-heading {
  background: var(--rose); color: #fff; padding: 14px 22px; border-radius: 6px;
  margin: 40px 0 22px; letter-spacing: 0.03em;
}

.doc-list { margin: 0 0 24px; }
.doc-list summary { display: flex; align-items: center; gap: 14px; }
.doc-icon { color: var(--rose); flex-shrink: 0; }
.doc-list summary span { font-weight: 600; font-family: var(--font-head); font-size: 1.05rem; }

.about-cards { margin-top: 30px; }
.about-cards summary { display: flex; align-items: center; gap: 16px; }
.about-cards summary span { font-weight: 600; font-family: var(--font-head); font-size: 1.05rem; }
.about-cards details > div p:last-child { margin-bottom: 0; }
/* Keep the original subtle, near-transparent card look here instead of the
   FAQ/doc-list's cream card background — just made collapsible, not
   restyled. Uses #about for extra specificity since ".accordion details"
   (defined later in this file, same specificity as ".about-cards details")
   would otherwise win and silently override this. */
#about .about-cards details {
  background: rgba(255,255,255,0.08); border-radius: 4px; border: none; box-shadow: none;
}
#about .about-cards details[open] { border-color: transparent; box-shadow: none; }

.card-icon { color: var(--rose); margin-bottom: 14px; display: block; }
.section-dark .card-icon { color: #e0bd9c; }
.act-card h4 { display: flex; flex-direction: column; gap: 10px; }

.note { opacity: 0.85; }
.note-center { text-align: center; margin-top: 20px; }
.note-small { font-size: 0.88rem; opacity: 0.75; margin: 0; }

.act-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.act-card { background: var(--cream-2); border-radius: 4px; padding: 24px; border-top: 3px solid var(--rose); position: relative; }
.act-card h4 a { text-decoration: none; color: var(--navy); }
.act-card h4 a:hover { text-decoration: underline; }
.act-card p { font-size: 0.93rem; margin: 0; opacity: 0.85; }

.services-block { margin-bottom: 30px; }
.services-heading {
  border-bottom: 1px solid rgba(255,255,255,0.25); padding-bottom: 10px; margin-bottom: 16px;
  text-transform: uppercase; font-size: 1rem; letter-spacing: 0.08em; color: var(--teal-soft);
  display: flex; align-items: center; gap: 10px;
}
.services-heading .icon { color: var(--rose); }
.services-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 24px; align-items: stretch; }
.services-list li {
  background: rgba(255,255,255,0.07); padding: 12px 16px; border-radius: 6px; font-size: 0.92rem;
  text-align: center; display: flex; align-items: center; justify-content: center; text-wrap: balance;
}

/* ---------- FAQ Accordion ---------- */
.accordion { display: grid; gap: 12px; max-width: 100%; }
.accordion details {
  background: var(--cream-2); border-radius: 8px; padding: 4px 22px; border: 1px solid var(--border-soft);
}
.accordion summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; font-family: var(--font-head);
  font-size: 1.02rem; list-style: none; position: relative; padding-right: 30px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.3rem; color: var(--rose);
}
.accordion details[open] summary::after { content: "\2212"; }
.accordion details > div { padding-bottom: 18px; opacity: 0.88; overflow: hidden; transition: max-height .35s ease; }
.accordion details > div p { margin: 0; }
.accordion details { transition: box-shadow .25s ease, border-color .25s ease; }
.accordion details[open] { border-color: var(--rose); box-shadow: 0 4px 16px rgba(0,0,0,0.05); }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* subtle hover life on cards */
.card, .act-card, .contact-card { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover, .act-card:hover, .contact-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,0.08); }
.services-list li { transition: transform .2s ease, background .2s ease; }
.services-list li:hover { transform: translateY(-2px); background: rgba(255,255,255,0.13); }

/* ---------- JotForm embeds ---------- */
.jotform-embed {
  background: rgba(20,31,35,0.82);
  border-radius: 10px;
  padding: 14px;
  margin-top: 20px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.25);
}
.section:not(.section-dark) .jotform-embed {
  background: #fffdfa;
  box-shadow: 0 8px 26px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.06);
}
.jotform-embed iframe { width: 100%; border: 0; }

.contact-form-block { margin: 40px auto 0; max-width: 640px; }
/* Needs an id-strength selector here since ".section:not(.section-dark)
   .jotform-embed" otherwise wins and its "background" shorthand silently
   wipes out any background-image we set. */
#contact .contact-form-block .jotform-embed {
  background-color: rgba(20,31,35,0.62);
  box-shadow: 0 8px 26px rgba(0,0,0,0.25);
  border: none;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.contact-card {
  background: var(--navy); color: var(--text-light);
  border-radius: 10px; padding: 24px;
  box-shadow: 0 8px 22px rgba(36,57,63,0.22);
}
.contact-card h3 { color: var(--text-light); }
.contact-card .card-icon { color: #b8d4da; }
.contact-card a { color: #e0bd9c; }
.contact-card .note-small { color: rgba(250,246,240,0.75); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-light); }
.contact-list .icon { color: #b8d4da; margin-top: 2px; }
.map-embed { border-radius: 10px; overflow: hidden; border: 1px solid var(--border-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; }
.footer-nav a { text-decoration: none; margin-left: 20px; }
.footer-nav a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid, .act-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-list { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: 1fr; text-align: center; }
  .stat-number-wrap { margin: 0 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scroll-cue span { animation: none; }
  .btn:hover, .card:hover, .act-card:hover, .contact-card:hover { transform: none; }
}

@media (max-width: 780px) {
  .main-nav {
    position: fixed; inset: 70px 0 0 0; background: var(--cream);
    transform: translateX(100%); transition: transform .25s ease;
    padding: 30px 24px; overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  /* Reset the desktop row's centering: the panel is scrollable, so the list
     should start at the top instead of clustering in the vertical middle. */
  .main-nav ul { flex-direction: column; gap: 22px; justify-content: flex-start; }
  .main-nav a { font-size: 1.05rem; }
  /* The thin divider lines between top-level items are a horizontal-row
     touch — in the stacked mobile list they show up as a stray tick mark
     next to each link's text, so turn them off here. */
  .main-nav > ul > li + li::before { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .form-row-split { grid-template-columns: 1fr; }
  .services-list { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .services-list { grid-template-columns: 1fr; }
  .header-inner { padding: 12px 16px; }
  .logo-text strong { font-size: 1rem; }
}
