/* =====================================================================
   İLETİŞİM SAYFASI (contact.php)
   - Başlık alanı: açık mavi zemin; solda kırıntı, bordo üst başlık, H1,
     açıklama ve hızlı butonlar (Ara / WhatsApp / Yol Tarifi); sağda
     asimetrik köşeli görsel ve "Bugün" saat rozeti
   - Kartlar: başlık alanının altına biner (adres, telefon, e-posta, WhatsApp)
   - Alt bölüm: solda harita (adres kartıyla) + çalışma saatleri,
     sağda yapışkan iletişim formu (form-card.css)
   991px altında tek sütun; form haritanın üstüne çıkar.
   ===================================================================== */

.ct {
  --ct-navy: #14294a;
  --ct-navy-2: #486281;
  --ct-wine: #6b2a3e;
  --ct-wine-soft: #f6eef1;
  --ct-ink: #26303f;
  --ct-muted: #5d6b80;
  --ct-line: rgba(20, 41, 74, 0.1);
  --ct-soft: #eef2f7;
  --ct-radius: 22px;
  color: var(--ct-ink);
}

/* ---- Başlık alanı ---- */

.ct-hero {
  position: relative;
  padding: clamp(36px, 4vw, 70px) 0 clamp(110px, 9vw, 150px);
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(72, 98, 129, 0.16) 0%, transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(107, 42, 62, 0.07) 0%, transparent 70%),
    linear-gradient(180deg, #f6f8fb 0%, #eaf0f7 100%);
}

/* arkada büyük, silik EKG çizgisi: kartların arkasından, aralarında görünür */
.ct-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 34h420l14-12 12 12h30l10 8 16-40 18 56 14-28 10 4h40l16-10 14 10h586' fill='none' stroke='%236b2a3e' stroke-opacity='.28' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}

.ct-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(28px, 4vw, 70px);
}

.ct-hero.no-image .ct-hero-inner {
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.ct-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 22px;
  color: var(--ct-muted);
  font-size: 13px;
}

.ct-hero.no-image .ct-crumbs,
.ct-hero.no-image .ct-actions {
  justify-content: center;
}

.ct-crumbs a {
  color: var(--ct-muted);
  transition: color 0.25s ease;
}

.ct-crumbs a:hover {
  color: var(--ct-wine);
}

.ct-subtitle {
  margin: 0 0 4px;
  color: var(--ct-wine);
  font-family: var(--custom-first-font);
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 600;
  line-height: 1.2;
}

.ct-title {
  margin: 0 0 18px;
  color: var(--ct-navy);
  font-family: var(--custom-first-font);
  font-size: clamp(32px, 3.4vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ct-desc,
.ct-content {
  max-width: 560px;
  color: var(--ct-muted);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
}

.ct-hero.no-image .ct-desc,
.ct-hero.no-image .ct-content {
  margin-left: auto;
  margin-right: auto;
}

.ct-desc p,
.ct-content p {
  margin: 0;
  line-height: inherit;
}

.ct-desc p + p,
.ct-content p + p,
.ct-content {
  margin-top: 12px;
}

.ct-content a {
  color: var(--ct-wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.ct-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 0 20px 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.ct-action svg {
  width: 19px;
  height: 19px;
}

.ct-action.is-call {
  background: var(--ct-wine);
  box-shadow: 0 12px 26px rgba(107, 42, 62, 0.25);
  color: #fff !important;
}

.ct-action.is-whatsapp {
  background: linear-gradient(120deg, #13284a 0%, #486281 100%);
  box-shadow: 0 12px 26px rgba(20, 41, 74, 0.22);
  color: #fff !important;
}

.ct-action.is-route {
  border-color: rgba(20, 41, 74, 0.2);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ct-navy) !important;
}

.ct-action:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.ct-action.is-route:hover {
  background: var(--ct-navy);
  color: #fff !important;
}

.ct-action:focus-visible {
  outline: 2px solid var(--ct-wine);
  outline-offset: 3px;
}

/* görsel: asimetrik köşe + arkasında kayık çerçeve */
.ct-hero-media {
  position: relative;
  margin: 0;
}

.ct-hero-media::before {
  content: "";
  position: absolute;
  inset: 18px 18px -18px -18px;
  border: 2px solid rgba(72, 98, 129, 0.35);
  border-radius: 120px 34px 34px 34px;
}

.ct-hero-media img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 120px 34px 34px 34px;
  object-fit: cover;
  box-shadow: 0 30px 60px rgba(20, 41, 74, 0.2);
}

.ct-today {
  position: absolute;
  top: 26px;
  right: -16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(20, 41, 74, 0.18);
  color: var(--ct-navy);
  font-size: 14px;
}

.ct-today strong {
  margin-right: 4px;
  color: var(--ct-wine);
  font-weight: 600;
}

.ct-today-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22a06b;
  animation: ct-pulse 1.6s ease-in-out infinite;
}

@keyframes ct-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 160, 107, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(34, 160, 107, 0); }
}

