/* =================================================================
   Custom Designs Construction, LLC — roofing & construction
   ================================================================= */

:root {
  --green: #20473a;
  --green-2: #2c5e4a;
  --green-dk: #163229;
  --gold: #c9a24b;
  --gold-dk: #ac8737;
  --cream: #f6f2e9;
  --cream-2: #efe8d8;
  --ink: #23281f;
  --muted: #5d6b5c;
  --line: #e0dccf;

  --display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; font-family: var(--body); color: var(--ink); background: #fff;
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: var(--green-2); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; color: var(--green); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #fff; padding: .6rem 1rem; z-index: 300; }
.skip:focus { left: 1rem; top: 1rem; }

.kicker { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--gold-dk); margin: 0 0 .8rem; }
.kicker--light { color: var(--gold); }
.head { max-width: 620px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.head__lead { color: var(--muted); font-size: 1.05rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: .95rem; padding: .8rem 1.5rem;
  border-radius: 8px; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .16s ease, background .16s ease, color .16s ease; white-space: nowrap; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.02rem; }
.btn--block { display: flex; width: 100%; margin-top: 1.2rem; }
.btn--gold { background: var(--gold); color: #24200f; }
.btn--gold:hover { background: var(--gold-dk); transform: translateY(-2px); }
.btn--outline { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.14); }
.btn--cream { background: var(--cream); color: var(--green); }
.btn--cream:hover { transform: translateY(-2px); }
.btn--outline-cream { border-color: rgba(246,242,233,.6); color: var(--cream); }
.btn--outline-cream:hover { background: rgba(246,242,233,.14); }

/* Top bar */
.topbar { background: var(--green-dk); color: #cfe0d6; font-size: .85rem; }
.topbar__row { display: flex; align-items: center; gap: 1rem; padding: .5rem 0; }
.topbar__note b { color: var(--gold); }
.topbar__spacer { flex: 1; }
.topbar__phone { color: #fff; font-weight: 600; text-decoration: none; }
.topbar__phone:hover { text-decoration: underline; }

/* Header */
.masthead { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.masthead__row { display: flex; align-items: center; gap: 1.4rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--cream); border-radius: 10px; }
.brand__mark svg { display: block; }
.brand__text { font-family: var(--display); font-weight: 700; color: var(--green); font-size: 1.12rem; line-height: 1.05; }
.brand__sub { display: block; font-weight: 500; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dk); }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav a { font-family: var(--display); font-weight: 500; font-size: .95rem; color: var(--green); text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid transparent; transition: border-color .16s; }
.nav a:hover { border-color: var(--gold); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 2px; background: var(--green); border-radius: 2px; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; color: var(--cream); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(15,32,26,.94) 0%, rgba(15,32,26,.75) 45%, rgba(15,32,26,.35) 100%); }
.hero__inner { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.hero__card { max-width: 620px; }
.eyebrow { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; color: var(--gold); margin: 0 0 1rem; }
.hero h1 { color: #fff; }
.hero__lead { font-size: 1.18rem; color: #e6ebe4; max-width: 46ch; margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.chips li { font-family: var(--display); font-weight: 500; font-size: .82rem; padding: .35rem .9rem; border: 1px solid rgba(246,242,233,.35); border-radius: 999px; color: #eef2ea; }

/* Services */
.services { background: var(--cream); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.8rem 1.6rem; transition: transform .18s ease, box-shadow .18s ease; }
.svc:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(22,50,41,.5); }
.svc__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--green); color: var(--gold); margin-bottom: 1.1rem; }
.svc h3 { margin-bottom: .35rem; }
.svc p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Feature rows */
.feature--alt { background: var(--cream); }
.feature__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.feature__media img { width: 100%; border-radius: 16px; box-shadow: 0 26px 50px -28px rgba(22,50,41,.55); }
.feature__row--rev .feature__media { order: 2; }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 1.2rem; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .15em; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/68% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/68% no-repeat; }
.link { font-family: var(--display); font-weight: 600; color: var(--gold-dk); text-decoration: none; }
.link:hover { color: var(--green); }

