/* Biotope-Studio — Global Styles */

:root {
  --orange: #E8622A;
  --orange-hover: #d8531b;
  --cream: #FAF3EC;
  --cream-2: #f4eadb;
  --forest: #1C2B1A;
  --forest-2: #243824;
  --ink: #1C1C1C;
  --green: #4A6741;
  --green-2: #3a5333;
  --muted: #5b5b5b;
  --line: rgba(28, 43, 26, 0.12);

  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1240px;
  --shadow-sm: 0 1px 2px rgba(28, 43, 26, 0.06), 0 1px 3px rgba(28, 43, 26, 0.04);
  --shadow-md: 0 8px 24px rgba(28, 43, 26, 0.08);
  --shadow-lg: 0 20px 50px rgba(28, 43, 26, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.15; }
h3 { font-size: 1.5rem; line-height: 1.25; }
h4 { font-size: 1.15rem; line-height: 1.3; }

p { margin: 0 0 1.1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

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

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

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow.on-dark { color: #c7d4b9; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.97rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1.5px solid transparent;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(232, 98, 42, 0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(28, 43, 26, 0.25);
}
.btn-ghost.on-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover {
  background: rgba(28, 43, 26, 0.06);
  border-color: rgba(28, 43, 26, 0.5);
}
.btn-ghost.on-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.btn-arrow {
  transition: transform 0.25s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Section utilities */
section { position: relative; }

.section-pad {
  padding: 120px 0;
}
.section-pad-sm {
  padding: 80px 0;
}

.bg-cream { background: var(--cream); }
.bg-cream-2 { background: var(--cream-2); }
.bg-forest { background: var(--forest); color: #f3eee5; }
.bg-forest h1, .bg-forest h2, .bg-forest h3 { color: #fff; }

/* Wavy divider */
.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
}

/* Cards / icon cards */
.icon-card {
  background: #fff;
  border-radius: 18px;
  padding: 38px 32px;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}
.icon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(74, 103, 65, 0.3);
}
.icon-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--cream-2);
  display: grid;
  place-items: center;
  color: var(--green);
  margin-bottom: 6px;
}
.icon-card h3 {
  font-size: 1.35rem;
  margin: 0;
}
.icon-card p {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
  line-height: 1.65;
}
.icon-card .more {
  color: var(--green);
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  transition: color 0.2s ease;
}
.icon-card:hover .more { color: var(--orange); }
.icon-card .more .arr { transition: transform 0.25s ease; }
.icon-card:hover .more .arr { transform: translateX(4px); }

/* Project cards */
.project-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.project-card .img {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #d8d5cb;
  filter: saturate(0.92) contrast(1.02) brightness(0.97);
  transition: filter 0.4s ease, transform 0.4s ease;
  position: relative;
}
.project-card:hover .img {
  filter: saturate(1.05) contrast(1.04) brightness(1);
}
.project-card .body {
  padding: 28px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.project-card .meta {
  display: flex;
  gap: 14px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
}
.project-card h3 { font-size: 1.5rem; line-height: 1.25; color: var(--ink); margin: 0; }
.project-card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 43, 26, 0.55) 0%, rgba(28, 43, 26, 0.7) 100%);
  z-index: -1;
}
.hero h1 { color: #fff; }
.hero .hero-inner {
  max-width: 880px;
  padding: 140px 32px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.hero .subtext {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
  margin: 0;
}
.hero .cta-row {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero .scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: floaty 2.4s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Slim hero (interior pages) */
.hero-slim {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  padding: 140px 32px 80px;
}
.hero-slim .bg {
  position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2;
}
.hero-slim .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28, 43, 26, 0.55) 0%, rgba(28, 43, 26, 0.75) 100%);
  z-index: -1;
}
.hero-slim h1 { color: #fff; font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.hero-slim .eyebrow { color: rgba(255, 255, 255, 0.92); }
.hero-slim .lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 16px auto 0;
}

/* Profile photo round */
.avatar {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
}

/* Forms */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.form-field input,
.form-field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(28, 43, 26, 0.18);
  background: #fff;
  transition: all 0.2s ease;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.12);
}
.form-field.error input,
.form-field.error textarea {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 98, 42, 0.1);
}
.form-error-text {
  color: var(--orange);
  font-size: 0.83rem;
  margin-top: 2px;
}

