/*
Theme Name: Emir Elektrik
Theme URI: https://example.com/emir-elektrik
Author: Emir Elektrik Mühendislik A.Ş.
Author URI: https://example.com
Description: Emir Elektrik Mühendislik A.Ş. için koyu lacivert ve altın renkli, responsive kurumsal WordPress teması.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: emir-electric
Tags: custom-logo, custom-menu, featured-images, translation-ready, one-column, two-columns
*/

:root {
  --navy: #030914;
  --navy-2: #081321;
  --card: #0b1726;
  --card-light: #102238;
  --gold: #c99a32;
  --gold-light: #e2b64f;
  --white: #f2f2f2;
  --muted: #aeb4bd;
  --line: rgba(201, 154, 50, .2);
  --container: 1240px;
  --shadow: 0 22px 70px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; overflow: hidden; position: absolute !important;
  word-wrap: normal !important;
}

.site-header {
  position: fixed; z-index: 50; inset: 0 0 auto;
  background: rgba(3, 9, 20, .88);
  border-bottom: 1px solid rgba(226, 182, 79, .14);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 205px; max-height: 64px; object-fit: contain; }
.brand-fallback { color: var(--white); font-size: 25px; font-weight: 800; letter-spacing: .08em; }
.brand-fallback span { display: block; color: var(--gold-light); font-size: 8px; letter-spacing: .13em; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.primary-nav a {
  display: block; position: relative; padding: 33px 17px 29px;
  color: #d7d9de; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  transition: color .25s ease;
}
.primary-nav a::after {
  content: ""; position: absolute; bottom: 20px; left: 17px; right: 17px; height: 2px;
  background: var(--gold-light); transform: scaleX(0); transform-origin: center;
  transition: transform .25s ease;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--gold-light); }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after { transform: scaleX(1); }
