/* ===========================
   Garcia Roofing — Warm Editorial
   =========================== */

:root {
  --cream: #FAF8F5;
  --warm: #F5F0EB;
  --slate: #1E293B;
  --slate-l: #334155;
  --terra: #C2410C;
  --terra-l: #EA580C;
  --terra-glow: rgba(194, 65, 12, 0.08);
  --green: #15803D;
  --gray: #475569;
  --gray-l: #E2E8F0;
  --white: #FFFFFF;

  --fd: 'Playfair Display', Georgia, serif;
  --fb: 'Inter', sans-serif;

  --max-w: 1140px;
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--fb);
  background: var(--cream);
  color: var(--slate);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--terra);
  color: var(--white);
  padding: 12px 24px;
  z-index: 9999;
}
.skip-link:focus { left: 0; }

/* ===========================
   NAV
   =========================== */
.gr-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-l);
  z-index: 1000;
}

.gr-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gr-nav-mark {
  font-size: 20px;
  color: var(--terra);
  line-height: 1;
}

.gr-nav-name {
  font-family: var(--fd);
  font-size: 22px;
  font-weight: 800;
  color: var(--slate);
}
.gr-nav-name em {
  color: var(--terra);
  font-style: normal;
}

.gr-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.gr-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-l);
  transition: color 0.2s;
}
.gr-nav-links a:hover { color: var(--terra); }

.gr-nav-links .gr-lang {
  font-family: var(--fd);
  font-weight: 700;
  color: var(--terra);
}

.gr-nav-call {
  font-weight: 700 !important;
  color: var(--white) !important;
  background: var(--terra);
  padding: 10px 20px;
  border-radius: var(--radius);
}

/* Hamburger */
.gr-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.gr-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate);
  transition: 0.3s;
}
.gr-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.gr-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.gr-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===========================
   HERO
   =========================== */
.gr-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.gr-hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1635424824849-1b09bdcc55b1?w=1920&h=1080&fit=crop') center/cover no-repeat;
  z-index: 0;
}

.gr-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 41, 59, 0.88) 0%, rgba(30, 41, 59, 0.4) 50%, transparent 80%);
  z-index: 1;
}

.gr-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 32px 80px;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

.gr-hero-meta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.gr-hero-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--terra-l);
}

.gr-hero-title {
  font-family: var(--fd);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
  max-width: 760px;
}

.gr-hero-sub {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  max-width: 440px;
  margin-bottom: 32px;
}

.gr-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gr-btn-primary {
  display: inline-block;
  background: var(--terra);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
}
.gr-btn-primary:hover {
  background: var(--terra-l);
  transform: translateY(-2px);
}

.gr-btn-outline-light {
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.gr-btn-outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* ===========================
   TRUST BADGES
   =========================== */
.heritage-strip {
  background: var(--slate);
  padding: 56px 32px;
  text-align: center;
}

.heritage-heading {
  font-family: var(--fd);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 40px;
}

.heritage-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.heritage-badge {
  text-align: center;
}

.heritage-num {
  font-family: var(--fd);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--terra-l);
  line-height: 1;
  margin-bottom: 8px;
}

.heritage-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

/* ===========================
   SECTION BASE
   =========================== */
.gr-section {
  padding: 80px 32px;
}
.gr-section-warm {
  background: var(--warm);
  border-top: 1px solid var(--gray-l);
  border-bottom: 1px solid var(--gray-l);
}

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

.gr-section-heading {
  font-family: var(--fd);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--slate);
  margin-bottom: 48px;
}

.gr-section-heading-center {
  text-align: center;
}

/* ===========================
   SERVICES ACCORDION
   =========================== */
.craft-list {
  border-top: 2px solid var(--slate);
}

.craft-item {
  border-bottom: 1px solid var(--gray-l);
  background: var(--cream);
  transition: background 0.2s;
}
.craft-item[open] {
  background: var(--terra-glow);
}

.craft-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 16px;
  cursor: pointer;
  list-style: none;
  transition: padding 0.2s;
}
.craft-header::-webkit-details-marker { display: none; }
.craft-header:hover {
  padding-left: 24px;
}

.craft-num {
  font-family: var(--fd);
  font-size: 18px;
  font-weight: 700;
  color: var(--terra);
  min-width: 32px;
}

.craft-name {
  font-family: var(--fd);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--slate);
  flex: 1;
}

.craft-icon {
  width: 16px;
  height: 16px;
  position: relative;
  flex-shrink: 0;
}
.craft-icon::before,
.craft-icon::after {
  content: '';
  position: absolute;
  background: var(--terra);
  transition: transform 0.3s;
}
.craft-icon::before {
  width: 16px;
  height: 2px;
  top: 7px;
  left: 0;
}
.craft-icon::after {
  width: 2px;
  height: 16px;
  top: 0;
  left: 7px;
}
.craft-item[open] .craft-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.craft-detail {
  padding: 0 16px 32px 72px;
}
.craft-detail p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 20px;
  max-width: 680px;
}
.craft-detail ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}
.craft-detail li {
  font-size: 14px;
  color: var(--slate-l);
  padding-left: 20px;
  position: relative;
}
.craft-detail li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--terra);
  font-weight: 700;
}

/* ===========================
   WHY MAGAZINE
   =========================== */
.roof-mag {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

.roof-aside {
  position: sticky;
  top: 100px;
}

.roof-stats {
  background: var(--white);
  border: 1px solid var(--gray-l);
  border-radius: var(--radius);
  padding: 32px;
}

.roof-stat {
  text-align: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-l);
}
.roof-stat:last-child { border-bottom: none; }

