/* ==========================================================================
   TRN Teknoloji - Ortak stiller
   (Değişkenler, temel stiller, butonlar, header, footer)
   ========================================================================== */

/* ---------- Değişkenler ---------- */
:root{
  --red:#d60001;--red-dark:#ad0001;
  --ink:#111217;--text:#141519;--muted:#5f626b;--line:#e3e5e9;--soft:#f5f6f8;--white:#fff;
  --anthracite:#1b1d22;--anthracite-2:#24272d;
  --max:1180px;--shadow:0 18px 48px rgba(17,18,23,.09)
}

/* ---------- Temel ---------- */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--text);background:var(--soft);font-family:Gilroy,Arial,"Helvetica Neue",sans-serif;font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button{font:inherit}
p{margin:0}
h1,h2,h3{margin:0;line-height:1.12;letter-spacing:-.025em}
h1{font-size:clamp(2.4rem,5vw,4.25rem)}
h2{font-size:clamp(2rem,3.5vw,3rem)}
h3{font-size:1.25rem}
.container{width:min(calc(100% - 48px),var(--max));margin-inline:auto}
.eyebrow{margin:0 0 10px;color:var(--red);font-size:.79rem;font-weight:900;letter-spacing:.15em;text-transform:uppercase}
.lead{color:var(--muted);font-size:clamp(1rem,1.5vw,1.16rem)}

