@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;700&display=swap');

:root {
  /* Colors - Adapted for SMRN Construction */
  --primary: #222222; /* Charcoal */
  --primary-hover: #333333;
  --secondary: #da8e35; /* Accent Gold/Orange */
  --secondary-hover: #c47c29;
  --warm-wood: #8B5A2B;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #eaeaea;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 5rem 2rem;
  --container-max-width: 1200px;
  
  /* Radii & Shadows */
  --radius-md: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.4s ease-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

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

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center { text-align: center; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.section-subtitle { font-size: 1.125rem; color: var(--text-light); max-width: 800px; margin: 0 auto 3rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn-primary {
  background-color: var(--secondary);
  color: #fff;
}

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

.btn-secondary {
  background-color: var(--primary);
  color: #fff;
}

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

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

.btn-outline:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 1000;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.logo img {
  height: 80px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: 500;
}

.nav-links a:not(.btn) {
  color: var(--primary);
}

.nav-links a:not(.btn):hover {
  color: var(--secondary);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--bg-white);
  min-width: 250px;
  box-shadow: var(--shadow-md);
  z-index: 1;
  top: 100%;
  left: 0;
  border-top: 2px solid var(--secondary);
}

.dropdown-content a {
  padding: 12px 16px;
  display: block;
}

.dropdown-content a:hover {
  background-color: var(--bg-light);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-md);
    align-items: flex-start;
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger { display: block; }
  .header-cta { display: none; }
  .nav-left { gap: 1rem; }
}

/* Animations (Intersection Observer) */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  visibility: hidden;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  will-change: opacity, visibility;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

/* Hero Section */
.hero {
  background-color: var(--primary);
  padding: 6rem 2rem;
  color: #fff;
  text-align: center;
  position: relative;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: rgba(255,255,255,0.9);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Zigzag Sections */
.zigzag-section { padding: var(--section-padding); }
.zigzag-section:nth-child(even) { background: var(--bg-white); }
.zigzag-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.zigzag-img { border-radius: var(--radius-md); width: 100%; object-fit: cover; box-shadow: var(--shadow-lg); }
.zigzag-title { font-size: 2.5rem; margin-bottom: 1rem; }
.zigzag-text { color: var(--text-light); line-height: 1.8; margin-bottom: 1.5rem; font-size: 1.1rem; }

.checklist { margin: 1.5rem 0 2rem; }
.checklist li { padding: 0.5rem 0 0.5rem 2rem; position: relative; color: var(--text-dark); font-weight: 500; }
.checklist li::before { content: "✓"; color: var(--secondary); position: absolute; left: 0; font-weight: 700; font-size: 1.2rem; }

@media(max-width:900px){
  .zigzag-row { grid-template-columns: 1fr; gap: 2rem; }
}

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}
.service-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.service-content {
  padding: 2rem;
}
.service-content h3 { margin-bottom: 0.5rem; }
.service-content p { color: var(--text-light); margin-bottom: 1rem; }

/* Footer */
footer {
  background-color: var(--primary);
  color: #fff;
  padding: 4rem 0 0 0;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h3, .footer-grid h4 { color: #fff; margin-bottom: 1rem; }
.footer-grid h4 { color: var(--secondary); }
.footer-grid p { color: #ccc; }
.footer-grid ul li { margin-bottom: 0.5rem; }
.footer-grid ul li a { color: #ccc; }
.footer-grid ul li a:hover { color: var(--secondary); }
.footer-bottom { border-top: 1px solid #333; padding: 1.5rem 0; text-align: center; color: #888; font-size: 0.875rem; }

.footer-logo {
  height: 60px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}
