/* =============================================
   Utkuseven & Kuğuoğlu — Contact Page
   ============================================= */

:root {
  --navy-deep:    #0b1525;
  --navy-mid:     #1a2d4a;
  --navy-light:   #2e4a6b;
  --slate:        #5a7a9a;
  --slate-light:  #7a96b0;
  --accent:       #b8944f;
  --accent-soft:  rgba(184, 148, 79, 0.12);
  --bg-white:     #ffffff;
  --bg-subtle:    #f4f6f9;
  --text-primary: #1a2d4a;
  --text-body:    #3d5166;
  --text-muted:   #8a9bb0;
  --border:       #e2e8f0;
  --split-offset: 80px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-white);
  color: var(--text-primary);
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

body.loaded {
  overflow: auto;
}

img {
  display: block;
  max-width: 100%;
}

address {
  font-style: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Preloader ─────────────────────────────── */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f7f9fc 0%, #eef3f8 50%, #e6edf5 100%);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.preloader__logo-wrap {
  position: relative;
  width: 310px;
  height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(26, 45, 74, 0.1);
  animation: logoBreath 2.5s ease-in-out infinite;
}

.preloader__logo {
  position: relative;
  z-index: 1;
  width: 250px;
  height: auto;
  flex-shrink: 0;
}

.preloader__shine {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background: radial-gradient(circle, rgba(90, 122, 154, 0.08) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.preloader__bar {
  width: 180px;
  height: 3px;
  background: rgba(26, 45, 74, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.preloader__bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--navy-mid), var(--accent));
  border-radius: 3px;
  will-change: width;
}

.preloader__text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--slate);
  animation: textFade 1.5s ease-in-out infinite alternate;
}

@keyframes logoBreath {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.88; }
}

@keyframes textFade {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}

/* ─── Page Layout ───────────────────────────── */

.page {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  opacity: 0;
  transition: opacity 1s ease 0.2s;
}

.page.is-visible {
  opacity: 1;
}

/* ─── Image Panel (Left) ────────────────────── */

.panel--image {
  position: relative;
  flex: 0 0 62%;
  min-height: 100vh;
  overflow: hidden;
  background: #a8b8c8;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--split-offset)) 100%, 0 100%);
  z-index: 2;
}

.panel__image-wrap {
  position: absolute;
  inset: 0;
}

.panel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 10%;
}

/* ─── Info Panel (Right) ────────────────────── */

.panel--info {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  margin-left: calc(var(--split-offset) * -1);
  padding: 3rem 3.5rem 3rem calc(3rem + var(--split-offset));
  clip-path: polygon(var(--split-offset) 0, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

.panel__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 90% 10%, rgba(90, 122, 154, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(184, 148, 79, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.panel__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ─── Brand / Logo ──────────────────────────── */

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.page.is-visible .brand {
  opacity: 1;
  transform: translateX(0);
}

.brand__logo {
  width: 600px;
  height: auto;
  filter: drop-shadow(0 2px 12px rgba(26, 45, 74, 0.1));
}

.brand__divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* ─── Contact ───────────────────────────────── */

.contact {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}

.page.is-visible .contact {
  opacity: 1;
  transform: translateX(0);
}

.contact__heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
}

.contact__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact__item:hover {
  background: #fff;
  border-color: rgba(184, 148, 79, 0.35);
  box-shadow: 0 4px 20px rgba(26, 45, 74, 0.06);
}

.contact__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 10px;
  color: var(--accent);
}

.contact__icon svg {
  width: 20px;
  height: 20px;
}

.contact__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}

.contact__value {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-body);
}

.contact__link {
  position: relative;
  display: inline-block;
  color: var(--navy-mid);
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.contact__link:hover {
  color: var(--accent);
}

.contact__link:hover::after {
  width: 100%;
}

/* ─── Footer ────────────────────────────────── */

.panel__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.8s ease 1s;
}

.panel__footer-sep {
  color: var(--border);
  user-select: none;
}

.panel__footer-link {
  position: relative;
  display: inline-block;
  color: var(--navy-mid);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.panel__footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.panel__footer-link:hover {
  color: var(--accent);
}

.panel__footer-link:hover::after {
  width: 100%;
}

.page.is-visible .panel__footer {
  opacity: 1;
}

/* ─── Responsive ────────────────────────────── */

@media (max-width: 1200px) {
  :root {
    --split-offset: 70px;
  }

  .panel--image {
    flex: 0 0 58%;
  }

  .panel--info {
    padding: 2.5rem 3rem 2.5rem calc(3rem + var(--split-offset));
  }

  .brand__logo {
    width: 600px;
  }
}

@media (max-width: 1024px) {
  :root {
    --split-offset: 0px;
  }

  body {
    overflow: auto;
  }

  .page {
    flex-direction: column;
    min-height: auto;
  }

  .panel--image {
    flex: none;
    width: 100%;
    min-height: auto;
    height: 42vh;
    min-height: 300px;
    clip-path: none;
    z-index: 1;
  }

  .panel__image-wrap {
    right: 0;
  }

  .panel__image {
    object-position: right 15%;
  }

  .panel--info {
    flex: none;
    width: 100%;
    margin-left: 0;
    padding: 2.5rem 2rem calc(3rem + env(safe-area-inset-bottom, 0px));
    clip-path: none;
  }

  .panel__content {
    max-width: 520px;
    margin: 0 auto;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .brand {
    align-items: center;
  }

  .brand__divider {
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
  }

  .contact {
    width: 100%;
  }

  .contact__heading {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .contact__item {
    text-align: left;
  }

  .panel__footer {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .panel--image {
    height: 38vh;
    min-height: 240px;
  }

  .panel--info {
    padding: 2rem 1.25rem 2.5rem;
  }

  .panel__content {
    gap: 1.75rem;
  }

  .brand__logo {
    width: 150px;
  }

  .contact__heading {
    font-size: 1.4rem;
  }

  .contact__list {
    gap: 1rem;
  }

  .contact__item {
    padding: 1rem 1.15rem;
    gap: 1rem;
  }

  .contact__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .contact__icon svg {
    width: 18px;
    height: 18px;
  }

  .contact__value {
    font-size: 0.9rem;
  }

  .preloader__logo-wrap {
    width: 260px;
    height: 260px;
    border-radius: 20px;
  }

  .preloader__logo {
    width: 210px;
  }
}

@media (max-width: 380px) {
  .panel--image {
    min-height: 200px;
  }

  .contact__item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact__body {
    align-items: center;
  }
}