/* Projects */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.work__item { position: relative; margin: 0; border-radius: 14px; overflow: hidden; }
.work__item img { width: 100%; height: 260px; object-fit: cover; transition: transform .5s ease; }
.work__item:hover img { transform: scale(1.06); }
.work__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1.1rem .9rem;
  background: linear-gradient(transparent, rgba(15,32,26,.9)); color: #fff; font-family: var(--display); font-weight: 600; font-size: .92rem; }

/* Reviews */
.reviews { background: var(--green); color: #e9efe8; }
.reviews h2 { color: #fff; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.quote { margin: 0; background: var(--green-2); border-radius: 14px; padding: 1.8rem 1.6rem; border-top: 3px solid var(--gold); }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: .7rem; }
.quote p { font-size: 1.02rem; color: #eef3ec; }
.quote footer { font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--gold); }

/* Service area */
.area__row { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.pills { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; padding: 0; margin: 1.3rem 0 0; }
.pills li { background: var(--cream); border: 1px solid var(--line); color: var(--green); font-family: var(--display); font-weight: 500; font-size: .88rem; padding: .4rem 1rem; border-radius: 999px; }
.area__card { background: var(--green); color: #dfe8df; border-radius: 16px; padding: 2rem; box-shadow: 0 26px 50px -30px rgba(22,50,41,.6); }
.area__card h3 { color: #fff; }
.line { display: grid; grid-template-columns: 70px 1fr; gap: .5rem; margin: 0 0 .9rem; font-size: .96rem; }
.line span { font-family: var(--display); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); padding-top: .15rem; }
.line a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(201,162,75,.5); word-break: break-word; }

/* CTA */
.cta { background: var(--gold); color: #241f0e; }
.cta__row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: clamp(2.4rem, 5vw, 3.6rem) 0; }
.cta h2 { color: #241f0e; margin: 0; }
.cta p { margin: .3rem 0 0; font-weight: 500; }
.cta__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta .btn--cream { background: var(--green); color: var(--cream); }
.cta .btn--cream:hover { background: var(--green-dk); }
.cta .btn--outline-cream { border-color: rgba(36,31,14,.5); color: #241f0e; }
.cta .btn--outline-cream:hover { background: rgba(36,31,14,.1); }

/* Footer */
.foot { background: var(--green-dk); color: #a9bdb0; padding: clamp(3rem, 6vw, 4rem) 0 1.8rem; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.2rem; margin-bottom: 2.5rem; }
.brand--foot .brand__text, .brand--foot .brand__mark { }
.brand--foot .brand__text { color: #fff; }
.brand--foot .brand__mark { background: rgba(255,255,255,.08); }
.brand--foot .brand__sub { color: var(--gold); }
.foot__brand p { max-width: 32ch; margin-top: 1rem; font-size: .95rem; }
.foot h4 { color: #fff; font-family: var(--display); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.foot__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.foot__col a { color: #a9bdb0; text-decoration: none; }
.foot__col a:hover { color: var(--gold); }
.foot__col address { font-style: normal; line-height: 1.9; font-size: .95rem; }
.foot__col address a { color: #a9bdb0; text-decoration: none; }
.foot__col address a:hover { color: var(--gold); }
.foot__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #7d938a; }
.foot__bottom p { margin: 0; }

/* Responsive */
@media (max-width: 940px) {
  .svc-grid, .quotes, .work-grid { grid-template-columns: 1fr 1fr; }
  .feature__row { grid-template-columns: 1fr; }
  .feature__row--rev .feature__media { order: -1; }
  .area__row { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); background: #fff; box-shadow: -10px 0 40px -20px rgba(0,0,0,.4); transform: translateX(100%); transition: transform .28s ease; padding: 5rem 1.5rem 2rem; z-index: 90; }
  .nav.open { transform: translateX(0); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a { display: block; padding: 1rem 0; }
  .burger { display: flex; order: 3; position: relative; z-index: 95; }
  .btn--gold.btn, .masthead .btn--gold { display: none; }
  .topbar__note { font-size: .8rem; }
}
@media (max-width: 560px) {
  .svc-grid, .quotes, .work-grid, .foot__grid { grid-template-columns: 1fr; }
  .cta__row { flex-direction: column; align-items: flex-start; }
  .topbar__note { display: none; }
  .topbar__spacer { flex: 1; }
}
