:root {
  --navy: #181D2E;
  --navy-soft: #2B3348;
  --ink: #1c2130;
  --paper: #F7F9FB;
  --surface: #FFFFFF;
  --line: #E3E8EE;
  --slate: #5B6472;
  --blue: #005992;
  --blue-dark: #00456F;
  --green: #A1C436;
  --amber: #f4c430;

  --font-display: "Montserrat", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --shadow-chat: 0 24px 60px -20px rgba(18, 24, 43, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; margin: 0 0 0.5em; letter-spacing: 0.2px; }
p { line-height: 1.6; color: var(--slate); margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-soft); }
.btn-accent { background: var(--blue); color: #fff; }
.btn-accent:hover { background: var(--blue-dark); }
.btn-ghost-dark { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-small { padding: 9px 18px; font-size: 14px; }

/* ============ Header (floating glass pill) ============ */
.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}
.header-pill {
  width: 100%;
  max-width: 1080px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
  padding: 0 10px 0 22px;
  border-radius: 999px;
  background: rgba(24, 29, 46, 0.6);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px -18px rgba(4, 14, 32, 0.55);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled .header-pill {
  background: rgba(24, 29, 46, 0.86);
  box-shadow: 0 20px 44px -16px rgba(4, 14, 32, 0.65);
}
.brand-logo { height: 20px; width: auto; }
.main-nav { display: flex; gap: 26px; margin-left: 8px; }
.main-nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  font-size: 14.5px;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: #fff; }
.header-pill .btn { margin-left: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  max-width: 1080px;
  margin-top: 10px;
  padding: 10px 18px 18px;
  border-radius: 20px;
  background: rgba(24, 29, 46, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px -18px rgba(4, 14, 32, 0.55);
}
.mobile-nav a {
  padding: 13px 6px;
  text-decoration: none;
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav .btn { margin-top: 12px; justify-content: center; border-bottom: none; }

@media (max-width: 860px) {
  .main-nav, .header-pill > .btn-small { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.open { display: flex; }
  .header-pill { padding: 0 8px 0 18px; }
}
@media (max-width: 480px) {
  .site-header { top: 12px; padding: 0 14px; }
  .brand-logo { height: 17px; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding: 150px 0 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24,29,46,0.55) 0%, rgba(24,29,46,0.45) 40%, rgba(24,29,46,0.92) 88%, rgba(24,29,46,1) 100%);
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: center; max-width: 720px; margin: 0 auto; }
.hero h1 {
  color: #fff;
  font-size: clamp(36px, 5.2vw, 58px);
  max-width: 16ch;
  margin-bottom: 18px;
}
.hero-sub {
  color: #E4E8EF;
  font-size: 18px;
  max-width: 52ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin: 0 0 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.16);
  width: 100%;
  max-width: 480px;
}
.hero-stats > div { display: flex; flex-direction: column; align-items: center; }
.hero-stats dt { font-family: var(--font-display); font-size: 26px; color: #fff; font-weight: 600; }
.hero-stats dd { margin: 2px 0 0; color: #9AA5B5; font-size: 12.5px; }

/* Pill buttons */
.btn-pill { border-radius: 999px; padding: 14px 28px; }

/* Chat card — floats like a product preview, overlapping the hero bottom edge */
.hero-chat { scroll-margin-top: 100px; position: relative; z-index: 3; margin-bottom: -110px; }
.chat-card {
  background: var(--surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-chat);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 460px;
  max-width: 90vw;
  margin: 0 auto;
}
.chat-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.chat-title { margin: 0; font-weight: 600; font-size: 15px; }
.chat-status { margin: 2px 0 0; font-size: 12.5px; color: var(--slate); display: flex; align-items: center; gap: 6px; }
.chat-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }

.chat-messages {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--paper);
}
.msg {
  padding: 11px 14px;
  border-radius: var(--radius-m);
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 88%;
}
.msg-bot {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}
.msg-user {
  background: var(--navy);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}
.msg-typing { display: flex; gap: 4px; align-items: center; padding: 13px 16px; }
.msg-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--slate); opacity: 0.5;
  animation: blink 1.2s infinite ease-in-out;
}
.msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.msg-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 0.9; } }

