/* =========================================
   Leeside Construction Company
   Cape Cod Builder — Redesign
   Pure CSS, Mobile-Responsive
   ========================================= */

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

:root {
  --primary: #4E7F82;        /* muted teal — old site sidebar bg */
  --primary-dark: #2A5A5C;   /* deeper teal for headers */
  --primary-light: #86C0C2;  /* light teal border — old nav hover */
  --accent: #D89A2E;         /* warm amber/gold — old site accent */
  --accent-light: #F0C96A;
  --nav-hover: #DDEBDE;      /* mint green — active nav button */
  --bg-light: #FAFAF4;       /* warm off-white — old content bg */
  --bg-white: #ffffff;
  --text: #1A1A1A;
  --text-light: #333333;
  --text-muted: #666666;
  --text-teal: #0E5D63;      /* teal script headers */
  --border: #C9A24E;
  --header-height: 80px;
  --max-width: 1100px;
  --font-body: 'Georgia', 'Times New Roman', serif;
  --font-heading: 'Georgia', 'Palatino', serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: #fff url('bgstripe2.jpg') repeat-y top left;
  line-height: 1.7;
  font-size: 16px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
  color: #2A5A5C;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

a {
  color: #336666;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--accent); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
header {
  background: #4E7F82;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.5rem;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo .tagline {
  display: block;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.2;
}

/* --- Navigation --- */
nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-family: 'Arial', 'Helvetica', sans-serif;
  border-radius: 4px;
  transition: all 0.2s;
}

.nav-list a.active {
  background: #DDEBDE;
  color: #2A5A5C;
  font-weight: bold;
}

.nav-list a:not(.active):hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  margin-top: var(--header-height);
  background: linear-gradient(135deg, #4E7F82 0%, #3A6A6C 100%);
  color: #fff;
  text-align: center;
  padding: 100px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,96L48,106.7C96,117,192,139,288,144C384,149,480,139,576,128C672,117,768,107,864,117.3C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
}

.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.hero .tagline-hero {
  font-size: 1.2rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
}

.hero p {
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: rgba(255,255,255,0.85);
  position: relative;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: #2A5A5C;
  font-family: 'Arial', 'Helvetica', sans-serif;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 6px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: #2A5A5C;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #2A5A5C;
}

/* --- Sections --- */
.section {
  padding: 70px 0;
}

.section-alt {
  background: rgba(255,255,255,0.9);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: var(--accent);
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  color: #2A5A5C;
}

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

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* --- About Page --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-text p {
  color: var(--text-light);
}

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

.stat-item {
  text-align: center;
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.stat-item .number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent);
  font-family: var(--font-heading);
}

.stat-item .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  padding: 30px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.contact-info .info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-info .info-icon {
  font-size: 1.4rem;
  color: var(--accent);
  min-width: 30px;
}

.contact-form {
  padding: 30px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-family: 'Arial', 'Helvetica', sans-serif;
  font-weight: 600;
  margin-bottom: 5px;
  color: #2A5A5C;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--bg-light);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-light);
  background: #fff;
}

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

/* --- Values --- */
.values-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 1.5rem;
}

.value-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.value-item .check {
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}

/* --- Footer --- */
footer {
  background: #4E7F82;
  color: rgba(255,255,255,0.7);
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-col h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent);
}

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

/* --- Page Header (inner pages) --- */
.page-header {
  margin-top: var(--header-height);
  background: #4E7F82;
  padding: 50px 20px;
  text-align: center;
}

.page-header h1 {
  color: #fff;
  font-size: 2.2rem;
}

.page-header p {
  color: var(--accent);
  font-style: italic;
  margin-top: 8px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .services-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  /* Hamburger */
  .hamburger {
    display: flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #4E7F82;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    gap: 2px;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 16px;
    border-radius: 4px;
  }

  .hero {
    padding: 80px 20px 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .tagline-hero {
    font-size: 1rem;
  }

  .section {
    padding: 50px 0;
  }

  .services-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 1.6rem; }
  .stats { grid-template-columns: 1fr; }
  .logo a { font-size: 1.2rem; }
}

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