/*
Theme Name: ElyProje Altınkale
Theme URI: https://elyproje.com.tr
Author: ElyProje
Description: Altınkale projesi için özel, hızlı ve mobil uyumlu tanıtım teması.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: elyproje-altinkale
*/

:root {
  --wine: #55131f;
  --wine-dark: #2d080f;
  --gold: #c69a4a;
  --cream: #f5f0e8;
  --paper: #fbfaf7;
  --ink: #171313;
  --muted: #6f6765;
  --line: rgba(85, 19, 31, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, "Helvetica Neue", sans-serif;
  --modern-luxe: "Avenir Next", "Segoe UI Variable Display", "Segoe UI",
    Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

.admin-bar .site-header {
  top: 32px;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: 78px;
  display: grid;
  grid-template-columns: 190px 1fr 190px;
  align-items: center;
  padding: 0 clamp(22px, 4vw, 68px);
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid rgba(85, 19, 31, 0.1);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 145px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 44px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a {
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--wine);
  transition: right 180ms ease;
}

nav a:hover::after {
  right: 0;
}

.header-cta {
  justify-self: end;
  padding: 11px 23px;
  border: 1px solid var(--wine);
  color: var(--wine);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: 180ms ease;
}

.header-cta:hover {
  background: var(--wine);
  color: white;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 150px clamp(24px, 7vw, 110px) 92px;
  color: white;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  animation: hero-in 1.4s ease-out both;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(28, 4, 8, 0.9), rgba(48, 9, 15, 0.55) 44%, rgba(48, 9, 15, 0.1) 72%),
    linear-gradient(0deg, rgba(20, 4, 7, 0.55), transparent 50%);
}

@keyframes hero-in {
  from {
    transform: scale(1.04);
    opacity: 0.6;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 730px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #dfbd75;
}

h1 {
  max-width: 720px;
  margin-bottom: 26px;
  font-family: var(--serif);
  font-size: clamp(52px, 6.8vw, 102px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero-copy {
  max-width: 590px;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 1.6vw, 22px);
}

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

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 25px;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.045em;
  transition: 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-gold {
  background: var(--gold);
  color: #231608;
}

.button-gold:hover {
  background: #dfb96f;
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.button-dark {
  background: var(--wine);
  color: white;
}

.scroll-note {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 4vw, 65px);
  bottom: 42px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.facts {
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: -1px auto 0;
  padding: 0 clamp(20px, 3vw, 40px);
  background: var(--wine);
  color: white;
}

.fact {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px clamp(20px, 2.5vw, 38px);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.fact:last-child {
  border-right: 0;
}

.fact strong {
  display: block;
  margin-bottom: 9px;
  font-family: var(--modern-luxe);
  font-size: clamp(32px, 3.3vw, 44px);
  font-weight: 300;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-rendering: geometricPrecision;
  white-space: nowrap;
}

.fact span {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--modern-luxe);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 130px clamp(24px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: clamp(55px, 8vw, 120px);
  align-items: center;
}

.section-copy h2,
.section-heading h2,
.facilities-content h2,
.plans-copy h2,
.location-copy h2,
.payment-section h2,
.contact-section h2 {
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(39px, 4.8vw, 68px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.section-copy > p:not(.eyebrow),
.plans-copy > p:not(.eyebrow),
.location-copy > p:not(.eyebrow) {
  max-width: 600px;
  color: var(--muted);
  font-size: 17px;
}

blockquote {
  margin: 42px 0 0;
  padding: 8px 0 8px 28px;
  border-left: 2px solid var(--gold);
  color: var(--wine);
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  line-height: 1.55;
}

.portrait-image {
  position: relative;
  margin: 0;
}

.portrait-image::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -22px;
  right: -22px;
  width: 55%;
  height: 52%;
  border: 1px solid var(--gold);
}

.portrait-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.portrait-image figcaption {
  position: absolute;
  left: -25px;
  bottom: 24px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  background: var(--wine);
  color: white;
}

.portrait-image figcaption span:first-child {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 26px;
}

.portrait-image figcaption span:last-child {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.homes-section {
  max-width: 1400px;
  background: var(--cream);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.75fr;
  gap: 50px;
  align-items: end;
  margin-bottom: 54px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  margin-bottom: 7px;
  color: var(--muted);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.home-card {
  background: var(--paper);
  border: 1px solid rgba(85, 19, 31, 0.08);
}

.home-image-button,
.gallery-item,
.plan-preview {
  position: relative;
  width: 100%;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.home-image-button {
  aspect-ratio: 4 / 3;
}

.home-image-button img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.home-image-button:hover img,
.gallery-item:hover img {
  transform: scale(1.025);
}

.home-image-button span,
.plan-preview > span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-card-body {
  padding: 28px;
}

.home-type,
.home-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-type {
  margin-bottom: 16px;
  color: var(--wine);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-card h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
}

.home-meta {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-meta strong {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
}

.home-meta span,
.home-card-body p {
  color: var(--muted);
  font-size: 13px;
}

.home-card-body p {
  min-height: 63px;
  margin: 20px 0;
}

.text-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wine);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.text-link span {
  display: inline-block;
  margin-left: 7px;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

.facilities {
  min-height: 760px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  background: var(--wine-dark);
  color: white;
}

.facilities-image {
  min-height: 520px;
}

.facilities-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.facilities-content {
  align-self: center;
  padding: 90px clamp(35px, 7vw, 110px);
}

.facilities-content h2 {
  max-width: 720px;
}

.facility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.facility {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.facility:nth-child(odd) {
  margin-right: 28px;
}

.facility span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 15px;
}

.facility p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.gallery-section {
  max-width: 1400px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(3, 220px);
  gap: 14px;
}

.gallery-item {
  min-width: 0;
  min-height: 0;
  text-align: left;
}

.gallery-item-1 {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
}

.gallery-item-2 {
  grid-column: 8 / 13;
  grid-row: 1 / 2;
}

.gallery-item-3 {
  grid-column: 8 / 13;
  grid-row: 2 / 3;
}

.gallery-item-4 {
  grid-column: 1 / 5;
  grid-row: 3 / 4;
}

.gallery-item-5 {
  grid-column: 5 / 9;
  grid-row: 3 / 4;
}

.gallery-item-6 {
  grid-column: 9 / 13;
  grid-row: 3 / 4;
}

.gallery-item span {
  position: absolute;
  left: 15px;
  bottom: 15px;
  padding: 8px 12px;
  background: rgba(45, 8, 15, 0.82);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plans-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(35px, 6vw, 90px);
  align-items: center;
  padding: 115px clamp(24px, 7vw, 110px);
  background: var(--cream);
}

.plan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 38px;
}

.plan-tabs button {
  padding: 10px 15px;
  border: 1px solid rgba(85, 19, 31, 0.25);
  background: transparent;
  color: var(--wine);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.plan-tabs button.active {
  background: var(--wine);
  color: white;
}

.plan-preview {
  min-height: 520px;
  background: white;
  border: 1px solid rgba(85, 19, 31, 0.1);
}

.plan-preview img {
  width: 100%;
  height: 100%;
  max-height: 680px;
  object-fit: contain;
}

.location-section {
  min-height: 670px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 540px;
  border: 0;
  filter: saturate(0.72) contrast(1.04);
}

.location-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 85px clamp(32px, 6vw, 90px);
}

.distance-list {
  margin: 25px 0 32px;
  border-top: 1px solid var(--line);
}

.distance-list div {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.distance-list strong {
  color: var(--wine);
}

.location-copy .button {
  align-self: flex-start;
}

.location-copy small {
  margin-top: 17px;
  color: #8b8583;
  font-size: 10px;
}

.payment-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 125px);
  padding: 120px clamp(24px, 8vw, 130px);
  background: var(--wine);
  color: white;
}

.payment-section h2 {
  max-width: 680px;
}

.payment-details {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.payment-item {
  display: grid;
  grid-template-columns: 55px 1fr;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.payment-item span {
  color: var(--gold);
  font-family: var(--serif);
}

.payment-item p {
  margin: 0;
}

.payment-note {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.about-section {
  max-width: 1200px;
}

.brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.brand-grid article {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 5vw, 58px);
  border: 1px solid var(--line);
  background: white;
}

.brand-grid article:first-child {
  border-top: 4px solid var(--wine);
}

.brand-grid article:last-child {
  border-top: 4px solid #0fc1ef;
}

.brand-grid img {
  width: 220px;
  height: 90px;
  object-fit: contain;
  object-position: left center;
}

.brand-grid p {
  max-width: 440px;
  margin: 45px 0 0;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 0.7fr);
  gap: clamp(45px, 8vw, 125px);
  align-items: center;
  padding: 115px clamp(24px, 8vw, 130px);
  background: var(--wine-dark);
  color: white;
}

.contact-intro > p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 30px;
  color: #e7c680;
  font-weight: 700;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: clamp(28px, 4vw, 45px);
  background: var(--paper);
  color: var(--ink);
}

.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--wine);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-form input,
.lead-form select {
  min-height: 48px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(85, 19, 31, 0.35);
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  text-transform: none;
}

.lead-form input:focus,
.lead-form select:focus {
  border-bottom-color: var(--gold);
}

.lead-form .button {
  margin-top: 10px;
}

.lead-form small {
  color: #88817f;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 45px clamp(24px, 6vw, 90px);
  background: #f1ece4;
  color: #6f6765;
  font-size: 11px;
}

.footer-logo img {
  width: 150px;
  height: 55px;
  object-fit: contain;
  object-position: left;
}

footer p {
  margin-bottom: 5px;
}

.socials {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  color: var(--wine);
  font-weight: 800;
}

.whatsapp-float {
  position: fixed;
  z-index: 45;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px 9px 9px;
  border-radius: 999px;
  background: #24d366;
  color: #062b15;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  font-size: 12px;
  transition: transform 180ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
}

.whatsapp-float span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  font-size: 10px;
  font-weight: 900;
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 70px 30px 30px;
  background: rgba(15, 4, 6, 0.94);
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1200px, 95vw);
  max-height: 83vh;
  object-fit: contain;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 23px;
  right: 28px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: white;
  cursor: pointer;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

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

  .fact:nth-child(2) {
    border-right: 0;
  }

  .fact:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .intro,
  .facilities,
  .location-section,
  .payment-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .portrait-image {
    max-width: 620px;
  }

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

  .home-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
  }

  .home-card-body p {
    min-height: 0;
  }

  .plans-section {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 420px repeat(3, 260px);
  }

  .gallery-item-1,
  .gallery-item-2,
  .gallery-item-3,
  .gallery-item-4,
  .gallery-item-5,
  .gallery-item-6 {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-item-1 {
    grid-column: 1 / -1;
  }

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

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

  .socials {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .site-header {
    height: 68px;
    padding: 0 16px;
  }

  .brand img {
    width: 122px;
  }

  .header-cta {
    padding: 9px 14px;
    font-size: 11px;
  }

  .hero {
    min-height: 830px;
    padding: 125px 22px 64px;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(28, 4, 8, 0.95), rgba(48, 9, 15, 0.58) 58%, rgba(48, 9, 15, 0.15));
  }

  .scroll-note {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .facts {
    padding: 0;
  }

  .fact {
    min-height: 116px;
    padding: 18px;
  }

  .fact strong {
    font-size: clamp(27px, 7.5vw, 36px);
  }

  .fact span {
    font-size: 10px;
    letter-spacing: 0.09em;
  }

  .section {
    padding: 85px 22px;
  }

  .intro {
    gap: 55px;
  }

  .portrait-image figcaption {
    left: 12px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-card {
    display: block;
  }

  .facilities-content {
    padding: 75px 22px;
  }

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

  .facility:nth-child(odd) {
    margin-right: 0;
  }

  .gallery-grid {
    display: flex;
    flex-direction: column;
  }

  .gallery-item {
    aspect-ratio: 4 / 3;
  }

  .gallery-item-1 {
    min-height: 0;
  }

  .plans-section,
  .payment-section,
  .contact-section {
    padding: 85px 22px;
  }

  .plan-preview {
    min-height: 350px;
  }

  .location-copy {
    padding: 75px 22px;
  }

  .brand-grid article {
    min-height: 270px;
  }

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

  .socials {
    flex-wrap: wrap;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
