/*
Theme Name: ISP Group
Theme URI: https://ispgroup.com.tr
Author: ISP Group
Description: ISP Group - Industrial Solution Partner kurumsal teması.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ispgroup
*/

:root {
  --teal: #12998c;
  --teal-dark: #0b6f66;
  --teal-light: #e7f5f3;
  --gray: #939598;
  --gray-light: #f4f6f7;
  --ink: #1b2730;
  --ink-soft: #4a5862;
  --line: #e2e7ea;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(18, 40, 50, .08);
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #c9d3d8; font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { color: #c9d3d8; }
.topbar a:hover { color: var(--white); }
.topbar-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-contact span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-right: 8px; vertical-align: middle; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { height: 54px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 14px; font-weight: 600; color: var(--ink); font-size: 16px; border-radius: 6px; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { color: var(--teal); }
.main-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 290px; background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); padding: 8px; display: block; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; border-top: 3px solid var(--teal); }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { font-weight: 500; font-size: 15px; padding: 9px 12px; }
.main-nav .sub-menu a:hover { background: var(--teal-light); }
.main-nav .menu-item-has-children > a::after { content: "▾"; font-size: 11px; margin-left: 6px; }
.header-cta { white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 6px; font-weight: 700; font-size: 16px; background: var(--teal); color: var(--white) !important; border: 2px solid var(--teal); transition: .2s; cursor: pointer; }
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn--outline { background: transparent; color: var(--white) !important; border-color: rgba(255,255,255,.7); }
.btn--outline:hover { background: var(--white); color: var(--ink) !important; border-color: var(--white); }
.btn--ghost { background: transparent; color: var(--teal-dark) !important; border-color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: var(--white) !important; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); background: var(--ink) center/cover no-repeat; min-height: 640px; display: flex; align-items: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,28,36,.92) 0%, rgba(14,28,36,.75) 45%, rgba(11,111,102,.35) 100%); }
.hero .container { position: relative; padding: 90px 0; }
.hero-inner { max-width: 720px; }
.hero h1 { color: var(--white); }
.hero p { font-size: 1.2rem; color: #dbe5e9; max-width: 620px; }
.eyebrow { display: inline-block; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--teal); margin-bottom: 14px; }
.hero .eyebrow { color: #6fd6cb; }

/* ---------- Page banner ---------- */
.page-banner { position: relative; background: var(--ink) center/cover no-repeat; color: var(--white); padding: 90px 0 70px; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,28,36,.92), rgba(14,28,36,.6)); }
.page-banner .container { position: relative; }
.page-banner h1 { color: var(--white); margin-bottom: .3em; }
.breadcrumb { font-size: 15px; color: #b9c6cc; }
.breadcrumb a { color: #6fd6cb; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section--alt { background: var(--gray-light); }
.section--dark { background: var(--ink); color: #c9d3d8; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--tight { padding: 60px 0; }
.section-head { max-width: 760px; margin: 0 auto 50px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.lead { font-size: 1.15rem; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img, .media-frame img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split .media-frame img { width: auto; max-width: 100%; max-height: 560px; margin-inline: auto; }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--gray-light); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .4em; }
.card-body p { font-size: 16px; }
.card-link { margin-top: auto; font-weight: 700; color: var(--teal-dark); }
.card-link::after { content: " →"; }

.icon-card { padding: 30px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.icon-card .num { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 10px; background: var(--teal-light); color: var(--teal-dark); font-weight: 800; font-family: var(--font-head); font-size: 20px; margin-bottom: 16px; }
.section--dark .icon-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section--dark .icon-card .num { background: rgba(18,153,140,.18); color: #6fd6cb; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: var(--white); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.check-list.cols { columns: 2; column-gap: 40px; }
.check-list.cols li { break-inside: avoid; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--teal); color: var(--white); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 34px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,.18); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.6rem; line-height: 1; margin-bottom: 8px; }
.stat span { font-size: 15px; color: #d9f2ef; }
.stats-wrap { margin-top: -60px; position: relative; z-index: 2; }

/* ---------- Logo wall ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logo-wall .logo-item { background: var(--white); border: 1px solid var(--line); border-radius: 8px; height: 104px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.logo-wall img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(100%); opacity: .75; transition: .25s; }
.logo-wall .logo-item:hover img { filter: none; opacity: 1; }
.logo-wall.color img { filter: none; opacity: 1; }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.tags li { background: var(--teal-light); color: var(--teal-dark); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 30px; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(110deg, var(--teal-dark), var(--teal)); color: var(--white); border-radius: 14px; padding: 54px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0 0 .3em; }
.cta-band p { margin: 0; color: #e0f4f1; }
.cta-band .btn { background: var(--white); color: var(--teal-dark) !important; border-color: var(--white); }
.cta-band .btn:hover { background: var(--ink); color: var(--white) !important; border-color: var(--ink); }

/* ---------- Contact ---------- */
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-card h3 { display: flex; align-items: center; gap: 10px; }
.contact-card dl { margin: 0; }
.contact-card dt { font-weight: 700; color: var(--ink); margin-top: 14px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.contact-card dd { margin: 2px 0 0; }
.map-frame { border: 0; width: 100%; height: 380px; border-radius: var(--radius); display: block; }

/* ---------- Generic content ---------- */
.entry-content > *:not(.alignfull):not(section) { width: min(1200px, 100% - 40px); margin-left: auto; margin-right: auto; }
.entry-content > p:first-child, .entry-content > h2:first-child { margin-top: 60px; }
.default-content { padding: 70px 0; }

/* ---------- Footer ---------- */
.site-footer { background: #121c22; color: #9fb0b8; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 70px 0 50px; }
.site-footer h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 18px; letter-spacing: .04em; text-transform: uppercase; }
.site-footer a { color: #9fb0b8; }
.site-footer a:hover { color: #6fd6cb; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-logo { background: var(--white); display: inline-block; padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; }
.footer-logo img { height: 46px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,.07); display: inline-flex; align-items: center; justify-content: center; }
.social a:hover { background: var(--teal); }
.social svg { width: 18px; height: 18px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav a { padding: 10px 9px; font-size: 15px; }
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .site-header { backdrop-filter: none; }
  .site-header .container { position: relative; }
  .main-nav { display: none; position: absolute; top: 100%; left: -20px; right: -20px; background: var(--white); padding: 10px 20px 24px; max-height: calc(100vh - 140px); overflow-y: auto; box-shadow: 0 14px 30px rgba(18, 40, 50, .15); border-top: 1px solid var(--line); }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 14px 6px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse > :first-child { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar .topbar-social { display: none; }
  .section { padding: 64px 0; }
  .hero { min-height: 560px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .check-list.cols { columns: 1; }
  .cta-band { padding: 34px 26px; }
  .footer-top { grid-template-columns: 1fr; }
  .brand img { height: 44px; }
}