/* ==========================================================================
   Hammer Landscape — styles.css
   Colors: primary #1B4332 | accent #D4A017 | bg #F8F5F0 | text #1A1A1A
   ========================================================================== */

:root {
  --primary: #1B4332;
  --accent: #D4A017;
  --bg: #F8F5F0;
  --text: #1A1A1A;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

h1 { font-size: 56px; }
h2 { font-size: 40px; }
h3 { font-size: 28px; }

p { margin-bottom: 1rem; }

a {
  text-decoration: none;
  color: inherit;
}

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
  color: var(--text);
  font-size: 18px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.nav-logo img {
  height: 60px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-cta {
  background-color: var(--accent);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background-color: var(--white);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--primary);
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 32px;
}

.hero-content .btn-group {
  justify-content: center;
}

.page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--primary);
  opacity: 0.65;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.page-hero-content h1 {
  color: var(--white);
}

.page-hero-content p {
  font-size: 18px;
  max-width: 600px;
  margin: 16px auto 0;
}

/* ==========================================================================
   Cards / Grids
   ========================================================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 32px 24px;
  border-top: 4px solid var(--accent);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  color: var(--accent);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  margin-bottom: 0;
  font-size: 15px;
}

.services-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
}

.service-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-body h3 {
  margin-bottom: 12px;
}

.service-card-body p {
  flex: 1;
  font-size: 15px;
}

.service-card-body .btn {
  align-self: flex-start;
  margin-top: 12px;
}

/* ==========================================================================
   Why choose us / feature columns
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--accent);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-item h3 {
  margin-bottom: 12px;
}

/* ==========================================================================
   Stats
   ========================================================================== */

.stats-section {
  background-color: var(--primary);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--white);
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonials-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.stars {
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary);
}

.testimonial-role {
  font-size: 14px;
  color: rgba(26, 26, 26, 0.65);
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background-color: var(--accent);
  padding: 80px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--text);
  margin-bottom: 12px;
}

.cta-band p {
  color: var(--text);
  font-size: 18px;
  margin-bottom: 28px;
}

.cta-band .btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.cta-band .btn-primary:hover {
  background-color: var(--text);
  border-color: var(--text);
}

/* ==========================================================================
   Two-column content blocks
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split img {
  border-radius: 8px;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.split-reverse {
  direction: rtl;
}

.split-reverse > * {
  direction: ltr;
}

/* ==========================================================================
   About page
   ========================================================================== */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ==========================================================================
   Residential / Commercial extras
   ========================================================================== */

.included-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.included-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
}

.included-list li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2l-3.5-3.5-1.4 1.4L9 19 20 8l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2l-3.5-3.5-1.4 1.4L9 19 20 8l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.pricing-note {
  background-color: var(--white);
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.serve-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  grid-auto-flow: dense;
  gap: 20px;
}

.gallery-grid .gallery-item:nth-child(5n+1) {
  grid-row: span 2;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(27, 67, 50, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-overlay span {
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid var(--accent);
  padding: 8px 18px;
  border-radius: 6px;
}

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

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

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
}

.contact-form {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 40px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(27, 67, 50, 0.25);
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  background-color: var(--bg);
  color: var(--text);
  transition: border-color var(--transition);
}

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

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

.contact-form .btn-primary {
  width: 100%;
  border: none;
}

.contact-info-block {
  margin-bottom: 32px;
}

.contact-info-block h3 {
  margin-bottom: 16px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 16px;
}

.contact-info-item .info-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-info-item .info-icon svg {
  width: 100%;
  height: 100%;
}

.map-frame {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 8px;
}

/* Modal */

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background-color: var(--white);
  border-radius: 8px;
  padding: 44px;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.modal-box h3 {
  margin-bottom: 16px;
}

.modal-box p {
  margin-bottom: 28px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 72px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand img {
  height: 50px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 220px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 17px;
  margin-bottom: 20px;
}

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

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  transition: color var(--transition);
}

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

.footer-col p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Scroll to top
   ========================================================================== */

.to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--text);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 900;
  box-shadow: var(--shadow);
}

.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   Fade in on scroll
   ========================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive — 768px breakpoint
   ========================================================================== */

@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }

  section { padding: 56px 0; }

  .nav-menu {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background-color: var(--primary);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .nav-menu.open {
    max-height: 500px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 0;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links a.active,
  .nav-links a:hover {
    border-bottom-color: var(--accent);
  }

  .nav-cta {
    display: block;
    text-align: center;
    margin: 16px 24px 24px;
  }

  .hamburger {
    display: flex;
  }

  .cards-grid,
  .services-grid-3x2,
  .feature-grid,
  .stats-grid,
  .testimonials-grid,
  .testimonials-grid.cols-2,
  .values-grid,
  .serve-grid,
  .included-list,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .split,
  .split-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .split img {
    height: 280px;
    order: -1;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: left;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .gallery-grid .gallery-item:nth-child(5n+1) {
    grid-row: span 1;
  }

  .hero-content .btn-group,
  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
