/* ===== CSS Variables & Reset ===== */
:root {
  --primary: #4a6741;
  --primary-light: #6b8f5e;
  --accent: #5b89b0;
  --accent-hover: #4a7899;
  --text: #3a3a3a;
  --text-light: #777;
  --bg: #f8f7f2;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.10);
  --radius: 12px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

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

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

/* ===== Phone Banner (sticky top bar) ===== */
.phone-banner {
  background: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.phone-banner a {
  color: var(--white);
  font-weight: 700;
}

.phone-banner a:hover {
  text-decoration: underline;
}

/* ===== Navigation ===== */
.navbar {
  background: var(--white);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

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

.nav-logo {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
  padding: 0.5rem 0;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-phone {
  color: var(--accent) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
}

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: 6px;
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: var(--accent-hover);
}

.nav-cta::after {
  display: none !important;
}

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

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('images/62-palmer.png') center/cover no-repeat;
  animation: heroZoomPan 20s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44,62,40,0.65) 0%, rgba(60,85,52,0.55) 100%);
}

@keyframes heroZoomPan {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.1) translate(-1%, -1%);
  }
  100% {
    transform: scale(1.05) translate(1%, 0);
  }
}

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

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.4);
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.2rem;
  opacity: 1;
  margin-bottom: 2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.3);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(91,137,176,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-phone {
  margin-top: 2rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.hero-phone a {
  color: var(--accent);
}

/* ===== Section Styling ===== */
.section {
  padding: 5rem 2rem;
}

.section-dark {
  background: #eef2ec;
  color: var(--text);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.section-dark .section-header h2 {
  color: var(--primary);
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header p {
  color: var(--text-light);
}

.accent-line {
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 1rem auto;
  border-radius: 2px;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

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

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

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

/* ===== Project Gallery ===== */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  background: var(--white);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card .card-img {
  overflow: hidden;
}

.project-card--contain .card-img {
  background: #f0f0f0;
}

.project-card--contain img {
  object-fit: contain;
  object-position: center;
}

.project-card figcaption {
  padding: 1.2rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  text-align: left;
}

/* ===== Why Choose Us ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 2rem 1.5rem;
}

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

.feature-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--primary);
}

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

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.testimonial-card .stars {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--primary);
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, #eef2ec 0%, #dde6d9 100%);
  color: var(--text);
  text-align: center;
  padding: 4rem 2rem;
}

.cta-banner h2 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-phone {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: 1.5rem;
}

/* ===== Contact / Form ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-detail h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: var(--primary);
}

.contact-detail p,
.contact-detail a {
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-detail a:hover {
  color: var(--accent);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--bg);
}

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

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

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(91,137,176,0.4);
}

/* ===== Footer ===== */
.footer {
  background: #f0ede6;
  color: var(--text);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.footer p,
.footer a {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

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

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-phone {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent) !important;
  display: block;
  margin-top: 0.5rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

/* ===== Page Headers (sub-pages) ===== */
.page-header {
  background: linear-gradient(135deg, #eef2ec 0%, #dde6d9 100%);
  color: var(--text);
  padding: 4rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.75;
  color: var(--text-light);
}

/* ===== About Page ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

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

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Thank You Page ===== */
.thank-you-content {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.thank-you-content .checkmark {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.thank-you-content h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.thank-you-content p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ===== Floating Phone Button (Mobile) ===== */
.floating-phone {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(91,137,176,0.5);
  z-index: 999;
  transition: all var(--transition);
}

.floating-phone:hover {
  transform: scale(1.1);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 2rem 2rem;
    gap: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }

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

  .hero {
    padding: 4rem 1.5rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  .floating-phone {
    display: flex;
  }

  .navbar {
    position: relative;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}
