/* =========================================================
   Abd and Sons Construction — stylesheet
   Palette taken from the company logo:
   charcoal #2b2f31 / slate #3f4448, orange #e0781f, cream #fef9f3 (logo bg)
   ========================================================= */

:root {
  --charcoal: #23272a;
  --slate: #3f4448;
  --orange: #e0781f;
  --orange-dark: #c4661a;
  --cream: #fef9f3; /* matches the site_logo.jpg background so the header logo blends seamlessly */
  --sand: #f0e9df;
  --line: #e2d9cc;
  --ink: #23272a;
  --muted: #5c6368;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(35, 39, 42, .12);
  --shadow-sm: 0 4px 14px rgba(35, 39, 42, .10);
  --radius: 12px;
  --wrap: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--orange-dark); }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--charcoal); color: #e9ecee; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: .75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); color: #fff; }
.btn--light { background: #fff; color: var(--charcoal); }
.btn--light:hover { background: var(--cream); }
.btn--whatsapp { background: #25d366; color: #08301b; }
.btn--whatsapp:hover { background: #1fb955; }
.btn--block { width: 100%; justify-content: center; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.center .btn-row { justify-content: center; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--charcoal);
  color: #d8dcde;
  font-size: .86rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--orange); }
.topbar__set { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }

/* On small screens the utility bar just stacks into 3 cramped rows and pushes
   the header down. The same info is in the footer and the sticky bottom bar
   already gives one-tap Call / Quote, so hide it below phone-landscape width. */
@media (max-width: 600px) {
  .topbar { display: none; }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
/* Logo fills the full header height; the image already carries the business
   name so the adjacent text label is hidden. */
.brand img { width: auto; height: 76px; max-width: 46vw; border-radius: 0; object-fit: contain; display: block; }
.brand__name { display: none; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
/* Extra breathing room around the header "Get a Quote" call-to-action */
.site-header .nav > .btn { margin-left: .5rem; padding: .8rem 1.9rem; }
.nav a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 600;
  font-size: .98rem;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--orange); color: var(--orange-dark); }

.nav__has-sub { position: relative; }
.nav__sub {
  position: absolute;
  top: 100%;
  left: -14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: .5rem;
  min-width: 240px;
  display: none;
}
.nav__has-sub:hover .nav__sub, .nav__has-sub:focus-within .nav__sub { display: block; }
.nav__sub a { display: block; padding: .5rem .75rem; border: 0; border-radius: 8px; font-weight: 500; }
.nav__sub a:hover { background: var(--sand); }

.nav-toggle {
  display: none;
  background: var(--charcoal);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: .6rem .8rem;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; }
  /* No transform/filter on the header here, so the fixed menu below is
     positioned against the viewport (full height), not the header. */
  .nav {
    display: none;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    height: 100%;
    z-index: 90;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 88px 22px 32px;
    box-shadow: var(--shadow);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav.is-open { display: flex; animation: navIn .18s ease both; }
  .nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav .nav__has-sub { display: block; margin-top: .5rem; }
  .nav .nav__has-sub > a { border-bottom: 0; }
  .nav__sub {
    position: static; display: block; border: 0; box-shadow: none;
    min-width: 0; background: transparent;
    margin-top: .4rem;
    padding: .25rem 0 .5rem 1.1rem;
    border-left: 2px solid var(--line);
  }
  .nav__sub a { padding: .5rem 0; border-bottom: 0; }
  /* no sticky :hover highlight on touch devices */
  .nav__sub a:hover, .nav__sub a:focus { background: transparent; }
  /* In the mobile drawer, keep the CTA as a normal-width pill with space above */
  .site-header .nav > .btn { margin: 1.25rem 0 0; padding: .9rem 1.5rem; border-bottom: 0; justify-content: center; text-align: center; }
}

@keyframes navIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(rgba(20,22,24,.66), rgba(20,22,24,.72)), var(--hero-img, url("/images/003.jpg")) center/cover no-repeat;
}
.hero .wrap { padding-top: 92px; padding-bottom: 92px; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { font-size: 1.18rem; max-width: 52ch; color: #eef0f1; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 1.4rem 0 1.8rem; padding: 0; list-style: none; }
.hero__badges li { font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: .5rem; }
.hero__badges li::before { content: "✓"; color: var(--orange); font-weight: 900; }

.hero--sm { background: linear-gradient(rgba(20,22,24,.72), rgba(20,22,24,.78)), var(--hero-img, url("/images/004.jpg")) center/cover no-repeat; }
.hero--sm .wrap { padding-top: 60px; padding-bottom: 60px; }
.hero--sm p { margin-bottom: 0; }

.breadcrumbs { font-size: .85rem; color: #d7dbdd; margin-bottom: 1rem; }
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .35rem; }
.card p { margin-bottom: 0; color: var(--muted); font-size: .98rem; }
.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--sand);
  color: var(--orange-dark);
  border-radius: 10px;
  font-size: 1.4rem;
  margin-bottom: .9rem;
}

a.card { text-decoration: none; color: inherit; display: block; transition: transform .12s ease, box-shadow .2s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
a.card .more { display: inline-block; margin-top: .8rem; font-weight: 700; color: var(--orange-dark); }

/* ---------- Media rows ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split--flip .split__media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split--flip .split__media { order: 0; }
}

.ticks { list-style: none; padding: 0; margin: 1rem 0 0; }
.ticks li { padding-left: 1.9rem; position: relative; margin-bottom: .5rem; }
.ticks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--orange-dark); font-weight: 900;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats .num { font-size: 2.1rem; font-weight: 800; color: var(--orange); }
.stats .lbl { font-size: .95rem; color: var(--muted); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.05); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

figure { margin: 0; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }

/* ---------- Testimonials ---------- */
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.quote p { font-style: italic; margin-bottom: .75rem; }
.quote .who { font-weight: 700; font-style: normal; color: var(--charcoal); }
.stars { color: var(--orange); letter-spacing: 2px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--orange);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #fff2e6; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- Contact / forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .95rem; }
.field { margin-bottom: 1rem; }
input, select, textarea {
  width: 100%;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); }

.contact-panel {
  background: var(--charcoal);
  color: #e9ecee;
  border-radius: var(--radius);
  padding: 1.75rem;
}
.contact-panel h3 { color: #fff; }
.contact-panel a { color: #fff; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ico { color: var(--orange); font-size: 1.15rem; }

/* ---------- Areas list ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; list-style: none; margin: 0; }
.pills a, .pills span {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem 1rem;
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 600;
  font-size: .95rem;
}
.pills a:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ---------- FAQ ---------- */
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin-bottom: .75rem;
}
details summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--orange-dark); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: .8rem 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #c4cacd; font-size: .95rem; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.site-footer a { color: #c4cacd; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer-brand img { width: 44px; height: 44px; border-radius: 8px; }
.footer-brand strong { color: #fff; font-size: 1.05rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .85rem;
  color: #9aa1a5;
}
.footer-bottom a { color: #9aa1a5; }

/* ---------- Sticky mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 700px) {
  .callbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    box-shadow: 0 -4px 18px rgba(0,0,0,.18);
  }
  .callbar a {
    min-width: 0;
    padding: .95rem 1rem;
    text-align: center;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
  }
  .callbar .c-call { background: var(--charcoal); }
  .callbar .c-quote { background: #25d366; color: #08301b; }
  body { padding-bottom: 56px; }
  /* keep the last menu item ("Get a Quote") clear of the sticky call bar */
  .nav { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Utilities ---------- */
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.mt1 { margin-top: 1rem; }
.mt2 { margin-top: 2rem; }
.hide { display: none; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: var(--charcoal); padding: .6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }
