/* IcyCorporate – site stilleri */

:root {
  --accent: #ec1e24;          /* logo kırmızısı: butonlar, linkler, detaylar */
  --accent-strong: #c8151b;   /* hover / küçük metin için daha koyu ton */
  --ink: #1b1c1f;
  --ink-soft: #4a4d55;
  --muted: #6b6f78;
  --line: #e5e6ea;
  --bg: #ffffff;
  --bg-alt: #f6f6f8;
  --footer-bg: #1A237E;
  --footer-ink: #c9cbd1;

  --font-heading: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 10px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* Kısa sayfalarda footer'ı ekranın altına it */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--accent-strong); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: 820px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Butonlar – kırmızı zeminde yalnızca kalın, büyükçe metin (kontrast ~4.4:1) */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn-outline { background: transparent; color: var(--accent-strong); }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1.5rem;
}
.brand img { width: 56px; height: 56px; object-fit: contain; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; }
.site-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a.is-active, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

.lang-switch { gap: 0.25rem !important; padding-left: 1.5rem !important; border-left: 1px solid var(--line); }
.lang-switch a { font-size: 0.85rem; color: var(--muted); padding: 0.25rem 0.4rem; border: 0; }
.lang-switch a[aria-current="true"] { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; cursor: pointer; position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink); content: "";
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a.is-active, .site-nav a[aria-current="page"] { color: var(--accent-strong); border-bottom-color: var(--line); }
  .lang-switch { flex-direction: row !important; padding: 0.75rem 0 0 !important; border-left: 0; }
  .lang-switch a { border: 0 !important; padding: 0.25rem 0.75rem 0.25rem 0 !important; }
}

/* Bölümler */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-alt { background: var(--bg-alt); }

.page-header {
  padding-block: clamp(3rem, 7vw, 4.5rem) clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.page-header h1 { margin-bottom: 0.4em; }
.page-header h1::after {
  content: ""; display: block; width: 56px; height: 4px; margin-top: 0.5em;
  background: var(--accent); border-radius: 2px;
}
.page-header + .section { padding-top: clamp(2rem, 5vw, 3rem); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }

.back-link {
  display: inline-block; margin-bottom: 1rem;
  font-size: 0.9rem; font-weight: 600; color: var(--muted); text-decoration: none;
}
.back-link:hover { color: var(--accent); }

.empty, .notice { color: var(--muted); }
.notice {
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 60ch;
}
.meta { margin-top: 2.5rem; font-size: 0.875rem; color: var(--muted); }

/* Hero */
.hero { padding-block: clamp(3.5rem, 9vw, 7rem); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-inner:not(:has(.hero-media)) { grid-template-columns: 1fr; }
.hero h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-media img { border-radius: calc(var(--radius) * 1.5); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } }

/* Kartlar */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; position: relative;
}
.card p:last-child { margin-bottom: 0; }
.card-title { font-size: 1.15rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-link .card-title a::after { content: ""; position: absolute; inset: 0; }
.card-link:hover { border-color: var(--accent); }
.card-link:hover .card-title a { color: var(--accent-strong); }
.card-media {
  margin: -1.75rem -1.75rem 1.5rem; width: calc(100% + 3.5rem); max-width: none;
  aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0;
}

/* Hakkımızda */
/* Bölümler alt alta, her biri tam genişlikte */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.about-block h2 { font-size: 1.35rem; }
.about-block h2::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 0.6rem;
  background: var(--accent); border-radius: 2px; vertical-align: 0.1em;
}

/* Zengin metin */
.prose { max-width: 72ch; }
.prose > *:last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose h2 { margin-top: 1.75em; }
.prose h3 { margin-top: 1.5em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.5rem 0.75rem; text-align: left; }
.feature-image { width: 100%; border-radius: var(--radius); margin-bottom: 2rem; }

/* Referanslar */
.logo-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 1rem;
}
.logo-grid li > a, .logo-grid li > img, .logo-grid li > span {
  display: flex; align-items: center; justify-content: center;
  min-height: 110px; padding: 1.25rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  color: var(--ink-soft); font-weight: 600; text-align: center; text-decoration: none;
}
.logo-grid img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.logo-grid a:hover { border-color: var(--accent); }
.logo-grid a:hover img { filter: none; opacity: 1; }

/* Kalite */
.cert-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 1.5rem;
}
.cert { display: block; text-decoration: none; color: var(--ink); }
.cert img {
  width: 100%; aspect-ratio: 5 / 7; object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: transform .2s, box-shadow .2s;
}
.cert:hover img { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
.cert span { display: block; margin-top: 0.6rem; font-size: 0.9rem; font-weight: 600; }

/* İletişim */
.contact-grid { display: grid; gap: 1.5rem; }
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.75rem 2rem; margin: 0; }
.contact-list dt { font-family: var(--font-heading); font-weight: 700; }
.contact-list dd { margin: 0; }
.contact-list address { font-style: normal; white-space: pre-line; }
@media (max-width: 520px) { .contact-list { grid-template-columns: 1fr; gap: 0.15rem; } .contact-list dd { margin-bottom: 0.75rem; } }
.contact-directions { margin: 0; }
.map { height: clamp(260px, 45vw, 420px); border: 1px solid var(--line); border-radius: var(--radius); z-index: 0; }
.map-popup { white-space: pre-line; }

/* İletişim formu */
.contact-form-section { max-width: 760px; }
.contact-form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; }
.form-field { display: grid; gap: 0.4rem; }
.form-field label { font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; }
.form-field .optional { font-family: var(--font-body); font-weight: 400; color: var(--muted); }
.form-field input, .form-field textarea {
  width: 100%; padding: 0.7rem 0.85rem; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
.form-field textarea { resize: vertical; min-height: 9rem; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form-field .input-validation-error { border-color: var(--accent-strong); }
.field-error { color: var(--accent-strong); font-size: 0.875rem; }
.field-error:empty { display: none; }
.form-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: 0.875rem; color: var(--ink-soft); }
.form-alert { padding: 0.9rem 1.1rem; border-radius: var(--radius); border: 1px solid; }
.form-alert ul { margin: 0; padding-left: 1.1rem; }
.form-alert-success { margin-bottom: 1.25rem; background: #edf7ee; border-color: #b6dcb9; color: #1e5b26; }
.form-alert-error { background: #fdeeee; border-color: #f3c2c3; color: #8c1014; }
.form-alert-error.validation-summary-valid { display: none; }
.contact-form .btn { justify-self: start; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); font-size: 0.925rem; }
.site-footer a { color: var(--footer-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 2rem; padding-block: 3rem;
}
.footer-brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: #fff; }
.footer-title { font-family: var(--font-heading); font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer address { font-style: normal; white-space: pre-line; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1.25rem; font-size: 0.85rem; }
.footer-bottom p { margin: 0; }
