/* ===================================================
   PrivateTutor.uk UAE — stylesheet
   Aesthetic: Warm, trustworthy, editorial-clean
   Palette: Deep teal + warm amber + cream whites
   =================================================== */

/* ——— CSS VARIABLES ——— */
:root {
  --teal: #0b5c6e;
  --teal-dark: #083f4d;
  --teal-light: #e6f4f7;
  --amber: #f5a623;
  --amber-light: #fff7e6;
  --cream: #fffdf8;
  --white: #ffffff;
  --text: #1a2e35;
  --text-muted: #5a7a84;
  --border: #d4e8ed;
  --shadow: 0 4px 24px rgba(11,92,110,0.10);
  --shadow-lg: 0 12px 48px rgba(11,92,110,0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1180px;
  --wa-green: #25D366;
}

/* ——— RESET & BASE ——— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ——— UTILITY ——— */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-light);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--teal-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 52px;
}

/* ——— HEADER / NAV ——— */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,253,248,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; font-weight: 700; color: var(--teal-dark); }
.logo-icon { color: var(--amber); font-size: 1.1rem; }
.logo-uk { color: var(--amber); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--text-muted); transition: color .2s; }
.nav-links a:hover { color: var(--teal); }
.btn-nav {
  background: var(--teal); color: var(--white) !important;
  padding: 10px 22px; border-radius: 100px;
  font-size: 0.88rem !important; font-weight: 600 !important;
  transition: background .2s, transform .15s !important;
}
.btn-nav:hover { background: var(--teal-dark) !important; transform: translateY(-1px); }
.nav-toggle { display: none; font-size: 1.4rem; color: var(--teal); padding: 8px; }

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: var(--teal-dark); flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1.4rem; color: var(--white); font-weight: 600; }
.mobile-nav-close {
  position: absolute; top: 24px; right: 24px;
  font-size: 1.6rem; color: var(--white); background: none; border: none; cursor: pointer;
}

/* ——— HERO ——— */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 72px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(8,63,77,0.88) 0%, rgba(8,63,77,0.60) 55%, rgba(8,63,77,0.3) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 80px 24px;
  max-width: 700px;
}
.hero-badge {
  display: inline-block;
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.4);
  color: var(--amber);
  padding: 7px 16px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeUp 0.7s ease 0.1s both;
}
.hero-title em { color: var(--amber); font-style: normal; }
.hero-sub {
  font-size: 1.12rem; color: rgba(255,255,255,0.88);
  max-width: 540px; margin-bottom: 36px;
  animation: fadeUp 0.7s ease 0.2s both;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px;
  animation: fadeUp 0.7s ease 0.3s both;
}
.btn-primary {
  background: var(--amber); color: var(--teal-dark);
  padding: 15px 32px; border-radius: 100px;
  font-weight: 700; font-size: 1rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(245,166,35,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(245,166,35,0.5); }
.btn-whatsapp {
  display: flex; align-items: center; gap: 10px;
  background: var(--wa-green); color: var(--white);
  padding: 15px 28px; border-radius: 100px;
  font-weight: 600; font-size: 1rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,211,102,0.45); }
.hero-stats {
  display: flex; gap: 36px; flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.4s both;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.8rem; font-weight: 800; color: var(--white); font-family: var(--font-display); }
.stat span { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

/* ——— TRUST STRIP ——— */
.trust-strip {
  background: var(--teal-dark);
  padding: 14px 0; overflow: hidden;
}
.trust-strip-inner {
  display: flex; flex-wrap: wrap; gap: 12px 32px;
  align-items: center; justify-content: center;
}
.trust-strip span { font-size: 0.88rem; color: rgba(255,255,255,0.9); font-weight: 500; white-space: nowrap; }

/* ——— HOW IT WORKS ——— */
.how-it-works { background: var(--cream); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.step-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  position: relative;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-card img { height: 200px; object-fit: cover; }
.step-card h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--teal-dark); padding: 20px 24px 8px; }
.step-card p { font-size: 0.92rem; color: var(--text-muted); padding: 0 24px 24px; }
.step-number {
  position: absolute; top: 14px; left: 14px;
  background: var(--amber); color: var(--teal-dark);
  font-size: 0.78rem; font-weight: 800;
  padding: 4px 10px; border-radius: 100px;
  letter-spacing: 0.05em;
}

