/* ==========================================================================
   Elliuc Denizcilik — site stylesheet
   ========================================================================== */

:root {
  --navy-900: #0a2540;
  --navy-700: #11365e;
  --navy-500: #1f5aa8;
  --ink:      #0b1f36;
  --paper:    #ffffff;
  --paper-2:  #f7f9fc;
  --muted:    #5b6b80;
  --line:     #e3e8f0;
  --wave-1:   rgba(31, 90, 168, 0.18);
  --wave-2:   #0a2540;
  --accent:   #1f5aa8;

  --font-sans: "Inter", "Poppins", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
               "Apple Color Emoji", "Segoe UI Emoji";

  --container: 1180px;
  --gutter: 1.25rem;
}

* , *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-900); text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------ Top nav -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo img { width: auto; height: 110px; }
.site-header .nav-inner { height: 130px; }
.site-footer .nav-logo img { width: auto; height: 130px; filter: brightness(0) invert(1); }
@media (max-width: 880px) {
  .nav-logo img { height: 70px; }
  .site-header .nav-inner { height: 90px; }
  .nav-list { top: 90px; }
}

.nav-list { display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.nav-list a {
  display: inline-block; padding: 0.55rem 0.9rem; border-radius: 8px;
  color: var(--navy-900); font-weight: 500; font-size: 0.96rem;
}
.nav-list a:hover { background: var(--paper-2); text-decoration: none; }
.nav-list a.active { color: var(--navy-900); background: var(--paper-2); }
.nav-list .has-submenu { position: relative; }
.nav-list .submenu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 0.4rem; margin: 0; list-style: none;
  box-shadow: 0 12px 28px rgba(10,37,64,0.10);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
}
.nav-list .has-submenu:hover .submenu,
.nav-list .has-submenu:focus-within .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity 150ms ease, transform 150ms ease, visibility 0s;
}
.nav-list .submenu a { display: block; padding: 0.55rem 0.8rem; border-radius: 6px; font-size: 0.92rem; }

.nav-list a.nav-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.62rem 1.1rem; border-radius: 999px;
  background: var(--navy-900); color: #fff; font-weight: 600; font-size: 0.92rem;
}
.nav-list a.nav-cta:hover { background: var(--navy-700); color: #fff; text-decoration: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  align-items: center; justify-content: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-900); position: relative; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--navy-900); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  #primary-nav { position: static; }
  .nav-list {
    position: absolute; top: 90px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 0; gap: 0;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
    box-shadow: 0 12px 28px rgba(10,37,64,0.08);
  }
  body.nav-open .nav-list { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity 150ms ease, transform 150ms ease, visibility 0s; }
  .nav-list li { width: 100%; }
  .nav-list a, .nav-list .submenu a {
    display: block; width: 100%;
    padding: 0.95rem var(--gutter);
    border-radius: 0; border-top: 1px solid var(--line);
    -webkit-tap-highlight-color: transparent;
  }
  .nav-list li:first-child > a { border-top: 0; }
  .nav-list a.active { background: var(--paper-2); }
  .nav-list .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: var(--paper-2); border: 0; box-shadow: none; padding: 0;
  }
  .nav-list .submenu a { padding-left: calc(var(--gutter) + 1rem); font-size: 0.92rem; }
  .nav-list a.nav-cta {
    margin: 0.8rem var(--gutter) 1rem;
    width: calc(100% - 2 * var(--gutter));
    justify-content: center;
    border-top: 0;
  }
}

/* --------------------------------- Hero -------------------------------- */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, #f3f6fb 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  margin: 0 0 1rem;
  color: var(--navy-900);
  font-size: clamp(1.9rem, 4vw + 0.5rem, 3.1rem);
  line-height: 1.1; letter-spacing: -0.02em; font-weight: 700;
  max-width: 900px;
}
.hero .lead {
  margin: 0 auto 1.6rem 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1vw + 0.7rem, 1.25rem);
  line-height: 1.55;
  max-width: 720px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero with background image (dark overlay + white text) */
