/* ============================================================
   Uzunlar Gemi — ALTERNATIVE THEME 2: "Hat-San" clone
   Structural/visual clone of hat-san.com.tr (Elementor "man_"
   manufacturer theme): white background, steel-blue primary
   (#4c7892), red hover accent (#ed1c24), Poppins display type
   over Oxygen body copy. Full-bleed autoplay fade slider hero,
   horizontal header nav, card row, light footer with a hairline
   top border.
   ============================================================ */

:root {
  --bg: #ffffff;
  --surface-alt: #fafafa;
  --border: #dfe2ed;

  --ink: #40464d;
  --ink-soft: #6b7280;
  --ink-faint: #9ca3af;
  --heading: #1f2933;

  --primary: #4c7892;
  --primary-dark: #3a5c70;
  --red: #ed1c24;
  --red-dark: #c3141b;

  --wa-green: #25d366;

  --container: 74rem;
  --header-h: 4.75rem;
  --topbar-h: 2.25rem;

  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Oxygen", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--topbar-h));
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--heading);
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--red);
  color: #fff;
  padding: 0.5rem 1rem;
  font-weight: 700;
}
.skip-link:focus { top: 0.75rem; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ---------- Topbar ---------- */
.topbar {
  height: var(--topbar-h);
  background: var(--primary);
  color: rgba(255,255,255,0.92);
  font-size: 0.82rem;
}
.topbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.4rem;
}
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand img { height: 2.6rem; width: auto; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--heading);
  line-height: 1.15;
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
  margin-inline-start: auto;
}
.site-nav a {
  padding: 0.6rem 0.9rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0.9rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.2s var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--primary); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .nav-cta {
  margin-inline-start: 0.5rem;
  background: var(--primary);
  color: #fff;
  padding: 0.55rem 1.2rem;
  font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--red); color: #fff; }
.site-nav .nav-cta::after { display: none; }

.menu-toggle {
  margin-inline-start: auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}
.menu-toggle .bar { display: block; width: 1.15rem; height: 2px; background: var(--heading); }

@media (min-width: 960px) {
  .site-nav { display: flex; }
  .menu-toggle { display: none; }
}
@media (max-width: 959px) {
  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    inset: calc(var(--header-h) + var(--topbar-h)) 0 auto 0;
    background: #fff;
    padding: 0.5rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(20,30,40,0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  body.nav-open .site-nav { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 0.75rem 0.25rem; border-bottom: 1px solid var(--border); }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta { margin: 0.75rem 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 2px solid var(--primary);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { background: var(--red); border-color: var(--red); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: #fff; color: var(--primary); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-wa { background: var(--wa-green); border-color: var(--wa-green); }
.btn-wa:hover { background: #1fb857; border-color: #1fb857; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Hero slider ---------- */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h) - var(--topbar-h));
  height: calc(100svh - var(--header-h) - var(--topbar-h));
  min-height: 28rem;
  overflow: hidden;
  isolation: isolate;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);
}
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,14,20,0.62), rgba(10,14,20,0.18) 55%);
}
.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 2rem 2rem 2rem 4rem;
}
@media (max-width: 640px) {
  .slide-content { padding-inline-start: 1.5rem; }
}
.slide-heading {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(1.6rem, 4.4vw, 3.1rem);
  color: #fff;
  max-width: 46rem;
  margin-bottom: 1.4rem;
}
.slide-arrows {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 2;
  pointer-events: none;
}
.slide-arrow {
  pointer-events: auto;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  cursor: pointer;
  font-size: 1.3rem;
}
.slide-arrow:hover { background: var(--red); border-color: var(--red); }
.slide-dots {
  position: absolute;
  bottom: 1.3rem;
  inset-inline: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.slide-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: 0;
  cursor: pointer;
  padding: 0;
}
.slide-dot.is-active { background: var(--red); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--surface-alt); border-block: 1px solid var(--border); }
.section-primary { background: var(--primary); color: rgba(255,255,255,0.92); }
.section-primary h2 { color: #fff; }
.section-head { max-width: 42rem; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.7rem;
}
.section-primary .kicker { color: rgba(255,255,255,0.85); }
.lede { color: var(--ink-soft); font-size: 1.05rem; }

.intro-copy { max-width: 46rem; margin-inline: auto; text-align: center; }
.intro-copy strong { color: var(--primary); }

/* ---------- Icon list (services highlight) ---------- */
.icon-row { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .icon-row { grid-template-columns: repeat(3, 1fr); } }
.icon-item { display: flex; gap: 1rem; align-items: flex-start; }
.icon-badge {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--primary);
}
.icon-badge svg { width: 1.5rem; height: 1.5rem; }
.icon-item h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.icon-item p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Card row (selected work) ---------- */
.card-row { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .card-row { grid-template-columns: repeat(4, 1fr); } }
.work-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.work-card:hover { box-shadow: 0 14px 30px rgba(20,30,40,0.1); border-color: var(--primary); }
.work-card figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.work-card:hover img { transform: scale(1.06); }
.work-card figcaption { padding: 1.1rem 1.2rem 1.3rem; }
.work-card .date { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); font-weight: 700; }
.work-card h3 { font-size: 1.05rem; margin: 0.3rem 0 0.3rem; }
.work-card p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Facts / stack blocks (about) ---------- */
.stack > * + * { margin-top: 2.4rem; padding-top: 2.4rem; border-top: 1px solid var(--border); }
.block h2 { font-size: 1.3rem; }
.block p:last-child { margin-bottom: 0; }
.facts { margin-top: 1rem; }
.fact { display: grid; grid-template-columns: 10rem 1fr; gap: 0.6rem; padding: 0.75rem 0; border-top: 1px solid var(--border); font-size: 0.94rem; }
.fact:first-child { border-top: none; }
.fact dt { font-family: var(--font-display); font-weight: 600; color: var(--heading); }
.fact dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 520px) { .fact { grid-template-columns: 1fr; gap: 0.15rem; } }