/* ——— SUBJECTS ——— */
.subjects { background: var(--teal-light); }
.subjects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.subject-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
  border-top: 4px solid transparent;
  transition: transform .25s, box-shadow .25s;
}
.subject-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.s-math { border-color: #3b82f6; }
.s-eng { border-color: var(--teal); }
.s-sci { border-color: #10b981; }
.s-arab { border-color: #8b5cf6; }
.s-soc { border-color: #f59e0b; }
.s-ict { border-color: #ef4444; }
.s-french { border-color: #ec4899; }
.s-exam { border-color: var(--amber); }
.subject-icon { font-size: 2rem; margin-bottom: 12px; }
.subject-card h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--teal-dark); margin-bottom: 8px; }
.subject-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ——— CITIES ——— */
.cities { background: var(--cream); }
.cities-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 20px; }
.city-card {
  position: relative; border-radius: var(--radius);
  overflow: hidden; display: block;
  box-shadow: var(--shadow); transition: transform .25s;
}
.city-card:hover { transform: scale(1.02); }
.city-card img { height: 240px; object-fit: cover; transition: transform .4s; }
.city-card:hover img { transform: scale(1.06); }
.city-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(8,63,77,0.9) 0%, transparent 100%);
  padding: 24px 20px 20px;
  color: var(--white);
}
.city-overlay h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 4px; }
.city-overlay p { font-size: 0.82rem; opacity: 0.85; }
.city-card-sm { min-height: 100px; }
.city-plain {
  height: 100%; min-height: 100px;
  background: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px; padding: 24px;
  transition: background .2s;
}
.city-card:hover .city-plain { background: var(--teal); }
.city-emoji { font-size: 1.8rem; }
.city-plain h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); text-align: center; }

/* ——— PRICING ——— */
.pricing { background: var(--teal-dark); }
.pricing .section-label { background: rgba(245,166,35,0.2); color: var(--amber); }
.pricing .section-title { color: var(--white); }
.pricing .section-sub { color: rgba(255,255,255,0.7); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-bottom: 28px; }
.price-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 36px 30px;
  position: relative; transition: transform .25s;
}
.price-card:hover { transform: translateY(-5px); }
.price-card--featured {
  background: var(--white);
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.3), var(--shadow-lg);
}
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: var(--teal-dark);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 5px 14px; border-radius: 100px; white-space: nowrap;
}
.price-tier { font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.6); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.price-card--featured .price-tier { color: var(--text-muted); }
.price-amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--white); margin-bottom: 24px; }
.price-amount span { font-size: 1rem; font-weight: 400; opacity: 0.7; }
.price-card--featured .price-amount { color: var(--teal-dark); }
.price-features { margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.price-features li { font-size: 0.92rem; color: rgba(255,255,255,0.8); }
.price-card--featured .price-features li { color: var(--text-muted); }
.btn-price {
  display: block; text-align: center;
  background: rgba(255,255,255,0.12); color: var(--white);
  padding: 13px; border-radius: 100px; font-weight: 600;
  transition: background .2s, color .2s;
}
.price-card--featured .btn-price { background: var(--teal); color: var(--white); }
.btn-price:hover { background: var(--amber); color: var(--teal-dark); }
.pricing-note { font-size: 0.92rem; color: rgba(255,255,255,0.7); text-align: center; }
.pricing-note a { color: var(--amber); text-decoration: underline; }

/* ——— GALLERY ——— */
.gallery-section { padding: 64px 0; background: var(--cream); }
.gallery-section .container { margin-bottom: 32px; }
.gallery-strip { display: flex; gap: 14px; overflow-x: auto; padding: 0 24px 16px; scroll-snap-type: x mandatory; }
.gallery-strip::-webkit-scrollbar { height: 6px; }
.gallery-strip::-webkit-scrollbar-track { background: var(--border); border-radius: 3px; }
.gallery-strip::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }
.gallery-item { flex: 0 0 300px; height: 220px; border-radius: var(--radius-sm); overflow: hidden; scroll-snap-align: start; box-shadow: var(--shadow); }
.gallery-item img { transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.05); }

