/* San Marcos Epoxy Pros — site stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800&family=Public+Sans:wght@400;500;600;700&display=swap');

:root{
  --ink: #201D19;
  --ink-soft: #3A352E;
  --paper: #E7E4DC;
  --paper-lift: #F1EFE9;
  --concrete: #B7B0A2;
  --concrete-line: #C9C3B5;
  --resin: #A8752E;
  --resin-dark: #8A5E22;
  --slate: #3E362B;
  --slate-dark: #2B2620;
  --white: #FBFAF7;

  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'Public Sans', sans-serif;

  --max: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
}

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

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}
h1{ font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2{ font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3{ font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

p{ max-width: 62ch; margin: 0 0 1.1em; color: var(--ink-soft); }
.lede{ font-size: 1.15rem; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--white);
  border-bottom: 3px solid var(--resin);
}
.nav-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1.25rem, 4vw, 3rem);
  max-width: var(--max);
  margin: 0 auto;
}
.brand{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.3px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand span{ color: var(--resin); }
.brand-mark{
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-list{
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0; padding: 0;
  font-weight: 600;
  font-size: 0.98rem;
}
.nav-list a{
  text-decoration: none;
  color: var(--white);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.nav-list a:hover, .nav-list a:focus-visible{
  border-color: var(--resin);
  color: var(--resin);
}
.has-dropdown{ position: relative; }
.dropdown{
  position: absolute;
  top: 100%; left: 0;
  background: var(--white);
  color: var(--ink);
  min-width: 240px;
  list-style: none;
  margin: 0; padding: 0.5rem 0;
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
  opacity: 0; visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown{
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a{
  display: block;
  color: var(--ink);
  padding: 0.6rem 1.1rem;
  border-bottom: none;
  font-weight: 500;
}
.dropdown a:hover{ background: var(--paper-lift); color: var(--resin-dark); border-color: transparent; }

.nav-cta{
  background: var(--resin);
  color: var(--white) !important;
  padding: 0.55rem 1.2rem !important;
  border-radius: 2px;
  font-weight: 700 !important;
}
.nav-cta:hover{ background: var(--resin-dark); border-color: transparent !important; }

.nav-toggle{ display: none; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  background:
    linear-gradient(115deg, rgba(32,29,25,.88) 0%, rgba(32,29,25,.55) 42%, rgba(168,117,46,.35) 100%),
    repeating-linear-gradient(100deg, #2b2722 0px, #2b2722 2px, #322d27 2px, #322d27 60px);
  color: var(--white);
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(4.5rem, 10vw, 8rem);
  overflow: hidden;
}
.hero-photo-slot{
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .55;
}
.hero .container{ position: relative; z-index: 2; max-width: 760px; }
.hero .container.hero-grid{
  max-width: var(--max);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 860px){
  .hero .container.hero-grid{ grid-template-columns: 1fr; }
}
.hero-copy{ max-width: 620px; }
.hero-quote-card{
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--resin);
  padding: 1.6rem;
}
.hero-quote-card h3{ font-size: 1.25rem; margin-bottom: 0.2rem; }
.hero-quote-card .sub{ color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 1.1rem; }
.hero-quote-card .field{ margin-bottom: 0.8rem; }
.hero-quote-card button{ width: 100%; border: none; cursor: pointer; }
.hero h1{ color: var(--white); }
.hero p{ color: #E9E6DF; max-width: 46ch; }
.hero-actions{ display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-trust-line{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  margin-bottom: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: #C9C4B8;
  letter-spacing: 0.2px;
}
.hero-trust-line .trust-check{
  width: 20px;
  height: 20px;
  padding: 3px;
  background: var(--resin);
  color: var(--white);
  border-radius: 50%;
  flex-shrink: 0;
  box-sizing: border-box;
}
.hero-trust-line .trust-dot{ color: #8A8578; }
.hero-call-line{
  display: block;
  margin-top: 0.9rem;
  font-weight: 700;
  color: var(--resin);
  text-decoration: none;
  font-size: 1.05rem;
}
.hero-call-line:hover{ text-decoration: underline; }

.btn{
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  padding: 0.85rem 1.7rem;
  text-decoration: none;
  border-radius: 2px;
  border: 2px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary{ background: var(--resin); color: var(--white); }
.btn-primary:hover{ background: var(--resin-dark); }
.btn-ghost{ border-color: var(--white); color: var(--white); }
.btn-ghost:hover{ background: var(--white); color: var(--ink); }
.btn-dark{ background: var(--ink); color: var(--white); }
.btn-dark:hover{ background: var(--slate-dark); }

/* Diagonal seam divider — the signature motif */
.seam{
  position: relative;
  height: clamp(3rem, 8vw, 6rem);
  background: var(--ink);
}
.seam::after{
  content: "";
  position: absolute; inset: 0;
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 40%, 100% 100%);
}
.seam-rev{ background: var(--paper); }
.seam-rev::after{ background: var(--ink); clip-path: polygon(0 0, 100% 0, 0 60%); }