.item-list { margin-top: 0.8rem; }
.item-list li { position: relative; padding-inline-start: 1.1rem; margin-bottom: 0.4rem; color: var(--ink-soft); }
.item-list li::before { content: "—"; position: absolute; inset-inline-start: 0; color: var(--primary); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.6rem; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 560px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
label span { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; margin-bottom: 0.35rem; color: var(--heading); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink);
  padding: 0.75rem 0.85rem;
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
textarea { min-height: 8.5rem; resize: vertical; }
.form-status { margin-top: 0.8rem; font-weight: 700; }
.form-status.is-ok { color: #1a7a3f; }
.form-status.is-error { color: #b42318; }
.form-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: 1rem; }

.info-card { background: var(--surface-alt); border: 1px solid var(--border); border-top: 3px solid var(--primary); padding: 1.7rem 1.6rem; }
.info-card h2 { font-size: 1.05rem; margin-bottom: 1.2rem; }
.info-item { margin-bottom: 1.2rem; }
.info-item small { display: block; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; color: var(--primary); font-weight: 700; margin-bottom: 0.2rem; }
.info-item p { margin: 0; color: var(--ink-soft); }
.info-item a { color: var(--heading); font-weight: 600; }
.info-item a:hover { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  border-top: 1px solid var(--border);
  box-shadow: 0 0 37px rgba(76, 120, 146, 0.08);
  padding: 3.2rem 0 1.5rem;
}
.footer-grid { display: grid; gap: 2.2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 0.85fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer-brand img { height: 2.4rem; width: auto; }
.site-footer h3 { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); margin-bottom: 1rem; }
.footer-links a { display: block; padding: 0.22rem 0; color: var(--ink-soft); }
.footer-links a:hover { color: var(--red); }
.footer-contact p { margin: 0 0 0.5rem; color: var(--ink-soft); font-size: 0.92rem; }
.footer-contact strong { color: var(--heading); }
.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  inset-inline-end: 1.2rem;
  bottom: 1.2rem;
  z-index: 40;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 18px rgba(0,0,0,0.25);
}
.wa-float svg { width: 1.55rem; height: 1.55rem; }
.wa-float:hover { transform: translateY(-2px); }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