/* Nav */
nav.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.3s ease;
}
nav.topnav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 4px 18px rgba(28, 43, 26, 0.05);
  padding: 12px 0;
}
nav.topnav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
nav.topnav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}
nav.topnav.scrolled .brand { color: var(--ink); }
nav.topnav .brand .mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
}
nav.topnav.scrolled .brand .mark {
  background: var(--forest);
}
nav.topnav .links {
  display: flex;
  align-items: center;
  gap: 36px;
}
nav.topnav .links a {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  position: relative;
  padding: 6px 0;
  cursor: pointer;
  transition: color 0.2s ease;
}
nav.topnav.scrolled .links a { color: var(--ink); }
nav.topnav .links a.active {
  color: #fff;
  font-weight: 500;
}
nav.topnav.scrolled .links a.active { color: var(--orange); }
nav.topnav .links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
nav.topnav .links a:hover { color: #fff; }
nav.topnav.scrolled .links a:hover { color: var(--orange); }

nav.topnav .right {
  display: flex;
  align-items: center;
  gap: 18px;
}
nav.topnav .right .ig {
  color: #fff;
  transition: color 0.2s, transform 0.2s;
  display: inline-flex;
}
nav.topnav.scrolled .right .ig { color: var(--ink); }
nav.topnav .right .ig:hover { color: var(--orange); transform: translateY(-1px); }

nav.topnav .right .btn {
  padding: 11px 22px;
  font-size: 0.92rem;
}

/* Mobile nav toggle (basic) */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 6px;
}

/* Footer */
footer.site-footer {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.78);
  padding: 80px 0 32px;
  position: relative;
}
footer.site-footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
footer.site-footer h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  margin: 0 0 18px;
}
footer.site-footer .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 16px;
}
footer.site-footer .brand .mark {
  width: 42px; height: 42px; border-radius: 11px; background: rgba(255, 255, 255, 0.08);
  display: grid; place-items: center;
}
footer.site-footer .tagline {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 280px;
  margin: 0;
}
footer.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer.site-footer ul a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
  cursor: pointer;
  transition: color 0.2s;
}
footer.site-footer ul a:hover { color: var(--orange); }
footer.site-footer .legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  flex-wrap: wrap;
  gap: 12px;
}
footer.site-footer .legal a:hover { color: var(--orange); }

/* Layout helpers */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.grid-2-wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Alternating service row */
.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}
.svc-row.reverse .svc-image { order: 2; }
.svc-row .svc-image {
  aspect-ratio: 5 / 4;
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.svc-row .svc-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 43, 26, 0) 60%, rgba(28, 43, 26, 0.2) 100%);
}
.svc-row .num {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--orange);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: block;
}
.svc-row h2 { margin-bottom: 22px; }
.svc-row .bullets {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svc-row .bullets li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 0.98rem;
}
.svc-row .bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* Section header */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--green) 0%, rgba(74, 103, 65, 0.15) 100%);
}
.timeline-item {
  position: relative;
  padding-left: 52px;
  padding-bottom: 44px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item .dot {
  position: absolute;
  left: 5px; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--green);
  box-shadow: 0 0 0 4px var(--cream);
}
.timeline-item .year {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--orange);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}
.timeline-item h4 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ink);
}
.timeline-item p {
  color: var(--muted);
  font-size: 0.97rem;
  margin: 0;
}

/* Contact details */
.contact-detail {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-detail:last-child { border-bottom: 0; }
.contact-detail .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--cream-2);
  color: var(--green);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-detail .label {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2px;
}
.contact-detail .value {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0;
  font-weight: 500;
}
.contact-detail a.value:hover { color: var(--orange); }

/* CTA banner */
.cta-banner {
  background: var(--forest);
  color: #fff;
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 30%, rgba(74, 103, 65, 0.35), transparent 50%),
    radial-gradient(circle at 20% 70%, rgba(232, 98, 42, 0.08), transparent 50%);
  pointer-events: none;
}
.cta-banner h2 {
  color: #fff;
  max-width: 720px;
  margin: 0 auto 32px;
}
.cta-banner .eyebrow { color: #c7d4b9; margin-bottom: 18px; display: block; }
.cta-banner > * { position: relative; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp 0.7s ease both; }
.reveal.delay-1 { animation-delay: 0.1s; }
.reveal.delay-2 { animation-delay: 0.2s; }
.reveal.delay-3 { animation-delay: 0.3s; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery .tile {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  transition: transform 0.4s ease;
}
.gallery .tile:hover { transform: scale(1.02); }

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--forest);
  color: #fff;
  padding: 16px 26px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast .ic { color: #a8c39a; }

/* Responsive */
@media (max-width: 960px) {
  .grid-2, .svc-row { grid-template-columns: 1fr; gap: 40px; padding: 50px 0; }
  .svc-row.reverse .svc-image { order: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2-wide { grid-template-columns: 1fr; }
  .section-pad { padding: 80px 0; }
  footer.site-footer .grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  nav.topnav .links { display: none; }
  .menu-toggle { display: inline-flex; }
  .gallery { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  footer.site-footer .grid { grid-template-columns: 1fr; }
  .hero .cta-row { flex-direction: column; align-items: stretch; }
  .container { padding: 0 22px; }
}
