/* ============================================================
   Cedar Ridge Roofing Co. — Demo Site
   designmenu.ca demo
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #FAFAF9;
  --bg-2:         #F5F4F1;
  --bg-3:         #ECEAE5;
  --text-1:       #1C1917;
  --text-2:       #44403C;
  --text-3:       #78716C;
  --accent:       #C2410C;
  --accent-hover: #9A3412;
  --accent-light: #FEF3EC;
  --dark:         #1E1A17;
  --dark-2:       #2C2420;
  --bdr:          #E7E5E4;
  --bdr-2:        #D6D3D1;
  --white:        #FFFFFF;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg:    0 4px 6px rgba(0,0,0,.06), 0 12px 40px rgba(0,0,0,.12);
  --font:         system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:   Georgia, 'Times New Roman', serif;
  --max-w:        1160px;
  --section:      88px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

p { color: var(--text-2); line-height: 1.7; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s ease;
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(194,65,12,.3);
}
.btn-outline {
  background: transparent;
  color: var(--text-1);
  border-color: var(--bdr-2);
}
.btn-outline:hover {
  border-color: var(--text-1);
  background: var(--bg-2);
}
.btn-white {
  background: var(--white);
  color: var(--accent);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--accent-light);
}
.btn-lg {
  padding: 17px 34px;
  font-size: 16px;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,249,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bdr);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.nav-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all .15s;
}
.nav-links a:hover { background: var(--bg-2); color: var(--text-1); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-phone {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-phone:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  transition: background .15s;
}
.nav-cta:hover { background: var(--accent-hover) !important; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-1); border-radius: 2px;
  margin: 5px 0; transition: all .2s;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: var(--dark);
  color: var(--white);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(194,65,12,.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(194,65,12,.08) 0%, transparent 60%);
  pointer-events: none;
}
/* Subtle roof line pattern */
.hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: 0;
  bottom: 0;
  width: 50%;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,.018) 40px,
    rgba(255,255,255,.018) 41px
  );
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  display: block;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,.72);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 100px;
}
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  backdrop-filter: blur(8px);
}
.hero-card-label {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hero-card-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}
.hero-card-sub {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin-top: 4px;
}
.hero-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ── Trust bar ────────────────────────────────────────────── */
.trust-bar {
  background: var(--accent);
  padding: 20px 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}
.trust-icon {
  width: 20px;
  height: 20px;
  opacity: .9;
  flex-shrink: 0;
}
.trust-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,.3);
}

/* ── Section shared ───────────────────────────────────────── */
.section { padding: var(--section) 0; }
.section-sm { padding: 56px 0; }
.section-hdr { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-hdr h2 { margin-bottom: 16px; }
.section-hdr p { font-size: 17px; color: var(--text-2); }

/* ── Services grid ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--bdr-2);
}
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 22px;
}
.service-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.service-card p { font-size: 15px; color: var(--text-3); line-height: 1.65; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.service-link:hover { gap: 8px; }

/* ── Why choose us ────────────────────────────────────────── */
.why {
  background: var(--dark);
  color: var(--white);
}
.why .section-hdr h2 { color: var(--white); }
.why .section-hdr p { color: rgba(255,255,255,.65); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.why-item {
  background: var(--dark);
  padding: 36px 32px;
  transition: background .2s;
}
.why-item:hover { background: var(--dark-2); }
.why-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}
.why-item h3 { color: var(--white); margin-bottom: 10px; font-size: 1.1rem; }
.why-item p { color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.65; }

/* ── Service areas ────────────────────────────────────────── */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.area-card {
  background: var(--white);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all .2s;
  cursor: default;
}
.area-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.area-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.area-card h3 { font-size: 1rem; margin-bottom: 6px; }
.area-card p { font-size: 13px; color: var(--text-3); }

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials { background: var(--bg-2); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--white);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: #F59E0B;
  font-size: 16px;
}
.testi-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  font-style: italic;
  margin-bottom: 20px;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.testi-name { font-weight: 700; font-size: 14px; color: var(--text-1); }
.testi-loc { font-size: 12px; color: var(--text-3); }

/* ── CTA band ─────────────────────────────────────────────── */
.cta-band {
  background: var(--accent);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; font-size: clamp(1.8rem,3vw,2.4rem); }
.cta-band p { color: rgba(255,255,255,.8); font-size: 17px; margin-bottom: 36px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-band-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 28px;
}
.footer-brand p { font-size: 14px; margin: 14px 0 20px; line-height: 1.65; max-width: 300px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}
.footer-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.footer-contact a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,.75);
  margin-bottom: 6px;
  transition: color .15s;
}
.footer-contact a:hover { color: var(--white); }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,.65);
  margin-bottom: 8px;
  transition: color .15s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }
.footer-dm {
  font-size: 12px;
  color: rgba(255,255,255,.3);
}
.footer-dm a { color: rgba(255,255,255,.45); }
.footer-dm a:hover { color: rgba(255,255,255,.7); }

/* ── Services page ────────────────────────────────────────── */
.page-hero {
  background: var(--dark);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem,4vw,3rem); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 17px; max-width: 520px; margin: 0 auto; }

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--bdr);
}
.service-detail:last-of-type { border-bottom: none; }
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }
.service-detail-img {
  background: var(--bg-2);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}
.service-detail h2 { font-size: 1.9rem; margin-bottom: 14px; }
.service-detail p { margin-bottom: 16px; }
.service-includes {
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-includes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-2);
}
.check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Contact page ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { margin-bottom: 28px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}
.contact-detail-label { font-size: 12px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.contact-detail-value { font-size: 15px; color: var(--text-1); font-weight: 600; }
.contact-detail-value a { color: var(--text-1); }
.contact-detail-value a:hover { color: var(--accent); }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-form-card h3 { margin-bottom: 6px; }
.contact-form-card > p { font-size: 14px; color: var(--text-3); margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group.full { grid-column: 1/-1; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-1); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--bdr-2);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font);
  color: var(--text-1);
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194,65,12,.1);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; padding: 15px; font-size: 16px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --section: 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-cards-row { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 0; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: 32px; direction: ltr !important; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero { padding: 60px 0 56px; }
  .hero-visual { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band-actions { flex-direction: column; align-items: center; }
  .trust-bar-inner { gap: 20px; }
  .trust-divider { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .nav-phone { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 24px; }
}
