/* =====================================================================
   TRN DENİZCİLİK & LOJİSTİK — ORTAK STİLLER (main.css)
   Tüm sayfaların paylaştığı tasarım sistemi: tasarım token'ları (:root),
   temel tipografi, navbar, footer, butonlar, ortak bileşenler ve
   ortak responsive kurallar. Sayfaya özel stiller ilgili HTML dosyasının
   içindeki <style> bloğunda kalır (main.css'ten SONRA yüklenir; böylece
   sayfaya özel override'lar bu dosyayı ezebilir).
   ===================================================================== */

/* Global kutu modeli: padding/border genişliğe eklenmesin -> yatay taşma önlenir */
*, *::before, *::after { box-sizing: border-box; }

:root {
      --ink: #0C2033;
      --ink-soft: #16324C;
      --sea: #5BACE3;
      --sea-deep: #5BACE3;
      --sea-light: #EAF5FC;
      --paper: #FFFFFF;
      --paper-warm: #F7F8F9;
      --text: #1C2833;
      --muted: #64707B;
      --line: #E3E7EB;
      --line-dark: rgba(255,255,255,.16);
      --f-display: "Inter", sans-serif;

      
      --tick: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='m5 13 4 4 10-10'/></svg>");
      --f-body: "Inter", sans-serif;

      --anchor-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='5' r='2.4'/><path d='M12 7.4V21'/><path d='M4 13c0 4.4 3.6 8 8 8s8-3.6 8-8'/><path d='M2.5 13H6M18 13h3.5'/></svg>");
    }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;          /* mobilde yatay taşmayı (sağdaki boşluğu) engelle */
  /* Sabit (fixed) navbar altında kalmasın diye anchor (#id) kaydırmalarında
     üstte navbar yüksekliği kadar boşluk bırak. Navbar ~85px (solid ~74px). */
  scroll-padding-top: 96px;
}

body {
      font-family: var(--f-body);
      color: var(--text);
      background: var(--paper);
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }

::selection { background: var(--sea-deep); color: #fff; }

h1, h2, h3, h4{ font-family: var(--f-display); letter-spacing: -.01em; }

.eyebrow {
      font-size: .78rem; font-weight: 600;
      letter-spacing: .22em; text-transform: uppercase;
      color: var(--muted);
      display: block; margin-bottom: 1.2rem;
    }

.eyebrow.on-dark { color: rgba(255,255,255,.55); }

.h-lg { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 600; line-height: 1.12; color: var(--ink); }

section { padding: clamp(4.5rem, 9vw, 8rem) 0; }

.navbar-trn {
      position: fixed; inset: 0 0 auto 0; z-index: 1030;
      padding: .65rem 0;
      transition: all .35s ease;
    }

.navbar-trn .nav-link{ color: #fff; }

.navbar-trn.solid {
      background: rgba(255,255,255,.96);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--line);
      padding: .55rem 0;
    }

.navbar-trn.solid .nav-link{ color: var(--ink); }

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }

.brand-img { height: 64px; width: auto; max-width: 260px; display: block; object-fit: contain;
      transition: background .3s ease, padding .3s ease, height .3s ease; }

.brand-img-footer { height: 62px; max-width: 270px; }

.navbar-trn.solid .brand-img { height: 56px; }

@media (max-width: 575.98px) {
      .brand-img { height: 48px; }
      .navbar-trn.solid .brand-img { height: 44px; }
    }

.navbar-trn .nav-link {
      font-family: var(--f-display);
      font-size: .92rem; font-weight: 600;
      padding: .5rem 1rem !important;
      opacity: .85; transition: opacity .2s ease;
    }

.navbar-trn .nav-link:hover, .navbar-trn .nav-link.active { opacity: 1; }

.btn-nav {
      font-family: var(--f-display); font-weight: 600; font-size: .9rem;
      color: #fff; background: var(--sea-deep);
      border: none; border-radius: 100px;
      padding: .55rem 1.4rem;
      text-decoration: none;
      transition: background .25s ease, transform .25s ease;
      display: inline-block;
    }

.btn-nav:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }

.navbar-toggler { border: none; }

.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(46,124,168,.4); }

.navbar-trn .navbar-toggler-icon {
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-width='2' d='M4 9h22M4 15h22M4 21h22'/%3e%3c/svg%3e");
    }

.navbar-trn.solid .navbar-toggler-icon {
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230C2033' stroke-linecap='round' stroke-width='2' d='M4 9h22M4 15h22M4 21h22'/%3e%3c/svg%3e");
    }