/* ---- Kartlar (başlık alanına biner) ---- */

.ct-cards-wrap {
  position: relative;
  z-index: 2;
  margin-top: clamp(-90px, -6vw, -70px);
}

.ct-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(14px, 1.4vw, 22px);
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.ct-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--ct-radius);
  background: #fff;
  box-shadow: 0 20px 44px rgba(20, 41, 74, 0.09);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* sağ üstte silik büyük ikon izi */
.ct-card::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 98, 129, 0.1) 0%, transparent 70%);
  transition: transform 0.5s ease;
}

.ct-card:hover {
  box-shadow: 0 26px 50px rgba(20, 41, 74, 0.14);
  transform: translateY(-4px);
}

.ct-card:hover::after {
  transform: scale(1.4);
}

.ct-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 15px;
  background: linear-gradient(135deg, #14294a 0%, #486281 100%);
  color: #fff;
}

.ct-card.is-whatsapp .ct-card-icon {
  background: linear-gradient(135deg, #128c4b 0%, #25d366 100%);
}

.ct-card-icon svg {
  width: 22px;
  height: 22px;
}

.ct-card-label {
  margin: 0 0 6px;
  color: var(--ct-wine);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ct-card-value {
  margin: 0;
  color: var(--ct-navy) !important;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
  transition: color 0.25s ease;
}

a.ct-card-value:hover {
  color: var(--ct-wine) !important;
}

a.ct-card-value:focus-visible {
  outline: 2px solid var(--ct-wine);
  outline-offset: 2px;
}

/* ---- Harita + saatler + form ---- */

.ct-main {
  padding: clamp(44px, 4.5vw, 80px) 0 clamp(60px, 5.5vw, 100px);
}

.ct-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  align-items: start;
  gap: clamp(24px, 3vw, 48px);
}

.ct-main-grid.no-form {
  grid-template-columns: minmax(0, 1fr);
}

.ct-info {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 1.8vw, 26px);
  min-width: 0;
}

.ct-main-grid.no-form .ct-info {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: stretch;
}

.ct-map {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: var(--ct-radius);
  background: var(--ct-soft);
  box-shadow: 0 20px 44px rgba(20, 41, 74, 0.08);
}

.ct-map iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  filter: saturate(0.85);
}

.ct-map-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: min(340px, calc(100% - 36px));
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(20, 41, 74, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.ct-map-pin {
  display: flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ct-wine);
  color: #fff;
}

.ct-map-pin svg {
  width: 19px;
  height: 19px;
}

.ct-map-name {
  margin: 0 0 2px;
  color: var(--ct-navy);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
}

.ct-map-address {
  margin: 0;
  color: var(--ct-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ct-map-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--ct-wine) !important;
  font-size: 13px;
  font-weight: 600;
}

.ct-map-link:hover {
  color: var(--ct-navy) !important;
}

/* çalışma saatleri */
.ct-hours {
  padding: 22px 24px;
  border: 1px solid var(--ct-line);
  border-radius: var(--ct-radius);
  background: #fff;
  box-shadow: 0 20px 44px rgba(20, 41, 74, 0.06);
}

