/* ==========================================================================
   Oscar Araştırma — Chemid-inspired design system
   ========================================================================== */

:root {
  /* Palette */
  --navy: #18233F;
  --navy-700: #223052;
  --yellow: #EEC139;
  --yellow-dark: #d9ac22;
  --blue: #006BFF;
  --blue-dark: #0057cc;
  --page: #FCFCFC;
  --ink: #17181C;
  --body: #5b6472;
  --muted: #8b93a3;
  --line: #e8eaef;
  --white: #ffffff;
  --card: #ffffff;

  /* Typography */
  --font-head: "Poppins", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Radius & shadow */
  --r-sm: 8px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 18px 50px rgba(24, 35, 63, .08);
  --shadow-sm: 0 8px 24px rgba(24, 35, 63, .06);

  /* Layout */
  --container: 1200px;
  --gap: 30px;
  --section-y: clamp(56px, 8vw, 110px);
}

/* Reset-ish ------------------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1.1em; }

/* Layout helpers ------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 6vw, 70px); }
.grid { display: grid; gap: var(--gap); }
.center { text-align: center; }

/* Eyebrow micro-label -------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--yellow); }

.lead { font-size: 1.12rem; color: var(--body); max-width: 60ch; }

/* Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  padding: 15px 30px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s, background .2s, color .2s, box-shadow .2s;
  line-height: 1; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--yellow-dark); color: var(--ink); }
.btn--blue { background: var(--blue); color: #eafffb; }
.btn--blue:hover { background: var(--blue-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

.link-more {
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue);
  display: inline-flex; align-items: center; gap: .4em;
}
.link-more:hover .arrow { transform: translateX(4px); }
.link-more .arrow { transition: transform .2s; }

/* ======================================================================
   Header — Chemid-style full-width navy bar with cell dividers
   ====================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
}
.site-header__inner {
  display: flex; align-items: stretch; min-height: 76px;
}
.brand { display: flex; align-items: center; padding: 0 32px; color: #fff; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.22rem; letter-spacing: .04em; color: #fff; white-space: nowrap; }
.brand__custom img { max-height: 40px; width: auto; }

.primary-nav { display: flex; align-items: stretch; }
.primary-nav ul { list-style: none; display: flex; align-items: stretch; margin: 0; padding: 0; }
.primary-nav li { display: flex; align-items: center; position: relative; border-left: 1px solid rgba(255,255,255,.1); }
.primary-nav > ul > li:last-child { border-right: 1px solid rgba(255,255,255,.1); }
.primary-nav a {
  display: flex; align-items: center; gap: 8px; height: 100%;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: #fff; padding: 0 22px;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: rgba(255,255,255,.06); color: #fff; }
.primary-nav .menu-item-has-children > a::after { content: "→"; font-size: .82em; opacity: .65; }

.primary-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 250px; display: block;
  background: #fff; border-radius: 0 0 var(--r-sm) var(--r-sm);
  box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: .18s; z-index: 20;
}
.primary-nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu li { display: block; border: 0; }
.primary-nav .sub-menu a { display: block; height: auto; color: var(--ink); padding: 11px 14px; border-radius: 6px; }
.primary-nav .sub-menu a::after { content: none; }
.primary-nav .sub-menu a:hover { background: rgba(0,107,255,.08); color: var(--blue); }

.header-right { display: flex; align-items: stretch; margin-left: auto; }
.header-login { display: flex; align-items: center; padding: 0 24px; color: rgba(255,255,255,.6); font-family: var(--font-head); font-weight: 600; font-size: .9rem; border-left: 1px solid rgba(255,255,255,.1); }
.header-login:hover { color: #fff; }
.header-cta-block { display: flex; align-items: center; padding: 0 34px; background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .95rem; transition: background .2s; }
.header-cta-block:hover { background: var(--blue-dark); color: #fff; }

.nav-toggle { display: none; align-self: center; margin-left: auto; margin-right: 20px; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: #fff; position: relative; transition: .2s; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ======================================================================
   Hero
   ====================================================================== */
