/* ============================================================
   Hickory Custom Homes — Shared Stylesheet
   Pure CSS, no frameworks. Commented by section.
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=Montserrat:wght@500;600;700&display=swap');

/* ============================================================
   1. Design Tokens (brand colors, fonts, spacing)
   ============================================================ */
:root {
  /* Brand colors */
  --navy:        #0A1F3C;
  --mid-navy:    #1B3A5F;
  --gold:        #C9A84C;
  --gold-light:  #E8C96D;
  --gold-pale:   #FDF6E3;
  --white:       #FFFFFF;

  /* Functional */
  --text:        #1f2733;
  --text-muted:  #5a6473;
  --border:      #e3e1d8;

  /* Fonts */
  --font-head:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-label:  'Montserrat', Arial, sans-serif;

  /* Layout */
  --maxw:        1180px;
  --radius:      8px;
  --shadow:      0 6px 24px rgba(10, 31, 60, 0.10);
  --shadow-lg:   0 14px 40px rgba(10, 31, 60, 0.18);
  --transition:  0.25s ease;
}

/* ============================================================
   2. Base / Reset
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p  { margin: 0 0 1rem; }
a  { color: var(--mid-navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Montserrat label / eyebrow */
.eyebrow {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: block;
}

/* Section rhythm */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: 2.25rem; }
.section-head p  { color: var(--text-muted); font-size: 1.05rem; }

/* ============================================================
   3. Buttons
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  padding: 14px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--mid-navy);
  border-color: var(--mid-navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   4. Header / Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__logo img { height: 50px; width: auto; }

.nav__links {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav__links a {
  font-family: var(--font-label);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 14px;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav__links a:hover { color: var(--gold-light); background: rgba(255,255,255,0.05); }
.nav__links a.active { color: var(--navy); background: var(--gold); }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 26px;
  height: 2px;
  background: var(--gold);
  transition: all var(--transition);
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   5. Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 130px 0 120px;
  background:
    linear-gradient(rgba(10, 31, 60, 0.82), rgba(10, 31, 60, 0.88)),
    url('https://images.unsplash.com/photo-1628624747186-a941c476b7ef?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: var(--white);
  text-align: center;
}
.hero h1 {
  color: var(--gold);
  font-size: 3.4rem;
  font-weight: 800;
  margin-bottom: 0.4em;
}
.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Page hero (interior pages) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}
.page-hero h1 { color: var(--gold); font-size: 2.8rem; }
.page-hero p  { color: rgba(255,255,255,0.85); max-width: 640px; margin: 0 auto; font-size: 1.1rem; }

/* ============================================================
   6. Trust Bar
   ============================================================ */
.trust-bar { background: var(--gold-pale); border-bottom: 1px solid var(--border); }
.trust-bar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  padding-bottom: 26px;
}
.trust-bar__item {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  justify-content: center;
}
.trust-bar__item span.icon { color: var(--gold); font-size: 1.2rem; }

/* ============================================================
   7. Services Grid (cards)
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
  display: block;
  height: 100%;
}
.service-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.service-card .icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 14px;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
.service-card p  { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* Detailed service block (services.html) */
.service-detail {
  display: flex;
  gap: 22px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: all var(--transition);
}
.service-detail:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.service-detail .icon { font-size: 2.4rem; color: var(--gold); line-height: 1; flex-shrink: 0; }
.service-detail h3 { font-size: 1.35rem; }
.service-detail p  { color: var(--text-muted); margin: 0; }

/* ============================================================
   8. Why Hickory (3 columns)
   ============================================================ */
.feature { text-align: center; padding: 10px; }
.feature .icon { font-size: 2.4rem; display: block; margin-bottom: 12px; }
.feature h3 { font-size: 1.3rem; }
.feature p  { color: var(--text-muted); margin: 0; }

/* ============================================================
   9. Process Strip
   ============================================================ */
.process { background: var(--navy); color: var(--white); }
.process h2 { color: var(--gold); }
.process .section-head p { color: rgba(255,255,255,0.8); }
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process__step {
  text-align: center;
  padding: 26px 18px;
  background: var(--mid-navy);
  border-radius: var(--radius);
  border: 1px solid rgba(201,168,76,0.25);
}
.process__step .num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}
.process__step h3 { color: var(--white); font-size: 1.1rem; margin: 0; }

/* ============================================================
   10. Testimonials
   ============================================================ */
.testimonials { background: var(--gold-pale); }
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.testimonial .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.testimonial p { font-style: italic; color: var(--text); }
.testimonial .who {
  font-family: var(--font-label);
  font-weight: 600;
  color: var(--navy);
  font-style: normal;
  margin: 0;
  font-size: 0.92rem;
}

/* ============================================================
   11. Blog
   ============================================================ */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  height: 100%;
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--gold); }
.blog-card img { height: 210px; object-fit: cover; width: 100%; }
.blog-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card__body h3 { font-size: 1.3rem; }
.blog-card__body p  { color: var(--text-muted); font-size: 0.95rem; flex: 1; }
.blog-card__body .read-more {
  font-family: var(--font-label);
  font-weight: 600;
  color: var(--gold);
  font-size: 0.9rem;
}

