/*
Theme Name: Magnesiagaz Premium
Theme URI: https://www.magnesiagaz.com.tr/
Author: Magnesiagaz
Description: Magnesiagaz için premium, mobil uyumlu, hızlı düzenlenebilir WordPress teması.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: magnesiagaz-premium
*/

:root {
  --navy: #061f33;
  --navy-2: #0a314f;
  --blue: #057fbc;
  --cyan: #16a6d9;
  --green: #25b85b;
  --gold: #f3b231;
  --ink: #102033;
  --muted: #64748b;
  --line: #dbe8f1;
  --soft: #f4f8fb;
  --white: #fff;
  --shadow: 0 22px 70px rgba(6, 31, 51, .14);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.58;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.mg-container { width: min(1180px, calc(100% - 34px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px; z-index: 99; }
.skip-link:focus { left: 8px; }

.top-strip {
  background: #041827;
  color: #e8f8ff;
  font-size: 14px;
}
.top-strip .mg-container {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.top-strip a { font-weight: 900; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(6, 31, 51, .07);
}
.nav-wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img {
  width: 235px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
}
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  white-space: nowrap;
  font-weight: 800;
  font-size: 14px;
  color: #183850;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav li { list-style: none; }
.main-nav a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--blue);
  border-color: var(--blue);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.call-btn,
.mg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.call-btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #20b45c, #2bd46d);
  box-shadow: 0 16px 32px rgba(37, 211, 102, .25);
}
.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  padding: 0 14px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 900;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu .mobile-menu-panel {
  position: absolute;
  right: 0;
  top: 52px;
  width: 270px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
}
.mobile-menu a {
  padding: 12px;
  border-radius: 12px;
  font-weight: 800;
}
.mobile-menu a:hover { background: #edf7fc; }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6, 31, 51, .86), rgba(6, 31, 51, .48)),
    var(--hero-image, none) center / cover no-repeat,
    linear-gradient(130deg, #057fbc 0%, #061f33 70%);
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(0deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .32;
  pointer-events: none;
}
.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 50px;
  align-items: center;
  padding: 84px 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  font-size: 13px;
  font-weight: 900;
  color: #fff;
}
.eyebrow.dark {
  background: #e7f5ff;
  color: #06415f;
  border-color: #cbe7f5;
}
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
  max-width: 800px;
  margin: 18px 0;
  font-size: 54px;
  line-height: 1.04;
  letter-spacing: 0;
}
.hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, .92);
  font-size: 20px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.mg-btn {
  min-height: 54px;
  padding: 0 20px;
  border-radius: 999px;
}
.mg-btn.gold { background: var(--gold); color: #17212b; box-shadow: 0 16px 34px rgba(0, 0, 0, .18); }
.mg-btn.light { background: #fff; color: #07587e; }
.mg-btn.ghost { border: 1px solid rgba(255, 255, 255, .38); color: #fff; }
.mg-btn.green { background: var(--green); color: #fff; }
.trustline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.trustline span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  font-weight: 800;
  font-size: 13px;
}
.hero-panel {
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(245, 251, 255, .92));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .23);
  color: var(--ink);
}
.hero-panel > img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: #fff;
}
.hero-proof {
  display: grid;
  gap: 12px;
  padding: 22px;
}
.hero-proof div {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.hero-proof strong { display: block; font-size: 18px; }
.hero-proof span { color: var(--muted); }

section { padding: 76px 0; }
.section-head {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}
.section-head h2,
.intro-panel h2,
.about-card h2 {
  font-size: 40px;
  line-height: 1.14;
  margin: 12px 0;
}
.section-head p,
.intro-panel p,
.about-card p,
.service-card p,
.catalog-layout p,
.gallery-card p {
  color: var(--muted);
  font-size: 17px;
}
.intro-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  align-items: center;
  margin-top: -34px;
  position: relative;
  z-index: 3;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  display: block;
  min-height: 284px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(6, 31, 51, .07);
  transition: .22s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card i {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #e9f7ff;
  color: var(--blue);
  margin-bottom: 20px;
}
.service-card i svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card span {
  font-weight: 900;
  color: var(--blue);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.service-card h3 { font-size: 25px; margin: 8px 0 10px; }
.service-card.accent { background: linear-gradient(135deg, #06233a, #057fbc); color: #fff; }
.service-card.accent p,
.service-card.accent span { color: rgba(255, 255, 255, .86); }
.service-card.accent i { background: rgba(255, 255, 255, .14); color: #fff; }

.catalog-section { background: #061f33; color: #fff; }
.catalog-layout {
  display: grid;
  grid-template-columns: 1fr .82fr;
  gap: 42px;
  align-items: center;
}
.catalog-layout h2 { font-size: 42px; line-height: 1.1; margin: 14px 0; }
.catalog-layout p { color: rgba(255, 255, 255, .82); }
.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}
.check-list li { position: relative; padding-left: 32px; font-weight: 800; }
.check-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 900;
}
.catalog-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .06));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}
.catalog-card img {
  width: 250px;
  margin-bottom: 28px;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
}
.catalog-card h3 { font-size: 30px; }

.gallery-section { background: #fff; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
  align-items: stretch;
}
.gallery-feature,
.gallery-card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.gallery-feature img,
.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}
.gallery-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.gallery-card img { min-height: 190px; height: 190px; }
.gallery-card div { padding: 18px; }
.gallery-card h3 { margin-bottom: 6px; }

.about-split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: stretch;
}
.about-card,
.stat-grid {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-grid div {
  padding: 22px;
  border-radius: 16px;
  background: #f1f8fc;
}
.stat-grid strong { display: block; font-size: 28px; }
.stat-grid span { color: var(--muted); }
.local-section { background: #fff; }
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.area-grid div {
  padding: 22px;
  border-radius: 16px;
  background: #edf8fd;
  border: 1px solid var(--line);
  font-weight: 900;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.process-grid div {
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(6, 31, 51, .07);
}
.process-grid b {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  margin-bottom: 14px;
}
.map-section {
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff;
}
.section-head.light p { color: rgba(255, 255, 255, .82); }
iframe {
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: 18px;
  background: #dce9ef;
  box-shadow: var(--shadow);
}
.quote-band { background: #fff; }
.quote-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  border-radius: 22px;
  padding: 34px;
  background: linear-gradient(135deg, #eaf8ff, #fff, #efffea);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.quote-grid h2 { font-size: 34px; line-height: 1.15; margin: 12px 0; }
.quote-grid p { color: var(--muted); }
.quote-actions { display: grid; gap: 12px; min-width: 220px; }

.page-hero {
  padding: 78px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6, 31, 51, .9), rgba(5, 127, 188, .72)),
    var(--page-hero-image, none) center / cover no-repeat,
    linear-gradient(135deg, var(--blue), var(--navy));
}
.page-hero h1 { font-size: 48px; line-height: 1.1; margin: 0 0 12px; }
.page-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 70px 0;
}
.page-content .entry-content {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.service-detail {
  padding: 70px 0;
}
.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}
.service-main,
.service-side,
.service-photo-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.service-main {
  padding: 32px;
}
.service-main h2 {
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.service-main h3 {
  margin-top: 28px;
  font-size: 24px;
}
.service-main p,
.service-main li {
  color: var(--muted);
  font-size: 17px;
}
.service-main ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}
.product-section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.product-section h2 {
  margin-top: 12px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.product-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f7fbfd);
}
.product-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 19px;
}
.product-card p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 15.5px;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.product-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  background: #e8f5fb;
  color: #07587e;
  font-weight: 900;
  font-size: 14px;
}
.product-actions a:first-child {
  background: var(--green);
  color: #fff;
}
.service-side {
  position: sticky;
  top: 112px;
}
.service-side img {
  width: 100%;
  height: 245px;
  object-fit: cover;
}
.service-side-content {
  padding: 22px;
}
.service-side .mg-btn {
  width: 100%;
  margin-top: 10px;
}
.service-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.service-photo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.service-photo-card div {
  padding: 16px;
}
.service-photo-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.service-photo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.site-footer {
  background: #041827;
  color: #d8edf8;
  padding: 54px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .75fr .85fr;
  gap: 34px;
}
.footer-brand {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}
.footer-subbrand {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 18px;
  padding: 0 12px;
  border-radius: 999px;
  color: #08233a;
  background: #8de25f;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-footer a { display: block; margin: 8px 0; color: #fff; font-weight: 800; }
.site-footer p { color: #b9d2df; }
.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 34px;
  padding-top: 20px;
  color: #a9c4d0;
}
.mobile-actions { display: none; }

@media (max-width: 1050px) {
  .main-nav { display: none; }
  .mobile-menu { display: block; }
  .hero-layout,
  .intro-panel,
  .catalog-layout,
  .gallery-grid,
  .about-split,
  .quote-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 44px; }
  .section-head h2,
  .intro-panel h2,
  .about-card h2 { font-size: 35px; }
  .service-grid,
  .area-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { padding-bottom: 72px; }
  body.admin-bar .site-header { top: 0; }
  .top-strip { display: none; }
  .mg-container { width: min(100% - 28px, 1180px); }
  .nav-wrap { min-height: 74px; gap: 10px; }
  .brand img {
    width: 186px;
    max-height: 54px;
    object-fit: contain;
  }
  .call-btn {
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
  }
  .mobile-menu summary {
    min-height: 42px;
    padding: 0 12px;
    font-size: 14px;
  }
  .mobile-menu .mobile-menu-panel {
    right: -6px;
    width: min(276px, calc(100vw - 28px));
  }
  .hero-layout {
    padding: 42px 0 34px;
    display: block;
  }
  .hero h1 {
    font-size: 32px;
    line-height: 1.12;
  }
  .hero p { font-size: 17px; }
  .hero-actions .mg-btn { width: 100%; }
  .trustline span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-panel {
    margin-top: 26px;
    border-radius: 18px;
  }
  .hero-panel > img {
    height: 185px;
  }
  .hero-proof { padding: 16px; }
  .intro-panel {
    margin-top: 0;
    width: 100%;
    padding: 26px 18px;
    border-radius: 0;
    box-shadow: none;
  }
  .mg-container.intro-panel { width: 100%; }
  section { padding: 54px 0; }
  .section-head {
    text-align: left;
    margin-bottom: 26px;
  }
  .section-head h2,
  .intro-panel h2,
  .about-card h2 { font-size: 29px; }
  .service-grid,
  .area-grid,
  .process-grid,
  .stat-grid,
  .gallery-stack { grid-template-columns: 1fr; }
  .service-card {
    min-height: auto;
    padding: 22px;
    border-radius: 16px;
  }
  .service-card h3 { font-size: 22px; }
  .catalog-layout h2 { font-size: 31px; }
  .catalog-card,
  .about-card,
  .stat-grid,
  .quote-grid,
  .page-content .entry-content {
    padding: 24px;
    border-radius: 18px;
  }
  .catalog-card img {
    width: 210px;
    margin-left: auto;
    margin-right: auto;
  }
  .footer-brand { font-size: 30px; }
  .gallery-feature img { min-height: 260px; }
  .gallery-card img { min-height: 210px; height: 210px; }
  .quote-grid h2 { font-size: 27px; }
  iframe {
    min-height: 300px;
    border-radius: 16px;
  }
  .footer-grid { gap: 20px; }
  .mobile-actions {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .mobile-actions a {
    min-height: 52px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
  }
  .mobile-actions a:first-child { background: var(--gold); color: #17212b; }
  .mobile-actions a:last-child { background: var(--green); color: #fff; }
  .page-hero h1 { font-size: 34px; }
  .service-layout { grid-template-columns: 1fr; }
  .service-main { padding: 24px; }
  .service-main h2 { font-size: 28px; }
  .product-grid { grid-template-columns: 1fr; }
  .service-side { position: static; }
  .service-photo-grid { grid-template-columns: 1fr; }
  .service-photo-card img { height: 235px; }
}
