/* ============================================
   Portland Roof Restoration - Main Stylesheet
   ============================================ */

/* Custom Properties */
:root {
  --navy: #1a2332;
  --navy-light: #243044;
  --accent: #c0392b;
  --accent-light: #e74c3c;
  --bg: #faf9f7;
  --white: #ffffff;
  --grey-light: #f5f4f2;
  --grey-mid: #e8e6e3;
  --text-dark: #1a2332;
  --text-mid: #4a5568;
  --text-light: #718096;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.14);
  --radius: 8px;
  --radius-lg: 12px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
}

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

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { color: var(--text-mid); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 80px 0; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-logo svg { width: 36px; height: 36px; }

.nav-logo-text { line-height: 1.1; }
.nav-logo-text span:first-child {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
}
.nav-logo-text span:last-child {
  display: block;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Logo image sizing */
.nav-logo-img {
  height: 110px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-logo-img {
  height: 110px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.nav-phone:hover { color: var(--accent); }
.nav-phone svg { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(192,57,43,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-outline-dark {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline-dark:hover {
  background: var(--accent);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s;
}

/* Mobile Nav Overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--navy);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, #2c3e50 40%, #34495e 70%, var(--navy-light) 100%);
  overflow: hidden;
}

/* Page-specific hero backgrounds */
.hero-home {
  background: linear-gradient(rgba(20,30,45,0.70), rgba(20,30,45,0.70)),
    url('images/hero-main.jpg') center center / cover no-repeat;
}

.hero-restoration {
  background: linear-gradient(rgba(20,30,45,0.70), rgba(20,30,45,0.70)),
    url('images/restoration-hero.jpg') center center / cover no-repeat;
}

.hero-repairs {
  background: linear-gradient(rgba(20,30,45,0.70), rgba(20,30,45,0.70)),
    url('images/repairs-hero.jpg') center center / cover no-repeat;
}

.hero-replacement {
  background: linear-gradient(rgba(20,30,45,0.70), rgba(20,30,45,0.70)),
    url('images/replacement-hero.jpg') center center / cover no-repeat;
}

.hero-contact {
  background: linear-gradient(rgba(20,30,45,0.70), rgba(20,30,45,0.70)),
    url('images/hero-main.jpg') center center / cover no-repeat;
}

.hero-about {
  background: linear-gradient(rgba(20,30,45,0.70), rgba(20,30,45,0.70)),
    url('images/hero-main.jpg') center center / cover no-repeat;
}

/* Shared overlay pattern for pages without a specific image */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.015) 0px,
      rgba(255,255,255,0.015) 1px,
      transparent 1px,
      transparent 20px
    );
  pointer-events: none;
}

.hero-home { min-height: 600px; }

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 { color: var(--white); margin-bottom: 1.2rem; }

.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
}
.trust-badge svg { color: var(--accent); flex-shrink: 0; }

/* ============================================
   SECTIONS
   ============================================ */
.section-light { background: var(--bg); }
.section-white { background: var(--white); }
.section-grey { background: var(--grey-light); }
.section-dark { background: var(--navy); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.8rem; }
.section-header p { color: var(--text-mid); max-width: 620px; margin: 0 auto; }

.section-dark .section-header h2 { color: var(--white); }
.section-dark .section-header p { color: rgba(255,255,255,0.75); }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ============================================
   SERVICE CARDS (Home)
   ============================================ */
.service-card { text-align: center; }
.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(192,57,43,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  color: var(--accent);
}
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { font-size: 0.95rem; margin-bottom: 1.2rem; }
.service-card a.learn-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.service-card a.learn-more:hover { gap: 0.6rem; }

/* ============================================
   FEATURE BOXES (Why Choose Us)
   ============================================ */
.feature-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}
.feature-box h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.feature-box p { font-size: 0.95rem; margin: 0; }

/* ============================================
   PROCESS STEPS
   ============================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.step { text-align: center; }
.step-num {
  width: 52px;
  height: 52px;
  background: rgba(192,57,43,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}
.step h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; margin: 0; }

/* How It Works (3-step) */
.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step-3 { text-align: center; }
.step-3-num {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
}
.step-3 h3 { margin-bottom: 0.5rem; }
.step-3 p { font-size: 0.95rem; margin: 0; }

/* ============================================
   SERVICE AREAS
   ============================================ */
.suburb-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin: 1.5rem 0; }
.suburb-tag {
  background: var(--white);
  border: 1.5px solid var(--grey-mid);
  border-radius: 20px;
  padding: 0.35rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(rgba(20,30,45,0.82), rgba(20,30,45,0.82)),
    url('images/bg-house-cta.jpg') center center / cover no-repeat;
  text-align: center;
  padding: 80px 0;
}

/* Section photo backgrounds */
.section-photo-suburb {
  background: linear-gradient(rgba(250,249,247,0.92), rgba(250,249,247,0.92)),
    url('images/bg-suburb.jpg') center center / cover no-repeat;
}

.section-photo-tiles {
  background: linear-gradient(rgba(245,244,242,0.90), rgba(245,244,242,0.90)),
    url('images/bg-tiles.jpg') center center / cover no-repeat;
}

.section-photo-portland {
  background: linear-gradient(rgba(20,30,45,0.80), rgba(20,30,45,0.80)),
    url('images/bg-portland.jpg') center center / cover no-repeat;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-section .cta-sub {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
}
.cta-section .cta-sub a { color: rgba(255,255,255,0.8); text-decoration: underline; }

/* ============================================
   CHECKLIST ITEMS
   ============================================ */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}
.checklist-item svg { color: var(--accent); flex-shrink: 0; }

/* ============================================
   TWO COLUMN CONTENT
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.two-col h3 { margin-bottom: 1rem; }
.two-col ul li {
  padding: 0.4rem 0;
  color: var(--text-mid);
  font-size: 0.95rem;
  padding-left: 1.2rem;
  position: relative;
}
.two-col ul li::before {
  content: '•';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}
.cross-links { display: flex; gap: 1.5rem; margin-top: 1.2rem; flex-wrap: wrap; }
.cross-links a { color: var(--accent); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.3rem; }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }

details {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

summary {
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
  font-size: 0.97rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '›';
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.2s;
  transform: rotate(90deg);
}
details[open] summary::after { transform: rotate(270deg); }
details[open] summary { color: var(--accent); }

.faq-answer { padding: 0 1.5rem 1.2rem; color: var(--text-mid); font-size: 0.95rem; line-height: 1.7; }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-story { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; }
.stats-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.stats-card h3 { margin-bottom: 1.5rem; font-size: 1.1rem; }
.stat-item { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--grey-mid); }
.stat-item:last-child { border-bottom: none; }
.stat-icon { width: 40px; height: 40px; background: rgba(192,57,43,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.stat-text strong { display: block; color: var(--navy); font-weight: 700; }
.stat-text span { font-size: 0.85rem; color: var(--text-light); }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.value-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow); text-align: center; }
.value-icon { width: 52px; height: 52px; background: rgba(192,57,43,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: var(--accent); }
.value-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.9rem; margin: 0; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 3rem; }
.contact-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow); text-align: center; }
.contact-card-icon { width: 48px; height: 48px; background: rgba(192,57,43,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: var(--accent); }
.contact-card h3 { font-size: 0.95rem; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-card .contact-value { font-size: 1rem; font-weight: 700; color: var(--accent); margin-bottom: 0.3rem; display: block; }
.contact-card p { font-size: 0.85rem; margin: 0; color: var(--text-light); }

.form-wrap { max-width: 640px; margin: 0 auto; }
.form-group { margin-bottom: 1.3rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--text-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--grey-mid);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { height: 120px; resize: vertical; }
.form-group select { appearance: none; cursor: pointer; }
.form-submit { width: 100%; padding: 1rem; font-size: 1.05rem; }

.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; text-align: center; }
.trust-item h4 { margin-bottom: 0.4rem; font-size: 1rem; }
.trust-item p { font-size: 0.9rem; margin: 0; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  text-decoration: none;
}
.footer-brand .footer-logo-text span:first-child {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}
.footer-brand .footer-logo-text span:last-child {
  display: block;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.6); }

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  font-family: 'Inter', sans-serif;
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-col p, .footer-col address {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.8;
}
.footer-col a { color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.2rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-story { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }

  .nav-links, .nav-right { display: none; }
  .hamburger { display: flex; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps-3 { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .trust-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
}
