/* Ege Toros — brand tokens from the corporate identity sheet */
:root {
  --gray: #585759;
  --purple: #882474;
  --orange: #f1a106;
  --flame: #ff6b00;
  --yellow: #ffd500;
  --cyan: #0e97c1;
  --sky: #00b4dc;

  --ink: #2c2b2e;
  --ink-soft: #585759;
  --paper: #ffffff;
  --mist: #f3f4f6;
  --line: #e2e3e6;
  --asphalt: #262528;

  --ribbon: linear-gradient(90deg, var(--cyan) 0%, var(--yellow) 40%, var(--orange) 55%, var(--flame) 70%, var(--purple) 100%);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  --header-h: 76px;

  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-lead: clamp(1.0625rem, 1.2vw, 1.1875rem);
  --fs-h3: clamp(1.1875rem, 1.6vw, 1.375rem);
  --fs-h2: clamp(1.875rem, 3.6vw, 2.75rem);
  --fs-h1: clamp(2.375rem, 6.2vw, 4.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Hard stop for horizontal overflow (scaled images mid-animation must never widen the mobile layout viewport) */
html, body { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd, figure { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.5em;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 .9375rem/1 "Poppins", sans-serif; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--purple); color: #fff; }
.btn-solid:hover { background: #6e1c5e; }
.btn-ghost { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-line { border-color: var(--gray); color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: #fff; transition: background-color .25s, color .25s, box-shadow .25s;
}
.site-header.is-solid { background: rgba(255,255,255,.97); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; width: 158px; flex: none; position: relative; }
.brand img { width: 100%; }
.brand .logo-dark { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.brand .logo-light { transition: opacity .25s; }
.is-solid .brand .logo-dark, .menu-open .brand .logo-dark { opacity: 1; }
.is-solid .brand .logo-light, .menu-open .brand .logo-light { opacity: 0; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 24px; }
.nav ul a { font-size: .9375rem; font-weight: 500; text-decoration: none; padding: 6px 0; position: relative; }
.nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--ribbon); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav ul a:hover::after, .nav ul a[aria-current="true"]::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: none; color: inherit; cursor: pointer; padding: 12px; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, background-color .25s; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; background: #fff; color: var(--ink);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px;
    box-shadow: 0 16px 32px rgba(38,37,40,.12);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .nav ul a::after { display: none; }
  .menu-open .site-header { background: #fff; color: var(--ink); }
}

/* Hero */
.hero { position: relative; min-height: min(100svh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--asphalt); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,19,22,.55) 0%, rgba(20,19,22,.2) 35%, rgba(20,19,22,.72) 100%), linear-gradient(90deg, rgba(20,19,22,.55) 0%, rgba(20,19,22,0) 65%); }
.hero-in { position: relative; padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(120px, 16vw, 200px); }
.hero-motto { font-size: var(--fs-lead); font-weight: 500; margin-bottom: 18px; color: var(--yellow); }
.hero h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.02; letter-spacing: -.025em; max-width: 13ch; }
.hero-lead { margin: 24px 0 36px; font-size: var(--fs-lead); max-width: 34rem; color: rgba(255,255,255,.92); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(48px, 8vw, 120px); }

/* Hakkımızda */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-copy h2 { margin-bottom: 28px; max-width: 16ch; }
.about-copy p:not(.lead) { color: var(--ink-soft); max-width: 62ch; }
.certs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.certs li { padding: 8px 16px; border: 1.5px solid var(--gray); border-radius: 999px; font-weight: 600; font-size: var(--fs-sm); }

.figures { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.figures > div { padding: 22px 0 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; }
.figures > div:nth-child(odd) { padding-right: 20px; }
.figures > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.figures dd { font-size: clamp(1.875rem, 3.2vw, 2.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.figures dt { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.4; }
.about-side .figures > div:nth-child(1) dd { color: var(--cyan); }
.about-side .figures > div:nth-child(2) dd { color: var(--flame); }
.about-side .figures > div:nth-child(3) dd { color: var(--purple); }
.about-map { margin-top: 36px; }
.about-map img { width: 100%; }
.about-map figcaption { margin-top: 14px; font-size: var(--fs-sm); color: var(--ink-soft); }

/* Hizmetler — explorer */
.services { background: var(--mist); }
.services-head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: start; margin-bottom: clamp(40px, 5vw, 64px); }
.services-head .lead { color: var(--ink-soft); margin: 0; }
.explorer { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: stretch; }
.explorer-tabs { display: flex; flex-direction: column; gap: 4px; }
.explorer-tabs button {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 12px 16px;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink);
  font: 500 1rem/1.3 "Poppins", sans-serif; text-align: left; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.explorer-tabs button:hover { background: rgba(88,87,89,.08); }
.explorer-tabs button[aria-selected="true"] { background: var(--paper); box-shadow: 0 1px 2px rgba(38,37,40,.08), 0 8px 24px rgba(38,37,40,.06); font-weight: 600; }
.explorer-tabs svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--gray); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.explorer-tabs button[aria-selected="true"] svg { stroke: url(#ribbon-grad); }

.panel { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); background: var(--paper); border-radius: 20px; overflow: hidden; min-height: 460px; box-shadow: 0 1px 2px rgba(38,37,40,.06); }
.panel[hidden] { display: none; }
.panel-copy { order: 1; padding: clamp(28px, 3.4vw, 48px); align-self: center; }
.panel-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 18px; }
.panel-copy p { color: var(--ink-soft); }
.panel-copy p:last-child { margin-bottom: 0; }
.panel-media { order: 2; position: relative; min-height: 280px; overflow: hidden; }
.panel-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.curve { position: absolute; top: 0; bottom: 0; left: 0; height: 100%; width: 22%; max-width: 110px; }
.curve-fill { fill: var(--paper); }
@media (min-width: 961px) { .panel-media img { left: 2px; width: calc(100% - 2px); } }
.curve-line { fill: none; stroke: url(#ribbon-grad); stroke-width: 12; vector-effect: non-scaling-stroke; }
.services-foot { margin-top: 32px; color: var(--ink-soft); font-size: var(--fs-sm); text-align: center; }

/* No-JS fallback: all panels stacked */
.explorer:not(.is-ready) { grid-template-columns: 1fr; }
.explorer:not(.is-ready) .explorer-tabs { display: none; }
.explorer:not(.is-ready) .explorer-panels { display: grid; gap: 20px; }

/* Neden Ege Toros */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.why-media { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; }
.why-media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.why-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--ribbon); }
.why-copy h2 { margin-bottom: 32px; }
.why-list > div { padding: 18px 0; border-top: 1px solid var(--line); }
.why-list > div:last-child { border-bottom: 1px solid var(--line); }
.why-list dt { font-weight: 600; font-size: 1.0625rem; margin-bottom: 4px; }
.why-list dd { color: var(--ink-soft); }

/* Sürdürülebilirlik */
.eco { background: linear-gradient(180deg, var(--paper) 0%, #eef8fb 100%); }
.eco-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.eco-copy h2 { margin-bottom: 24px; }
.eco-copy > p:last-child { color: var(--ink-soft); max-width: 62ch; margin: 0; }
.eco-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0; }
.eco-figures > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding-top: 14px; border-top: 3px solid var(--cyan); }
.eco-figures > div:nth-child(2) { border-color: var(--orange); }
.eco-figures > div:nth-child(3) { border-color: var(--purple); }
.eco-figures dd { font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.eco-figures dt { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.4; }
.eco-media { border-radius: 20px; overflow: hidden; box-shadow: 0 24px 48px rgba(14,151,193,.18); }
.eco-media img { width: 100%; }

/* Milas */
.milas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.milas-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.milas-media img { border-radius: 14px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.milas-media img:nth-child(2) { margin-top: 48px; }
.milas-kicker { font-weight: 500; color: var(--ink-soft); margin-bottom: 6px; }
.milas-copy h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -.025em; }
.milas-plus { font-size: var(--fs-lead); margin: 12px 0 28px; }
.milas-plus q { quotes: "“" "”"; font-weight: 700; color: var(--purple); }
.milas-copy h3 { margin-bottom: 12px; }
.milas-copy > p:not(.milas-kicker):not(.milas-plus) { color: var(--ink-soft); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 8px 0 28px; }
.checks li { padding: 6px 14px; border-radius: 8px; background: var(--mist); font-size: var(--fs-sm); font-weight: 500; }
.milas-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.milas-contact address { color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.55; }

/* Referanslar */
.refs { background: var(--mist); }
.refs-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.refs-copy h2 { margin-bottom: 28px; max-width: 14ch; }
.refs-why > div { padding: 16px 0; border-top: 1px solid var(--line); }
.refs-why dt { font-weight: 600; margin-bottom: 4px; }
.refs-why dd { color: var(--ink-soft); }
.refs-logos h3 { margin-bottom: 20px; }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.logos li { background: #fff; border-radius: 12px; height: 96px; display: grid; place-items: center; padding: 16px 20px; }
.logos img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }

/* Konum */
.where-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.where-copy h2 { margin-bottom: 20px; max-width: 14ch; }
.where-copy h3 { font-size: 1.0625rem; margin: 24px 0 6px; }
.where-copy p:not(.lead) { color: var(--ink-soft); margin: 0; }
.where-media { border-radius: 20px; overflow: hidden; }
.where-media img { width: 100%; }

/* Instagram */
.social { padding-top: 0; }
.social-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.social-title { display: flex; align-items: center; gap: 16px; }
.ig-icon { width: 1.25em; height: 1.25em; flex: none; }
.ig-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%); color: #fff; }
.ig-badge .ig-icon { width: 28px; height: 28px; }
.social-head .btn .ig-icon { margin-right: 2px; }
.ig-grid a { position: relative; display: block; border-radius: 14px; overflow: hidden; }
.ig-grid a::after { content: ""; position: absolute; inset: 0; background: rgba(20,19,22,0); transition: background-color .3s; }
.ig-grid a:hover::after, .ig-grid a:focus-visible::after { background: rgba(20,19,22,.35); }
.ig-corner { position: absolute; z-index: 1; left: 50%; top: 50%; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.95); color: #d62976; box-shadow: 0 8px 24px rgba(20,19,22,.25); opacity: 0; transform: translate(-50%, -50%) scale(.8); transition: opacity .3s, transform .3s; }
.ig-corner .ig-icon { width: 28px; height: 28px; }
.ig-grid a:hover .ig-corner, .ig-grid a:focus-visible .ig-corner { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .ig-corner { display: none; } }
.footer-ig { display: inline-flex; align-items: center; gap: 8px; }
.ig-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.ig-grid a:hover img { transform: scale(1.04); }

/* İletişim */
.contact { background: var(--asphalt); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-main h2 { margin-bottom: 32px; }
.contact-big { display: block; width: fit-content; max-width: 100%; font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 600; line-height: 1.25; text-decoration: none; letter-spacing: -.015em; }
.contact-big:hover { color: var(--yellow); }
.contact-mail { font-size: clamp(1.25rem, 2.6vw, 1.875rem); margin-top: 6px; font-weight: 500; overflow-wrap: anywhere; }
.contact-addr { margin-top: 24px; color: rgba(255,255,255,.75); }
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.locations li { padding-top: 16px; border-top: 3px solid var(--cyan); }
.locations li:nth-child(2) { border-color: var(--purple); }
.locations h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.locations p { color: rgba(255,255,255,.75); font-size: var(--fs-sm); margin-bottom: 8px; }
.locations a { display: block; width: fit-content; font-size: var(--fs-sm); font-weight: 600; color: #fff; text-underline-offset: 4px; padding: 4px 0; }
.locations a:hover { color: var(--yellow); }

/* Footer */
.site-footer { background: #1c1b1e; color: rgba(255,255,255,.8); }
.site-footer::before { content: ""; display: block; height: 6px; background: var(--ribbon); transform: scaleX(var(--ribbon-scale, 1)); transform-origin: left; }
.footer-in { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: center; padding-block: 48px; }
.footer-brand img { width: 170px; }
.footer-brand p { margin: 6px 0 0 58px; font-size: var(--fs-sm); color: rgba(255,255,255,.6); }
.footer-motto { margin: 0; font-size: 1.0625rem; font-weight: 500; color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--fs-sm); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }
.footer-copy { grid-column: 1 / -1; margin: 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8125rem; color: rgba(255,255,255,.55); }

/* Responsive */
@media (max-width: 960px) {
  .about-grid, .why-grid, .eco-grid, .milas-grid, .refs-grid, .where-grid, .contact-grid, .services-head { grid-template-columns: 1fr; }
  .explorer { grid-template-columns: 1fr; }
  .explorer-tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .explorer-tabs::-webkit-scrollbar { display: none; }
  .explorer-tabs button { width: auto; flex: none; white-space: nowrap; scroll-snap-align: start; }
  .panel { grid-template-columns: 1fr; min-height: 0; }
  .panel-media { order: 0; aspect-ratio: 16 / 10; min-height: 0; }
  .curve { display: none; }
  .panel-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--ribbon); }
  .why-media { aspect-ratio: 16 / 11; }
  .eco-media { max-width: 420px; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .brand { width: 136px; }
  .figures dd { font-size: 1.75rem; }
  .eco-figures { grid-template-columns: 1fr; gap: 12px; }
  .locations { grid-template-columns: 1fr; }
  .milas-media img:nth-child(2) { margin-top: 24px; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .logos li { height: 84px; }
  .hero-cta .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 640px) { .hero-img { object-position: 40% 50%; } }

/* Motion — initial states before the intro timeline (see assets/js/anim.js) */
.js-anim .header-in,
.js-anim .hero-motto,
.js-anim .hero h1,
.js-anim .hero-lead,
.js-anim .hero-cta { opacity: 0; }
.js-anim .hero-wave path:last-child { opacity: 0; }
.hero-img { will-change: transform; transform-origin: 50% 60%; }
.split-word { display: inline-block; }
/* Clip wrappers from splitText: extra room so descenders (ğ, y, ş) and accents aren't cut, without changing line spacing */
span:has(> .split-word) { padding-block: .12em .22em; margin-block: -.12em -.22em; }