.ct-hours-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--ct-navy);
  font-family: var(--custom-first-font);
  font-size: 18px;
  font-weight: 600;
}

.ct-hours-title svg {
  width: 22px;
  height: 22px;
  color: var(--ct-wine);
}

.ct-hours-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
}

.ct-main-grid.no-form .ct-hours-list {
  grid-template-columns: minmax(0, 1fr);
}

.ct-hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--ct-line);
  font-size: 14.5px;
}

.ct-hours-row dt {
  color: var(--ct-navy);
  font-weight: 500;
}

.ct-hours-row dd {
  margin: 0;
  color: var(--ct-muted);
  text-align: right;
  white-space: nowrap;
}

.ct-hours-row.is-today {
  margin: 0 -10px;
  padding: 10px;
  border-bottom-color: transparent;
  border-radius: 12px;
  background: var(--ct-wine-soft);
}

.ct-hours-row.is-today dd {
  color: var(--ct-wine);
  font-weight: 600;
}

.ct-hours-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ct-wine);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  vertical-align: 1px;
}

.ct-form {
  position: sticky;
  top: 24px;
}

/* ---- Galeri (4'lü ızgara, Fancybox) ---- */

.ct-gallery {
  padding: 0 0 clamp(60px, 5.5vw, 100px);
}

.ct-gallery-title {
  margin: 0 0 clamp(20px, 2vw, 32px);
  color: var(--dhi-navy);
  font-family: var(--custom-first-font);
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ct-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 22px);
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.ct-gallery-link {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
  background: var(--dhi-ice);
}

.ct-gallery-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ct-gallery-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(19, 28, 48, 0.5) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ct-gallery-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--dhi-white);
  color: var(--dhi-blue);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ct-gallery-zoom svg {
  width: 18px;
  height: 18px;
}

.ct-gallery-link:hover img,
.ct-gallery-link:focus-visible img {
  transform: scale(1.06);
}

.ct-gallery-link:hover::after,
.ct-gallery-link:focus-visible::after,
.ct-gallery-link:hover .ct-gallery-zoom,
.ct-gallery-link:focus-visible .ct-gallery-zoom {
  opacity: 1;
  transform: none;
}

.ct-gallery-link:focus-visible {
  outline: 2px solid var(--dhi-blue);
  outline-offset: 3px;
}

/* ---- Responsive ---- */

@media (max-width: 1199px) {
  .ct-hours-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 991px) {
  .ct-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .ct-hero-media {
    max-width: 560px;
  }

  .ct-hero-media img {
    aspect-ratio: 16 / 10;
  }

  .ct-today {
    right: 14px;
  }

  .ct-main-grid,
  .ct-main-grid.no-form .ct-info {
    grid-template-columns: minmax(0, 1fr);
  }

  /* form haritanın üstüne çıkar */
  .ct-form {
    position: static;
    order: -1;
    max-width: 560px;
  }

  .ct-hours-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ct-map {
    min-height: 360px;
  }

  .ct-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .ct-hero-media::before {
    inset: 12px 10px -12px -10px;
  }

  .ct-hero-media img,
  .ct-hero-media::before {
    border-radius: 70px 24px 24px 24px;
  }

  .ct-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ct-action {
    justify-content: center;
    padding: 0 12px;
  }

  .ct-action.is-route:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .ct-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .ct-card {
    padding: 18px 18px 18px 80px;
  }

  .ct-card-icon {
    position: absolute;
    top: 18px;
    left: 18px;
    margin-bottom: 0;
  }

  .ct-map {
    min-height: 300px;
  }

  .ct-map-card {
    position: relative;
    left: auto;
    bottom: auto;
    max-width: none;
    margin: 230px 12px 12px;
  }

  .ct-hours {
    padding: 18px;
  }

  .ct-hours-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 575px) {
  .ct-gallery-link {
    border-radius: 14px;
  }

  .ct-gallery-zoom {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ct-today-dot {
    animation: none;
  }

  .ct-gallery-link img {
    transition: none;
  }
}
