/* ============================================
   Karakaş Şirketler Topluluğu — Stylesheet
   ============================================ */

:root {
  --bg: #fafaf7;
  --bg-alt: #ffffff;
  --bg-dark: #0e1a2b;
  --bg-dark-alt: #15243a;
  --ink: #0e1a2b;
  --ink-soft: #3b4a60;
  --ink-mute: #6b7a90;
  --line: #e5e1d8;
  --line-dark: rgba(255, 255, 255, 0.1);
  --accent: #b8860b;
  --accent-soft: #d4a83a;
  --accent-deep: #8c6608;
  --shadow-sm: 0 1px 2px rgba(14, 26, 43, 0.04), 0 2px 8px rgba(14, 26, 43, 0.04);
  --shadow-md: 0 6px 24px rgba(14, 26, 43, 0.08);
  --shadow-lg: 0 24px 60px rgba(14, 26, 43, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --font-sans: 'Inter', 'Noto Sans Georgian', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', 'Noto Sans Georgian', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============== NAVIGATION ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
  color: var(--accent-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: 0.18em; color: var(--ink); }
.brand-sub { font-size: 11px; color: var(--ink-mute); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 3px; }

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(14, 26, 43, 0.04);
}

.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex;
  background: rgba(14, 26, 43, 0.06);
  border-radius: 8px;
  padding: 3px;
}

.lang-btn {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
  border-radius: 6px;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--bg-dark);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.2s;
}

/* ============== HERO ============== */
.hero {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
  background: var(--bg-dark);
  color: #fff;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(184, 134, 11, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(184, 134, 11, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
}

.hero-content { max-width: 800px; }

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(184, 134, 11, 0.15);
  border: 1px solid rgba(212, 168, 58, 0.3);
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: #fff;
}

.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 10px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.3);
}

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats dt {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--accent-soft);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stats dd {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
}

/* ============== SECTIONS ============== */
.section { padding: 100px 0; }
.section.about { background: var(--bg-alt); }
.section.partners { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
  padding-left: 32px;
}

.section-tag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-head h2,
.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 18px;
}

.section-lede {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ============== CHAIRMAN ============== */
.chairman {
  padding: 80px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.chairman-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.portrait-frame {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
  color: var(--accent-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--bg);
  outline: 1px solid var(--accent);
  outline-offset: -10px;
}

.chairman-body .section-tag { padding-left: 0; }
.chairman-body .section-tag::before { display: none; }

.chairman-body h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.chairman-body p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

/* ============== ABOUT / PILLARS ============== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar {
  background: var(--bg);
  padding: 36px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.12), rgba(184, 134, 11, 0.04));
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  margin-bottom: 24px;
}

.pillar-icon svg { width: 26px; height: 26px; }

.pillar h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.pillar p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ============== COMPANIES ============== */
.companies { background: var(--bg); }

.company-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.company-card:hover {
  box-shadow: var(--shadow-md);
}

.company-card:last-child { margin-bottom: 0; }

.company-head {
  padding: 40px 44px 28px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(14, 26, 43, 0.02), transparent),
    var(--bg-alt);
}

.company-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.company-head h3 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.company-meta {
  font-size: 14px;
  color: var(--ink-mute);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.company-body {
  padding: 32px 44px 44px;
}

.company-body h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.rep-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
}

.rep-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0 14px 18px;
  border-left: 2px solid var(--accent);
  font-size: 14px;
  line-height: 1.55;
}

.rep-list li strong {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}

.rep-list li span {
  color: var(--ink-soft);
  font-size: 14px;
}

/* Services grid (ENES) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service {
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.service h5 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.service p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ============== PARTNERS / COUNTRIES ============== */
.countries {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.country {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}

.country:hover {
  transform: translateY(-3px);
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-sm);
}

.country .flag { font-size: 36px; line-height: 1; }
.country span:last-child {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: center;
}

/* ============== CONTACT ============== */
.contact { background: var(--bg-dark); color: #fff; }
.contact .section-tag { color: var(--accent-soft); }
.contact h2 { color: #fff; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-list li {
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.6;
}

.contact-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact-form {
  background: var(--bg-dark-alt);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.07);
}

.contact-form textarea { resize: vertical; min-height: 100px; }

.contact-form button { margin-top: 8px; align-self: flex-start; }

.form-status {
  margin: 4px 0 0;
  font-size: 14px;
  color: #7ed9a3;
}

.form-status.is-error { color: #f0a0a0; }

/* ============== FOOTER ============== */
.footer {
  background: #08111e;
  color: rgba(255, 255, 255, 0.5);
  padding: 36px 0;
  border-top: 1px solid var(--line-dark);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
}

.footer-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

.footer-meta { font-size: 13px; }

/* ============== RESPONSIVE ============== */
@media (max-width: 960px) {
  .pillars { grid-template-columns: 1fr; }
  .rep-list { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .countries { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .chairman-inner { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .chairman-inner .portrait-frame { margin: 0 auto; }
  .hero-stats { grid-template-columns: 1fr; gap: 24px; }
  .company-head, .company-body { padding-left: 28px; padding-right: 28px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; border-radius: 0; }
  .nav-toggle { display: flex; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
  .hero { padding: 64px 0 80px; }
  .countries { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .lang-btn { padding: 6px 7px; font-size: 11px; }
}
