/* Harvela Ltd — brand stylesheet
   Palette taken directly from the company logo. */

:root {
  --green-dark: #0e2a1f;
  --green: #173f2e;
  --gold: #d4af37;
  --gold-light: #e8ce7a;
  --cream: #f7f3e8;
  --cream-deep: #efe8d4;
  --ink: #1c1c1c;
  --muted: #6b6455;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(14, 42, 31, 0.08);
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

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

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--gold); }

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

h1, h2, h3, h4 {
  font-family: inherit;
  color: var(--green-dark);
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 16px; color: var(--ink); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--green-dark);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 65ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

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

.btn-gold {
  background: var(--gold);
  color: var(--green-dark);
}
.btn-gold:hover { background: var(--gold-light); color: var(--green-dark); }

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

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 44px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--green-dark);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--green-dark);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green-dark);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--cream);
  padding: 72px 0 88px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero .lede { color: var(--gold-light); max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-art {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 175, 55, 0.35);
}
.hero-carousel { position: relative; aspect-ratio: 4 / 3; }
.hero-carousel .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-carousel .hero-slide.is-top { object-position: top; }
.hero-carousel .hero-slide.is-active { opacity: 1; }
.hero-carousel .hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-carousel .hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0;
  cursor: pointer;
}
.hero-carousel .hero-dot.is-active { background: var(--gold); }

.trust-strip {
  background: var(--green-dark);
  color: var(--gold-light);
  padding: 14px 0;
  font-size: 0.85rem;
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  justify-content: center;
  text-align: center;
}
.trust-strip strong { color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-header { max-width: 70ch; margin-bottom: 40px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-deep); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img.card-img-portrait { aspect-ratio: 3 / 4; }
.card-img.card-img-wide { aspect-ratio: 3 / 2; }
.card-body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: 0.95rem; }
.card-body .btn { margin-top: auto; align-self: flex-start; }

.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, var(--cream-deep), var(--cream-deep) 10px, var(--cream) 10px, var(--cream) 20px);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

/* ---------- Status badges ---------- */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
}
.badge-held { background: var(--gold); color: var(--green-dark); }
.badge-progress { background: var(--gold-light); color: var(--green-dark); }
.badge-planned { background: var(--cream-deep); color: var(--muted); }

/* ---------- Organic highlight (homepage heading only) ---------- */
.organic-word {
  background: var(--gold-light);
  color: var(--green-dark);
  padding: 0 6px;
  border-radius: 4px;
  font-weight: 700;
}

/* ---------- Tables ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 18px 0 8px; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--cream-deep);
}
.spec-table th { width: 38%; color: var(--muted); font-weight: 600; }

.cert-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.cert-table th, .cert-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--cream-deep);
  font-size: 0.95rem;
}
.cert-table th { color: var(--green-dark); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* ---------- Team ---------- */
.team-card { text-align: center; padding: 30px 20px; }
.team-photo {
  width: 132px; height: 132px; border-radius: 50%;
  overflow: hidden; margin: 0 auto 18px;
  border: 3px solid var(--gold);
  background: var(--cream-deep);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo.placeholder { display: flex; align-items: center; justify-content: center; }
.team-role { color: var(--gold); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
label { font-size: 0.85rem; font-weight: 600; color: var(--green-dark); }
input, select, textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--cream-deep);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}
textarea { resize: vertical; min-height: 120px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-status {
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: #e6f3ea; color: var(--green-dark); border: 1px solid #b9dfc4; }
.form-status.error { background: #fbe9e7; color: #8a2c1f; border: 1px solid #f0bcb2; }

/* ---------- Contact info blocks ---------- */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 12px; margin-bottom: 16px; }
.info-list .icon {
  width: 36px; height: 36px; border-radius: 50%; background: var(--green-dark); color: var(--gold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: var(--cream);
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.site-footer h4 { color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.site-footer a { color: var(--cream); opacity: 0.85; }
.site-footer a:hover { color: var(--gold); opacity: 1; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-brand p { color: var(--gold-light); font-size: 0.9rem; max-width: 40ch; }
.footer-bottom {
  border-top: 1px solid rgba(247, 243, 232, 0.15);
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(247, 243, 232, 0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--green-dark);
  color: var(--cream);
  padding: 54px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: var(--gold-light); max-width: 60ch; margin: 0 auto; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-muted { color: var(--muted); }
.note-box {
  background: var(--cream-deep);
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--green-dark);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; }
  .site-header.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 3px solid var(--gold);
    padding: 12px 24px 20px;
  }
  .site-header.nav-open .main-nav ul { flex-direction: column; gap: 6px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
