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

/* ── Variables ── */
:root {
  --bg: #1E3B17;
  --bg-alt: #f0ede6;
  --text: #1a1a1a;
  --text-muted: #5f6b5f;
  --accent: #E87420;
  --accent-light: #F09040;
  --accent-green: #2D6B1F;
  --border: #dde5d8;
  --white: #ffffff;
  --nav-bg: #1E3B17;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max-w: 1140px;
  color-scheme: light;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* ── Nav ── */
nav {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(232,116,32,0.18);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nav-logo img { height: 40px; width: 40px; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-light); }
.btn-call {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 7px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  white-space: nowrap;
  touch-action: manipulation;
}
.btn-call:hover { background: var(--white); color: var(--accent); }
.btn-call:active { transform: scale(0.96); }
.btn-call:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .btn-call { transition: none; }
  .btn-call:active { transform: none; }
}

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: transparent; border: none; min-width: 40px; min-height: 40px; justify-content: center; align-items: center; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--accent); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
  border: none;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.96); }
.btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #cc6010; }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
  .nav-toggle span { transition: none; }
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #1E3B17 0%, #2D5020 50%, #1E3B17 100%);
  color: var(--white);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/photos/hero.jpg') center/cover no-repeat;
  opacity: 0.18;
}
.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-content { flex: 1; min-width: 0; order: 1; }
.hero-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  order: 2;
}
.hero-logo {
  width: clamp(180px, 22vw, 400px);
  height: clamp(180px, 22vw, 400px);
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.35));
  opacity: 0.92;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(232,116,32,0.18);
  border: 1px solid rgba(232,116,32,0.4);
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent-light); }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 480px;
  text-wrap: pretty;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-tagline { color: rgba(255,255,255,0.8); font-size: 1rem; font-weight: 500; letter-spacing: 0.02em; transition: color 0.2s; text-decoration: none; }
.hero-tagline:hover { color: var(--white); }
.hero-tagline:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* ── Services ── */
.services { background: #f0ede6; }
.services .section-header h2 { color: var(--text); }
.section-header { text-align: center; margin-bottom: 52px; }
.section-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--text);
  margin-bottom: 14px;
  text-wrap: balance;
}
.section-header p { color: var(--text-muted); max-width: 520px; margin: 0 auto; text-wrap: pretty; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 22px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-icon {
  width: 44px;
  height: 44px;
  background: rgba(45,107,31,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}
.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text);
  text-wrap: balance;
}
.service-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.55; text-wrap: pretty; }

/* ── Testimonials ── */
.testimonials { background: #f5f5f5; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.stars { color: var(--accent); font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
  text-wrap: pretty;
}
.testimonial-author { font-weight: 600; font-size: 0.875rem; color: var(--text); }

/* ── CTA Banner ── */
.cta-banner {
  background: var(--nav-bg);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}
.cta-banner p { color: rgba(255,255,255,0.7); margin-bottom: 30px; font-size: 1rem; }

/* ── Page Header ── */
.page-header {
  background: var(--nav-bg);
  color: var(--white);
  padding: 60px 0 52px;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 10px;
}
.page-header p { color: rgba(255,255,255,0.7); font-size: 1rem; }

/* ── About ── */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 18px;
}
.about-text p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.7; text-wrap: pretty; }
.about-img { border-radius: 12px; overflow: hidden; background: var(--bg-alt); min-height: 340px; display: flex; align-items: center; justify-content: center; }
.about-img img { width: 100%; height: 100%; object-fit: cover; outline: 1px solid rgba(0,0,0,0.08); outline-offset: -1px; }
.about-img-placeholder { color: var(--text-muted); font-size: 0.875rem; padding: 40px; text-align: center; }

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; outline: 1px solid rgba(0,0,0,0.08); outline-offset: -1px; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: var(--white);
  padding: 16px 14px 12px;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.gallery-empty h3 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 10px; color: var(--text); }

/* ── Contact ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 16px;
}
.contact-info p { color: var(--text-muted); margin-bottom: 28px; line-height: 1.7; }
.contact-detail { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--text-muted); font-size: 0.9rem; }
.contact-detail strong { color: var(--text); }
.btn-call-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 10px;
  transition: background 0.2s, transform 0.1s;
  touch-action: manipulation;
}
.btn-call-large:hover { background: #cc6010; }
.btn-call-large:active { transform: scale(0.96); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
}
.contact-form h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin-bottom: 24px;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent);
  background: var(--white);
  outline: none;
}
.form-group input:focus-visible, .form-group textarea:focus-visible, .form-group select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-submit { width: 100%; padding: 13px; font-size: 1rem; margin-top: 4px; }
.form-message { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius); font-size: 0.875rem; display: none; }
.form-message.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; display: block; }
.form-message.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; display: block; }

/* ── Footer ── */
footer {
  background: var(--nav-bg);
  color: rgba(255,255,255,0.55);
  padding: 40px 0;
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

/* ── Tablet ── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .about-img { order: -1; }
  .contact-layout { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Small phones (≤ 430px) ── */
@media (max-width: 430px) {
  .hero-inner { display: block; }
  .hero-logo-wrap {
    float: right;
    margin: 0 0 16px 12px;
    width: clamp(120px, 32vw, 150px);
  }
  .hero-logo { width: clamp(300px, 75vw, 350px); height: clamp(300px, 75vw, 350px); }
  .hero h1 {
    font-size: clamp(2rem, 5.5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 36px;
  }
  .hero-content { text-align: left; }
  .hero p { clear: both; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    padding: 8px 0;
    border-top: 1px solid rgba(232,116,32,0.2);
  }
  .nav-links li { border-bottom: 1px solid rgba(232,116,32,0.12); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 16px 24px; color: var(--white); font-size: 1rem; transition: background 0.2s; }
  .nav-links a:hover { background: rgba(232,116,32,0.1); }
  .nav-links a.active { color: var(--accent-light); }
  .nav-links .btn-call { margin: 12px 24px; width: calc(100% - 48px); text-align: center; border-color: var(--white); background: var(--accent); color: var(--white); border: none; }
  .nav-toggle { display: flex; }
  nav { position: relative; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-inner { display: block; }
  .hero-logo-wrap {
    float: right;
    display: block;
    margin: 0 0 12px 16px;
  }
  .hero-logo { width: clamp(130px, 34vw, 180px); height: clamp(130px, 34vw, 180px); }
  .hero-content { text-align: left; }
  .hero p { max-width: 100%; }
  .hero-inner::after { content: ''; display: block; clear: both; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { text-align: center; }
}

/* ── Large desktop (1400px+) ── */
@media (min-width: 1400px) {
  :root { --max-w: 1320px; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ── Ultrawide (1920px+) ── */
@media (min-width: 1920px) {
  :root { --max-w: 1600px; }
  body { font-size: 17px; }
  .nav-inner { height: 76px; }
  .nav-logo { font-size: 1.4rem; }
  .nav-logo img { height: 48px; width: 48px; }
  .nav-links { gap: 40px; }
  .nav-links a { font-size: 0.95rem; }
  section { padding: 100px 0; }
  .hero { padding: 130px 0 120px; }
  .gallery-grid { grid-template-columns: repeat(5, 1fr); }
  .services-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; }
}
