/* ═══════════════════════════════════════════════════════════
   ECOWYN SERVICES — style.css
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Root ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green-deep:    #0a2e1a;
  --green-mid:     #1a5c35;
  --green-accent:  #2d8a52;
  --green-light:   #e8f5ed;
  --gold:          #b89a4e;
  --gold-dark:     #8c7038;
  --cream:         #faf8f3;
  --white:         #ffffff;
  --text-dark:     #1a1a16;
  --text-mid:      #4a4a42;
  --text-muted:    #7a7a70;
  --border:        #ddd8cc;
  --nav-h:         68px;
  --radius-sm:     3px;
  --radius-md:     6px;
  --transition:    0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Utility ──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.italic-gold { color: var(--gold); font-style: italic; }

/* ── Typography helpers ───────────────────────────────────── */
.eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.eyebrow-dark {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-accent);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.eyebrow-dark::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--green-accent);
  flex-shrink: 0;
}

.eyebrow-gold {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.eyebrow-gold::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--green-deep);
  margin-bottom: 1.1rem;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 560px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--green-deep);
  padding: 0.8rem 1.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #cdb06a; }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 0.8rem 1.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.28);
  transition: border-color var(--transition);
  cursor: pointer;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.7); }

/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(250,248,243,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.07); }

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.nav-logo-img { height: 42px; width: 42px; object-fit: contain; }
.nav-logo-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: 0.015em;
  line-height: 1;
  display: block;
}
.nav-logo-wordmark em { color: var(--gold); font-style: normal; }
.nav-logo-sub {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--green-accent); }

.nav-cta {
  background: var(--green-deep);
  color: var(--white);
  padding: 0.5rem 1.2rem;
  font-size: 0.77rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--green-mid); }

/* Burger — hidden on desktop */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  background: var(--green-deep);
  transition: var(--transition);
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: var(--green-deep);
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.038;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,1) 39px, rgba(255,255,255,1) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,1) 39px, rgba(255,255,255,1) 40px);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
  align-items: center;
  gap: 4rem;
}

.hero-left { padding: 5rem 0; }

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.06;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 0.96rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.88;
  max-width: 440px;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Stats */
.hero-right { display: flex; align-items: center; justify-content: center; padding: 4rem 0; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  max-width: 440px;
}

.stat-box {
  background: rgba(10,46,26,0.55);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.7rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.67rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 10;
}
.scroll-text {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.scroll-line-anim {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollDown 1.6s ease-in-out infinite;
}
@keyframes scrollDown {
  0%, 100% { opacity: 0.35; transform: scaleY(1); }
  50%       { opacity: 1;    transform: scaleY(1.15); }
}

/* ═══════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════ */
.services {
  background: var(--white);
  padding: 6rem 0;
}

.section-header { margin-bottom: 3.5rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--green-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(0,0,0,0.07); }
.service-card:hover::before { transform: scaleY(1); }

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--green-accent);
}
.service-icon svg { width: 20px; height: 20px; }

.service-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.865rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.service-tags {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--green-mid);
  background: var(--green-light);
  padding: 0.22rem 0.6rem;
  border-radius: 20px;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════ */
.about { background: var(--cream); padding: 6rem 0; }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-body {
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.95;
  margin-top: 1.5rem;
}
.about-body p { margin-bottom: 1rem; }

/* Experience bars */
.exp-bars { margin-top: 2.5rem; }
.exp-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.exp-label {
  font-size: 0.77rem;
  font-weight: 500;
  color: var(--text-mid);
  min-width: 155px;
}
.exp-track {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}
.exp-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--green-accent);
}
.exp-yr {
  font-size: 0.72rem;
  color: var(--text-muted);
  min-width: 40px;
  text-align: right;
}

/* Frameworks */
.frameworks-block {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.fw-label {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.fw-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fw-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--green-mid);
  background: var(--green-light);
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(45,138,82,0.2);
}

/* Timeline */
.timeline {
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
}
.tl-item { margin-bottom: 2rem; position: relative; }
.tl-dot {
  position: absolute;
  left: -1.68rem;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-accent);
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 1px var(--green-accent);
}
.tl-date {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.tl-role {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.3;
}
.tl-firm {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   BLOG
   ═══════════════════════════════════════════════════════════ */
.blog { background: var(--white); padding: 6rem 0; }

.blog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.blog-intro {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 320px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(0,0,0,0.07); }

.blog-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.blog-img-1 { background: linear-gradient(135deg, #0a2e1a 0%, #1a5c35 100%); }
.blog-img-2 { background: linear-gradient(135deg, #0d2e10 0%, #285c1f 100%); }
.blog-img-3 { background: linear-gradient(135deg, #0a1a2e 0%, #1a3a5c 100%); }
.blog-img-4 { background: linear-gradient(135deg, #2e1a0a 0%, #5c3a1a 100%); }

.blog-img-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: repeating-linear-gradient(45deg, #fff 0, #fff 1px, transparent 0, transparent 50%);
  background-size: 20px 20px;
}
.blog-icon {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
}

.blog-body { padding: 1.5rem; }
.blog-cat {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-accent);
  margin-bottom: 0.55rem;
}
.blog-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}
.blog-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.78;
  margin-bottom: 1.25rem;
}
.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}
.read-more {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--green-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.read-more:hover { color: var(--green-mid); }

/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact {
  background: var(--green-deep);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.contact-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,1) 39px, rgba(255,255,255,1) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,1) 39px, rgba(255,255,255,1) 40px);
  pointer-events: none;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

.contact-title { color: var(--white); }
.contact-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.85;
  margin-top: 1rem;
  margin-bottom: 0;
}

.contact-details { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; }
.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.contact-icon svg { width: 16px; height: 16px; }
.contact-text { font-size: 0.88rem; color: rgba(255,255,255,0.62); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}
.form-input,
.form-textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  padding: 0.75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-input:focus,
.form-textarea:focus { border-color: var(--gold); }
.form-textarea { resize: vertical; min-height: 108px; }

.submit-btn {
  background: var(--gold);
  color: var(--green-deep);
  padding: 0.85rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  align-self: flex-start;
}
.submit-btn:hover { background: #cdb06a; }

.form-success {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  background: rgba(45,138,82,0.2);
  border: 1px solid rgba(45,138,82,0.35);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
footer {
  background: #061a0c;
  padding: 2rem 2.5rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.6rem; }
.footer-logo-img { height: 30px; width: 30px; object-fit: contain; opacity: 0.78; }
.footer-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.62);
}
.footer-wordmark em { color: var(--gold); font-style: normal; }
.footer-copy { font-size: 0.7rem; color: rgba(255,255,255,0.26); letter-spacing: 0.05em; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid     { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero-inner    { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-right    { display: none; }
  .about-inner   { grid-template-columns: 1fr; gap: 3rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .nav-links     { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(250,248,243,0.98);
    backdrop-filter: blur(12px);
    padding: 1.5rem 2.5rem 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border);
    z-index: 199;
  }
  .nav-links.open a { font-size: 0.95rem; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  section, .services, .about, .blog, .contact { padding: 4rem 0; }
  .hero-inner    { padding: 0 1.5rem; }
  .container     { padding: 0 1.5rem; }
  .stats-grid    { display: none; }
  .form-row      { grid-template-columns: 1fr; }
  .blog-header   { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-inner  { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
