/* Agoge Enterprises – Enhanced Design System */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --lush: #6B8E6B;
  --lush-soft: rgba(107, 142, 107, 0.18);
  --lush-mid: #5d7d5d;
  --silver: #A8B0B8;
  --silver-edge: rgba(168, 176, 184, 0.35);
  --beige: #D9CDB8;
  --beige-wash: rgba(217, 205, 184, 0.25);
  --glass: rgba(255, 255, 255, 0.55);
  --surface: #F8F7F4;
  --surface-2: #F1EFE9;
  --card: rgba(255, 255, 255, 0.72);
  --ink: #2C332C;
  --ink-body: #4A524A;
  --ink-muted: #7A847A;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-glass: 0 8px 32px rgba(44, 51, 44, 0.06);
  --shadow-soft: 0 4px 20px rgba(44, 51, 44, 0.05);
  --shadow-hover: 0 10px 28px rgba(44, 51, 44, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.85s;
  --duration-fast: 0.35s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--surface);
  color: var(--ink-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--ink);
  line-height: 1.2;
  font-weight: 500;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px) { .container { padding: 0 2rem; } }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 247, 244, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217, 205, 184, 0.25);
  transition: background var(--duration-fast) var(--ease),
              box-shadow var(--duration-fast) var(--ease),
              border-color var(--duration-fast) var(--ease);
}
.site-header.scrolled {
  background: rgba(248, 247, 244, 0.92);
  box-shadow: 0 4px 20px rgba(44, 51, 44, 0.06);
  border-bottom-color: rgba(217, 205, 184, 0.45);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6.5rem;
  height: auto;
  padding: 0.75rem 0;
}
.logo { display: flex; align-items: center; gap: 0.9rem; }
.logo img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255,255,255,0.55);
  box-shadow: 0 1px 4px rgba(44,51,44,0.06);
}
.logo span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.nav-desktop { display: none; align-items: center; gap: 1.75rem; }
.nav-desktop a {
  font-size: 0.875rem;
  color: var(--ink-body);
  transition: color var(--duration-fast) var(--ease);
  position: relative;
  padding-bottom: 2px;
}
.nav-desktop a:hover,
.nav-desktop a.active { color: var(--lush); }
.nav-desktop a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--lush);
  border-radius: 2px;
  opacity: 0.85;
}
.nav-lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav-lang a {
  color: var(--ink-muted);
  padding: 0.2rem 0.35rem;
  transition: color var(--duration-fast) var(--ease);
}
.nav-lang a:hover,
.nav-lang a.active { color: var(--lush); }
.nav-lang .sep { color: var(--silver); opacity: 0.6; }
.menu-toggle {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
}
.menu-toggle svg { width: 24px; height: 24px; }
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid rgba(217, 205, 184, 0.4);
  background: var(--surface);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 0.75rem 0; color: var(--ink-body); }
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--lush); }
.nav-mobile .nav-lang {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(217, 205, 184, 0.3);
}
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all var(--duration) var(--ease);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn:focus-visible {
  outline: 2px solid var(--lush);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--lush);
  color: #fff;
  border-color: var(--lush);
}
.btn-primary:hover {
  background: var(--lush-mid);
  border-color: var(--lush-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}
.btn-secondary {
  background: rgba(255,255,255,0.55);
  color: var(--ink);
  border-color: rgba(168, 176, 184, 0.55);
}
.btn-secondary:hover {
  background: #fff;
  border-color: var(--silver);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.btn-secondary:active { transform: translateY(0); }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.8rem; }

/* Sections */
.section { padding: 4rem 0; position: relative; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }
.section-alt { background: var(--surface-2); }
.section-green { background: var(--lush-soft); }

.glass {
  background: var(--card);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: var(--shadow-glass);
  border-radius: var(--radius);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.glass:hover { box-shadow: var(--shadow-hover); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(217,205,184,0.35) 0%, var(--surface) 55%, rgba(107,142,107,0.1) 100%);
  pointer-events: none;
}
.hero-decor {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  filter: saturate(0.82) brightness(1.04);
  transform: scale(1.06);
  pointer-events: none;
}
.hero-decor::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(248, 247, 244, 0.62) 0%,
    rgba(255, 255, 255, 0.48) 40%,
    rgba(107, 142, 107, 0.14) 100%
  );
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.hero-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--lush);
  font-weight: 500;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}
