/* UYEP Mühendislik İnşaat — kurumsal site stili
   Renk paleti logodan türetildi: lacivert + bordo. Performans için sistem fontları kullanılır. */

:root {
  --navy-900: #0b2247;
  --navy-800: #0b2e6b;
  --navy-700: #123a85;
  --navy-600: #1d4fa8;
  --maroon-700: #641731;
  --maroon-600: #7a1f3d;
  --maroon-500: #93264a;
  --ink: #16202e;
  --gray-700: #4a5568;
  --gray-500: #718096;
  --gray-200: #e5e9f0;
  --gray-100: #f4f6fa;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px -12px rgba(11, 34, 71, 0.25);
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; color: var(--navy-900); }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--gray-700); }

.section { padding: 64px 0; }
.section--muted { background: var(--gray-100); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow {
  display: inline-block; color: var(--maroon-600); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; margin-bottom: 8px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; font-weight: 600;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease; font-size: .95rem;
}
.btn-primary { background: var(--maroon-600); color: var(--white); }
.btn-primary:hover { background: var(--maroon-700); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy-900); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }

/* ---- Header ---- */
.topbar {
  background: var(--navy-900); color: #cfd9ec; font-size: .85rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.topbar a { color: #cfd9ec; }
.topbar-info { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-tools { display: flex; align-items: center; gap: 14px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: inline-flex; align-items: center; justify-content: center; font-size: .8rem;
}
.social-links a:hover { background: var(--maroon-600); }
.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  background: transparent; border: 1px solid rgba(255,255,255,.35); color: #cfd9ec;
  border-radius: 6px; padding: 3px 9px; font-size: .78rem; cursor: pointer; font-weight: 600;
}
.lang-switch button.active, .lang-switch button:hover { background: var(--maroon-600); border-color: var(--maroon-600); color: #fff; }

.navbar {
  background: var(--white); box-shadow: 0 2px 14px rgba(11,34,71,.08); position: sticky; top: 0; z-index: 50;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; }
.brand-text { font-weight: 800; color: var(--navy-900); font-size: 1.05rem; line-height: 1.1; }
.brand-text small { display: block; font-weight: 500; color: var(--gray-500); font-size: .7rem; }

.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  padding: 10px 14px; font-weight: 600; color: var(--navy-900); border-radius: 8px; font-size: .95rem;
}
.nav-links a:hover, .nav-links a.active { background: var(--gray-100); color: var(--maroon-600); }
.nav-cta { margin-left: 8px; }
.nav-links a.nav-cta, .nav-links a.nav-cta:hover { color: var(--white); }

.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--navy-900); cursor: pointer; }

.has-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff;
  border-radius: 10px; box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: all .15s ease; border: 1px solid var(--gray-200);
}
.has-dropdown:hover .dropdown-menu, .has-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; border-radius: 6px; padding: 10px 12px; font-size: .9rem; }
@media (max-width: 900px) {
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; padding-left: 10px; }
  .has-dropdown.open .dropdown-menu { display: block; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: stretch; padding: 10px 20px 20px;
    box-shadow: 0 12px 20px rgba(11,34,71,.12); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; }
  .topbar-info span:nth-child(2) { display: none; }
}

/* ---- Hero / Slider ---- */
.hero { position: relative; overflow: hidden; background: var(--navy-900); color: var(--white); }
.hero-slide {
  position: relative; min-height: 62vh; display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,34,71,.92) 15%, rgba(11,34,71,.55) 60%, rgba(11,34,71,.25));
}
.hero-slide .container { position: relative; z-index: 2; }
.hero-slide-content { max-width: 640px; }
.hero-slide-content .eyebrow { color: #ffb4c6; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
.hero-slide-content h1 { color: var(--white); }
.hero-slide-content p { color: #d7deed; font-size: 1.08rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }

.hero-slides { display: none; }
.hero-slides.active-slide { display: block; }

.hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.4); cursor: pointer; padding: 0;
}
.hero-dots button.active { background: var(--maroon-500); width: 26px; border-radius: 6px; }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 6px 20px rgba(11,34,71,.08); transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid var(--gray-200); display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--gray-100); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-body .tag { color: var(--maroon-600); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: .93rem; flex: 1; }
.card-link { margin-top: 10px; font-weight: 700; color: var(--navy-800); font-size: .9rem; }

.service-icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .service-icon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-icon-grid { grid-template-columns: 1fr; } }
.service-box {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 28px 24px; transition: all .2s ease;
}
.service-box:hover { border-color: var(--maroon-500); box-shadow: var(--shadow); }
.service-box .num { color: var(--gray-200); font-weight: 800; font-size: 2rem; }

/* ---- About / stats ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.stat b { display: block; font-size: 1.8rem; color: var(--navy-900); }
.stat span { color: var(--gray-500); font-size: .85rem; }

/* ---- Logos strip ---- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; justify-content: center; }
.logo-strip a, .logo-strip div { opacity: .8; transition: opacity .2s; }
.logo-strip img { max-height: 60px; width: auto; filter: grayscale(100%); }
.logo-strip a:hover img { filter: none; }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; border-radius: var(--radius); padding: 46px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #d7deed; margin: 0; }

/* ---- Footer ---- */
.footer { background: var(--navy-900); color: #b9c4dc; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer a { color: #b9c4dc; }
.footer a:hover { color: #fff; }
.footer li { margin-bottom: 10px; font-size: .92rem; }
.footer-brand img { height: 42px; margin-bottom: 14px; }
.footer-brand p { color: #9aa8c4; font-size: .88rem; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--maroon-600); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; font-size: .82rem; color: #8592ac; }

/* ---- Breadcrumb / page header ---- */
.page-header { background: var(--navy-900); color: #fff; padding: 46px 0; }
.page-header h1 { color: #fff; margin-bottom: 8px; }
.breadcrumb { color: #b9c4dc; font-size: .88rem; }
.breadcrumb a { color: #d7deed; }
.breadcrumb a:hover { color: #fff; }

/* ---- Content page ---- */
.prose { max-width: 860px; }
.prose img { border-radius: var(--radius); margin: 16px 0; }
.prose h2, .prose h3 { margin-top: 1.3em; }

/* ---- Filters ---- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-bar a {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--gray-200); font-weight: 600; font-size: .88rem; color: var(--navy-800);
}
.filter-bar a.active, .filter-bar a:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* ---- Gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-box { background: var(--gray-100); border-radius: var(--radius); padding: 28px; margin-bottom: 16px; }
.contact-info-box h4 { margin-bottom: 4px; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 0; width: 100%; min-height: 260px; }

form.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; color: var(--navy-900); }
.form input, .form textarea, .form select {
  width: 100%; padding: 11px 14px; border-radius: 8px; border: 1px solid var(--gray-200);
  font-family: inherit; font-size: .95rem; background: #fff;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(11,46,107,.12); }
.form .validation-summary-errors { color: var(--maroon-600); font-size: .88rem; }
.field-validation-error { color: var(--maroon-600); font-size: .82rem; display: block; margin-top: 4px; }
.alert { padding: 14px 18px; border-radius: 8px; font-size: .92rem; margin-bottom: 16px; }
.alert-success { background: #e4f6ea; color: #1c6b3c; }
.alert-error { background: #fbe6ea; color: var(--maroon-700); }

.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0,0,0,.25);
  font-size: 1.5rem; color: #fff;
}

/* Sayfalama */
.pagination { display: flex; gap: 6px; margin-top: 30px; justify-content: center; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--gray-200); font-weight: 600; font-size: .9rem;
}
.pagination a:hover { background: var(--gray-100); }
.pagination .active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }
