/*
Theme Name: MIP Consulting Theme v3
Theme URI: https://mip.ge/
Author: OpenAI
Refined bilingual custom WordPress theme for MIP Consulting with improved spacing and navigation.
Version: 3.0.0
Text Domain: mip-consulting
*/

:root {
  --green: #2f5f4f;
  --green-dark: #21463a;
  --green-soft: #edf3ef;
  --text: #16211b;
  --muted: #68746f;
  --border: #dde6e0;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(33, 70, 58, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Noto Sans Georgian", sans-serif;
  color: var(--text);
  background: #fafcfb;
}
main[id], section[id] { scroll-margin-top: 126px; }


img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }

body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(221,230,224,0.8);
}

.nav-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  min-height: 94px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
}

.nav {
  justify-self: center;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(18px, 2vw, 30px);
  font-weight: 600;
  white-space: nowrap;
  font-size: 15px;
}

.nav a:hover { color: var(--green); }

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: #4f5c56;
  padding: 10px 13px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

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

.cta {
  padding: 15px 22px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.hero {
  padding: 84px 0 52px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 540px);
  gap: 56px;
  align-items: center;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: #eaf1ec;
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.hero-copy h1 {
  margin: 22px 0 20px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 10.2ch;
}

.hero-copy p {
  max-width: 640px;
  font-size: 19px;
  line-height: 1.75;
  color: #4d5954;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-secondary {
  border-color: #cddad3;
  color: var(--green-dark);
  background: #fff;
}

.visual-board {
  position: relative;
  min-height: 610px;
  border-radius: 40px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(40,85,70,0.96), rgba(29,63,52,0.98)),
    radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 35%);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.visual-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.6;
}

.board-glow {
  position: absolute;
  right: -80px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16), rgba(255,255,255,0.02) 58%, transparent 70%);
  z-index: 1;
}

.board-text {
  position: absolute;
  left: 34px;
  bottom: 34px;
  z-index: 1;
  color: rgba(255,255,255,0.96);
  font-size: clamp(24px, 2.5vw, 38px);
  line-height: 1.1;
  font-weight: 800;
  max-width: 8ch;
  letter-spacing: -0.03em;
}

.info-card {
  position: absolute;
  z-index: 2;
  width: 315px;
  background: rgba(255,255,255,0.97);
  color: var(--text);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 40px rgba(0,0,0,0.08);
}

.top-card { top: 40px; left: 34px; }
.bottom-card { right: 34px; bottom: 34px; }

.card-label {
  font-size: 14px;
  color: #738078;
  margin-bottom: 14px;
}

.info-card ul {
  margin: 0 0 18px 20px;
  padding: 0;
  line-height: 1.8;
}

.info-card p {
  margin: 0;
  color: #616d68;
  line-height: 1.7;
}

.card-title {
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 12px;
}

.section {
  padding: 96px 0;
  scroll-margin-top: 126px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.section h2 {
  margin: 18px 0 0;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section p {
  font-size: 18px;
  line-height: 1.85;
  color: #4f5c56;
}

.section-head {
  margin-bottom: 28px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  min-height: 220px;
  box-shadow: 0 8px 24px rgba(15, 35, 27, 0.04);
}

.service-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.2;
}

.service-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}

.accent-card {
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  color: #fff;
  border-color: transparent;
}

.accent-card p,
.accent-card h3 {
  color: #fff;
}

.contact-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  padding: 40px;
  border-radius: 34px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-list {
  display: grid;
  gap: 18px;
}

.contact-list div {
  padding: 20px 22px;
  border-radius: 22px;
  background: #f4f7f5;
  border: 1px solid #e6eeea;
}

.contact-list span {
  display: block;
  color: #6d7b75;
  font-size: 14px;
  margin-bottom: 8px;
}

.contact-list strong {
  font-size: 18px;
  line-height: 1.4;
}

.site-footer {
  padding: 24px 0 40px;
  color: #6d7b75;
  font-size: 14px;
}

@media (max-width: 1280px) {
  .container { width: min(1220px, calc(100% - 40px)); }
  .nav-wrap {
    grid-template-columns: minmax(240px, 1fr) auto auto;
    gap: 16px;
  }
  .nav { gap: 16px 22px; font-size: 14px; }
  .cta { padding: 14px 18px; }
}

@media (max-width: 1120px) {
  .nav-wrap {
    grid-template-columns: 1fr;
    padding: 18px 0;
    gap: 16px;
  }

  .brand,
  .nav,
  .header-actions {
    justify-self: start;
  }
  .nav { white-space: normal; }

  .hero-grid,
  .two-col,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 { max-width: 11ch; }
  .nav,
  .header-actions { flex-wrap: wrap; }
  .section { scroll-margin-top: 180px; }
}

@media (max-width: 920px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .visual-board { min-height: 560px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1200px); }
  .hero { padding-top: 34px; }
  .hero-copy h1 {
    font-size: clamp(36px, 11vw, 56px);
    max-width: 100%;
  }
  .hero-copy p { font-size: 17px; }
  .cards { grid-template-columns: 1fr; }
  .visual-board {
    min-height: auto;
    padding: 24px;
  }
  .info-card {
    position: relative;
    width: 100%;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    margin-bottom: 18px;
  }
  .board-text {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 18px;
    max-width: none;
  }
  .cta,
  .btn,
  .lang-btn { font-size: 15px; }
}
