:root {
  --primary: #1a365d;
  --primary-dark: #0f2744;
  --accent: #c9a227;
  --text: #2d3748;
  --text-light: #4a5568;
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --border: #e2e8f0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 10px rgba(0,0,0,0.08);
  z-index: 1000;
  transition: background 0.3s;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

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

.logo-light { display: none; }
.logo-dark { display: block; }

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a.active {
  color: var(--primary);
  font-weight: 700;
}

/* Page heroes (for subpages) */
.page-hero {
  height: 40vh;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-top: 70px;
  display: flex;
  align-items: flex-end;
}

.page-hero-overlay {
  background: linear-gradient(to top, rgba(26,54,93,0.85), rgba(26,54,93,0.3));
  width: 100%;
  padding: 40px 0 30px;
}

.page-hero h1 {
  color: white;
  font-size: 2.6rem;
  margin-bottom: 0.3rem;
}

.page-hero p {
  color: #e2e8f0;
  font-size: 1.15rem;
}

@media (max-width: 768px) {
  .page-hero { height: 35vh; min-height: 220px; }
  .page-hero h1 { font-size: 2rem; }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* Hero */
.hero {
  height: 100vh;
  min-height: 500px;
  background: url('images/drystonewall.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 70px;
}

.hero-overlay {
  background: linear-gradient(to right, rgba(26,54,93,0.75), rgba(26,54,93,0.4));
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero h1 {
  color: white;
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.tagline {
  color: #e2e8f0;
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}

.phone {
  display: inline-block;
  color: white;
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
}

.btn:hover { background: var(--primary-dark); }

.btn-primary { background: var(--accent); color: #1a1a1a; }
.btn-primary:hover { background: #b89220; }

/* Sections */
section { padding: 80px 0; }

.intro { background: var(--bg-alt); text-align: center; }
.intro h2, .services h2, .content-section h2, .contact h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
}
.intro p { max-width: 800px; margin: 0 auto; font-size: 1.1rem; color: var(--text-light); }

.services { background: white; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.services-grid.three { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.service-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-card h3 { margin: 16px 0 8px; color: var(--primary); }
.service-card p { padding: 0 20px 16px; color: var(--text-light); font-size: 0.95rem; }
.service-card .link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

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

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 30px;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.two-col h3 { color: var(--primary); margin: 1.2rem 0 0.5rem; }
.two-col p { margin-bottom: 1rem; color: var(--text-light); }

.rounded { border-radius: 12px; width: 100%; height: auto; object-fit: cover; }

.contact { background: white; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 20px;
}

.contact h3 { color: var(--primary); margin-bottom: 1rem; }
.contact a { color: var(--primary); font-weight: 600; text-decoration: none; }
.contact a:hover { text-decoration: underline; }

.map-placeholder img { margin-top: 20px; max-height: 300px; object-fit: cover; width: 100%; }

footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 40px 20px;
}

footer p { margin: 6px 0; opacity: 0.9; }

/* Responsive */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 2.4rem; }
  .phone { font-size: 1.6rem; }
  .two-col, .two-col.reverse, .contact-grid { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
  section { padding: 60px 0; }
}
