/* ==========================================================
   American Pacific Roofing — site styles
   Edit the colors here and they update everywhere on the site.
   ========================================================== */
:root {
  --primary: #0E2A44;   /* navy — headings, buttons, footer, nav bg */
  --accent: #F5A623;    /* gold — small accents (icons) */
  --text-muted: #3B5770;
  --bg-alt: #F5F8FA;
  --border: #E1E8EE;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Work Sans', system-ui, sans-serif;
  color: #12293F;
  background: #FFFFFF;
}
a { text-decoration: none; color: inherit; }
h1, h2, h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--primary);
  margin: 0;
}
img { max-width: 100%; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .line1 { font-weight: 700; font-size: 16px; color: var(--primary); }
.brand-text .line2 { font-weight: 500; font-size: 11px; letter-spacing: 0.3em; color: var(--text-muted); }
.nav-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nav-links a { font-size: 15px; font-weight: 500; color: #12293F; }
.nav-links a.active { font-weight: 600; color: var(--primary); }

/* ---------- HERO ---------- */
.hero { padding: 96px 32px 0; text-align: center; }
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.hero h1 { font-size: 52px; line-height: 1.15; max-width: 760px; }
.hero p { font-size: 18px; line-height: 1.6; color: var(--text-muted); max-width: 640px; margin: 0; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; padding-top: 8px; }
.btn { display: inline-block; font-weight: 600; font-size: 15px; padding: 14px 28px; border-radius: 6px; }
.btn-primary { background: var(--primary); color: #FFFFFF; }
.btn-outline { background: #FFFFFF; color: var(--primary); border: 1.5px solid var(--primary); padding: 12.5px 28px; }

/* Wave divider under the hero */
.wave { margin-top: 72px; width: 100%; height: 80px; position: relative; overflow: hidden; }
.wave svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }

/* ---------- SERVICES ---------- */
.services { background: var(--bg-alt); padding: 8px 32px 88px; }
.services-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.section-head { text-align: center; display: flex; flex-direction: column; gap: 10px; }
.section-head h2 { font-size: 32px; }
.section-head p { margin: 0; color: var(--text-muted); font-size: 16px; }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
.service-card { background: #FFFFFF; border: 1px solid var(--border); border-radius: 14px; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.service-card h3 { font-size: 20px; }
.service-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* ---------- LICENSE BAR ---------- */
.license-bar { background: var(--primary); padding: 36px 32px; text-align: center; }
.license-bar-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.license-bar p { margin: 0; color: #FFFFFF; font-size: 16px; font-weight: 500; }

/* ---------- CONTACT ---------- */
.contact { background: var(--bg-alt); padding: 88px 32px; }
.contact-inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }

.contact-panel {
  width: 100%;
  max-width: 600px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 12px 32px -16px rgba(14, 42, 68, 0.16);
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: left;
}

.contact-phone {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.contact-phone:hover { border-color: var(--primary); background: #EEF3F7; }
.contact-phone-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-phone-text { display: flex; flex-direction: column; gap: 2px; }
.contact-phone .label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.contact-phone .value { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; color: var(--primary); }

.contact-divider { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 13px; font-weight: 500; }
.contact-divider::before, .contact-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- CONTACT FORM ---------- */
.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: flex; gap: 18px; }
.form-row .form-field { flex: 1 1 0; min-width: 0; }
.form-field { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.form-field input, .form-field textarea {
  width: 100%;
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 15px;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: #12293F;
  background: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 42, 68, 0.1);
}
.contact-form button {
  align-self: stretch;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.contact-form button:hover { opacity: 0.9; }
.contact-form button:disabled { opacity: 0.6; cursor: default; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font-size: 14px; font-weight: 500; min-height: 20px; text-align: center; }
.form-status.success { color: #1C6EA4; }
.form-status.error { color: #C0392B; }

@media (max-width: 560px) {
  .form-row { flex-direction: column; gap: 20px; }
}

/* ---------- PROJECTS PAGE ---------- */
.projects-hero { padding: 72px 32px 0; text-align: center; }
.projects-hero-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.projects-hero h1 { font-size: 38px; }
.projects-hero p { margin: 0; color: var(--text-muted); font-size: 16px; }
.projects { padding: 48px 32px 88px; }
.projects-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.project-card { display: flex; flex-direction: column; gap: 12px; }
.project-photo {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border: 1.5px dashed #C7D3DD;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.project-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-info { display: flex; flex-direction: column; gap: 2px; }
.project-info .title { font-weight: 600; font-size: 15px; color: var(--primary); }
.project-info .place { font-size: 13px; color: var(--text-muted); }

/* ---------- FOOTER ---------- */
.footer { background: var(--primary); padding: 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 30px; width: auto; display: block; }
.footer-brand span, .footer-meta { font-size: 13px; color: #CBD8E3; }
.footer-social { display: flex; align-items: center; gap: 14px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 800px) {
  .hero h1 { font-size: 36px; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .projects-grid { grid-template-columns: 1fr; }
}
