/* Hometown Exteriors and Roofing — shared styles
   Colors: teal, gold, dark brown/black — mobile-first */

:root {
  --teal: #0d7377;
  --teal-dark: #095456;
  --teal-light: #14919b;
  --gold: #c9a227;
  --gold-light: #e0b93a;
  --gold-soft: #f5e6b8;
  --brown: #2c1810;
  --brown-mid: #3d2317;
  --black: #1a1210;
  --cream: #faf7f2;
  --white: #ffffff;
  --gray: #5c534c;
  --gray-light: #e8e2da;
  --shadow: 0 4px 20px rgba(26, 18, 16, 0.12);
  --radius: 8px;
  --max: 1100px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--brown);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--teal-dark);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* —— Header / Nav —— */
.site-header {
  background: var(--black);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--white);
  text-decoration: none;
  min-width: 0;
}

.logo:hover {
  text-decoration: none;
  color: var(--gold-light);
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--white);
}

.logo:hover .logo-name {
  color: var(--gold-light);
}

.logo-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--teal-light);
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--teal);
  border-color: var(--teal);
}

.site-nav {
  width: 100%;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0.75rem;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
}

.header-phone {
  display: none;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold-light);
  color: var(--black);
  border-color: var(--gold-light);
}

.btn-secondary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--teal-dark);
  color: var(--white);
  border-color: var(--teal-dark);
}

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

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--gold);
  color: var(--black);
}

.btn-block {
  width: 100%;
}

/* —— Hero —— */
.hero {
  background: linear-gradient(145deg, var(--black) 0%, var(--brown-mid) 55%, var(--teal-dark) 100%);
  color: var(--white);
  padding: 3rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--teal));
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero .lead {
  font-size: 1.1rem;
  color: var(--gray-light);
  max-width: 36em;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.45);
  color: var(--gold-soft);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* —— Sections —— */
main {
  flex: 1;
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--white);
}

.section-teal {
  background: var(--teal);
  color: var(--white);
}

.section-teal a {
  color: var(--gold-soft);
}

.section-teal a:hover {
  color: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--brown);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.section-teal .section-title {
  color: var(--white);
}

.section-intro {
  color: var(--gray);
  max-width: 40em;
  margin-bottom: 2rem;
}

.section-teal .section-intro {
  color: rgba(255, 255, 255, 0.9);
}

.gold-rule {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border: none;
  margin: 0 0 1.5rem;
}

/* —— Cards / grids —— */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--teal);
  height: 100%;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--brown);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--gray);
  font-size: 0.95rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.list-check {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.list-check li {
  padding-left: 1.75rem;
  position: relative;
  color: var(--gray);
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.section-teal .list-check li {
  color: rgba(255, 255, 255, 0.95);
}

.section-teal .list-check li::before {
  color: var(--gold);
}

/* —— CTA band —— */
.cta-band {
  background: linear-gradient(90deg, var(--brown) 0%, var(--black) 100%);
  color: var(--white);
  padding: 2.5rem 0;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: var(--gray-light);
  margin-bottom: 1.25rem;
}

.cta-band .phone-lg {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.25rem;
  text-decoration: none;
}

.cta-band .phone-lg:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* —— Page hero (inner pages) —— */
.page-hero {
  background: var(--brown-mid);
  color: var(--white);
  padding: 2.25rem 0;
  border-bottom: 3px solid var(--gold);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--gray-light);
  max-width: 40em;
}

/* —— Contact / form —— */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--brown);
}

.contact-detail {
  margin-bottom: 1.25rem;
}

.contact-detail strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 0.25rem;
}

.contact-detail a,
.contact-detail span {
  color: var(--brown);
  font-size: 1.05rem;
  font-weight: 500;
}

.form-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}

.form-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
  color: var(--brown);
}

.form-card .form-note {
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--brown);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--brown);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  background: var(--white);
  outline: none;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.required {
  color: var(--teal);
}

.form-success {
  display: none;
  background: #e8f5f5;
  border: 2px solid var(--teal);
  color: var(--teal-dark);
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-weight: 500;
}

.form-success.is-visible {
  display: block;
}

/* —— Footer —— */
.site-footer {
  background: var(--black);
  color: var(--gray-light);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.footer-brand .logo-name {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-col h3 {
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: rgba(232, 226, 218, 0.75);
}

.footer-bottom .dba {
  margin-bottom: 0.5rem;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.footer-badges span {
  font-size: 0.75rem;
  border: 1px solid rgba(201, 162, 39, 0.5);
  color: var(--gold);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

/* —— Utility —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 1rem;
}

.two-col {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.highlight-box {
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.highlight-box p {
  color: var(--brown);
  font-weight: 500;
  margin: 0;
}

.prose p {
  margin-bottom: 1rem;
  color: var(--gray);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--brown);
  margin: 1.75rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.1rem;
  color: var(--teal-dark);
  margin: 1.25rem 0 0.5rem;
}

/* —— Tablet+ —— */
@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .site-nav {
    display: flex;
    flex-direction: row;
    width: auto;
    align-items: center;
    gap: 0.15rem;
    padding-bottom: 0;
    margin-left: auto;
  }

  .site-nav a {
    padding: 0.5rem 0.7rem;
    font-size: 0.9rem;
  }

  .header-phone {
    display: inline-flex;
    align-items: center;
    margin-left: 0.75rem;
    padding: 0.5rem 0.9rem;
    background: var(--teal);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
  }

  .header-phone:hover {
    background: var(--teal-light);
    color: var(--white);
    text-decoration: none;
  }

  .logo-name {
    font-size: 1.15rem;
  }

  .hero {
    padding: 4rem 0 4.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1.35fr;
  }

  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .site-nav a {
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
  }
}

/* —— Featured project / photo block —— */
.project-feature {
  max-width: 900px;
  margin: 0 auto;
}

.project-gallery {
  display: grid;
  gap: 1.5rem;
}

.project-photo {
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  margin: 0;
}

.project-photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.project-photo figcaption {
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--gray);
  border-top: 3px solid var(--gold);
  background: var(--cream);
}

.project-photo figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--brown);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.featured-strip {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

.featured-strip .project-photo {
  margin: 0;
}

.featured-strip .project-gallery {
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .project-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
  }
}

@media (min-width: 768px) {
  .featured-strip {
    grid-template-columns: 1.35fr 1fr;
    gap: 2rem;
  }

  .featured-strip .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-photo img {
    aspect-ratio: 16 / 10;
  }
}