/* Full blog article */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: 2rem; margin-top: 1.4em; }
.article .meta {
  font-family: var(--font-label);
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.article p { font-size: 1.05rem; color: var(--text); }
.article + .article { border-top: 1px solid var(--border); padding-top: 48px; margin-top: 48px; }

/* ============================================================
   12. Portfolio
   ============================================================ */
.portfolio-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.portfolio-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.portfolio-card:hover img { transform: scale(1.06); }
.portfolio-card__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(10,31,60,0.92));
  color: var(--white);
  padding: 30px 20px 18px;
}
.portfolio-card__caption h3 { color: var(--white); font-size: 1.2rem; margin: 0 0 2px; }
.portfolio-card__caption span {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ============================================================
   13. About
   ============================================================ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.about-split h2 { font-size: 2.1rem; }

.values-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.values-list li {
  padding: 8px 0 8px 30px;
  position: relative;
  color: var(--text);
}
.values-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ============================================================
   14. Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 6px; }
.form-row label {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  width: 100%;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.18);
}
.form-row textarea { resize: vertical; min-height: 130px; }

.contact-info {
  background: var(--gold-pale);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
}
.contact-info h3 { font-size: 1.4rem; }
.contact-info .info-item { margin-bottom: 18px; }
.contact-info .info-item .label {
  font-family: var(--font-label);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  display: block;
  margin-bottom: 2px;
}
.contact-info .map { margin-top: 24px; }
.contact-info iframe {
  width: 100%;
  height: 240px;
  border: 0;
  border-radius: 6px;
}

/* ============================================================
   15. City Pages
   ============================================================ */
.city-intro p { font-size: 1.08rem; }
.city-services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.city-services li {
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  position: relative;
  padding-left: 38px;
}
.city-services li::before {
  content: "▸";
  position: absolute;
  left: 16px;
  color: var(--gold);
}

/* CTA band */
.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--gold); font-size: 2.1rem; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 1.8rem; }

/* City links grid (homepage + footer area) */
.city-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.city-links a {
  display: block;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  text-align: center;
  transition: all var(--transition);
}
.city-links a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ============================================================
   16. Footer
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 28px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.site-footer h4 {
  font-family: var(--font-label);
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.site-footer .brand-name {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.site-footer a { color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: var(--gold-light); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom .disclaimer {
  font-family: var(--font-label);
  letter-spacing: 0.5px;
}

/* ============================================================
   17. Utility
   ============================================================ */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.bg-pale { background: var(--gold-pale); }

/* ============================================================
   19. Service Page Photo Hero
   Background image set inline per page; overlay handled here.
   ============================================================ */
.hero-photo {
  position: relative;
  padding: 100px 0 90px;
  background-color: var(--navy); /* fallback if image fails */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  text-align: center;
}
.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 31, 60, 0.80), rgba(10, 31, 60, 0.88));
}
.hero-photo .container { position: relative; z-index: 1; }
.hero-photo h1 {
  color: var(--gold);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.4em;
  line-height: 1.15;
}
.hero-photo p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 620px;
  margin: 0 auto 1.8rem;
}

/* Breadcrumb — sits inside .hero-photo above the h1 */
.breadcrumb {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb__sep { color: rgba(255, 255, 255, 0.35); }

/* Scope bullet list (what's included) */
.scope-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px 28px;
}
.scope-list li {
  padding: 11px 0 11px 28px;
  position: relative;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: 0.97rem;
  line-height: 1.4;
}
.scope-list li:last-child { border-bottom: 0; }
.scope-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Narrow centered form container for service pages */
.form-wrap {
  max-width: 680px;
  margin: 0 auto;
}
.form-wrap h2 { margin-bottom: 0.3em; }
.form-wrap .form-note {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
}

/* Service page responsive */
@media (max-width: 768px) {
  .hero-photo { padding: 80px 0 70px; }
  .hero-photo h1 { font-size: 2.2rem; }
  .scope-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-photo h1 { font-size: 1.85rem; }
  .hero-photo { padding: 70px 0 60px; }
}

/* ============================================================
   18. Responsive — breakpoints at 768px and 480px
   ============================================================ */
@media (max-width: 768px) {
  /* Nav → mobile drawer */
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy);
    padding: 14px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(201,168,76,0.25);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 14px; }

  /* Grids collapse */
  .grid, .grid--3, .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .about-split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .city-links { grid-template-columns: repeat(2, 1fr); }

  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.1rem; }
  .section-head h2 { font-size: 1.9rem; }
  .page-hero h1 { font-size: 2.1rem; }
  section { padding: 56px 0; }

  .trust-bar .container { gap: 14px; }
  .trust-bar__item { flex: 1 1 45%; justify-content: flex-start; }
}

@media (max-width: 480px) {
  .grid, .grid--3, .grid--2,
  .process__steps,
  .city-services,
  .city-links { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .hero { padding: 90px 0 80px; }
  .hero h1 { font-size: 2.05rem; }
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; }

  .service-detail { flex-direction: column; gap: 12px; }
  .container { padding: 0 18px; }
  .trust-bar__item { flex: 1 1 100%; }
}