@media (max-width: 991.98px) {
      .navbar-trn .navbar-collapse {
        background: #fff;
        margin-top: 1rem; border-radius: 12px;
        padding: 1.25rem 1.5rem;
        border: 1px solid var(--line);
        box-shadow: 0 24px 60px rgba(12,32,51,.14);
      }
      .navbar-trn .navbar-collapse .nav-link { color: var(--ink) !important; }
    }

.contact-inner { max-width: 46ch; text-shadow: 0 1px 14px rgba(4,14,24,.45); }

.contact-cta h2 {
      font-family: var(--f-display);
      font-size: clamp(2rem, 4.2vw, 3.3rem);
      font-weight: 700; line-height: 1.12;
      margin: 0 0 1.1rem;
      text-wrap: balance;
    }

.contact-cta p {
      color: rgba(255,255,255,.82);
      font-size: 1.02rem; line-height: 1.7;
      margin: 0 0 2.2rem;
    }

.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.btn-contact {
      display: inline-flex; align-items: center; gap: .7rem;
      font-family: var(--f-display); font-weight: 700; font-size: .95rem;
      background: #fff; color: var(--ink) !important;
      border: 1.5px solid #fff; border-radius: 100px;
      padding: .9rem 1.8rem; text-decoration: none;
      box-shadow: 0 14px 34px rgba(4,14,24,.28);
      transition: background .25s ease, border-color .25s ease, transform .25s ease;
    }

.btn-contact svg { transition: transform .25s ease; }

.btn-contact:hover { background: var(--sea); border-color: var(--sea); transform: translateY(-2px); }

.btn-contact:hover svg { transform: translateX(4px); }

.btn-contact-ghost {
      display: inline-flex; align-items: center; gap: .7rem;
      font-family: var(--f-display); font-weight: 600; font-size: .95rem;
      background: rgba(255,255,255,.10); color: #fff !important;
      border: 1.5px solid rgba(255,255,255,.5); border-radius: 100px;
      padding: .9rem 1.8rem; text-decoration: none;
      backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
      transition: background .25s ease, border-color .25s ease, transform .25s ease;
    }

