/* ============================================================
   KTA İnşaat — Global CSS Design System
   Version: 1.0 | Last Updated: 2025
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties (Design Tokens) ── */
:root {
  /* Primary Colors */
  --navy: #0A1628;
  --navy-mid: #132244;
  --navy-light: #1A3060;
  --anthracite: #2C3E50;
  --anthracite-mid: #3D5166;

  /* Accent – Gold */
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #A8873A;
  --gold-muted: rgba(201, 168, 76, 0.15);

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F8F7F4;
  --light: #F0EFE8;
  --border: rgba(255, 255, 255, 0.08);
  --border-dark: rgba(0, 0, 0, 0.10);
  --gray: #8A9BB0;
  --gray-dark: #5A6A7E;
  --text-light: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.45);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3rem;
  --text-5xl: 3.75rem;
  --text-6xl: 4.5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --section: clamp(4rem, 8vw, 8rem);

  /* Border Radius */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.10);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.20);
  --shadow-lg: 0 16px 60px rgba(0, 0, 0, 0.30);
  --shadow-gold: 0 4px 24px rgba(201, 168, 76, 0.25);

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;

  /* Z-index layers */
  --z-base: 1;
  --z-sticky: 100;
  --z-modal: 200;
  --z-overlay: 300;
  --z-toast: 400;

  /* Container */
  --container-max: 1280px;
  --container-pad: clamp(1rem, 5vw, 3rem);

  /* Header */
  --header-h: 80px;
  --header-h-scroll: 64px;
}

/* ── CSS Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--anthracite);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: var(--font-body);
}

ul,
ol {
  list-style: none;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--navy);
  overflow-wrap: break-word;
  word-break: break-word;
}

.heading-display {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, var(--text-6xl));
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.heading-xl {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, var(--text-4xl));
  font-weight: 700;
}

.heading-md {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, var(--text-3xl));
  font-weight: 600;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  border-radius: var(--radius-full);
}

/* ── Brand / Logo ── */
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5ch;
  line-height: 1;
}

.logo-text span {
  color: var(--gold);
  font-weight: 400;
}

.footer-logo-text {
  font-size: 2.25rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.025em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
  gap: var(--space-2);
}

.btn-whatsapp:hover {
  background: #20ba5a;
  border-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.btn-phone {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  gap: var(--space-2);
}

.btn-phone:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.40);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold);
  color: var(--gold);
}

.site-footer {
  background: var(--navy);
  color: var(--gray);
  padding-top: var(--space-12);
  font-size: var(--text-sm);
  overflow: hidden;
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  padding-inline: 0;
  gap: var(--space-3);
}

.btn-ghost::after {
  content: '→';
  transition: transform 0.2s ease;
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}

.btn-lg {
  font-size: var(--text-base);
  padding: 1rem 2.25rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  font-size: var(--text-xs);
  padding: 0.5rem 1.25rem;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dark);
  overflow: hidden;
  transition: var(--transition-slow);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-muted);
}

.card-dark {
  background: var(--navy-mid);
  border-color: var(--border);
}

/* ── Section Base ── */
.section {
  padding-block: var(--section);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-light {
  background: var(--off-white);
}

/* ── Badge / Pill ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.badge-gold {
  background: var(--gold-muted);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.badge-navy {
  background: rgba(10, 22, 40, 0.08);
  color: var(--navy);
}

.badge-green {
  background: rgba(34, 197, 94, 0.10);
  color: #16a34a;
}

/* ── Divider ── */
.divider-gold {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: var(--radius-full);
  margin-block: var(--space-4);
}

/* ── Grid Utilities ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ── Flex Utilities ── */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

/* ── Aspect Ratios ── */
.aspect-video {
  aspect-ratio: 16/9;
}

.aspect-square {
  aspect-ratio: 1;
}

.aspect-card {
  aspect-ratio: 4/3;
}

.obj-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* ── Text Utilities ── */
.text-gold {
  color: var(--gold);
}

.text-white {
  color: var(--white);
}

.text-muted {
  color: var(--gray);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.font-heading {
  font-family: var(--font-heading);
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── WhatsApp Enhanced Widget ── */
.whatsapp-widget {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--white);
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2);
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
}

.whatsapp-widget:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.wa-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
}

.wa-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #25D366;
  background: var(--navy);
  /* Fallback bg */
}

.wa-avatar-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  z-index: 1;
}

.wa-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #25D366;
  border: 2px solid var(--white);
  border-radius: 50%;
}

.wa-info {
  display: flex;
  flex-direction: column;
}

.wa-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.wa-title {
  font-size: 0.7rem;
  color: var(--gray);
  line-height: 1.2;
}

@media (max-width: 768px) {
  .wa-info {
    display: none;
  }

  .whatsapp-widget {
    padding: 0;
    border: none;
    background: transparent;
  }

  .wa-avatar {
    width: 56px;
    height: 56px;
    box-shadow: var(--shadow-lg);
  }
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.animate-fade-up {
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-fade {
  animation: fadeIn 0.5s ease both;
}

/* Scroll-reveal base styles */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children>*:nth-child(1) {
  transition-delay: 0.1s;
}

.stagger-children>*:nth-child(2) {
  transition-delay: 0.2s;
}

.stagger-children>*:nth-child(3) {
  transition-delay: 0.3s;
}

.stagger-children>*:nth-child(4) {
  transition-delay: 0.4s;
}

.stagger-children>*:nth-child(5) {
  transition-delay: 0.5s;
}

.stagger-children>*:nth-child(6) {
  transition-delay: 0.6s;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-sm);
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb-sep {
  color: var(--text-muted);
  user-select: none;
}

/* ── Form Globals ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--anthracite);
}

.form-label.light {
  color: var(--text-light);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1.125rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--anthracite);
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Dark form variant */
.form-input.dark,
.form-select.dark,
.form-textarea.dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--white);
}

.form-input.dark::placeholder {
  color: var(--text-muted);
}

/* ── Responsive Helpers ── */
@media (max-width: 768px) {
  :root {
    --section: clamp(3rem, 6vw, 5rem);
    --header-h: 64px;
  }
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Contact Page Custom Styles ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 5fr 7fr;
  }
}

.contact-card-info {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  color: var(--white);
  height: fit-content;
}

.contact-card-info h2 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  position: relative;
  padding-bottom: var(--space-3);
}

.contact-card-info h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--gold);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gold-muted);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: var(--text-base);
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-info-item:hover .contact-info-icon {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

.contact-info-text h3 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.contact-info-text p, 
.contact-info-text a {
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  transition: var(--transition);
}

.contact-info-text a:hover {
  color: var(--gold);
}

.contact-map-wrapper {
  margin-top: var(--space-6);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  line-height: 0;
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 280px;
  border: 0;
}

.contact-form-container {
  background: var(--off-white);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form-container h2 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .contact-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-form-grid .full-width {
    grid-column: span 2;
  }
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.form-checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--gold);
  cursor: pointer;
}

.form-checkbox-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--anthracite-mid);
  line-height: 1.4;
}

.form-checkbox-label a {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: underline;
  transition: var(--transition);
}

.form-checkbox-label a:hover {
  color: var(--navy);
}

.form-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: var(--text-base);
  cursor: pointer;
  border: none;
}

/* ── WhatsApp Floating Button ── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, box-shadow 0.3s ease;
  border: none;
  outline: none;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: #fff;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  display: block;
}