.hero.hero-image {
  position: relative;
  background-color: var(--navy-900);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 0;
  padding: 6rem 0 5rem;
  color: #fff;
}
.hero.hero-image::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,37,64,0.78) 0%, rgba(10,37,64,0.45) 100%),
    linear-gradient(180deg, rgba(10,37,64,0.55) 0%, rgba(10,37,64,0.90) 100%);
  pointer-events: none;
}
.hero.hero-image h1 { text-shadow: 0 2px 18px rgba(0,0,0,0.25); }
.hero.hero-image .lead { text-shadow: 0 1px 12px rgba(0,0,0,0.20); }
.hero.hero-image .container { position: relative; z-index: 1; }
.hero.hero-image h1 { color: #fff; }
.hero.hero-image .lead { color: rgba(255,255,255,0.88); }
.hero.hero-image .eyebrow { background: rgba(255,255,255,0.15); color: #fff; }
.hero.hero-image .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.hero.hero-image .btn-secondary:hover { background: rgba(255,255,255,0.10); color: #fff; border-color: rgba(255,255,255,0.7); }
@media (max-width: 640px) { .hero.hero-image { padding: 4.5rem 0 3.5rem; } }

/* ------------------------------ Buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.85rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 150ms ease, background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); text-decoration: none; }
.btn-secondary { background: #fff; color: var(--navy-900); border-color: rgba(10,37,64,0.18); }
.btn-secondary:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); text-decoration: none; }
.btn-large { padding: 1rem 1.6rem; font-size: 1.05rem; }

/* ------------------------------ Sections ------------------------------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--paper-2); }
.section h2 {
  margin: 0 0 0.5rem; color: var(--navy-900);
  font-size: clamp(1.5rem, 2vw + 0.7rem, 2.1rem); font-weight: 700; letter-spacing: -0.015em;
}
.section .eyebrow {
  display: inline-block; padding: 0.3rem 0.7rem; border-radius: 999px;
  background: rgba(10,37,64,0.08); color: var(--navy-900);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.section-intro { color: var(--muted); font-size: 1.08rem; max-width: 720px; margin: 0 0 2.2rem; }

/* ----------------------------- Card grids ------------------------------ */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 1.5rem; transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.card h3 { margin: 0 0 0.5rem; color: var(--navy-900); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin: 0 0 1rem; color: var(--muted); font-size: 0.97rem; line-height: 1.6; }
.card a.card-link { color: var(--navy-700); font-weight: 600; font-size: 0.92rem; }
.card-pillar h3 { color: var(--navy-900); }
.card-pillar .pillar-num {
  display: inline-block; width: 32px; height: 32px; border-radius: 8px;
  background: var(--navy-900); color: #fff; font-weight: 700;
  text-align: center; line-height: 32px; font-size: 0.92rem; margin-bottom: 0.7rem;
}
.card-service:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10,37,64,0.08); border-color: rgba(10,37,64,0.18); }
.card-service { padding: 0; overflow: hidden; }
.card-service .card-thumb {
  display: block; width: 100%; height: 200px;
  object-fit: cover; border-radius: 0;
}
.card-service > h3,
.card-service > p,
.card-service > a.card-link { padding-left: 1.5rem; padding-right: 1.5rem; }
.card-service > h3 { padding-top: 1.4rem; }
.card-service > a.card-link { padding-bottom: 1.5rem; }

/* --------------------------- Category list ----------------------------- */
.cat-list { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 720px) { .cat-list { grid-template-columns: 1fr; } }
.cat-item { padding: 1.1rem 1.2rem; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.cat-item h4 { margin: 0 0 0.35rem; color: var(--navy-900); font-size: 1rem; font-weight: 700; }
.cat-item p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

/* --------------------------- 3-step strip ------------------------------ */
.steps { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0,1fr)); counter-reset: step; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 1.3rem; background: #fff; border-radius: 12px; border: 1px solid var(--line); position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 1.1rem; right: 1.2rem;
  font-size: 1.4rem; font-weight: 800; color: rgba(10,37,64,0.18);
}
.step h4 { margin: 0 0 0.3rem; color: var(--navy-900); font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

/* --------------------------- Bullet list ------------------------------- */
.bullets { padding: 0; margin: 0; list-style: none; display: grid; gap: 0.6rem; }
.bullets li { padding-left: 1.4rem; position: relative; color: var(--ink); font-size: 0.98rem; line-height: 1.5; }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--navy-500);
}