.btn-contact-ghost:hover { background: rgba(255,255,255,.2); border-color: #fff; transform: translateY(-2px); }

.contact-meta {
      display: flex; flex-wrap: wrap; gap: 1.8rem;
      margin-top: 2.6rem; padding-top: 1.8rem;
      border-top: 1px solid var(--line-dark);
    }

.contact-meta div { display: flex; align-items: center; gap: .6rem; }

.contact-meta svg { color: var(--sea); flex: 0 0 auto; }

.contact-meta span { font-size: .88rem; color: rgba(255,255,255,.8); }

.contact-meta a { color: #fff !important; font-weight: 600; text-decoration: none; }

.contact-meta a:hover { color: var(--sea) !important; }

@media (max-width: 575.98px) {
      .contact-actions .btn-contact,
      .contact-actions .btn-contact-ghost { width: 100%; justify-content: center; }
      .contact-meta { gap: 1rem; flex-direction: column; }
    }

.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 5rem 0 0; }

.footer h4 {
      font-size: .78rem; font-weight: 600;
      letter-spacing: .2em; text-transform: uppercase;
      color: rgba(255,255,255,.45);
      margin-bottom: 1.2rem;
    }

.footer .addr { font-size: .95rem; line-height: 1.8; font-style: normal; }

.footer .addr strong { color: #fff; font-family: var(--f-display); display: block; margin-bottom: .2rem; }

.footer ul { list-style: none; padding: 0; margin: 0; }

.footer ul li { padding: .32rem 0; font-size: .93rem; }

.footer a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s ease; }

.footer a:hover { color: #fff; }

.footer-bottom {
      border-top: 1px solid var(--line-dark);
      margin-top: 4rem; padding: 1.4rem 0;
      font-size: .82rem; color: rgba(255,255,255,.45);
      display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
    }

.footer-map {
      border: 0; width: 100%; height: 190px;
      border-radius: 12px; margin-top: 1.2rem;
      filter: grayscale(1) contrast(.9) brightness(1.05);
      transition: filter .35s ease;
    }

.footer-map:hover { filter: none; }

.map-nav-link {
      display: inline-flex; align-items: center; gap: .5rem;
      font-family: var(--f-display); font-weight: 600; font-size: .88rem;
      color: #fff !important; margin-top: .9rem;
    }

.map-nav-link svg { color: var(--sea); }

.socials { display: flex; gap: .7rem; margin-top: 1rem; }

.socials a {
      width: 40px; height: 40px; border-radius: 50%;
      display: grid; place-items: center;
      background: rgba(255,255,255,.08); color: #fff !important;
      transition: background .25s ease, transform .25s ease;
    }

.socials a:hover { background: var(--sea-deep); transform: translateY(-2px); }

.footer-bottom a { color: rgba(255,255,255,.55); text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom a:hover { color: #fff; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }

.reveal.visible { opacity: 1; transform: none; }

a:focus-visible, button:focus-visible, select:focus-visible {
      outline: 3px solid var(--sea-deep); outline-offset: 2px;
    }

@media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .reveal { opacity: 1; transform: none; transition: none; }
      * { transition-duration: .01ms !important; }
    }

.page-hero .crumb { font-size: .8rem; color: rgba(255,255,255,.55); }

.page-hero .crumb a { color: rgba(255,255,255,.82); text-decoration: none; }

.page-hero .crumb a:hover { color: #fff; }

.page-hero .eyebrow { color: var(--sea); margin-top: 1rem; }

.page-hero .eyebrow::before { background: var(--sea); }

.page-hero h1 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em;
      font-size: clamp(2rem,5vw,3.3rem); line-height: 1.08; margin: 1rem 0 1rem; max-width: 20ch; }

.page-hero p { color: rgba(255,255,255,.82); max-width: 56ch; font-size: 1.05rem; line-height: 1.7; margin: 0; }

.sec { padding: clamp(3rem,6vw,5rem) 0; }

.sec.alt { background: var(--paper-warm); }

/* =====================================================================
   ORTAK NAVBAR & FOOTER (navbar.php / footer.php)
   Bu blok daha önce index.php'nin kendi <style> etiketinde duruyordu.
   navbar.php ve footer.php tüm sayfalarda kullanıldığı için buraya
   taşındı; dosyanın en sonunda olması yukarıdaki eski kuralları
   ezmesini sağlar (görünüm index.php'deki hâliyle birebir aynıdır).
   ===================================================================== */

.navbar-trn.solid {
      background: #ffffff;
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--line);
      padding: .55rem 0;
    }

.brand-img-footer { height: 90px; max-width: 270px; }

.footer-brand .brand { justify-content: center; }

.footer-brand > p { text-align: center; margin-left: auto; margin-right: auto; }

.footer-brand h4 { text-align: center; }

.footer-brand .socials { justify-content: center; }

.navbar-trn.solid .brand-img { height: 56px; }

.brand-img-dark { display: none; }

.navbar-trn.solid .brand-img-light { display: none; }

.navbar-trn.solid .brand-img-dark { display: block; }

@media (max-width: 575.98px) {
      .brand-img { height: 48px; }
      .navbar-trn.solid .brand-img { height: 44px; }
    }

.lang-switch {
      display: inline-flex; align-items: center; gap: .32rem;
      font-family: var(--f-display); font-weight: 600; font-size: .82rem; line-height: 1;
      background: none; border: none; padding: 0; cursor: pointer;
      color: rgba(255,255,255,.72); transition: color .2s ease;
    }

.lang-switch:hover { color: #fff; }

.lang-switch .lang-globe { flex: 0 0 auto; }

.navbar-trn.solid .lang-switch { color: var(--muted); }

.navbar-trn.solid .lang-switch:hover { color: var(--ink); }

@media (max-width: 991.98px) { .navbar-trn .lang-switch { color: var(--muted); } }

.navbar-trn .dropdown-toggle::after { vertical-align: middle; margin-left: .3rem; }

.trn-dropdown {
      border: none; border-radius: 14px; padding: .5rem; min-width: 240px;
      box-shadow: 0 18px 44px rgba(12,32,51,.18);
    }

.trn-dropdown .dropdown-item {
      border-radius: 9px; padding: .58rem .8rem; font-weight: 500;
      font-size: .95rem; color: var(--ink); white-space: normal;
    }

.trn-dropdown .dropdown-item:hover, .trn-dropdown .dropdown-item:focus {
      background: var(--sea-light); color: var(--sea-deep);
    }

.navbar-trn .nav-item.dropdown.open > .dropdown-menu { display: block; }

@media (min-width: 992px) {
      .navbar-trn .nav-item.dropdown:hover > .dropdown-menu { display: block; }
      .navbar-trn .trn-dropdown { margin-top: .4rem; }

      .navbar-trn .nav-item.dropdown > .trn-dropdown::before {
        content: "";
        position: absolute;
        left: 0; right: 0;
        top: -.6rem;
        height: .6rem;
        background: transparent;
      }
    }

@media (max-width: 991.98px) {

      .navbar-trn .trn-dropdown { box-shadow: none; border: none; background: transparent; padding: .1rem 0 .4rem .9rem; margin: 0; }
      .navbar-trn .trn-dropdown .dropdown-item { color: var(--ink); padding: .5rem .2rem; }
    }

@media (max-width: 991.98px) {
      .navbar-trn .navbar-collapse {
        background: #fff;
        margin-top: 1rem; border-radius: 12px;
        padding: 1.25rem 1.5rem;
        border: 1px solid var(--line);
        box-shadow: 0 24px 60px rgba(12,32,51,.14);
      }
      .navbar-trn .navbar-collapse .nav-link { color: var(--ink) !important; }
    }

.footer h4 {
      font-size: .78rem; font-weight: 600;
      letter-spacing: .2em; text-transform: uppercase;
      color: var(--sea);
      padding-bottom: .55rem; margin-bottom: 1.1rem;
      border-bottom: 1px solid rgba(91,172,227,.28);
    }

.footer .footer-brand h4 { color: rgba(255,255,255,.45); border-bottom: none; padding-bottom: 0; margin-bottom: 1.2rem; }

.footer .fc-ico { display: inline-flex; align-items: center; gap: .5rem; }

.footer .fc-ico svg { flex: 0 0 auto; color: var(--sea); }

.footer .fc-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin: .8rem 0 .2rem; }

.footer .fc-btn {
      display: inline-flex; align-items: center; gap: .4rem;
      font-family: var(--f-display); font-weight: 600; font-size: .82rem; line-height: 1;
      padding: .5rem .95rem; border-radius: 999px; text-decoration: none;
      border: 1px solid transparent;
      transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
    }

.footer .fc-btn .arw { transition: transform .25s ease; }

.footer .fc-btn:hover .arw { transform: translateX(2px); }

.footer .fc-btn-primary { background: var(--sea); color: var(--ink); }

.footer .fc-btn-primary:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(91,172,227,.30); }

.footer .fc-btn-ghost { background: transparent; color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.22); }

