/*
Theme Name: AgriSwine Asia
Theme URI: https://agriswineasia.pro
Author: AgriSwine Asia
Description: Custom theme for AgriSwine Asia swine consultancy
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: agriswine
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-deep:   #0f1f0f;
  --green-dark:   #162616;
  --green-mid:    #1e3d1e;
  --green-light:  #2c5c2c;
  --gold:         #c8922a;
  --gold-light:   #e0b55a;
  --cream:        #f5f0e8;
  --cream-dim:    #d6cfc0;
  --white:        #ffffff;
  --text-body:    #c2bdb5;
  --serif:        'Cormorant Garamond', Georgia, serif;
  --sans:         'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--green-deep);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 5%;
  background: rgba(15,31,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,146,42,0.15);
  transition: padding 0.3s;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.04em;
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--gold); color: var(--green-deep); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 70% 50%, rgba(44,92,44,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(200,146,42,0.08) 0%, transparent 60%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(200,146,42,0.5) 49px, rgba(200,146,42,0.5) 50px),
    repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(200,146,42,0.5) 49px, rgba(200,146,42,0.5) 50px);
}
.hero-content {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10rem 6% 6rem 8%;
  position: relative;
  z-index: 2;
  animation: fadeUp 1s ease both;
}
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-eyebrow::before { content: ''; display: block; width: 40px; height: 1px; background: var(--gold); }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 1.8rem;
}
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-subtitle {
  font-size: 1rem;
  color: var(--text-body);
  max-width: 440px;
  margin-bottom: 3rem;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold);
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--cream-dim);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  text-decoration: none;
  border: 1px solid rgba(197,190,180,0.3);
  transition: border-color 0.25s, color 0.25s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--cream-dim); color: var(--cream); }
.hero-visual {
  grid-column: 2;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 8% 6rem 4%;
  animation: fadeUp 1s 0.2s ease both;
}
.hero-stat-card {
  background: rgba(30,61,30,0.5);
  border: 1px solid rgba(200,146,42,0.2);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  max-width: 400px;
  width: 100%;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-body);
  margin-top: 0.4rem;
  display: block;
}
.stat-divider { grid-column: 1 / -1; height: 1px; background: rgba(200,146,42,0.2); }

/* ── SECTIONS ── */
section { padding: 7rem 8%; }
.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--gold); display: block; }
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.section-title em { font-style: italic; color: var(--gold-light); }

