/* ============================================================
   Aqar Landscape — design tokens & global styles
   Palette keyed to the brand logo: palm-leaf garden green,
   water-ripple teal, gold-ripple sand, on warm paper.
   ============================================================ */

:root {
  /* color tokens (from CLAUDE-DESIGN palette) */
  --bg: #FBFAF6;
  --surface: #FFFFFF;
  --text: #1E2A22;
  --muted: #5C6B60;
  --primary: #2C6E3A;
  --primary-dark: #235730;
  --primary-soft: #EAF1EA;
  --secondary: #1A8EA3;
  --secondary-soft: #E5F1F3;
  --accent: #C5A24C;
  --border: #E7E4D8;
  --focus: #2C6E3A;

  /* type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* layout */
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 56px);
  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 12px;

  /* shadows — soft, premium */
  --shadow-sm: 0 1px 2px rgba(30, 42, 34, 0.05), 0 2px 8px rgba(30, 42, 34, 0.04);
  --shadow: 0 6px 24px rgba(30, 42, 34, 0.08), 0 2px 6px rgba(30, 42, 34, 0.05);
  --shadow-lg: 0 22px 60px rgba(30, 42, 34, 0.16), 0 6px 18px rgba(30, 42, 34, 0.08);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button { font-family: inherit; cursor: pointer; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0;
  font-optical-sizing: auto;
}

p { margin: 0; text-wrap: pretty; }

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-block: clamp(56px, 9vw, 116px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }

.display-xl { font-size: clamp(2.55rem, 6vw, 4.5rem); }
.display-lg { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.display-md { font-size: clamp(1.7rem, 3vw, 2.5rem); }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  color: var(--muted);
  line-height: 1.55;
  max-width: 62ch;
}

.section-head { max-width: 720px; }
.section-head .lede { margin-top: 16px; }
.section-head h2 { margin-top: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.005em;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  min-height: 50px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(44, 110, 58, 0.28);
}
.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(44, 110, 58, 0.34);
}
.btn--wa {
  background: #1FAF54;
  color: #fff;
  box-shadow: 0 8px 22px rgba(31, 175, 84, 0.28);
}
.btn--wa:hover { background: #1a9a49; transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.btn--light {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
}
.btn--light:hover { background: rgba(255,255,255,0.24); transform: translateY(-2px); }

.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
}
.link-arrow svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- chips / tags ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}
.chip--teal { background: var(--secondary-soft); color: #126374; border-color: transparent; }
.chip--green { background: var(--primary-soft); color: var(--primary-dark); border-color: transparent; }

/* ---------- generic card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- scrims for text-over-image ---------- */
.scrim-b {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16,28,20,0.82) 0%, rgba(16,28,20,0.42) 38%, rgba(16,28,20,0.06) 72%, transparent 100%);
}
.scrim-full {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(14,26,18,0.78) 0%, rgba(14,26,18,0.52) 46%, rgba(14,26,18,0.18) 100%);
}

/* ---------- utility ---------- */
.center { text-align: center; }
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 26px; }
.mt-l { margin-top: 42px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row--center { justify-content: center; }

#app { min-height: 100vh; display: flex; flex-direction: column; }
.page { flex: 1; }

/* page-enter animation on route change */
.page-anim { animation: pageIn 0.5s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
