/* Caspi Construction & Handyman - Shared Styles
   Brand: navy #1c243d | gold #edb059 | blue #2ea3f2
   Fonts: Oswald (headings) | Nunito (body)
*/

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

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

:root {
  --primary:       #1c243d;
  --primary-light: #243357;
  --accent:        #edb059;
  --accent-dark:   #c6913e;
  --accent-blue:   #2ea3f2;
  --bg-light:      #f7f4ee;
  --bg-card:       #ffffff;
  --text-body:     #3a3a4a;
  --text-light:    #f0ede4;
  --text-muted:    #8a8c96;
  --border:        #e4e0d8;
  --shadow-sm:     0 2px 8px rgba(28,36,61,.08);
  --shadow-md:     0 6px 24px rgba(28,36,61,.13);
  --shadow-lg:     0 16px 48px rgba(28,36,61,.18);
  --radius:        10px;
  --radius-lg:     18px;
  --transition:    .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
  letter-spacing: .02em;
}

a { color: var(--accent-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* === SKIP LINK === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--primary);
  padding: .5rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.logo-wrap img {
  height: 48px;
  width: auto;
}
.logo-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: .04em;
  line-height: 1.1;
}
.logo-name span { color: var(--accent); display: block; font-size: .75rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a {
  color: rgba(255,255,255,.85);
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .5rem .9rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  background: rgba(237,176,89,.15);
  color: var(--accent);
}
.nav-cta {
  background: var(--accent) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  padding: .5rem 1.25rem !important;
  margin-left: .5rem;
}
.nav-cta:hover { background: var(--accent-dark) !important; color: #fff !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0 10px;
  transition: border-color var(--transition);
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
  z-index: 0;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(28,36,61,.92) 0%, rgba(28,36,61,.6) 60%, rgba(28,36,61,.3) 100%);
  z-index: 1;
}
.hero-stripe {
  position: absolute;
  top: 0; bottom: 0;
  right: 0;
  width: 45%;
  background: linear-gradient(135deg, transparent 35%, rgba(237,176,89,.08) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(237,176,89,.18);
  border: 1px solid rgba(237,176,89,.35);
  color: var(--accent);
  font-family: 'Oswald', sans-serif;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  color: #fff;
  max-width: 720px;
  margin-bottom: 1.25rem;
  letter-spacing: .01em;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.78);
  max-width: 560px;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-rating {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  margin-top: 2.5rem;
}
.hero-rating .stars { color: var(--accent); font-size: 1rem; letter-spacing: 1px; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(237,176,89,.35);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
  color: #fff;
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-dark:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* === SECTIONS === */
.section { padding: 5rem 1.5rem; }
.section-light { background: var(--bg-light); }
.section-white { background: #fff; }
.section-dark { background: var(--primary); color: var(--text-light); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-gold { background: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  font-family: 'Oswald', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
  display: block;
}
.section-dark .section-label { color: var(--accent); }
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: .75rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-dark .section-sub { color: rgba(240,237,228,.65); }

/* === STATS BAND === */
.stats-band { background: var(--primary); padding: 3.5rem 1.5rem; }
.stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 4rem;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(240,237,228,.6);
  margin-top: .35rem;
}

/* === SERVICES GRID === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(237,176,89,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent-dark);
}
.service-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.service-card p { color: var(--text-muted); font-size: .93rem; flex: 1; }
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1rem;
}
.service-tag {
  background: rgba(28,36,61,.07);
  color: var(--primary);
  font-size: .73rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 999px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* === BEFORE/AFTER SLIDER === */
.ba-section { padding: 5rem 1.5rem; background: #fff; }

/* === TESTIMONIALS === */
.testimonial-slide blockquote {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--text-body);
}
.testimonial-slide blockquote::before { content: '\201C'; font-size: 2.5rem; color: var(--accent); line-height: 0; vertical-align: -.5rem; margin-right: .2rem; }
.testimonial-slide cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 700; color: var(--primary); }
.tc-stars { color: var(--accent); font-size: 1rem; letter-spacing: 2px; margin-bottom: .75rem; }

/* === ABOUT PREVIEW === */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img { width: 100%; height: 100%; min-height: 400px; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--accent);
  color: var(--primary);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  font-size: .9rem;
  letter-spacing: .05em;
}
.checkmark-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .75rem;
  font-size: .96rem;
}
.checkmark-list .check {
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: rgba(237,176,89,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  margin-top: .15rem;
}

/* === MAP === */
.map-section { padding: 5rem 1.5rem; background: var(--bg-light); }
#service-area-map { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* === FAQ === */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  letter-spacing: .02em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  color: var(--primary);
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ''; }
.faq-item summary:hover { color: var(--accent-dark); }
.faq-chevron { transition: transform .3s; flex-shrink: 0; margin-left: 1rem; color: var(--accent); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-body { padding: 0 0 1.25rem; line-height: 1.75; color: var(--text-muted); font-size: .97rem; }

/* === CONTACT FORM === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(237,176,89,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
}
.contact-info-item h4 {
  font-family: 'Oswald', sans-serif;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .25rem;
}
.contact-info-item p, .contact-info-item a { color: var(--primary); font-weight: 600; font-size: 1rem; }
.contact-info-item a:hover { color: var(--accent-dark); }

.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-family: 'Oswald', sans-serif;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif;
  font-size: .97rem;
  color: var(--primary);
  background: #faf9f7;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-success {
  display: none;
  background: #ecfdf5;
  border: 2px solid #10b981;
  color: #065f46;
  padding: 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  margin-top: 1rem;
  text-align: center;
}

/* === PAGE HERO === */
.page-hero {
  background: var(--primary);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23edb059' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .6;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: .75rem; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 1.1rem; max-width: 520px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: .5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { color: #fff; }

/* === GALLERY === */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .75rem; }
.gallery-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-img:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }

/* === FLOATING CTA === */
.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  background: var(--accent);
  color: var(--primary);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(237,176,89,.5);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.floating-cta:hover {
  color: var(--primary);
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(237,176,89,.6);
}
@media (min-width: 768px) {
  .floating-cta { bottom: 2rem; right: 2rem; width: 64px; height: 64px; }
}

/* === REVEAL ANIMATION === */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }
.reveal:nth-child(5) { transition-delay: .4s; }
.reveal:nth-child(6) { transition-delay: .5s; }

/* === FOOTER === */
.site-footer {
  background: var(--primary);
  color: rgba(240,237,228,.75);
  padding: 4rem 1.5rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}
.footer-brand .logo-wrap { margin-bottom: 1rem; }
.footer-brand p { font-size: .92rem; line-height: 1.7; max-width: 280px; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.65);
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--accent); color: var(--primary); }
.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: rgba(240,237,228,.65); font-size: .9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-contact p, .footer-contact a {
  font-size: .9rem;
  color: rgba(240,237,228,.65);
  margin-bottom: .5rem;
  display: flex;
  gap: .5rem;
  align-items: flex-start;
}
.footer-contact a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: rgba(240,237,228,.4);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom a { color: var(--accent); }

/* === HOURS TABLE === */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid rgba(255,255,255,.06); }
.hours-table td { padding: .6rem 0; font-size: .88rem; }
.hours-table td:first-child { color: rgba(240,237,228,.5); width: 55%; }
.hours-table td:last-child { color: rgba(240,237,228,.85); font-weight: 600; }

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .about-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--primary);
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; text-align: center; padding: .75rem; }
  .hero { min-height: 70vh; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .stats-grid { gap: 1.5rem 2rem; }
}
@media (max-width: 480px) {
  .section { padding: 3.5rem 1rem; }
  .page-hero { padding: 3.5rem 1rem 3rem; }
  .form-card { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { transition: none; transform: none; }
}