/* ---------- Sections ---------- */
section{ padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-dark{ background: var(--ink); color: var(--white); }
.section-dark p{ color: #D9D5CC; }
.section-dark h2, .section-dark h3{ color: var(--white); }
.section-lift{ background: var(--paper-lift); }
.section-slate{ background: var(--slate); color: var(--white); }
.section-slate p{ color: #D9D5CC; }
.section-slate h2, .section-slate h3{ color: var(--white); }

.eyebrow{
  color: var(--resin-dark);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: block;
}
.section-dark .eyebrow, .section-slate .eyebrow{ color: var(--resin); }

.grid{ display: grid; gap: var(--gap); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

.card{
  background: var(--white);
  border: 1px solid var(--concrete-line);
  padding: 1.8rem;
}
.icon-badge{
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--resin);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.icon-badge svg{ width: 26px; height: 26px; stroke: var(--white); }
.section-dark .card, .section-slate .card{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}
.section-dark .card p, .section-slate .card p{ color: #D9D5CC; }

.photo-frame{
  border: 6px solid var(--white);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  background: var(--concrete);
  min-height: 220px;
}
.photo-frame img{ width: 100%; height: 100%; object-fit: cover; }

/* Cost callout module */
.cost-box{
  border: 2px solid var(--ink);
  padding: 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  align-items: center;
  background: var(--white);
}
.cost-figure{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  color: var(--resin-dark);
  line-height: 1;
  white-space: nowrap;
}
.cost-figure small{
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}
@media (max-width: 640px){
  .cost-box{ grid-template-columns: 1fr; text-align: left; }
}

/* Service area list */
.area-list{
  columns: 2;
  gap: 2rem;
  list-style: none;
  padding: 0; margin: 0;
  font-weight: 600;
}
.area-list li{ padding: 0.35rem 0; border-bottom: 1px solid var(--concrete-line); break-inside: avoid; }
.section-dark .area-list li{ border-color: rgba(255,255,255,.15); }

/* Accordion (FAQ + benefit lists) */
.accordion-item{
  border-bottom: 1px solid var(--concrete-line);
}
.section-dark .accordion-item{ border-color: rgba(255,255,255,.18); }
.accordion-item summary{
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 0;
  font-weight: 700;
  font-size: 1.05rem;
}
.accordion-item summary::-webkit-details-marker{ display: none; }
.accordion-item summary::after{
  content: "+";
  font-size: 1.5rem;
  color: var(--resin);
  font-weight: 400;
  margin-left: 1rem;
  transition: transform .2s ease;
}
.accordion-item[open] summary::after{ transform: rotate(45deg); }
.accordion-item .accordion-body{ padding: 0 0 1.3rem; }
.accordion-item .accordion-body p{ margin: 0; }

/* Step list */
.step-list{ counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step-list li{
  position: relative;
  padding: 0 0 1.6rem 3.2rem;
  border-left: 2px solid var(--concrete-line);
  margin-left: 1.1rem;
}
.section-dark .step-list li{ border-color: rgba(255,255,255,.2); }
.step-list li:last-child{ border-color: transparent; padding-bottom: 0; }
.step-list li::before{
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -1.2rem; top: -0.15rem;
  width: 2.2rem; height: 2.2rem;
  background: var(--resin);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.step-list h4{ margin-bottom: 0.25rem; font-family: var(--font-body); font-weight: 700; font-size: 1.05rem;}
.step-list p{ margin: 0; }

/* Service preview cards on homepage */
.service-card{
  background: var(--white);
  border: 1px solid var(--concrete-line);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card p{ color: var(--ink-soft) !important; }
.service-card .tag{
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--resin-dark);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}
.service-card a.more{
  margin-top: auto;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Quote form */
.quote-panel{
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 2rem;
}
.quote-panel h3{ margin-bottom: 0.3rem; }
.quote-panel .sub{ color: var(--ink-soft); margin-bottom: 1.3rem; font-size: 0.95rem; }
.field{ margin-bottom: 1rem; }
.field label{ display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.95rem; }
.field input, .field select, .field textarea{
  width: 100%;
  border: 1px solid var(--concrete);
  background: var(--paper-lift);
  padding: 0.7rem 0.8rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: 2px solid var(--resin);
  outline-offset: 1px;
}
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px){ .field-row{ grid-template-columns: 1fr; } }
.quote-panel button{
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

/* Footer */
.site-footer{
  background: var(--ink);
  color: #D9D5CC;
  padding: 3.5rem 0 1.5rem;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
@media (max-width: 780px){ .footer-grid{ grid-template-columns: 1fr; } }
.site-footer h4{ color: var(--resin); font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 0.9rem; }
.site-footer p{ color: #D9D5CC !important; }
.site-footer strong{ color: var(--white); }
.site-footer ul{ list-style: none; margin: 0; padding: 0; }
.site-footer li{ margin-bottom: 0.5rem; }
.site-footer a{ color: #D9D5CC; text-decoration: none; }
.site-footer a:hover{ color: var(--resin); text-decoration: underline; }
.footer-bottom{
  padding-top: 1.4rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.7rem;
  font-size: 0.88rem; color: var(--concrete);
}

/* External / outbound link style: matches body text, underlined, no accent color */
.outbound-link{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Mobile nav */
@media (max-width: 900px){
  .nav-list{
    position: fixed; inset: 64px 0 0 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
    gap: 0.3rem;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .nav-list.open{ transform: translateX(0); }
  .nav-list li{ width: 100%; }
  .nav-list a{ display: block; padding: 0.8rem 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.1); }
  .has-dropdown .dropdown{
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: transparent; display: none; padding-left: 1rem;
  }
  .has-dropdown.open .dropdown{ display: block; }
  .has-dropdown .dropdown a{ color: #D9D5CC; }
  .nav-toggle{
    display: block;
    background: none; border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
  }
}

/* Utility */
.text-center{ text-align: center; margin-left: auto; margin-right: auto; }
.mt-0{ margin-top: 0; }
.small{ font-size: 0.9rem; }
.center-copy{ max-width: 680px; margin: 0 auto; }
.two-col-text{ columns: 2; gap: 2.5rem; }
@media (max-width: 780px){ .two-col-text{ columns: 1; } }
.two-col-text p{ max-width: none; }

.badge-strip{
  display: flex; gap: 2.2rem; flex-wrap: wrap;
  padding: 1.4rem 0; border-top: 1px solid var(--concrete-line); border-bottom: 1px solid var(--concrete-line);
  font-weight: 700; font-size: 0.95rem;
}
