/* =========================================================
   METQ — dizayn sayqali (v2)
   Ranglar va tuzilish o'zgarmaydi: tipografiya, oraliqlar,
   bo'limlar bir xilligi va mobil ko'rinish yaxshilanadi.
   Bu fayl style.css dan keyin yuklanadi.
   ========================================================= */

:root {
  --metq-green: #0b6b4c;
  --metq-green-dark: #073d2d;
  --metq-green-soft: #e8f2ed;
  --metq-accent: #4fd18b;
  --metq-ink: #142a22;
  --metq-text: #4d5d57;
  --metq-line: #e3ebe7;
  --metq-bg-soft: #f5f8f6;
  --metq-radius: 16px;
  --metq-shadow: 0 1px 2px rgba(7, 61, 45, .04), 0 8px 24px rgba(7, 61, 45, .06);
  --metq-shadow-hover: 0 2px 4px rgba(7, 61, 45, .06), 0 18px 40px rgba(7, 61, 45, .12);
  --metq-section-y: clamp(72px, 9vw, 112px);
}

/* ---------- Asos ---------- */
body {
  line-height: 1.6;
  color: var(--metq-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; }
p { line-height: 1.75; }
img { max-width: 100%; }
::selection { background: var(--metq-accent); color: var(--metq-green-dark); }
:focus-visible { outline: 3px solid var(--metq-accent); outline-offset: 3px; border-radius: 6px; }

/* Sichqoncha ortidan yuruvchi "glow" effekti — chalg'itadi */
.cursor-glow { display: none !important; } /* motion.js o'rniga .metq-glow qo'yadi */

/* ---------- Bo'limlar oralig'i bir xil ---------- */
.about, .services, .projects, .why, .gallery, .news, .contact {
  padding-top: var(--metq-section-y);
  padding-bottom: var(--metq-section-y);
}

/* ---------- Bo'lim sarlavhalari ---------- */
.section-title { margin-bottom: clamp(40px, 5vw, 64px); }
.section-title small,
.section-tag,
.why-left small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--metq-green-soft);
  color: var(--metq-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.4;
  margin-bottom: 18px;
}
.section-title h2 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  margin-bottom: 14px;
}
.section-title p {
  font-size: 17px;
  color: var(--metq-text);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Hero ---------- */
.hero h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero p {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.7;
  opacity: .92;
}
.hero-badge {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
}
.hero-buttons { gap: 14px; }
.hero-card {
  border-radius: var(--metq-radius);
  border: 1px solid rgba(255, 255, 255, .14);
}

/* ---------- Tugmalar ---------- */
.btn-green, .btn-white, .why-btn, .contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-green:hover, .why-btn:hover, .contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 107, 76, .28);
}
.btn-white:hover { transform: translateY(-2px); }

/* ---------- Biz haqimizda ---------- */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}
.about-left h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  margin: 0 0 20px;
}
.about-left p {
  font-size: 17px;
  color: var(--metq-text);
  margin: 0 0 32px;
}
.about-right img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--metq-shadow-hover);
}

/* ---------- Xizmatlar ---------- */
.services-grid { gap: 24px; }
.service-card {
  border: 1px solid var(--metq-line);
  border-radius: var(--metq-radius);
  box-shadow: var(--metq-shadow);
  padding: 36px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--metq-shadow-hover);
  border-color: rgba(11, 107, 76, .25);
}
.service-card h3 { font-size: 21px; font-weight: 700; margin: 22px 0 10px; }
.service-card p { font-size: 15.5px; color: var(--metq-text); }
.service-link { font-weight: 700; }