.footer .fc-btn-ghost:hover { color: #fff; border-color: var(--sea); transform: translateY(-1px); }

/* ——— Konum haritası modalı (footer.php içindeki "Yol tarifi al") ——— */

.map-modal { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 1.2rem; }

.map-modal.is-open { display: flex; }

.map-modal__backdrop { position: absolute; inset: 0; background: rgba(6,16,28,.74); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

.map-modal__box {
      position: relative; z-index: 1; width: min(94vw, 920px); max-height: 90vh;
      background: #fff; border-radius: 18px; overflow: hidden;
      box-shadow: 0 40px 120px rgba(0,0,0,.55);
      display: flex; flex-direction: column;
      animation: mapModalIn .32s cubic-bezier(.2,.7,.2,1);
    }

@keyframes mapModalIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.map-modal__frame { width: 100%; height: min(68vh, 560px); border: 0; display: block; background: #eef1f4; }

.map-modal__close {
      position: absolute; top: 12px; right: 12px; z-index: 2;
      width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
      display: grid; place-items: center; color: #fff;
      background: rgba(12,32,51,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
      transition: background .2s ease, transform .3s ease;
    }

.map-modal__close:hover { background: var(--ink); transform: rotate(90deg); }

.map-modal__dir {
      display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
      padding: .95rem 1.2rem; font-family: var(--f-display); font-weight: 600; font-size: .92rem;
      color: #fff; background: var(--ink); text-decoration: none; transition: background .25s ease;
    }

.map-modal__dir:hover { background: var(--sea-deep); }

@media (prefers-reduced-motion: reduce) { .map-modal__box { animation: none; } }


/* ===================================================================
   MOBİL HERO/HEADER KOMPAKTLAŞTIRMA — yalnızca ≤767.98px
   Desktop ve tablet (≥768px) TAMAMEN etkilenmez.
   - .page-hero: alt sayfaların kendi <style>'ında (main.css'ten SONRA)
     yeniden tanımlandığı ve iletisim.php'de min-height:80vh olduğu için
     mobilde kesin ezmek adına !important gerekir.
   - .hero (ana sayfa): rakip mobil kural yok, !important gerekmez.
   =================================================================== */
@media (max-width: 767.98px) {
  .page-hero {
    min-height: auto !important;
    padding: calc(64px + 1.4rem) 0 1.8rem !important;
  }
  .hero { min-height: auto; }
  .hero-content { padding: calc(72px + 1.6rem) 0 2rem; }
}