/* ============================================
   GLOBAL SUCCESS TEACHING - Main Stylesheet
   Premium English Tutoring in London
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Mobil tarayicilarin gold rengi koyu/kahverengi gostermesini engelle */
  color-scheme: light;

  --primary: #0B1D3A;
  --primary-light: #132D54;
  --primary-dark: #060E1D;
  /* Champagne Gold - mobilde de net altin gozukur (eski #D4A853 kahverengi cikiyordu) */
  --secondary: #E8B547;
  --secondary-light: #F2D77A;
  --secondary-dark: #C99A33;
  --accent: #1A3A5C;
  --bg-light: #F9F7F2;
  --bg-cream: #FDF8F0;
  --bg-dark: #070F1B;
  --text-primary: #1A1A2E;
  --text-secondary: #4A5568;
  --text-light: #8896A6;
  --text-on-dark: #E2E8F0;
  --white: #FFFFFF;
  --border-light: rgba(232, 181, 71, 0.18);
  --border-gold: rgba(232, 181, 71, 0.45);
  --shadow-sm: 0 2px 8px rgba(11, 29, 58, 0.06);
  --shadow-md: 0 8px 30px rgba(11, 29, 58, 0.1);
  --shadow-lg: 0 20px 60px rgba(11, 29, 58, 0.15);
  --shadow-gold: 0 8px 30px rgba(232, 181, 71, 0.28);
  --gold-gradient: linear-gradient(135deg, #E8B547, #FFE08A, #E8B547);
  --navy-gradient: linear-gradient(135deg, #0B1D3A 0%, #1A3A5C 50%, #0B1D3A 100%);
  --hero-gradient: linear-gradient(160deg, #060E1D 0%, #0B1D3A 30%, #1A3A5C 70%, #132D54 100%);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container-max: 1280px;
  --section-padding: clamp(4rem, 8vw, 8rem);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background-color: var(--secondary);
  color: var(--primary);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
}

.text-gold {
  color: var(--secondary);
}

.text-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-dark {
  background: var(--navy-gradient);
  color: var(--text-on-dark);
}

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

.section-dark p {
  color: var(--text-on-dark);
  opacity: 0.85;
}

.section-cream {
  background-color: var(--bg-cream);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(3rem, 5vw, 5rem);
}

.section-header .label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 1rem;
  position: relative;
  padding: 0 1rem;
}

.section-header .label::before,
.section-header .label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--secondary);
}

.section-header .label::before { right: 100%; }
.section-header .label::after { left: 100%; }

.section-header h2 {
  margin-bottom: 1.2rem;
}

.section-header p {
  font-size: 1.1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  z-index: -1;
  transition: all var(--transition-base);
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(232, 181, 71, 0.4);
}

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

.btn-outline {
  border: 2px solid var(--secondary);
  color: var(--secondary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 0.7rem 1.8rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.2rem 3rem;
  font-size: 1.05rem;
}

.btn i {
  font-size: 0.9em;
  transition: transform var(--transition-fast);
}

.btn:hover i {
  transform: translateX(3px);
}

/* ---------- Decorative Elements ---------- */
.gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

.gold-line-center {
  margin: 1rem auto;
}

.gold-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  display: inline-block;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 1.5rem 0;
}

.ornament::before,
.ornament::after {
  content: '';
  width: 50px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--secondary));
}

.ornament::after {
  background: linear-gradient(to left, transparent, var(--secondary));
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-light);
}

/* ---------- Touch & Mobile Base ---------- */
@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .service-card:hover,
  .glass-card:hover,
  .step-card:hover,
  .contact-info-card:hover {
    transform: none;
  }

  .service-card:active {
    transform: scale(0.98);
  }

  .btn:active {
    transform: scale(0.96);
  }
}

/* ---------- Responsive: Large Tablets / Small Laptops ---------- */
@media (max-width: 1200px) {
  :root {
    --container-max: 960px;
  }
}

/* ---------- Responsive: Tablets ---------- */
@media (max-width: 1024px) {
  .section {
    padding: clamp(3rem, 6vw, 6rem) 0;
  }

  .section-header {
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
  }
}

/* ---------- Responsive: Tablet Portrait / Large Phones ---------- */
@media (max-width: 768px) {
  .section {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
  }

  .btn {
    padding: 0.85rem 2rem;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 1rem 2.2rem;
    font-size: 0.95rem;
  }

  h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
  h2 { font-size: clamp(1.7rem, 5vw, 2.3rem); }
  h3 { font-size: clamp(1.3rem, 4vw, 1.7rem); }

  p {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .section-header .label {
    font-size: 0.7rem;
    letter-spacing: 2px;
  }

  .section-header p {
    font-size: 1rem;
  }
}

/* ---------- Responsive: Phones ---------- */
@media (max-width: 576px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 1rem;
  }

  .btn {
    padding: 0.8rem 1.6rem;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
  }

  .btn-lg {
    padding: 0.9rem 1.8rem;
    font-size: 0.9rem;
  }

  .section-header .label::before,
  .section-header .label::after {
    width: 20px;
  }
}

/* ---------- Responsive: Small Phones ---------- */
@media (max-width: 400px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 0.75rem;
  }

  h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  h2 { font-size: clamp(1.4rem, 6vw, 1.9rem); }
}

/* ---------- Safe Area (notch devices) ---------- */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .navbar .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .footer-bottom {
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }

  .whatsapp-float {
    left: max(1.5rem, env(safe-area-inset-left));
    bottom: max(1.5rem, env(safe-area-inset-bottom));
  }

  .back-to-top {
    right: max(1.5rem, env(safe-area-inset-right));
    bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
}

/* ---------- Landscape phones ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 6rem 0 3rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .hero-stat .number {
    font-size: 1.8rem;
  }

  .page-banner {
    padding: calc(80px + 2rem) 0 2rem;
  }
}
