/* ================================================================
   PAGE.CSS — Page-specific styles
   Loaded on all inner pages alongside main.css
================================================================ */

/* ================================================================
   SERVICE DETAIL PAGE — 2-column content section
================================================================ */
.service-content-section { padding: 96px 5vw; }
.service-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  margin-top: 56px;
}
.service-content-text { display: flex; flex-direction: column; gap: 20px; }
.service-content-text p {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.78;
}
.service-content-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--r-lg);
  display: block;
  border: 1px solid var(--border);
}

/* ================================================================
   CHECKLIST SECTION
================================================================ */
.checklist-section {
  padding: 96px 5vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 48px;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color var(--t), background var(--t);
}
.checklist-item:hover {
  border-color: var(--border-blue);
  background: var(--surface-3);
}
.checklist-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--blue-glow);
  border: 1px solid var(--border-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  margin-top: 1px;
}
.checklist-item span {
  font-size: 0.9rem;
  color: var(--text-1);
  font-weight: 500;
  line-height: 1.5;
}

/* ================================================================
   FAQ ACCORDION
================================================================ */
.faq-section { padding: 96px 5vw; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 56px;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}
.faq-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--t);
}
.faq-item.open { border-color: var(--border-blue); }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display, 'Space Grotesk', system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-1);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.faq-question:hover { background: var(--surface-3); color: var(--white); }
.faq-item.open .faq-question { color: #60a5fa; background: var(--blue-glow); }
.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--t) var(--ease);
  color: var(--text-3);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: #60a5fa;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s var(--ease), padding 0.38s var(--ease);
  padding: 0 24px;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 24px 20px;
}
.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.72;
  padding-top: 4px;
}

/* ================================================================
   3-PHOTO PROJECT ROW (service pages)
================================================================ */
.project-row-section { padding: 96px 5vw; }
.project-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 48px;
}
.project-row-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 4/3;
  display: block;
  background: var(--surface-2);
}
.project-row-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
  will-change: transform;
}
.project-row-item:hover img { transform: scale(1.07); }
.project-row-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,13,16,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.project-row-item:hover .project-row-overlay { opacity: 1; }

/* ================================================================
   EMERGENCY CALL BOX
================================================================ */
.emergency-box {
  background: var(--blue-glow);
  border: 2px solid var(--border-blue);
  border-radius: var(--r-lg);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.emergency-box-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: var(--blue-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
}
.emergency-box-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.emergency-box-phone {
  font-family: var(--ff-num);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1;
  transition: color var(--t);
}
.emergency-box-phone:hover { color: #60a5fa; }
.emergency-box-note {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-top: 4px;
  line-height: 1.5;
}

/* ================================================================
   METAL ROOFING COMPARISON TABLE
================================================================ */
.comparison-section { padding: 96px 5vw; }
.comparison-table-wrap {
  margin-top: 56px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}
.comparison-table thead th {
  padding: 18px 28px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface-2);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.comparison-table thead th.col-metal {
  color: #60a5fa;
  background: var(--blue-glow);
}
.comparison-table thead th.col-first { width: 32%; }
.comparison-table tbody tr { transition: background var(--t); }
.comparison-table tbody tr:nth-child(even) { background: var(--surface-2); }
.comparison-table tbody tr:hover { background: var(--surface-3); }
.comparison-table tbody td {
  padding: 16px 28px;
  font-size: 0.88rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--text-1);
  font-size: 0.84rem;
}
.comparison-table tbody td.col-metal {
  color: #60a5fa;
  font-weight: 600;
  background: rgba(37,99,235,0.04);
}
.comparison-table tbody tr:nth-child(even) td.col-metal {
  background: rgba(37,99,235,0.07);
}

/* ================================================================
   ABOUT PAGE
================================================================ */
.about-story-section { padding: 96px 5vw; }
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  margin-top: 56px;
}
.about-story-text { display: flex; flex-direction: column; gap: 20px; }
.about-story-text p { font-size: 1rem; color: var(--text-2); line-height: 1.78; }
.about-story-text p strong { color: var(--text-1); font-weight: 600; }

.team-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--surface-2);
  border: 2px dashed var(--border-blue);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-3);
  text-align: center;
  padding: 32px;
}
.team-placeholder-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.values-section {
  padding: 96px 5vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.value-card {
  padding: 36px 28px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--t), transform var(--t) var(--ease), box-shadow var(--t);
}
.value-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0,0,0,0.4);
}
.value-card-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-glow);
  border: 1px solid var(--border-blue);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
}
.value-card h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}
.value-card p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.7;
  flex: 1;
}

/* ================================================================
   CONTACT PAGE — "What Happens Next" steps
================================================================ */
.next-steps-section {
  padding: 72px 5vw 0;
}
.next-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.next-step-card {
  padding: 32px 28px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.next-step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-hover));
}
.next-step-num {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(37,99,235,0.25);
  line-height: 1;
}
.next-step-card h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}
.next-step-card p {
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ================================================================
   PROJECTS PAGE — intro + gallery note
================================================================ */
.projects-page-intro {
  max-width: 680px;
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.72;
  margin-top: 20px;
}
.gallery-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-3);
  margin-top: 32px;
  font-style: italic;
}