/* ——— TESTIMONIALS ——— */
.testimonials { background: var(--teal-light); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform .25s;
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-card--highlight { background: var(--teal-dark); }
.testimonial-card--highlight p, .testimonial-card--highlight .stars { color: var(--white); }
.testimonial-card--highlight .author-avatar { background: rgba(255,255,255,0.15); }
.testimonial-card--highlight strong { color: var(--white); }
.testimonial-card--highlight span { color: rgba(255,255,255,0.6); }
.stars { color: var(--amber); font-size: 1rem; margin-bottom: 14px; }
.testimonial-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--teal-light); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.testimonial-author strong { display: block; font-size: 0.92rem; color: var(--teal-dark); }
.testimonial-author span { font-size: 0.8rem; color: var(--text-muted); }

/* ——— FAQs ——— */
.faqs { background: var(--cream); }
.faq-list { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; font-size: 1rem; font-weight: 600; color: var(--teal-dark);
  text-align: left; background: none; cursor: pointer; transition: color .2s;
}
.faq-question:hover { color: var(--teal); }
.faq-icon { font-size: 1.4rem; font-weight: 300; color: var(--amber); transition: transform .3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer p { padding: 0 24px 20px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 300px; }

/* ——— CONTACT ——— */
.contact { background: var(--teal-light); }
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info .section-title { margin-bottom: 12px; }
.contact-info > p { font-size: 0.98rem; color: var(--text-muted); margin-bottom: 28px; }
.whatsapp-block {
  display: flex; align-items: center; gap: 16px;
  background: var(--wa-green); color: var(--white);
  padding: 18px 24px; border-radius: var(--radius-sm);
  margin-bottom: 28px; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.whatsapp-block:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,0.4); }
.whatsapp-block strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.whatsapp-block span { font-size: 0.85rem; opacity: 0.9; }
.contact-details { display: flex; flex-direction: column; gap: 12px; }
.contact-detail-item { font-size: 0.92rem; color: var(--text-muted); display: flex; gap: 10px; align-items: flex-start; }
.contact-form-wrap {
  background: var(--white); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow-lg);
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-size: 0.85rem; font-weight: 600; color: var(--teal-dark); }
input, select, textarea {
  padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--cream); transition: border-color .2s, box-shadow .2s; outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,92,110,0.12);
}
textarea { resize: vertical; min-height: 80px; }
.btn-submit {
  background: var(--teal); color: var(--white);
  padding: 15px 28px; border-radius: 100px;
  font-size: 1rem; font-weight: 700;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 16px rgba(11,92,110,0.25);
}
.btn-submit:hover { background: var(--teal-dark); transform: translateY(-2px); }
.form-success {
  background: #e8f7f0; border: 1px solid #a3d9bc;
  color: #166534; padding: 16px; border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

/* ——— FOOTER ——— */
.footer { background: var(--teal-dark); padding: 80px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 18px; line-height: 1.6; }
.footer-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa-green); color: var(--white);
  padding: 10px 18px; border-radius: 100px;
  font-size: 0.88rem; font-weight: 600;
  transition: opacity .2s;
}
.footer-wa:hover { opacity: 0.88; }
.footer-links h4 { color: var(--white); font-size: 0.92rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.55); transition: color .2s; }
.footer-links a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-bottom: 4px; }
.footer-bottom a { color: rgba(255,255,255,0.55); text-decoration: underline; }
.footer-seo-text { font-size: 0.75rem !important; opacity: 0.3 !important; }

/* ——— FLOATING WA BUTTON ——— */
.float-wa {
  position: fixed; bottom: 28px; right: 28px; z-index: 99;
  display: flex; align-items: center; gap: 10px;
  background: var(--wa-green); color: var(--white);
  padding: 14px 20px; border-radius: 100px;
  font-size: 0.92rem; font-weight: 700;
  box-shadow: 0 6px 28px rgba(37,211,102,0.45);
  transition: transform .2s, box-shadow .2s;
  animation: floatPulse 2.5s ease-in-out infinite;
}
.float-wa:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(37,211,102,0.55); animation: none; }

/* ——— KEYFRAMES ——— */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 6px 28px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 6px 40px rgba(37,211,102,0.65); }
}

/* ——— SCROLL-REVEAL ——— */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ——— RESPONSIVE ——— */
@media (max-width: 1024px) {
  .cities-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero-content { padding: 60px 24px; }
  .hero-stats { gap: 24px; }
  .contact-container { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .float-wa span { display: none; }
  .float-wa { padding: 16px; border-radius: 50%; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-whatsapp { width: 100%; justify-content: center; text-align: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}