.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-input-row input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 11px 14px;
  font-size: 14.5px;
  font-family: var(--font-body);
  background: var(--paper);
}
.chat-input-row input:focus { border-color: var(--blue); outline: none; }
.chat-input-row button {
  width: 42px;
  border: none;
  border-radius: var(--radius-s);
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.chat-input-row button:hover { background: var(--blue-dark); }
.chat-input-row button:disabled { opacity: 0.5; cursor: default; }
.chat-hint { font-size: 12px; color: var(--slate); padding: 0 20px 16px; margin: 0; background: #fff; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .chat-card { max-width: none; margin-left: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ Sections ============ */
.section { padding: 88px 0; }
.section-first { padding-top: 168px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 56ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); }
.section-head p { font-size: 16px; }

/* Services */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card-photo {
  grid-column: 1 / -1;
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  height: 320px;
  isolation: isolate;
}
.service-card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card-photo:hover img { transform: scale(1.04); }
.service-card-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  background: linear-gradient(0deg, rgba(24,29,46,0.92) 0%, rgba(24,29,46,0.55) 45%, rgba(24,29,46,0.05) 80%);
}
.service-card-photo-overlay h3 { color: #fff; font-size: 24px; margin-bottom: 6px; }
.service-card-photo-overlay p { color: #D7DEE8; max-width: 46ch; margin: 0; }

.service-card {
  background: var(--surface);
  border-radius: var(--radius-l);
  padding: 30px 26px;
  box-shadow: 0 10px 28px -18px rgba(24, 29, 46, 0.25);
  border: 1px solid var(--line);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 36px -18px rgba(24, 29, 46, 0.35);
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 130%);
  margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; margin: 0; }

@media (max-width: 980px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card-photo { height: 260px; }
}
@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
}

/* Plants */
.plants-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.plant-card {
  background: var(--surface);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: 0 14px 34px -20px rgba(24, 29, 46, 0.3);
  border: 1px solid var(--line);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.plant-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 40px -18px rgba(24, 29, 46, 0.38);
}
.plant-map, .plant-photo { height: 210px; overflow: hidden; background: #e7edf3; position: relative; }
.plant-map::after, .plant-photo::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}
.plant-map svg { width: 100%; height: 100%; }
.plant-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.plant-card:hover .plant-photo img { transform: scale(1.05); }
.plant-body { padding: 26px 26px 30px; }
.plant-body h3 { font-size: 20px; margin-bottom: 2px; }
.plant-loc { color: var(--blue-dark); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 10px; }
.plant-body p:last-child { margin-bottom: 0; font-size: 14.5px; }

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

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.about-copy h2 { font-size: clamp(26px, 3vw, 32px); max-width: 18ch; }
.about-graphic { justify-self: center; width: 100%; max-width: 340px; border-radius: var(--radius-l); overflow: hidden; box-shadow: 0 20px 44px -18px rgba(24, 29, 46, 0.35); }
.about-graphic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }

@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-graphic { order: -1; max-width: 260px; }
}

/* Contact */
.contact { background: var(--navy); }
.contact h2 { color: #fff; font-size: clamp(26px, 3vw, 32px); }
.contact p { color: #B7C0CE; max-width: 46ch; }
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: #fff; }
.contact-list a { text-decoration: none; font-weight: 500; font-size: 16px; }
.contact-list a:hover { color: var(--amber); }
.contact-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  padding: 16px 26px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-s);
  flex-shrink: 0;
}
.contact-cta:hover { border-color: var(--amber); color: var(--amber); }

/* Footer */
.site-footer { background: var(--navy-soft); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-logo { height: 22px; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-inner p { margin: 0; color: #8993A4; font-size: 13.5px; }
.footer-intranet-link { margin-left: auto; color: #8993A4; font-size: 13px; text-decoration: none; border-bottom: 1px solid transparent; }
.footer-intranet-link:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.4); }