/* ------------------------ Sector block (long) -------------------------- */
.sector {
  padding: 2rem 0; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 320px 1fr; gap: 2rem; align-items: start;
}
.sector:last-child { border-bottom: 0; }
.sector .sector-image {
  width: 100%; height: 220px; object-fit: cover;
  border-radius: 12px; display: block;
}
.sector .sector-body { min-width: 0; }
.sector h3 { margin: 0 0 0.2rem; color: var(--navy-900); font-size: 1.3rem; font-weight: 700; }
.sector .sector-sub { color: var(--muted); font-size: 0.92rem; font-style: italic; margin: 0 0 0.7rem; }
.sector p { color: var(--ink); line-height: 1.6; margin: 0 0 0.5rem; }
.sector .common-deliveries { font-size: 0.9rem; color: var(--muted); margin-top: 0.4rem; }
.sector .common-deliveries strong { color: var(--navy-900); }
@media (max-width: 720px) {
  .sector { grid-template-columns: 1fr; gap: 1rem; }
  .sector .sector-image { height: 200px; }
}

/* ------------------------- CTA band (closing) -------------------------- */
.cta-band {
  background: var(--navy-900); color: #fff;
  padding: 3rem 0;
}
.cta-band h2 { color: #fff; margin: 0 0 0.6rem; }
.cta-band p { color: rgba(255,255,255,0.84); max-width: 640px; margin: 0 0 1.4rem; font-size: 1.05rem; }
.cta-band .btn-primary { background: #fff; color: var(--navy-900); }
.cta-band .btn-primary:hover { background: var(--paper-2); color: var(--navy-900); }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,0.10); color: #fff; border-color: rgba(255,255,255,0.55); }

/* ----------------------------- Contact card ---------------------------- */
.contact-card {
  max-width: 720px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 2.2rem;
}
.contact-card h2 { text-align: center; margin-bottom: 1.2rem; }
.contact-item { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.contact-item:last-of-type { border-bottom: 0; }
.contact-item .label { display: block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 0.25rem; }
.contact-item .value { color: var(--navy-900); font-size: 1.02rem; font-weight: 500; }
.contact-item a { color: var(--navy-700); font-weight: 600; }
.contact-cta { display: flex; justify-content: center; margin-top: 1.6rem; }

/* -------------------------------- Footer ------------------------------- */
.site-footer {
  background: var(--navy-900); color: rgba(255,255,255,0.78);
  padding: 3rem 0 1.5rem;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .nav-logo-text { color: #fff; }
.footer-brand .nav-logo-text small { color: rgba(255,255,255,0.6); }
.footer-brand p { font-size: 0.92rem; line-height: 1.55; color: rgba(255,255,255,0.72); margin-top: 0.8rem; max-width: 32ch; }
.footer-col h5 { color: #fff; margin: 0 0 0.8rem; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a { color: rgba(255,255,255,0.78); font-size: 0.95rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
}

/* ---------------------- Decorative bottom wave (home only) ------------- */
.wave-floor {
  position: relative; left: 0; right: 0; height: 80px;
  background: var(--navy-900);
}
.waves {
  position: relative; width: 100%; height: 90px; display: block;
  margin-bottom: -1px;
}
.wave-back  { fill: var(--wave-1); }
.wave-front { fill: var(--wave-2); }

/* ------------------------ Accessibility / utility ---------------------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid #5ea0ff; outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}