/* ================================================================
   PRIVACY POLICY PAGE
================================================================ */
.policy-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 80px 5vw 60px;
  margin-top: 72px;
}
.policy-hero h1 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.policy-hero-sub {
  font-size: 0.88rem;
  color: var(--text-3);
}
.policy-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 5vw;
}
.policy-content h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 40px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.policy-content h2:first-child { margin-top: 0; }
.policy-content p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.78;
  margin-bottom: 14px;
}
.policy-content ul {
  list-style: disc;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.policy-content ul li {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.65;
}
.policy-content a {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.policy-content a:hover { color: var(--blue-hover); }

/* ================================================================
   SERVICES PAGE — intro paragraph
================================================================ */
.services-page-intro {
  max-width: 680px;
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.72;
  margin-top: 20px;
}

/* ================================================================
   RESPONSIVE — Tablet
================================================================ */
@media (max-width: 1024px) {
  .service-content-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-content-img { max-width: 560px; }
  .checklist-grid { grid-template-columns: 1fr; }
  .project-row { grid-template-columns: 1fr 1fr; }
  .project-row-item:last-child { grid-column: span 2; }
  .about-story-grid { grid-template-columns: 1fr; gap: 40px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .next-steps-grid { grid-template-columns: 1fr; }
  .comparison-table thead th, .comparison-table tbody td { padding: 14px 18px; }
}

/* ================================================================
   RESPONSIVE — Mobile
================================================================ */
@media (max-width: 768px) {
  .service-content-section { padding: 72px 5vw; }
  .checklist-section { padding: 72px 5vw; }
  .faq-section { padding: 72px 5vw; }
  .project-row-section { padding: 72px 5vw; }
  .project-row { grid-template-columns: 1fr; }
  .project-row-item:last-child { grid-column: span 1; }
  .values-grid { grid-template-columns: 1fr; }
  .comparison-section { padding: 72px 5vw; }
  .comparison-table-wrap { overflow-x: auto; }
  .comparison-table { min-width: 500px; }
  .about-story-section { padding: 72px 5vw; }
  .values-section { padding: 72px 5vw; }
  .emergency-box { padding: 24px; gap: 20px; }
  .emergency-box-phone { font-size: 1.6rem; }
  .next-steps-section { padding: 56px 5vw 0; }
  .policy-content { padding: 48px 5vw; }
}

/* ================================================================
   EMERGENCY CALL BOX (new — roof-repairs.html, contact.html)
================================================================ */
.emergency-call-box { display: flex; align-items: center; gap: 20px; padding: 28px 32px; background: var(--blue-glow); border: 1px solid var(--border-blue); border-radius: var(--r-lg); margin: 40px 0; }
.emergency-call-icon { width: 52px; height: 52px; min-width: 52px; background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); }
.emergency-call-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #60a5fa; margin-bottom: 6px; }
.emergency-call-number { display: block; font-family: var(--ff-num); font-size: 1.9rem; font-weight: 800; color: var(--white); letter-spacing: 0.01em; text-decoration: none; line-height: 1; transition: color 0.28s ease; }
.emergency-call-number:hover { color: #60a5fa; }
.emergency-call-note { font-size: 0.82rem; color: var(--text-2); margin-top: 6px; }
@media (max-width: 480px) { .emergency-call-box { flex-direction: column; text-align: center; padding: 24px 20px; } .emergency-call-number { font-size: 1.5rem; } }

/* ================================================================
   CONTACT STEPS (contact.html — "What Happens Next")
================================================================ */
.contact-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-step { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px 28px; text-align: center; transition: border-color 0.28s ease, transform 0.28s ease; }
.contact-step:hover { border-color: var(--border-blue); transform: translateY(-3px); }
.contact-step-num { font-family: var(--ff-num); font-size: 2.4rem; font-weight: 800; color: #60a5fa; line-height: 1; margin-bottom: 16px; }
.contact-step h3 { font-family: var(--ff-display); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.contact-step p { font-size: 0.86rem; color: var(--text-2); line-height: 1.65; }
@media (max-width: 768px) { .contact-steps { grid-template-columns: 1fr; } }

/* ================================================================
   MAP WRAP + CONTACT GRID (contact.html)
================================================================ */
.map-wrap { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; align-items: start; margin-top: 56px; }
@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ================================================================
   TABLE WRAP (metal-roofing.html)
================================================================ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); }

/* ================================================================
   SERVICE PAGE CARDS (mirrors main.css — kept in sync)
================================================================ */
.services-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.svc-page-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: border-color 0.28s ease, transform 0.28s ease; display: flex; flex-direction: column; }
.svc-page-card:hover { border-color: var(--border-blue); transform: translateY(-4px); }
.svc-page-card-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.svc-page-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.svc-page-card-icon { width: 44px; height: 44px; background: var(--blue-glow); border: 1px solid var(--border-blue); border-radius: var(--r); display: flex; align-items: center; justify-content: center; color: var(--blue-hover); margin-bottom: 16px; }
.svc-page-card-link { margin-top: auto; padding-top: 20px; font-size: 0.88rem; font-weight: 600; color: var(--blue-hover); text-decoration: none; display: flex; align-items: center; gap: 6px; transition: gap 0.2s ease; }
.svc-page-card-link:hover { gap: 10px; }
@media (max-width: 768px) { .services-page-grid { grid-template-columns: 1fr; } }
@media (max-width: 1024px) and (min-width: 769px) { .services-page-grid { grid-template-columns: repeat(2, 1fr); } }