.hero { background: var(--navy); color: #dfe5f1; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 85% -10%, rgba(0,107,255,.28), transparent 60%); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding-block: clamp(60px, 8vw, 100px); }
.hero__badge {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  width: 112px; height: 112px; border-radius: 50%; background: var(--yellow); color: var(--ink);
  font-family: var(--font-head); font-weight: 800; font-size: .72rem; line-height: 1.25; padding: 12px;
  transform: rotate(-8deg); margin-bottom: 26px; box-shadow: 0 12px 30px rgba(238,193,57,.35);
}
.hero h1 { color: #fff; }
.hero__desc { font-size: 1.15rem; color: #b9c2d6; max-width: 46ch; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--r-lg); box-shadow: 0 30px 70px rgba(0,0,0,.35); width: 100%; object-fit: cover; aspect-ratio: 4/5; }
.hero__media--placeholder { border-radius: var(--r-lg); aspect-ratio: 4/5; background: linear-gradient(135deg, #223052, #2d3f6b); display: grid; place-items: center; }

/* ======================================================================
   Section heading block
   ====================================================================== */
.sec-head { max-width: 640px; margin-bottom: 46px; }
.sec-head.center { margin-inline: auto; }
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 50px; }
.split-head .lead { margin: 0; }

/* ======================================================================
   Service cards grid
   ====================================================================== */
.cards { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 34px 30px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon { width: 64px; height: 64px; border-radius: 50%; background: #eef2fb; color: var(--blue); display: grid; place-items: center; margin-bottom: 22px; }
.card__icon svg { width: 30px; height: 30px; }
.card h3 { color: var(--blue); }
.card p { font-size: .98rem; margin-bottom: 20px; }

/* ======================================================================
   Counters / stats
   ====================================================================== */
.stats { background: var(--navy); color: #fff; }
.stats__grid { grid-template-columns: repeat(5, 1fr); text-align: center; }
.stat__num { font-family: var(--font-head); font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); color: var(--yellow); line-height: 1; }
.stat__label { font-size: .92rem; color: #b9c2d6; margin-top: 10px; }

/* ======================================================================
   Process / steps
   ====================================================================== */
.steps { grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step { position: relative; padding-top: 12px; }
.step__num { font-family: var(--font-head); font-weight: 900; font-size: 1.05rem; width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; margin-bottom: 20px; }
.step h3 { font-size: 1.15rem; }
.step p { font-size: .96rem; }

/* ======================================================================
   Accordion (service pages / FAQ)
   ====================================================================== */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--ink);
  padding: 24px 44px 24px 0; position: relative; display: block;
}
.acc-q::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--blue); font-weight: 400; transition: transform .2s; }
.acc-item.open .acc-q::after { content: "−"; }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-a__inner { padding: 0 40px 26px 0; color: var(--body); }
.acc-item.open .acc-a { max-height: 1200px; }

/* ======================================================================
   Blog cards
   ====================================================================== */
.posts-grid { grid-template-columns: repeat(3, 1fr); }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card__thumb { aspect-ratio: 16/10; background: #eef2fb; overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__cat { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.post-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--blue); }
.post-card p { font-size: .95rem; }
.post-card .link-more { margin-top: auto; }

/* ======================================================================
   References logo grid
   ====================================================================== */
.logos { grid-template-columns: repeat(6, 1fr); align-items: center; gap: 22px; }
.logo-item { aspect-ratio: 3/2; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); display: grid; place-items: center; padding: 18px; }
.logo-item img, .logo-item span { filter: grayscale(1); opacity: .7; transition: .25s; font-family: var(--font-head); font-weight: 700; color: var(--muted); font-size: .95rem; text-align: center; }
.logo-item:hover img, .logo-item:hover span { filter: grayscale(0); opacity: 1; color: var(--navy); }

/* ======================================================================
   Newsletter band
   ====================================================================== */
.newsletter { background: linear-gradient(120deg, var(--navy), #24345d); color: #fff; border-radius: var(--r-lg); padding: clamp(34px, 5vw, 60px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.newsletter h2 { color: #fff; }
.newsletter form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter input[type=email] { flex: 1; min-width: 220px; padding: 15px 20px; border-radius: 999px; border: 0; font-size: 1rem; font-family: var(--font-body); }

/* ======================================================================
   Forms (contact / apply)
   ====================================================================== */
.field { display: block; margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 1rem; font-family: var(--font-body); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,107,255,.12); }
.field textarea { min-height: 140px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

.notice { padding: 22px 26px; border-radius: var(--r); border: 1px dashed var(--yellow-dark); background: #fffaf0; color: #7a5c00; }

/* ======================================================================
   Page hero / breadcrumb
   ====================================================================== */
.page-hero { background: var(--navy); color: #fff; padding-block: clamp(50px, 7vw, 90px); text-align: center; }
.page-hero h1 { color: #fff; }
.breadcrumb { font-size: .88rem; color: #9fb0d0; }
.breadcrumb a { color: #cdd8ee; }

/* Prose (single post / page content) ----------------------------------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; color: var(--navy); }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose img { border-radius: var(--r); margin: 1.4em 0; }
.prose a { text-decoration: underline; }

/* ======================================================================
   Footer
   ====================================================================== */
.site-footer { background: var(--navy); color: #b9c2d6; padding-top: clamp(50px, 7vw, 84px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1.02rem; letter-spacing: .04em; margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 12px; }
.site-footer a { color: #b9c2d6; }
.site-footer a:hover { color: var(--yellow); }
.footer-brand svg { width: 44px; height: 44px; margin-bottom: 16px; }
.footer-brand .brand__name { color: #fff; }
.footer-newsletter input { width: 100%; padding: 13px 16px; border-radius: 999px; border: 0; margin-bottom: 12px; font-family: var(--font-body); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: clamp(40px,5vw,64px); padding-block: 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: .9rem; }
.social { display: flex; gap: 12px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #cdd8ee; }
.social a:hover { background: var(--blue); color: #fff; }
.social svg { width: 18px; height: 18px; }

/* ======================================================================
   Responsive
   ====================================================================== */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__media { order: -1; max-width: 420px; }
  .cards, .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(3, 1fr); gap: 34px 20px; }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .split-head, .newsletter, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 34px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav { display: none; position: fixed; inset: 76px 0 0; background: var(--navy); margin: 0; overflow-y: auto; padding: 12px 0; }
  body.nav-open .primary-nav { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; }
  .primary-nav li { display: block; border-left: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .primary-nav > ul > li:last-child { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .primary-nav a { display: flex; padding: 16px 24px; font-size: 1.05rem; color: #fff; }
  .primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,.04); border-radius: 0; padding: 0 0 0 12px; }
  .primary-nav .sub-menu a { color: #dfe5f1; }
  .primary-nav .sub-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .primary-nav .menu-item-has-children > a::after { margin-left: auto; }
  .header-right { display: none; }
  .brand { padding: 0 20px; }
}
@media (max-width: 720px) {
  .cards, .posts-grid, .stats__grid, .steps, .logos, .form-grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { justify-content: center; text-align: center; }
}
