/*
 * Salesta Elektrik — kurumsal kimlik ve temel stiller
 *
 * Renk kaynağı: logo pikselleri — amblem ve "ELEKTRİK" mavisi #0058B8, "SALESTA" yazı siyahı #1E1E1E.
 * Diğer tonlar bu iki renkten türetilmiştir (koyu zeminler mavi-siyah, açık zeminler soğuk gri).
 * İmza öğeleri logodan alınmıştır: "ELEKTRİK" yazısının iki yanındaki incelen çizgi (.rule, eyebrow)
 * ve amblemdeki şimşek kesiği (butonların pah kırılmış köşesi).
 */

/* ---------- Fontlar: Barlow + Barlow Condensed (SIL OFL), yerel ---------- */

@font-face {
    font-family: "Barlow";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/barlow-400-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Barlow";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/barlow-400-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Barlow";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/barlow-600-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Barlow";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/barlow-600-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Barlow Condensed";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/barlow-condensed-600-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Barlow Condensed";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/barlow-condensed-600-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Barlow Condensed";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/barlow-condensed-700-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Barlow Condensed";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/barlow-condensed-700-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tasarım değişkenleri ---------- */

:root {
    /* Kurumsal renkler */
    --color-primary: #0058B8;              /* logo mavisi */
    --color-primary-hover: #00479A;
    --color-primary-deep: #00336F;
    --color-primary-soft: #E8F0FA;
    --color-bolt: #5AA2FF;                 /* koyu zeminde küçük vurgu (mavi, açık ton) */
    --color-ink: #1E1E1E;                  /* logo yazı siyahı */
    --color-dark: #12171E;                 /* başlıklar */
    --color-darker: #0B0F14;               /* koyu zemin */
    --color-dark-2: #151B23;               /* koyu zeminde kart */
    --color-dark-3: #1F2731;
    --color-light: #F2F4F7;
    --color-light-alt: #E9EDF2;
    --color-white: #FFFFFF;
    --color-text: #3A424E;
    --color-muted: #5D6673;
    --color-border: #DCE1E8;
    --color-border-strong: #BFC7D2;
    --color-on-dark: #FFFFFF;
    --color-on-dark-muted: rgba(255, 255, 255, 0.72);
    --color-on-dark-border: rgba(255, 255, 255, 0.12);
    --color-focus: #0058B8;

    /* Eski adlarla uyumluluk */
    --color-secondary: var(--color-light);
    --color-accent: var(--color-bolt);

    --font-sans: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", var(--font-sans);
    --fw-regular: 400;
    --fw-semibold: 600;
    --fw-bold: 700;

    --fs-display: clamp(2.5rem, 1.6rem + 3.9vw, 4.75rem);
    --fs-h1: clamp(2.375rem, 1.6rem + 3.4vw, 4.25rem);
    --fs-h2: clamp(2rem, 1.45rem + 2.3vw, 3.25rem);
    --fs-h3: clamp(1.3125rem, 1.2rem + 0.45vw, 1.5625rem);
    --fs-h4: 1.1875rem;
    --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
    --fs-body: 1.0625rem;
    --fs-small: 0.9375rem;
    --fs-xs: 0.8125rem;
    --fs-nav: 1.0625rem;
    --fs-btn: 1rem;

    --lh-tight: 1;
    --lh-snug: 1.2;
    --lh-body: 1.65;
    --ls-heading: 0;
    --ls-caps: 0.16em;
    --ls-btn: 0.06em;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 2.5rem;
    --space-8: 3rem;
    --space-9: 4rem;
    --space-10: 5.5rem;
    --section-y: clamp(4rem, 2.8rem + 5vw, 8rem);

    --container-max: 1240px;
    --container-narrow: 820px;
    --container-pad: clamp(1.125rem, 0.5rem + 2.4vw, 2.25rem);
    --grid-gap: clamp(1rem, 0.7rem + 1.2vw, 1.75rem);

    --radius-sm: 2px;
    --radius: 2px;
    --radius-lg: 4px;
    --cut: 14px;                           /* şimşek kesiği */

    --shadow-sm: 0 1px 2px rgba(11, 15, 20, 0.06);
    --shadow: 0 10px 30px -12px rgba(11, 15, 20, 0.22);
    --shadow-lg: 0 24px 60px -20px rgba(11, 15, 20, 0.4);

    --topbar-h: 40px;
    --header-h: 64px;
    --logo-h: 34px;

    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --dur: 180ms;
    --dur-slow: 280ms;
    --dur-header: 220ms;

    --z-header: 100;
    --z-overlay: 190;
    --z-nav: 200;
}

/* ---------- Sıfırlama ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* scroll-padding yerine: sabit header'daki öğelere odaklanınca sayfa kaymasın, içerik odağı header altında kalmasın */
main [id],
main :focus,
.site-footer :focus {
    scroll-margin-top: calc(var(--header-h) + var(--space-4));
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: var(--lh-body);
    color: var(--color-text);
    background: var(--color-white);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

:where(h1, h2, h3, h4, p, ul, ol, figure, address, blockquote, dl, dd) {
    margin: 0;
}

:where(ul[class], ol[class]) {
    list-style: none;
    padding: 0;
}

img,
svg,
video,
picture {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: var(--color-primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--color-primary-hover);
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

address {
    font-style: normal;
}

:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
}

::selection {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ---------- Tipografi ---------- */

h1, h2, h3, h4,
.h1, .h2, .h3, .h4 {
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    color: var(--color-dark);
    letter-spacing: var(--ls-heading);
    overflow-wrap: break-word;
}

h1, .h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.02; }
h3, .h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); font-weight: var(--fw-semibold); }
h4, .h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); font-weight: var(--fw-semibold); }

