/*
Theme Name: SEKPOOL
Theme URI: https://sekpool.com
Author: SEKPOOL
Description: Premium yüzme havuzu tasarımı ve yapımı için lüks, tek sayfa WordPress teması. Navy + ivory + altın tonlarında, mühendislik & estetik odaklı.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: sekpool
Tags: one-page, business, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ============== Design Tokens ============== */
:root {
  --background: oklch(0.985 0.004 90);
  --foreground: oklch(0.18 0.04 260);
  --primary: oklch(0.18 0.05 260);
  --primary-foreground: oklch(0.985 0.004 90);
  --primary-deep: oklch(0.12 0.045 265);
  --gold: oklch(0.78 0.13 85);
  --gold-soft: oklch(0.86 0.09 88);
  --secondary: oklch(0.95 0.01 90);
  --muted-foreground: oklch(0.48 0.02 260);
  --border: oklch(0.9 0.012 90);
  --gradient-hero: linear-gradient(180deg, oklch(0.12 0.045 265 / 0.85) 0%, oklch(0.08 0.04 265 / 0.55) 50%, oklch(0.08 0.04 265 / 0.9) 100%);
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --transition-elegant: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============== Reset / Base ============== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ============== Layout ============== */
.container-x { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1.5rem; }

/* ============== Utilities ============== */
.gold { color: var(--gold); }
.gold-soft { color: var(--gold-soft); }
.italic { font-style: italic; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.75rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 2.5rem; height: 1px; background: var(--gold);
}
.eyebrow.center { justify-content: center; }

/* ============== Header / Nav ============== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: color-mix(in oklch, var(--primary) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; height: 5rem;
}
.brand { display: flex; align-items: baseline; gap: 0.5rem; }
.brand-name { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.25em; color: var(--background); }
.brand-tag { font-size: 0.625rem; letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; }
.nav-links { display: none; gap: 2.5rem; }
.nav-links a { font-size: 0.875rem; color: rgba(254,253,250,0.8); transition: color 0.3s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  display: none; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid color-mix(in oklch, var(--gold) 60%, transparent); color: var(--gold);
  transition: all 0.3s;
}
.nav-cta:hover { background: var(--gold); color: var(--primary); }
.nav-toggle { display: block; background: none; border: 0; color: var(--background); padding: 0.5rem; }
.nav-toggle span { display: block; width: 1.5rem; height: 1px; background: currentColor; margin: 0.375rem 0; }
.nav-toggle span:last-child { width: 1rem; margin-left: auto; }
.nav-mobile { display: none; background: var(--primary); border-top: 1px solid rgba(255,255,255,0.1); }
.nav-mobile.open { display: block; }
.nav-mobile-inner { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.nav-mobile a { color: rgba(254,253,250,0.85); font-size: 0.875rem; }
.nav-mobile .nav-cta { display: inline-flex; align-self: flex-start; margin-top: 0.5rem; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ============== Hero ============== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: var(--gradient-hero); }
.hero-inner { position: relative; z-index: 10; padding: 8rem 1.5rem 6rem; max-width: 80rem; margin: 0 auto; width: 100%; }
.hero-content { max-width: 48rem; animation: fadeUp 0.9s var(--transition-elegant) both; }
.hero h1 {
  color: var(--background); font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.05; letter-spacing: -0.02em; margin-top: 2rem;
}
.hero p.lead {
  color: rgba(254,253,250,0.8); margin-top: 2rem; font-size: 1.125rem;
  font-weight: 300; max-width: 36rem; line-height: 1.7;
}
.hero-actions { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  padding: 1rem 2rem; font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase;
  transition: all 0.3s; border: 0;
}
.btn-gold { background: var(--gold); color: var(--primary); font-weight: 500; }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost-light { border: 1px solid rgba(254,253,250,0.3); color: var(--background); background: transparent; }
.btn-ghost-light:hover { background: var(--background); color: var(--primary); }
.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(254,253,250,0.6); font-size: 0.625rem; letter-spacing: 0.4em; text-transform: uppercase;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============== Sections ============== */
section { padding: 7rem 0; }
@media (min-width: 768px) { section { padding: 10rem 0; } }
.section-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.section-head { max-width: 36rem; margin-bottom: 5rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* About */
.about-grid { display: grid; gap: 3rem; }
.about-body { display: flex; flex-direction: column; gap: 1.5rem; font-size: 1.0625rem; line-height: 1.8; color: color-mix(in oklch, var(--foreground) 80%, transparent); }
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 5fr 7fr; gap: 3rem; }
}

