/* Enotsan Otomasyon & Mühendislik - Main Stylesheet */
:root {
  --navy: #071424;
  --navy-2: #0d2035;
  --ink: #142033;
  --muted: #637184;
  --line: #dfe6ef;
  --soft: #f4f7fb;
  --white: #ffffff;
  --blue: #1268b3;
  --blue-2: #0a84d6;
  --green: #2f8f6b;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(7, 20, 36, 0.14);
  --max: 1180px;
  --measure: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--white);
  color: var(--navy);
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* Site Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 20, 36, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(100% - 32px, var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand Pure White Text Styling - Perfectly Balanced 1:1 Width Ratio */
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.25s ease;
}

.brand:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  line-height: 1.1;
  width: 100%;
}

.brand-title {
  color: #ffffff !important;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 5.5px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  margin-bottom: 4px;
  display: block;
}

.brand-sub {
  color: #00d2ff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
  display: block;
}

.brand img, .brand svg {
  width: auto;
  height: 44px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: #d9e4f0;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 650;
  padding: 10px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-links a:focus,
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav-links .nav-cta {
  background: var(--blue);
  color: var(--white);
  padding: 10px 18px;
}

.nav-links .nav-cta:hover {
  background: var(--blue-2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: transparent;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

/* Base Sections */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-muted {
  background: var(--soft);
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 72% 28%, rgba(18, 104, 179, 0.25), transparent 40%),
    linear-gradient(90deg, rgba(7, 20, 36, 0.96) 0%, rgba(7, 20, 36, 0.85) 50%, rgba(7, 20, 36, 0.6) 100%),
    linear-gradient(0deg, rgba(7, 20, 36, 0.9) 0%, rgba(7, 20, 36, 0.2) 60%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-2);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 2.8vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}

.hero-text {
  max-width: 660px;
  margin: 18px 0 0;
  color: #d8e3ee;
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  line-height: 1.62;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid rgba(216, 231, 244, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #d8e7f4;
  font-size: 0.9rem;
  font-weight: 750;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.96rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(18, 104, 179, 0.24);
}

.btn-primary:hover {
  background: #0f5b9d;
  box-shadow: 0 14px 32px rgba(18, 104, 179, 0.35);
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Hero Panel */
.hero-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(8, 24, 42, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.hero-panel div {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-panel strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
  color: var(--white);
}

.hero-panel span {
  display: block;
  color: #c8d7e7;
  font-size: 0.88rem;
  line-height: 1.5;
}

.hero-panel-head {
  background: rgba(18, 104, 179, 0.22) !important;
}

.hero-panel-head span {
  margin-bottom: 4px;
  color: var(--blue-2);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 850;
}

.hero-panel-head strong {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

/* Trust Strip */
.trust-strip {
  background: #0b1b2e;
  color: #d8e7f4;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-grid {
  min-height: 78px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
  font-weight: 750;
  text-align: center;
}

.trust-grid span {
  padding: 12px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-grid span:last-child {
  border-right: none;
}

/* Section Headings */
.section-head {
  max-width: 820px;
  margin-bottom: 44px;
}

.section-head.compact {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
}

h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
}

p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.section-dark p {
  color: #c7d5e5;
}

/* Service Grid & Cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 8px 28px rgba(7, 20, 36, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(7, 20, 36, 0.12);
}

.service-card .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 8px;
  background: #eaf4fc;
  color: var(--blue);
  font-size: 1.4rem;
  font-weight: 800;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--navy);
}

.service-card p {
  font-size: 0.95rem;
  margin-top: 10px;
}

.service-card ul {
  margin: 16px 0 24px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  flex-grow: 1;
}

.service-card ul li {
  margin-bottom: 6px;
}

.service-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 750;
  font-size: 0.94rem;
  text-decoration: none;
}

.service-card a:hover {
  text-decoration: underline;
}

/* Tag Pill Grid */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.pill-grid a,
.pill-grid span {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 650;
  font-size: 0.94rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(7, 20, 36, 0.04);
  transition: all 0.2s ease;
}

.pill-grid a:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  transform: translateY(-2px);
}

/* Split Section & Audience Grid */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.audience-grid span {
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--soft);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
  font-size: 1.02rem;
}

.text-link:hover {
  text-decoration: underline;
}

/* Why Enotsan Grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.why-grid article {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.why-grid h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 12px;
}

.why-grid p {
  font-size: 0.94rem;
  color: #c7d5e5;
  margin: 0;
}

/* About Box */
.about-box {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(7, 20, 36, 0.05);
}

.about-box p {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Contact Cards Section */
.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.contact-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--soft);
  margin-top: 24px;
}

.contact-card span {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.contact-card a {
  font-size: 1.3rem;
  font-weight: 850;
  color: var(--blue);
  text-decoration: none;
}

/* Subpage Hero */
.page-hero {
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.page-hero h1 {
  max-width: 860px;
  color: var(--white);
}

.page-hero p {
  max-width: var(--measure);
  font-size: 1.08rem;
  color: #d8e3ee;
}

.page-hero-visual img {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Content Grid & Sidebar Layout */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.content-main {
  display: grid;
  gap: 24px;
}

.content-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 6px 20px rgba(7, 20, 36, 0.04);
}

.content-card h2 {
  font-size: 1.45rem;
  color: var(--navy);
  margin-bottom: 14px;
}

.content-card p {
  margin-top: 0;
}

.content-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--ink);
}

.content-card ul li {
  margin-bottom: 8px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.process-grid span {
  padding: 12px 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 750;
  font-size: 0.9rem;
  color: var(--navy);
  text-align: center;
}

.info-panel {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--soft);
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-panel h2 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.info-panel a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.info-panel a:hover {
  background: var(--white);
  color: var(--blue);
}

.info-panel .btn {
  margin-top: 10px;
}

.mini-cta {
  padding: 28px;
  border-radius: var(--radius);
  background: #eaf4fc;
  border: 1px solid #bde0fe;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mini-cta p {
  margin: 0;
  color: var(--navy);
  font-weight: 650;
}

/* Footer */
.footer {
  background: var(--navy);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
}

.footer h2 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 18px;
}

.footer p {
  color: #a3b5c9;
  font-size: 0.92rem;
  margin-top: 12px;
}

.footer a {
  display: block;
  color: #c7d5e5;
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--white);
}

.region-list span {
  display: block;
  font-size: 0.9rem;
  color: #c7d5e5;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  font-size: 0.88rem;
  color: #8fa5bd;
  text-align: center;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }
  
  .service-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .trust-grid span {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .service-grid,
  .why-grid,
  .audience-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .split,
  .about-box,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .mini-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