/* ── ABOUT ── */
#about {
  background: var(--green-dark);
  border-top: 1px solid rgba(200,146,42,0.1);
  border-bottom: 1px solid rgba(200,146,42,0.1);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
  margin-top: 1rem;
}
.about-left { position: sticky; top: 6rem; }
.about-name { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--cream); margin-bottom: 0.3rem; }
.about-title-text { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 2rem; }
.about-portrait {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--green-mid);
  border: 1px solid rgba(200,146,42,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-portrait-inner { font-family: var(--serif); font-size: 5rem; color: rgba(200,146,42,0.3); font-weight: 700; font-style: italic; }
.about-portrait-tag {
  position: absolute;
  bottom: 1.2rem; left: 1.2rem; right: 1.2rem;
  background: rgba(15,31,15,0.85);
  padding: 0.8rem 1rem;
  font-size: 0.75rem;
  color: var(--text-body);
  letter-spacing: 0.05em;
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.about-right p { color: var(--text-body); margin-bottom: 1.4rem; font-size: 1rem; line-height: 1.8; }
.about-right p strong { color: var(--cream); font-weight: 500; }
.achievements-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.achievement-item {
  background: rgba(30,61,30,0.4);
  border: 1px solid rgba(200,146,42,0.15);
  padding: 1.2rem 1.4rem;
  border-left: 3px solid var(--gold);
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.5;
}
.achievement-item strong { color: var(--gold-light); display: block; margin-bottom: 0.2rem; }
.career-timeline { margin-top: 3rem; }
.timeline-title { font-family: var(--serif); font-size: 1.3rem; color: var(--cream); margin-bottom: 1.5rem; font-weight: 600; }
.timeline-item { display: flex; gap: 1.5rem; margin-bottom: 1.8rem; position: relative; }
.timeline-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 0.45rem;
  position: relative;
}
.timeline-dot::after {
  content: '';
  position: absolute;
  top: 10px; left: 4px;
  width: 1px;
  height: calc(100% + 1.4rem);
  background: rgba(200,146,42,0.2);
}
.timeline-item:last-child .timeline-dot::after { display: none; }
.timeline-body { flex: 1; }
.timeline-role { font-size: 0.95rem; font-weight: 500; color: var(--cream); }
.timeline-org { font-size: 0.82rem; color: var(--gold); margin-bottom: 0.25rem; }
.timeline-date { font-size: 0.75rem; color: var(--text-body); letter-spacing: 0.05em; }

/* ── SERVICES ── */
#services { background: var(--green-deep); }
.services-intro { max-width: 650px; color: var(--text-body); margin-bottom: 4rem; font-size: 1rem; line-height: 1.8; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; background: rgba(200,146,42,0.1); }
.service-card {
  background: var(--green-dark);
  padding: 2.5rem;
  position: relative;
  transition: background 0.3s;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--gold);
  transition: height 0.4s ease;
}
.service-card:hover { background: rgba(30,61,30,0.9); }
.service-card:hover::before { height: 100%; }
.service-number { font-family: var(--serif); font-size: 3rem; font-weight: 700; color: rgba(200,146,42,0.15); line-height: 1; margin-bottom: 1.2rem; font-style: italic; }
.service-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--cream); margin-bottom: 0.8rem; line-height: 1.3; }
.service-desc { font-size: 0.88rem; color: var(--text-body); line-height: 1.7; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.service-tag { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(200,146,42,0.3); padding: 0.25rem 0.65rem; }

/* ── WHY ── */
#why { background: var(--green-mid); border-top: 1px solid rgba(200,146,42,0.1); border-bottom: 1px solid rgba(200,146,42,0.1); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.why-quote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-style: italic;
  color: var(--cream);
  line-height: 1.4;
  position: relative;
  padding-left: 2.5rem;
}
.why-quote::before { content: '"'; position: absolute; left: 0; top: -0.5rem; font-size: 5rem; color: var(--gold); line-height: 1; opacity: 0.6; }
.why-points { display: flex; flex-direction: column; gap: 1.5rem; }
.why-point { display: flex; gap: 1.2rem; align-items: flex-start; }
.why-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 0.9rem;
}
.why-text strong { display: block; font-size: 0.9rem; font-weight: 500; color: var(--cream); margin-bottom: 0.2rem; }
.why-text p { font-size: 0.85rem; color: var(--text-body); line-height: 1.6; }

/* ── CONTACT ── */
#contact { background: var(--green-deep); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; margin-top: 3rem; }
.contact-info-block { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; gap: 1.2rem; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px;
  background: rgba(200,146,42,0.1);
  border: 1px solid rgba(200,146,42,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1rem;
}
.contact-detail strong { display: block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.3rem; }
.contact-detail a, .contact-detail span { color: var(--cream); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.contact-detail a:hover { color: var(--gold-light); }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }
.form-group input, .form-group textarea, .form-group select {
  background: rgba(30,61,30,0.4);
  border: 1px solid rgba(200,146,42,0.2);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.25s;
  width: 100%;
  appearance: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--gold); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group select option { background: var(--green-dark); }
.form-submit {
  background: var(--gold);
  color: var(--green-deep);
  border: none;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  width: 100%;
}
.form-submit:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  background: var(--green-deep);
  border-top: 1px solid rgba(200,146,42,0.15);
  padding: 2.5rem 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--cream); }
.footer-logo span { color: var(--gold); }
.footer-copy { font-size: 0.78rem; color: var(--text-body); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { font-size: 0.78rem; color: var(--text-body); text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content { padding: 8rem 6% 4rem; }
  .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-left { position: static; }
  .services-grid { grid-template-columns: 1fr; }
  .achievements-grid { grid-template-columns: 1fr; }
  nav { padding: 1rem 5%; }
  .nav-links { display: none; }
  section { padding: 5rem 6%; }
}
