/* ============================================================
   AGERTEK WEBSITE — SHARED STYLESHEET
   Colors: Primary #1b4d3e | Secondary #f4c430 | BG #f9f7f4
   Fonts: Playfair Display (headings) | Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --primary:      #1b4d3e;
  --primary-light:#2a6b57;
  --secondary:    #f4c430;
  --accent:       #9caf88;
  --bg:           #f9f7f4;
  --card:         #ffffff;
  --text:         #2c2c2c;
  --muted:        #6b6b6b;
  --border:       #e8e6e1;
  --radius:       0.65rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

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

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

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

/* ── NAVIGATION ── */
nav {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo img { height: 48px; width: auto; }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: rgba(249,247,244,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* ── LANGUAGE SELECTOR ── */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 1rem;
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.75);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: 'Inter', sans-serif;
}

.lang-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.lang-btn.active {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
}

/* hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: #fff; margin: 5px 0; transition: 0.3s;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
}

.hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 1.25rem; }
.hero p  { font-size: clamp(1rem, 2vw, 1.3rem); opacity: 0.88; max-width: 680px; margin: 0 auto 2rem; }

/* ── SECTION ── */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--card); }
.section-dark { background: var(--primary); color: #fff; padding: 5rem 1.5rem; }
.section-dark h2, .section-dark p { color: #fff; }

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-intro {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.text-center { text-align: center; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  border: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-primary   { background: var(--secondary); color: var(--primary); }
.btn-outline   { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-back      { background: none; border: none; color: rgba(255,255,255,0.8); font-size: 0.9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0; margin-bottom: 1.5rem; }
.btn-back:hover { color: #fff; }

/* ── GRID ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 6px 24px rgba(27,77,62,0.1); transform: translateY(-3px); }

.card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.card-title { font-size: 1.1rem; font-weight: 600; color: var(--primary); margin-bottom: 0.5rem; }
.card-text  { font-size: 0.9rem; color: var(--muted); }

/* product card */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  text-decoration: none;
  display: block;
  color: var(--text);
}
.product-card:hover { box-shadow: 0 8px 28px rgba(27,77,62,0.12); transform: translateY(-4px); border-color: var(--secondary); }
.product-card .icon { font-size: 2.8rem; margin-bottom: 1rem; }
.product-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--primary); margin-bottom: 0.5rem; }
.product-card p { font-size: 0.85rem; color: var(--muted); }

/* ── PRODUCT DETAIL PILLARS ── */
.pillar {
  background: linear-gradient(to right, #fff, rgba(156,175,136,0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
}

.pillar-header { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; }
.pillar-icon { font-size: 3rem; flex-shrink: 0; }
.pillar-header h2 { font-size: 1.8rem; color: var(--primary); margin-bottom: 0.4rem; }
.pillar-header p { color: var(--muted); }

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

.pillar-item {
  background: rgba(27,77,62,0.04);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem;
}
.pillar-item h3 { font-size: 0.95rem; font-weight: 600; color: var(--primary); margin-bottom: 0.4rem; }
.pillar-item p  { font-size: 0.85rem; color: var(--muted); }

.partnership-box {
  background: linear-gradient(to right, rgba(27,77,62,0.05), rgba(244,196,48,0.08));
  border: 2px solid rgba(27,77,62,0.15);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
.partnership-box .icon { font-size: 3rem; flex-shrink: 0; }
.partnership-box h2 { font-size: 1.8rem; color: var(--primary); margin-bottom: 0.75rem; }
.partnership-box p { color: var(--muted); }

/* ── PRODUCT DETAIL TABLE ── */
.detail-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.detail-table th { background: var(--primary); color: #fff; padding: 0.75rem 1rem; text-align: left; font-size: 0.85rem; }
.detail-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.detail-table tr:last-child td { border-bottom: none; }
.detail-table tr:nth-child(even) td { background: rgba(27,77,62,0.03); }

/* ── MARKETS ── */
.market-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.market-card h3 { color: var(--primary); margin-bottom: 0.75rem; font-size: 1.2rem; }
.market-card ul { padding-left: 1.2rem; color: var(--muted); font-size: 0.9rem; }
.market-card ul li { margin-bottom: 0.3rem; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info h3 { color: var(--primary); margin-bottom: 1rem; }
.contact-info p { color: var(--muted); margin-bottom: 0.5rem; }
.contact-info a { color: var(--primary); font-weight: 500; }
.contact-info a:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer {
  background: #111;
  color: rgba(255,255,255,0.6);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}
footer a { color: rgba(255,255,255,0.7); }
footer a:hover { color: #fff; }

/* ── BADGE ── */
.badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-3, .pillar-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-3, .grid-2, .pillar-grid { grid-template-columns: 1fr; }
  .lang-selector { margin-left: 0.5rem; }
  .lang-btn { padding: 0.22rem 0.45rem; font-size: 0.68rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary); padding: 1rem 1.5rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .pillar-header { flex-direction: column; }
  .partnership-box { flex-direction: column; }
}