/* ---------- Statistika ---------- */
.stat-card h2 {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

/* ---------- Nega aynan biz ---------- */
.why { background: var(--metq-bg-soft); }
.why-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.why-left h2 {
  font-size: clamp(24px, 2.1vw, 30px);
  font-weight: 800;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
.why-left p {
  font-size: 17px;
  color: var(--metq-text);
  margin: 0 0 32px;
}
.why-btn {
  background: var(--metq-green);
  color: #fff;
  text-decoration: none;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--metq-line);
  border-radius: var(--metq-radius);
  box-shadow: var(--metq-shadow);
  padding: 28px;
  min-height: 0;
  height: auto;
}
.why-card h3 { font-size: 19px; margin: 18px 0 8px; }
.why-card p { font-size: 15px; line-height: 1.65; color: var(--metq-text); }

/* ---------- Galereya va yangiliklar ---------- */
.gallery-item, .news-card {
  border-radius: var(--metq-radius);
  overflow: hidden;
}
.news-card {
  border: 1px solid var(--metq-line);
  box-shadow: var(--metq-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--metq-shadow-hover); }

/* ---------- Aloqa formasi ---------- */
.contact input,
.contact select,
.contact textarea {
  border: 1px solid #cfdcd6;
  border-radius: 12px;
  background: #fff;
  color: var(--metq-ink);
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact input::placeholder,
.contact textarea::placeholder { color: #7d8c86; }
.contact input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  flex: 0 0 18px;
  accent-color: var(--metq-green);
}
.contact input:focus,
.contact select:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--metq-green);
  box-shadow: 0 0 0 4px rgba(11, 107, 76, .12);
}

/* Rozilik belgilari: maydon kengligini egallab olmasin */
input[type="checkbox"], input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  flex: 0 0 18px;
  accent-color: var(--metq-green);
}

/* =========================================================
   ICHKI SAHIFALAR
   ========================================================= */

/* ---------- Sahifa boshidagi hero bloklari bir xil ---------- */
body .company-hero, body .services-hero, body .projects-hero, body .news-hero,
body .gallery-hero, body .cert-hero, body .contact-hero {
  min-height: clamp(440px, 58vh, 560px);
  padding-top: 150px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
}
body .company-hero > .container, body .services-hero > .container, body .projects-hero > .container,
body .news-hero > .container, body .gallery-hero > .container, body .cert-hero > .container,
body .contact-hero > .container { width: 100%; }
body .service-detail-hero { min-height: clamp(440px, 58vh, 560px); }

body .company-hero h1, body .services-hero h1, body .service-detail-hero h1,
body .projects-hero h1, body .news-hero h1, body .gallery-hero h1,
body .cert-hero h1, body .contact-hero h1 {
  color: #fff;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 820px;
}
body .company-hero p, body .services-hero p, body .service-detail-hero p,
body .projects-hero p, body .news-hero p, body .gallery-hero p,
body .cert-hero p, body .contact-hero p {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.7;
  max-width: 640px;
}

/* ---------- Kartochkalar (ichki sahifalar) ---------- */
.team-card, .value-card, .why-choose-card, .process-card,
.service-showcase-card, .project-card, .news-card, .cert-card,
.certificate-card, .contact-info-card, .cms-card {
  border-radius: var(--metq-radius);
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; }

/* ---------- Planshet ---------- */
@media (max-width: 992px) {
  /* Mobil menyu tugmasi avval hech qachon ko'rinmasdi */
  .menu-toggle {
    display: block;
    background: transparent;
    border: 0;
    padding: 0;
    margin-left: auto;
  }
  .contact-btn { display: none; }
  .about-wrapper,
  .why-wrapper { grid-template-columns: 1fr; }
  .about-right { order: -1; }
}

/* ---------- Telefon ---------- */
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
  .hero-right { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hero-card { padding: 18px 16px; min-height: 0; height: auto; }
  .hero-card h2 { font-size: 30px; }
  .service-card, .why-card { padding: 26px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons a { width: 100%; }
  .section-title p, .about-left p, .why-left p { font-size: 16px; }
}

/* ---------- Aloqa sahifasi: rozilik belgisi matn yonida ---------- */
body .contact-consent { justify-content: flex-start; }
body .consent-checkbox {
  flex-direction: row;
  align-items: center;
  text-align: left;
  max-width: none;
  gap: 12px;
}
body .consent-checkmark { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 7px; }
body .consent-checkbox input { width: 1px; height: 1px; flex: none; }

/* ---------- Ichki sahifalar: telefon ---------- */
@media (max-width: 600px) {
  body .company-hero, body .services-hero, body .projects-hero, body .news-hero,
  body .gallery-hero, body .cert-hero, body .contact-hero {
    min-height: 0;
    padding-top: 120px;
    padding-bottom: 56px;
  }
}