.header-call { display: flex; align-items: center; gap: 11px; white-space: nowrap; }
.header-call .icon {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-light);
}
.header-call small { display: block; color: var(--gold-light); font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.header-call strong { display: block; font-size: 13px; letter-spacing: .04em; }
.menu-toggle { display: none; background: none; border: 0; color: var(--gold-light); padding: 8px; }
.menu-toggle svg { width: 26px; height: 26px; }

.hero {
  min-height: 650px; display: flex; align-items: center; position: relative;
  padding: 132px 0 120px; background:
    linear-gradient(90deg, rgba(3, 9, 20, .98) 0%, rgba(3, 9, 20, .88) 26%, rgba(3, 9, 20, .18) 75%, rgba(3, 9, 20, .45) 100%),
    linear-gradient(0deg, rgba(3, 9, 20, .9), transparent 25%),
    url("assets/hero-reference.jpg") center / cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5; }
.hero-content { position: relative; z-index: 1; width: min(620px, 100%); }
.eyebrow { color: var(--gold-light); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 13px 0 0; font-size: clamp(44px, 5.2vw, 76px); line-height: .98; letter-spacing: -.055em; text-transform: uppercase; }
.script {
  margin: 4px 0 18px; color: var(--gold-light); font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(30px, 3.2vw, 47px); font-weight: 500; transform: rotate(-4deg); transform-origin: left center;
}
.hero-description { max-width: 505px; margin: 0 0 26px; color: #d6d9de; font-size: 14px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 45px;
  padding: 0 21px; border: 1px solid var(--gold); color: var(--white); font-size: 11px; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; transition: transform .25s, box-shadow .25s, background .25s;
}
.button:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(201, 154, 50, .2); }
.button-gold { background: linear-gradient(120deg, #b8801d, var(--gold-light)); border-color: transparent; color: #111; }
.button-outline { background: rgba(3, 9, 20, .65); }
.button svg, .contact-float svg { width: 16px; height: 16px; }

.feature-bar {
  position: relative; z-index: 3; margin: -55px auto 0; width: min(1060px, calc(100% - 48px));
  display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(8, 19, 33, .94);
  border: 1px solid rgba(201, 154, 50, .22); border-radius: 12px; box-shadow: var(--shadow);
  backdrop-filter: blur(12px); overflow: hidden;
}
.feature { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 78px; padding: 14px; }
.feature + .feature { border-left: 1px solid rgba(174, 180, 189, .16); }
.feature-icon { flex: 0 0 35px; color: var(--gold-light); }
.feature-icon svg { width: 31px; height: 31px; }
.feature strong { display: block; color: var(--gold-light); font-size: 12px; line-height: 1.2; }
.feature span { display: block; color: var(--white); font-size: 10px; line-height: 1.3; }

.section { padding: 92px 0; }
.section-dark { background: var(--navy-2); }
.section-heading { margin-bottom: 34px; text-align: center; }
.section-heading .eyebrow { font-size: 11px; }
.section-heading h2 { margin: 5px 0 0; font-size: clamp(27px, 3vw, 40px); line-height: 1.12; letter-spacing: -.04em; }
.section-heading p { max-width: 600px; margin: 13px auto 0; color: var(--muted); font-size: 14px; }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.service-card {
  position: relative; min-height: 282px; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid rgba(174, 180, 189, .13); border-radius: 8px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-7px); border-color: rgba(226, 182, 79, .75); box-shadow: 0 14px 38px rgba(0, 0, 0, .35); }
.service-image { height: 150px; position: relative; overflow: hidden; background-color: #162334; background-size: cover; background-position: center; }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.service-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 23, 38, .65), transparent 55%); }
.service-card:hover .service-image img { transform: scale(1.04); }
.service-content { display: flex; flex: 1; flex-direction: column; padding: 14px; }
.service-icon { color: var(--gold-light); width: 25px; height: 25px; margin-bottom: 8px; }
.service-icon svg { width: 20px; height: 20px; }
.service-card h3 { margin: 0 0 5px; font-size: 13px; line-height: 1.3; }
.service-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.section-action { margin-top: 25px; text-align: center; }
.button-small { min-height: 38px; padding-inline: 18px; font-size: 10px; }

.split-section { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.split-copy .eyebrow { font-size: 11px; }
.split-copy h2 { margin: 8px 0 15px; font-size: clamp(29px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -.05em; }
.split-copy p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 22px; padding: 0; margin: 26px 0 0; list-style: none; }
.check-list li { display: flex; gap: 9px; color: #e5e7eb; font-size: 12px; }
.check-list svg { flex: 0 0 17px; width: 17px; color: var(--gold-light); }
.about-image { min-height: 390px; position: relative; background: url("assets/about-reference.jpg") center / cover; border: 1px solid rgba(201, 154, 50, .3); }
.about-image::before { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(226, 182, 79, .42); pointer-events: none; }
.about-badge { position: absolute; left: -18px; bottom: 27px; background: var(--gold); color: #111; padding: 16px 19px; box-shadow: 0 10px 26px rgba(0,0,0,.35); }
.about-badge strong { display: block; font-size: 30px; line-height: 1; }
.about-badge span { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.projects-header { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.projects-header .section-heading { margin: 0; text-align: left; }
.projects-nav { display: flex; gap: 8px; }
.project-arrow { display: grid; place-items: center; width: 36px; height: 36px; background: transparent; border: 1px solid rgba(226, 182, 79, .45); color: var(--gold-light); cursor: pointer; }
.project-arrow:hover { background: var(--gold); color: #111; }
.project-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card { min-height: 244px; position: relative; display: flex; align-items: end; overflow: hidden; border: 1px solid rgba(174, 180, 189, .16); background: #142337; }
.project-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(0deg, rgba(3, 9, 20, .96), transparent); }
.project-card:hover .project-image { transform: scale(1.04); }
.project-image { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s; }
.project-info { position: relative; z-index: 1; padding: 20px; }
.project-info small { color: var(--gold-light); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.project-info h3 { margin: 4px 0 0; font-size: 17px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.blog-card { overflow: hidden; background: var(--card); border: 1px solid rgba(174, 180, 189, .13); transition: transform .3s ease, border-color .3s ease; }
.blog-card:hover { transform: translateY(-6px); border-color: rgba(226, 182, 79, .7); }
.blog-card > a { display: block; height: 100%; }
.blog-image { height: 205px; background: center / cover no-repeat; }
.blog-content { padding: 19px; }
.blog-content .eyebrow { font-size: 9px; }
.blog-content h3, .blog-content h2 { margin: 7px 0 8px; font-size: 18px; line-height: 1.25; }
.blog-content p { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.read-more { display: inline-flex; align-items: center; gap: 7px; color: var(--gold-light); font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.read-more svg { width: 14px; height: 14px; }
.blog-grid-large .blog-image { height: 250px; }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 26px; }
.gallery-filter { padding: 9px 13px; border: 1px solid rgba(226, 182, 79, .32); background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.gallery-filter:hover, .gallery-filter.is-active { background: var(--gold); border-color: var(--gold); color: #111; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-item { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid rgba(174, 180, 189, .14); background: var(--card); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .5s; }
.gallery-item:hover img { transform: scale(1.06); filter: brightness(1.12); }
.gallery-item span { position: absolute; right: 8px; bottom: 8px; padding: 5px 8px; background: rgba(3, 9, 20, .84); color: var(--gold-light); font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.gallery-item[hidden] { display: none; }
.gallery-note { margin: 24px auto 0; max-width: 700px; color: var(--muted); text-align: center; font-size: 12px; }
.gallery-grid-large { grid-template-columns: repeat(4, 1fr); }
.article-content { max-width: 900px; }
.article-cover { width: 100%; max-height: 520px; object-fit: cover; margin-bottom: 26px; }
.article-content p { max-width: 760px; font-size: 16px; line-height: 1.9; }

.contact-band { position: relative; overflow: hidden; background: linear-gradient(120deg, #0b1726, #101f31); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-band::before { content: "⚡"; position: absolute; right: 12%; top: -70px; color: rgba(226, 182, 79, .04); font-size: 260px; }
.contact-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 42px 0; }
.contact-band h2 { margin: 5px 0 0; font-size: clamp(23px, 3vw, 35px); }
.contact-band p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.site-footer { padding: 50px 0 26px; background: #020711; border-top: 1px solid rgba(174, 180, 189, .12); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 55px; padding-bottom: 38px; }
.footer-brand img { width: 210px; margin-bottom: 16px; }
.footer-brand p, .footer-col p { margin: 0; color: var(--muted); font-size: 12px; }
.footer-col h3 { margin: 0 0 13px; color: var(--gold-light); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.footer-col ul { padding: 0; margin: 0; list-style: none; }
.footer-col li { margin: 6px 0; color: var(--muted); font-size: 12px; }
.footer-col a:hover { color: var(--gold-light); }
.copyright { padding-top: 20px; border-top: 1px solid rgba(174, 180, 189, .13); color: #717b88; font-size: 10px; }

.contact-floats { position: fixed; z-index: 40; right: 22px; bottom: 24px; display: grid; gap: 9px; }
.contact-float { display: inline-flex; align-items: center; gap: 9px; min-width: 120px; padding: 10px 15px; border-radius: 30px; color: #fff; font-size: 11px; font-weight: 800; box-shadow: 0 7px 25px rgba(0,0,0,.32); transition: transform .25s; }
.contact-float:hover { transform: translateX(-4px); }
.contact-whatsapp { background: #16b957; }
.contact-phone { background: linear-gradient(120deg, #a87419, var(--gold-light)); color: #111; }

.page-hero { padding: 160px 0 75px; background: linear-gradient(90deg, rgba(3, 9, 20, .97), rgba(3, 9, 20, .7)), url("assets/hero-reference.jpg") center / cover; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 9px 0 0; font-size: clamp(35px, 5vw, 62px); line-height: 1; }
.content-area { padding: 80px 0; }
.content-area h2, .content-area h3 { color: var(--white); }
.content-area p, .content-area li { color: var(--muted); }

@media (max-width: 1050px) {
  .header-inner { gap: 20px; }
  .primary-nav a { padding-inline: 10px; font-size: 10px; }
  .primary-nav a::after { left: 10px; right: 10px; }
  .header-call strong { font-size: 11px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  body.admin-bar .site-header { top: 46px; }
  .container { width: min(var(--container), calc(100% - 34px)); }
  .header-inner { min-height: 74px; justify-content: space-between; }
  .brand img { width: 170px; max-height: 52px; }
  .header-call, .primary-nav { display: none; }
  .menu-toggle { display: block; }
  .primary-nav.is-open { display: block; position: absolute; inset: 74px 0 auto; padding: 9px 17px 17px; background: rgba(3, 9, 20, .98); border-bottom: 1px solid var(--line); }
  .primary-nav.is-open ul { display: block; }
  .primary-nav.is-open a { padding: 13px 4px; }
  .primary-nav.is-open a::after { bottom: 5px; left: 4px; right: auto; width: 30px; }
  .hero { min-height: 670px; padding: 130px 0 130px; background-position: 63% center; }
  .hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,9,20,.98) 0%, rgba(3,9,20,.58) 58%, rgba(3,9,20,.25)); }
  .hero-content { max-width: 460px; }
  .hero h1 { font-size: clamp(40px, 12vw, 62px); }
  .hero-description { font-size: 13px; }
  .feature-bar { width: calc(100% - 34px); margin-top: -50px; grid-template-columns: repeat(2, 1fr); }
  .feature:last-child { grid-column: 1 / -1; }
  .feature:nth-child(3) { border-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid rgba(174, 180, 189, .16); }
  .feature { min-height: 70px; justify-content: flex-start; padding-left: 18px; }
  .section { padding: 65px 0; }
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-card { min-height: 0; display: grid; grid-template-columns: 38% 62%; }
  .service-image { height: 100%; min-height: 160px; }
  .service-content { padding: 17px; }
  .split-section { grid-template-columns: 1fr; gap: 34px; }
  .about-image { min-height: 290px; order: -1; }
  .check-list { gap: 12px; }
  .projects-header { align-items: start; }
  .project-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .project-card { flex: 0 0 86%; min-height: 235px; scroll-snap-align: start; }
  .blog-grid { grid-template-columns: 1fr; gap: 14px; }
  .gallery-grid, .gallery-grid-large { grid-template-columns: repeat(2, 1fr); }
  .contact-band-inner { display: block; padding: 32px 0; }
  .contact-band .button-row { margin-top: 19px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-floats { right: 12px; bottom: 13px; }
  .contact-float { min-width: 0; padding: 10px 12px; font-size: 10px; }
}
@media (max-width: 420px) {
  .hero { min-height: 690px; }
  .feature { padding-inline: 12px; gap: 8px; }
  .feature-icon { flex-basis: 28px; }
  .feature-icon svg { width: 26px; }
  .feature strong { font-size: 10px; }
  .feature span { font-size: 9px; }
  .service-card { display: block; }
  .service-image { height: 150px; }
}