/* ==========================================================================
   Pangallo Construction Company LLC — Design System
   ========================================================================== */

:root {
  /* Colors */
  --color-navy-950: #0d1826;
  --color-navy-900: #132338;
  --color-navy-800: #1c3350;
  --color-navy-700: #26466b;
  --color-charcoal: #262a2f;
  --color-slate-600: #4b5563;
  --color-slate-400: #8a94a3;
  --color-slate-200: #e2e6ea;
  --color-slate-100: #f1f3f5;
  --color-white: #ffffff;
  --color-amber-500: #d97706;
  --color-amber-400: #f0973a;
  --color-amber-100: #fdecd6;

  /* Type */
  --font-display: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --max-width: 1160px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(13, 24, 38, 0.08);
  --shadow-md: 0 8px 24px rgba(13, 24, 38, 0.12);
  --transition: 180ms ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-navy-900);
}
p { margin: 0 0 1em; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--color-slate-100); }
.section--dark {
  background: linear-gradient(135deg, var(--color-navy-950), var(--color-navy-800));
  color: var(--color-slate-200);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-white); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-amber-500);
  margin-bottom: 12px;
}
.lede {
  font-size: 1.15rem;
  color: var(--color-slate-600);
  max-width: 60ch;
}
.section--dark .lede { color: var(--color-slate-200); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--color-amber-500);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-amber-400); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-slate-200);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-navy-900);
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--color-navy-900);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-slate-400);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-slate-600);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-navy-900);
  border-color: var(--color-amber-500);
}
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone {
  display: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-navy-900);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy-900);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}

@media (min-width: 860px) {
  .nav-phone { display: inline; }
}

@media (max-width: 859px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--color-slate-200);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .nav-links.is-open { max-height: 480px; }
  .nav-links a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--color-slate-100);
    border-left: 3px solid transparent;
  }
  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    border-color: var(--color-slate-100);
    border-left-color: var(--color-amber-500);
    background: var(--color-slate-100);
  }
  .nav-links .btn { margin: 14px 24px; }
  .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(13,24,38,0.93), rgba(28,51,80,0.82)),
    url("../images/hero-construction.jpg");
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  padding: 96px 0 88px;
}
.hero-inner { max-width: 640px; }
.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  margin-bottom: 20px;
}
.hero .lede { color: var(--color-slate-200); font-size: 1.2rem; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-amber-400);
}
.hero-stat span {
  font-size: 0.82rem;
  color: var(--color-slate-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-hero {
  background: linear-gradient(135deg, var(--color-navy-950), var(--color-navy-800));
  color: var(--color-white);
  padding: 64px 0;
}
.page-hero h1 { color: var(--color-white); margin-bottom: 12px; }
.page-hero .lede { color: var(--color-slate-200); margin: 0; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-slate-400);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--color-amber-400); }

/* ==========================================================================
   Grids / Cards
   ========================================================================== */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--color-amber-100);
  color: var(--color-amber-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--color-slate-600); margin-bottom: 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head.align-left { margin: 0 0 48px; text-align: left; }

/* Section header row (heading + link) */
.section-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Checklist */
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--color-slate-600);
}
.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--color-amber-100);
  background-image: linear-gradient(135deg, var(--color-amber-500), var(--color-amber-400));
}

/* ==========================================================================
   Placeholder blocks (gallery / testimonials before real content exists)
   ========================================================================== */
.service-photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.placeholder-tile {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 2px dashed var(--color-slate-200);
  background: var(--color-slate-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-slate-400);
  padding: 20px;
  gap: 8px;
}
.placeholder-tile strong { color: var(--color-slate-600); font-size: 0.9rem; }
.placeholder-tile span { font-size: 0.78rem; }
.placeholder-note {
  background: var(--color-amber-100);
  border: 1px solid var(--color-amber-400);
  border-radius: var(--radius);
  padding: 18px 22px;
  color: #7a4a0c;
  font-size: 0.92rem;
  margin-bottom: 40px;
}
.placeholder-note strong { display: block; margin-bottom: 4px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--color-navy-900);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-white);
  color: var(--color-charcoal);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-amber-500);
  box-shadow: 0 0 0 3px var(--color-amber-100);
}
.contact-info-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--color-navy-900);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-list strong { display: block; color: var(--color-navy-900); }
.contact-info-list span, .contact-info-list a { color: var(--color-slate-600); }
.contact-info-list a:hover { color: var(--color-amber-500); }

.map-placeholder {
  margin-top: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--color-slate-200);
  background: var(--color-slate-100);
  padding: 40px 24px;
  text-align: center;
  color: var(--color-slate-400);
}

/* ==========================================================================
   Service area tags
   ========================================================================== */
.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.area-tag {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-navy-800);
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--color-navy-950), var(--color-navy-800));
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
}
.cta-band h2 { color: var(--color-white); }
.cta-band .lede { color: var(--color-slate-200); margin: 0 auto 28px; }
.cta-band .hero-actions { justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-navy-950);
  color: var(--color-slate-400);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--color-white); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}
.footer-note {
  background: rgba(240, 151, 58, 0.1);
  border: 1px solid rgba(240, 151, 58, 0.3);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.8rem;
  color: var(--color-amber-400);
  margin-bottom: 32px;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
