/* ── Reset & base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:   #8b674d;
  --green:        #788f75;
  --green-light:  #95a483;
  --green-pale:   #eef1ed;
  --earth:        #b89470;
  --white:        #ffffff;
  --grey-light:   #f5f0eb;
  --grey:         #7a6e66;
  --text:         #1a1209;
  --radius:       8px;
  --shadow:       0 4px 20px rgba(0,0,0,.12);
  --transition:   .25s ease;
  --max-width:    1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--green-dark); }

.btn-ghost {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border-color: rgba(255,255,255,.6);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,.30); }

.btn-full { width: 100%; text-align: center; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}
.logo-img {
  height: 66px;
  width: 66px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle closest-side at center, var(--white) calc(100% - 1px), transparent 0);
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.logo-text {
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: normal;
}

.footer-logo {
  height: 58px;
  width: 58px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle closest-side at center, var(--white) calc(100% - 1px), transparent 0);
  opacity: .9;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav a {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  transition: color var(--transition);
}
.nav a:hover { color: var(--white); }

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

/* ── Flash messages ──────────────────────────────────────────────────────── */
.flash-container { padding: .75rem 0; }
.flash {
  max-width: var(--max-width);
  margin: 0 auto .5rem;
  padding: .85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
}
.flash--success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.flash--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 4664 / 3240;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero > picture {
  position: absolute;
  inset: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(1px);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 1.5rem;
  max-width: 760px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 2rem;
  max-width: 560px;
}

.rotating-text {
  cursor: pointer;
  transition: opacity 0.4s ease;
}

.rotating-text.fade-out {
  opacity: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}


/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section--alt { background: var(--green-pale); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: .75rem;
}

.section-sub {
  color: var(--grey);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--green);
}

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

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

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: .5rem;
}

.service-card p { color: var(--grey); font-size: .95rem; }

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

.about-text p { color: var(--grey); margin-bottom: 1rem; }
.about-text .btn { margin-top: .5rem; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

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

.stat-label {
  display: block;
  font-size: .85rem;
  color: var(--grey);
  margin-top: .25rem;
  font-weight: 500;
}

/* ── References ─────────────────────────────────────────────────────────── */
.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.reference-card {
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition);
}

.reference-card:hover { transform: translateY(-4px); }

.reference-placeholder {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.reference-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: .5rem;
}

.reference-card p { color: var(--grey); font-size: .9rem; }

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

.contact-info p { color: var(--grey); margin-bottom: 1.5rem; }

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.contact-list li { display: flex; align-items: center; gap: .5rem; color: var(--text); }
.contact-list a { color: var(--green); }
.contact-list a:hover { text-decoration: underline; }

/* ── Form ───────────────────────────────────────────────────────────────── */
.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
  outline: 2px solid transparent;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(120,143,117,.15);
}

/* ── Legal pages ────────────────────────────────────────────────────────── */
.legal-page {
  padding: 4rem 0 5rem;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 2rem 0 .5rem;
}

.legal-page p,
.legal-page li {
  color: var(--grey);
  margin-bottom: .75rem;
  line-height: 1.75;
}

.legal-page ul,
.legal-page ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page a { color: var(--green); }
.legal-page a:hover { text-decoration: underline; }

.legal-placeholder {
  background: #fef9c3;
  border: 1.5px dashed #ca8a04;
  border-radius: var(--radius);
  padding: .4rem .75rem;
  display: inline-block;
  color: #92400e;
  font-weight: 600;
  font-size: .85rem;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.8);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  text-align: center;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.footer-copy { font-size: .875rem; }

.footer-nav {
  display: flex;
  gap: 1.5rem;
  font-size: .875rem;
}

.footer-nav a { color: rgba(255,255,255,.7); transition: color var(--transition); }
.footer-nav a:hover { color: var(--white); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--green-dark);
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
  }
  .nav--open { display: flex; }
  .nav-toggle { display: block; }

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

  .about-stats { grid-template-columns: repeat(3, 1fr); }

  .hero-content { padding: 2.5rem 1.5rem; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; }
}