p {
    overflow-wrap: break-word;
}

strong {
    font-weight: var(--fw-semibold);
    color: var(--color-dark);
}

small,
.text-small {
    font-size: var(--fs-small);
}

.lead {
    font-size: var(--fs-lead);
    line-height: 1.6;
    color: var(--color-muted);
}

/* Üst etiket: logodaki "— ELEKTRİK —" dizilişi. Çizgi dışa doğru incelir. Marka adı içeren metinde kullanılmaz (uppercase). */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: var(--fw-semibold);
    line-height: 1.2;
    letter-spacing: var(--ls-caps);
    text-transform: uppercase;
    color: var(--color-primary);
}

.eyebrow::before {
    content: "";
    flex: none;
    width: 40px;
    height: 4px;
    background: currentColor;
    clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 60%);
}

.eyebrow--on-dark {
    color: var(--color-bolt);
}

/* Logo çizgisi: ortası kalın, uçları ince yatay ayraç */
.rule {
    display: block;
    width: 100%;
    height: 4px;
    background: var(--color-primary);
    clip-path: polygon(0 45%, 50% 0, 100% 45%, 100% 55%, 50% 100%, 0 55%);
}

/* ---------- Yerleşim ---------- */

.container {
    width: 100%;
    max-width: calc(var(--container-max) + 2 * var(--container-pad));
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.container--narrow {
    max-width: calc(var(--container-narrow) + 2 * var(--container-pad));
}

.grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--grid-gap);
}

.section {
    position: relative;
    padding-block: var(--section-y);
}

.section--light,
.section--cream {
    background: var(--color-light);
}

.section--dark {
    background: var(--color-darker);
    color: var(--color-on-dark-muted);
}

.section--brand {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.86);
}

.site-main {
    display: block;
    flex: 1 0 auto;
}

/* ---------- Yardımcılar ---------- */

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: var(--space-2);
    left: var(--space-2);
    z-index: 1000;
    padding: var(--space-2) var(--space-4);
    font-weight: var(--fw-semibold);
    color: var(--color-white);
    background: var(--color-primary);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
    color: var(--color-white);
}

.icon {
    flex: none;
    width: 1.125em;
    height: 1.125em;
}

/* Mobil menü açıkken sayfa kaydırılmaz; kaydırma çubuğunun boşalttığı yer telafi edilir (sayfa yana kaymaz). */
html.nav-open,
html.nav-open body {
    overflow: hidden;
}

html.nav-open {
    padding-right: var(--scrollbar-comp, 0px);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