/* Services */
.services { background: var(--primary); color: var(--background); }
.services h2 { color: var(--background); }
.services-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: rgba(255,255,255,0.05);
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card { background: var(--primary); padding: 2.5rem; transition: background 0.3s; }
.service-card:hover { background: var(--primary-deep); }
.service-card svg { color: var(--gold); width: 2rem; height: 2rem; margin-bottom: 2rem; stroke-width: 1.25; }
.service-card h3 { color: var(--background); font-size: 1.5rem; margin-bottom: 0.75rem; }
.service-card p { color: rgba(254,253,250,0.7); font-size: 0.9375rem; line-height: 1.7; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) {
  .projects-grid { grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
}
.project-card { position: relative; overflow: hidden; display: block; }
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease-out; }
.project-card:hover img { transform: scale(1.05); }
.project-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in oklch, var(--primary) 90%, transparent), transparent 70%); }
.project-card .caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.75rem; }
.project-card .tag { font-size: 0.625rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.project-card h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--background); }
.p-a { grid-column: span 7; aspect-ratio: 16/11; }
.p-b { grid-column: span 5; aspect-ratio: 16/11; }
.p-c, .p-d, .p-e { grid-column: span 4; aspect-ratio: 4/5; }
.p-f { grid-column: span 12; aspect-ratio: 21/9; }
@media (max-width: 767px) {
  .p-a, .p-b, .p-c, .p-d, .p-e, .p-f { grid-column: 1 / -1; aspect-ratio: 16/10; }
}

/* WhyUs */
.why { background: var(--secondary); }
.why-grid { display: grid; gap: 1px; background: var(--border); }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-item { background: var(--secondary); padding: 2.5rem; display: flex; gap: 1.25rem; align-items: flex-start; }
.why-icon {
  width: 3rem; height: 3rem; flex-shrink: 0;
  border: 1px solid color-mix(in oklch, var(--gold) 40%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.why-icon svg { width: 1.25rem; height: 1.25rem; color: var(--gold); stroke-width: 1.5; }
.why-item h3 { font-size: 1.25rem; }
.why-item p { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.5rem; line-height: 1.7; }

/* Process */
.process-grid { display: grid; gap: 1px; background: var(--border); }
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(5, 1fr); } }
.process-step { background: var(--background); padding: 2.5rem; }
.process-step .num { font-family: var(--font-display); font-size: 3rem; color: var(--gold); margin-bottom: 1.5rem; line-height: 1; }
.process-step h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.process-step p { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.7; }

/* Testimonials */
.testimonials { background: var(--primary); color: var(--background); }
.testimonials h2 { color: var(--background); }
.t-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .t-grid { grid-template-columns: repeat(3, 1fr); } }
.t-card { border: 1px solid rgba(255,255,255,0.1); padding: 2.5rem; display: flex; flex-direction: column; }
.t-card svg { color: var(--gold); width: 1.75rem; height: 1.75rem; margin-bottom: 1.5rem; stroke-width: 1.25; }
.t-card blockquote {
  font-family: var(--font-display); font-size: 1.25rem; line-height: 1.6;
  color: rgba(254,253,250,0.9); flex: 1; margin: 0;
}
.t-card figcaption { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.t-card .role { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 0.25rem; }

/* Contact */
.contact-grid { display: grid; gap: 4rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; } }
.contact-row { display: flex; align-items: flex-start; gap: 1rem; }
.contact-row .icn { width: 2.5rem; height: 2.5rem; border: 1px solid color-mix(in oklch, var(--gold) 40%, transparent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row .icn svg { color: var(--gold); width: 1rem; height: 1rem; }
.contact-row .lbl { font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-foreground); }
.contact-row .val { font-size: 1rem; margin-top: 0.25rem; }
.contact-form { background: var(--primary); color: var(--background); padding: 2.5rem; }
@media (min-width: 768px) { .contact-form { padding: 3.5rem; } }
.field { display: block; margin-bottom: 1.5rem; }
.field-label { font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; display: block; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,0.2);
  color: var(--background); padding: 0.625rem 0; font: inherit; outline: none;
  transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.field-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .field-grid { grid-template-columns: 1fr 1fr; } }
.form-success { min-height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.form-success svg { color: var(--gold); width: 3rem; height: 3rem; margin-bottom: 1.5rem; stroke-width: 1.25; }
.form-success h3 { color: var(--background); font-size: 1.875rem; }
.form-success p { color: rgba(254,253,250,0.7); margin-top: 0.75rem; }

/* Footer */
.site-footer { background: var(--primary-deep); color: rgba(254,253,250,0.7); padding: 5rem 0 2.5rem; }
.footer-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 5fr 3fr 4fr; } }
.footer h4 { font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; font-family: var(--font-sans); font-weight: 600; }
.footer-grid ul li { margin-bottom: 0.75rem; font-size: 0.875rem; }
.footer-grid ul a:hover { color: var(--gold); }
.footer-bot { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.75rem; color: rgba(254,253,250,0.4); }
.footer-bot .upper { letter-spacing: 0.2em; text-transform: uppercase; }