.hero-lead {
  font-size: 1.125rem;
  max-width: 36rem;
  margin-bottom: 2.5rem;
  color: var(--ink-body);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.section-decor {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.40;
  filter: saturate(0.78);
  pointer-events: none;
  z-index: 0;
}
.section-decor::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(248, 247, 244, 0.55) 0%,
    rgba(248, 247, 244, 0.35) 50%,
    rgba(248, 247, 244, 0.6) 100%
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.section > .container { position: relative; z-index: 1; }

/* Grids */
.grid-4 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.pillar-card { overflow: hidden; transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.pillar-card .img-wrap { position: relative; height: 11rem; overflow: hidden; }
.pillar-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.pillar-card:hover img { transform: scale(1.05); }
.pillar-card .img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,51,44,0.4), transparent);
}
.pillar-card .body { padding: 1.25rem; }
.pillar-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; transition: color var(--duration-fast) var(--ease); }
.pillar-card:hover h3 { color: var(--lush); }
.pillar-card p { font-size: 0.875rem; color: var(--ink-muted); }

.service-row { display: grid; gap: 0; overflow: hidden; transition: box-shadow var(--duration) var(--ease); }
.service-row:hover { box-shadow: var(--shadow-hover); }
.service-row .img-side { position: relative; height: 16rem; }
@media (min-width: 768px) {
  .service-row { grid-template-columns: 1fr 1fr; }
  .service-row .img-side { height: auto; min-height: 18rem; }
  .service-row.reverse .img-side { order: 2; }
}
.service-row img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.service-row:hover img { transform: scale(1.04); }
.service-row .text-side { padding: 2rem; }
.service-row h2 { font-size: 1.75rem; margin-bottom: 1rem; transition: color var(--duration-fast) var(--ease); }
.service-row:hover h2 { color: var(--lush); }
.service-row .link { display: inline-block; margin-top: 1.25rem; font-size: 0.875rem; font-weight: 500; color: var(--lush); }

.insight-teaser h3 { font-size: 1.2rem; margin-bottom: 0.75rem; line-height: 1.35; }
.insight-teaser p { font-size: 0.9rem; line-height: 1.65; color: var(--ink-body); margin-bottom: 1rem; }
.insight-teaser .author { font-size: 0.8rem; color: var(--ink-muted); margin-bottom: 1rem; }
.insight-teaser .read-more { font-size: 0.875rem; font-weight: 500; color: var(--lush); }

.article-block { max-width: 780px; margin: 0 auto 3.5rem; padding: 2.5rem; }
.article-block h2 { font-size: 1.75rem; margin-bottom: 1.25rem; line-height: 1.3; }
.article-block p { margin-bottom: 1.1rem; line-height: 1.8; font-size: 1.02rem; }
.article-block .reflection {
  background: rgba(107, 142, 107, 0.08);
  border-left: 4px solid var(--lush);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--ink);
}
.article-block .author { font-style: italic; color: var(--lush); margin-top: 1.5rem; font-weight: 500; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.9); margin-top: auto; }
.footer-inner { display: grid; gap: 2.5rem; padding: 3.5rem 0; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-inner h3 { color: #fff; font-size: 1.25rem; margin-bottom: 0.75rem; }
.footer-inner h4 {
  color: #fff; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 1rem;
  font-family: 'Inter', sans-serif; font-weight: 500;
}
.footer-inner p, .footer-inner li { font-size: 0.875rem; color: rgba(255,255,255,0.7); line-height: 1.7; }
.footer-inner ul { list-style: none; }
.footer-inner a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.75rem; color: rgba(255,255,255,0.5);
}
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

.text-center { text-align: center; }
.max-w-xl { max-width: 36rem; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.soft-enter { animation: softEnter 0.9s var(--ease) both; }
@keyframes softEnter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.value-chip { display: inline-block; padding: 0.75rem 1.5rem; font-weight: 500; letter-spacing: 0.03em; }
.phase-num { font-size: 0.8rem; color: var(--lush); font-weight: 500; margin-bottom: 0.5rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; color: var(--ink-muted); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(217, 205, 184, 0.6);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.7);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--lush);
  box-shadow: 0 0 0 3px rgba(107, 142, 107, 0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.2fr 1fr; } }
.detail-list { list-style: none; }
.detail-list li { margin-bottom: 1rem; }
.detail-list .label { display: block; font-size: 0.8rem; color: var(--ink-muted); margin-bottom: 0.15rem; }
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 0.95fr 1.15fr; gap: 4rem; }
}
.about-visual {
  position: relative;
}
.about-img,
.about-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  background: var(--card);
}
.about-img img,
.about-photo img {
  width: 100%;
  height: auto;
  min-height: 320px;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .about-img img,
  .about-photo img {
    min-height: 420px;
  }
}
.about-logo-badge {
  position: absolute;
  bottom: -18px;
  right: -12px;
  width: 96px;
  height: 96px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  border: 3px solid rgba(255, 255, 255, 0.75);
  overflow: hidden;
  z-index: 2;
}
.about-logo-badge img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  min-height: 0;
}

@media (max-width: 640px) {
  .about-logo-badge {
    width: 72px;
    height: 72px;
    bottom: -12px;
    right: 8px;
  }
  .about-logo-badge img {
    width: 46px;
    height: 46px;
  }
}