/* ---------- Butonlar ---------- */
.btn{display:inline-flex;min-height:48px;align-items:center;justify-content:center;gap:10px;padding:0 21px;border:1px solid transparent;border-radius:11px;font-weight:800;transition:.2s ease}
.btn-primary{color:#fff;background:var(--red);box-shadow:0 10px 26px rgba(214,0,1,.24)}
.btn-primary:hover{background:var(--red-dark);transform:translateY(-2px)}
.btn-light{color:var(--ink);background:#fff;border-color:var(--line)}
.btn-light:hover{border-color:#bbb;transform:translateY(-2px)}
.btn-outline{color:var(--red);background:#fff;border-color:var(--red)}
.btn-outline:hover{color:#fff;background:var(--red);transform:translateY(-2px)}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 4px 18px rgba(16,18,22,.08)}

/* Üst araç bandı */
.utility-bar{background:#f5f6f8;color:#4f545e;border-bottom:1px solid #e1e3e8}
.utility-row{min-height:44px;display:flex;align-items:center;justify-content:flex-end;gap:10px;font-size:.75rem}
.utility-link{display:inline-flex;min-height:34px;align-items:center;gap:7px;padding:0 10px;border-radius:8px;color:#4f545e}
.utility-link svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}
.utility-link:hover{color:var(--red)}
.utility-link.portal-link{min-height:34px;margin-left:2px;padding:0 14px;border-radius:8px;background:var(--red);color:#fff;font-weight:850}
.utility-link.portal-link:hover{background:#bd0001;color:#fff}

/* Ana satır */
.header-main{background:#fff;color:#16171b;border-bottom:1px solid #e3e5e9}
.header-row{height:76px;display:flex;align-items:center;gap:20px}
.header-logo{display:flex;flex:0 0 auto}
.header-logo img{width:126px;height:auto}
.main-nav{display:flex;align-self:stretch;align-items:stretch;justify-content:center;gap:2px;margin-left:auto}
.nav-item{position:relative;display:flex;align-items:stretch}
.nav-trigger,.nav-direct{display:flex;align-items:center;gap:5px;padding:0 10px;border:0;background:none;color:#17181d;font:inherit;font-size:.78rem;font-weight:800;white-space:nowrap;cursor:pointer}
.nav-trigger::after{content:'⌄';font-size:.75rem;color:#777c86}
.nav-trigger:hover,.nav-direct:hover,.nav-item:focus-within>.nav-trigger,
.nav-item.is-active>.nav-trigger,.nav-item.is-active>.nav-direct{color:var(--red);background:#f7f7f8}
.nav-item:hover>.nav-trigger::after,.nav-item:focus-within>.nav-trigger::after{color:#ef4a4b}

/* Açılır menüler */
.dropdown{position:absolute;top:100%;left:0;min-width:245px;padding:10px;visibility:hidden;opacity:0;transform:translateY(9px);border:1px solid #e3e5e9;border-radius:0 0 15px 15px;background:#fff;color:#17181d;box-shadow:0 18px 45px rgba(10,12,16,.16);transition:.18s}
.nav-item:hover>.dropdown,.nav-item:focus-within>.dropdown,.nav-item.open>.dropdown{visibility:visible;opacity:1;transform:none}
.dropdown a{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 11px;border-radius:8px;color:#454954;font-size:.82rem;font-weight:700}
.dropdown a:hover,.dropdown a:focus,.dropdown a[aria-current="page"]{background:#f5f6f8;color:var(--red)}

/* Mega menü */
.mega{left:50%;width:min(760px,calc(100vw - 40px));transform:translate(-50%,9px);padding:20px}
.nav-item:hover>.mega,.nav-item:focus-within>.mega,.nav-item.open>.mega{transform:translate(-50%,0)}
.mega-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.mega-title{margin:0 0 7px;padding:0 10px;color:var(--red);font-size:.78rem;font-weight:700;line-height:1.12;letter-spacing:.04em}
.mega-group a{padding:7px 10px;font-size:.78rem;font-weight:650}
.mega-overview{margin-bottom:13px;padding-bottom:13px;border-bottom:1px solid #eceef1}
.mega-overview a{color:#17181d;font-weight:850}

.mobile-toggle{display:none;width:43px;height:43px;border:1px solid #d9dce2;border-radius:10px;background:#fff;color:#17181d;font-size:1.35rem}

@media(max-width:1180px){
  .header-row{gap:12px}
  .main-nav{gap:0}
  .nav-trigger,.nav-direct{padding:0 7px;font-size:.72rem}
  .header-logo img{width:112px}
}
@media(max-width:980px){
  .utility-row{justify-content:space-between}
  .header-row{height:68px}
  .header-logo img{width:118px}
  .mobile-toggle{display:block;margin-left:auto}
  .main-nav{position:absolute;top:100%;left:0;right:0;display:none;max-height:calc(100vh - 115px);overflow:auto;padding:12px 15px 24px;flex-direction:column;align-items:stretch;background:#fff;border-top:1px solid #e3e5e9;box-shadow:0 18px 35px rgba(10,12,16,.1)}
  .main-nav.open{display:flex}
  .nav-item{display:block}
  .nav-trigger,.nav-direct{width:100%;min-height:48px;justify-content:space-between;padding:0 12px;border-bottom:1px solid #e8eaed;color:#17181d;font-size:.9rem}
  .dropdown,.mega{position:static;width:100%;min-width:0;max-height:0;overflow:hidden;padding:0 10px;visibility:visible;opacity:1;transform:none!important;border:0;border-radius:0;background:#f5f6f8;color:#17181d;box-shadow:none;transition:max-height .25s}
  .nav-item.open>.dropdown{max-height:1000px;padding-top:8px;padding-bottom:8px}
  .dropdown a{color:#454954}
  .dropdown a:hover{background:#fff;color:var(--red)}
  .mega-grid{grid-template-columns:1fr}
  .mega-overview{border-color:#dde0e5}
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{position:relative;background:var(--anthracite);color:#fff;--muted:#b9bdc7;--line:rgba(255,255,255,.12)}
.footer-main{display:grid;grid-template-columns:1.35fr .85fr .9fr 1fr 1fr;gap:48px;padding:62px 0 48px}
.footer-brand img{width:160px;height:auto;margin-bottom:20px;filter:brightness(0) invert(1);opacity:.94}
.footer-brand>p{max-width:280px;margin:0 0 25px;color:var(--muted);font-size:.92rem;line-height:1.7}
.contact-list{display:grid;gap:12px;font-size:.9rem}
.contact-list a,.contact-list address{display:flex;align-items:flex-start;gap:10px;color:#e2e4e8;font-style:normal;line-height:1.55}
.contact-list svg{width:18px;height:18px;flex:0 0 18px;margin-top:2px;color:#f04647}
.footer-title{margin:4px 0 18px;color:#fff;font-size:.93rem;font-weight:700;line-height:1.12;letter-spacing:.02em}
.footer-col nav{display:grid;gap:11px}
.footer-col a{color:var(--muted);font-size:.88rem;line-height:1.45;transition:.2s}
.footer-col a:hover,.footer-col a:focus{color:#fff;transform:translateX(2px)}
.social{display:flex;gap:9px;margin-top:24px}
.social a{display:grid;width:39px;height:39px;place-items:center;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.04);color:#fff}
.social a:hover{border-color:var(--red);background:var(--red)}
.social svg{width:18px;height:18px;fill:currentColor}
.footer-bottom{border-top:1px solid var(--line)}
.bottom-row{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:78px;color:#aeb2bc;font-size:.8rem}
.legal{display:flex;flex-wrap:wrap;gap:18px}
.legal a:hover{color:#fff}
.back-top{display:inline-flex;align-items:center;gap:7px;color:#fff;font-weight:700}
.back-top span{display:grid;width:31px;height:31px;place-items:center;border:1px solid var(--line);border-radius:9px}

@media(max-width:1080px){
  .footer-main{grid-template-columns:1.4fr repeat(2,1fr)}
  .footer-brand{grid-row:span 2}
}
@media(max-width:760px){
  .container{width:min(calc(100% - 30px),var(--max))}
  .footer-main{grid-template-columns:1fr 1fr;gap:38px 26px;padding-top:48px}
  .footer-brand{grid-column:1/-1;grid-row:auto}
  .bottom-row{align-items:flex-start;flex-direction:column;padding:24px 0}
  .legal{gap:12px 18px}
}
@media(max-width:480px){
  .footer-main{grid-template-columns:1fr}
  .footer-col{padding-bottom:4px}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important}
}

/* Ekran okuyucular için gizli metin */
.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}