.roof-stat-num {
  font-family: var(--fd);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--terra);
  line-height: 1;
  margin-bottom: 6px;
}

.roof-stat-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.roof-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.roof-story {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gray-l);
}
.roof-story:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.roof-story-num {
  font-family: var(--fd);
  font-size: 14px;
  font-weight: 700;
  color: var(--terra);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.roof-story-title {
  font-family: var(--fd);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--slate);
  margin-bottom: 16px;
}

.roof-story p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--gray);
}

/* ===========================
   PROCESS TIMELINE
   =========================== */
.roof-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  position: relative;
}

.roof-phase {
  padding: 0 0 0 0;
  position: relative;
}

.roof-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--terra);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fd);
  font-size: 18px;
  font-weight: 800;
  color: var(--terra);
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.roof-phase-title {
  font-family: var(--fd);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 12px;
}

.roof-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray);
  max-width: 420px;
}

/* Connection line between phases */
.roof-timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: var(--gray-l);
  z-index: 0;
}

/* ===========================
   REVIEWS — PULL QUOTES
   =========================== */
.pull-quotes {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.pull-quote {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.pull-quote::before {
  content: '"';
  display: block;
  font-family: var(--fd);
  font-size: 4rem;
  color: var(--terra);
  line-height: 1;
  margin-bottom: 8px;
}

.pull-text {
  font-family: var(--fd);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--slate);
  margin-bottom: 20px;
  font-style: italic;
}

.pull-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--terra);
  letter-spacing: 0.5px;
}

/* ===========================
   GALLERY — BEFORE/AFTER TABS
   =========================== */
.roof-tabs {
  max-width: 900px;
  margin: 0 auto;
}

.roof-tab-btns {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--gray-l);
}

.roof-tab {
  background: none;
  border: none;
  font-family: var(--fb);
  font-size: 16px;
  font-weight: 600;
  color: var(--gray);
  padding: 14px 40px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.roof-tab:hover { color: var(--slate); }
.roof-tab.active {
  color: var(--terra);
}
.roof-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 3px;
  background: var(--terra);
}

.roof-panels {
  position: relative;
}

.roof-panel {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.roof-panel.active {
  display: grid;
}

.roof-photo {
  text-align: center;
}
.roof-photo img {
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 12px;
}

.roof-photo-cap {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
}

/* ===========================
   CONTACT FORM
   =========================== */
.craft-contact {
  background: var(--warm);
  border-top: 1px solid var(--gray-l);
}

.craft-contact-sub {
  text-align: center;
  font-size: 16px;
  color: var(--gray);
  max-width: 500px;
  margin: 0 auto 40px;
}

.craft-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.craft-field {
  display: flex;
  flex-direction: column;
}

.craft-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.craft-field input,
.craft-field select {
  font-family: var(--fb);
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--gray-l);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--slate);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.craft-field input:focus,
.craft-field select:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 3px var(--terra-glow);
}

.craft-field-submit {
  grid-column: 1 / -1;
  align-items: center;
}

.craft-submit {
  font-family: var(--fb);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  background: var(--terra);
  border: none;
  padding: 16px 48px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.craft-submit:hover {
  background: var(--terra-l);
  transform: translateY(-2px);
}

.craft-contact-info {
  text-align: center;
  margin-top: 40px;
}

.craft-contact-phone {
  display: block;
  font-family: var(--fd);
  font-size: 24px;
  font-weight: 800;
  color: var(--terra);
  margin-bottom: 8px;
}

.craft-contact-areas {
  font-size: 13px;
  color: var(--gray);
}

/* ===========================
   FOOTER
   =========================== */
.gr-footer {
  background: var(--slate);
  padding: 48px 32px;
  text-align: center;
}

.gr-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.gr-footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.gr-footer-brand .gr-nav-name {
  color: var(--white);
}
.gr-footer-brand .gr-nav-name em {
  color: var(--terra-l);
}

.gr-footer-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.gr-footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===========================
   SCROLL REVEAL
   =========================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 968px) {
  .gr-nav-links {
    display: none;
    position: fixed;
    top: 0; right: 0;
    flex-direction: column;
    background: var(--cream);
    width: 280px;
    height: 100vh;
    padding: 80px 32px 32px;
    gap: 20px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  }
  .gr-nav-links.open {
    display: flex;
  }
  .gr-hamburger {
    display: flex;
  }

  /* Magazine → stacked */
  .roof-mag {
    grid-template-columns: 1fr;
  }
  .roof-aside {
    position: static;
  }
  .roof-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .roof-stat {
    border-bottom: 1px solid var(--gray-l);
  }

  /* Timeline → vertical */
  .roof-timeline {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .roof-timeline::before {
    display: none;
  }

  /* Gallery → single column */
  .roof-panel.active {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .gr-nav { padding: 12px 20px; }

  .gr-hero-content { padding: 0 20px 60px; }

  .gr-section { padding: 56px 20px; }

  .heritage-strip { padding: 40px 20px; }
  .heritage-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .craft-list { border-top: 1px solid var(--gray-l); }
  .craft-header { padding: 20px 8px; gap: 12px; }
  .craft-detail { padding: 0 8px 24px 52px; }
  .craft-detail ul { grid-template-columns: 1fr; }

  .roof-stats { grid-template-columns: 1fr; }

  .craft-form { grid-template-columns: 1fr; }

  .gr-footer { padding: 32px 20px; }
}
