/* ========================================
   TTSurveys — Modern Stylesheet
   ======================================== */

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

:root {
  --navy:    #0d2137;
  --navy-mid:#1a3a5c;
  --orange:  #e05f1c;
  --orange-lt:#f07a3a;
  --white:   #ffffff;
  --offwhite:#f4f6f9;
  --text:    #2d3748;
  --muted:   #6b7a8d;
  --border:  #dde3ec;
  --radius:  8px;
  --shadow:  0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.18);
  --transition: .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-lt); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- HEADER / NAV ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo img { width: 42px; height: 42px; object-fit: contain; border-radius: 4px; }
.logo-text { color: var(--white); font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.logo-text span { display: block; font-weight: 300; font-size: .8rem; color: rgba(255,255,255,.65); }

nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}
nav a {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
nav a:hover, nav a.active {
  background: rgba(255,255,255,.12);
  color: var(--white);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  overflow: hidden;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  color: var(--text);
  padding: 10px 18px;
  font-size: .9rem;
  border-radius: 0;
}
.dropdown-menu a:hover { background: var(--offwhite); color: var(--orange); }

/* Mobile toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: var(--transition); }

/* ---- HERO SLIDER ---- */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .8s ease;
}
.slide.active { opacity: 1; }

/* Slide background images */
.slide-1 { background-image: url('images/slide-1.jpg'); }
.slide-2 { background-image: url('images/slide-2.jpg'); }
.slide-3 { background-image: url('images/slide-3.jpg'); }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,33,55,.75) 0%, rgba(13,33,55,.35) 100%);
}
.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 48px;
  color: var(--white);
}
.slide-content h2 { font-size: 2.4rem; font-weight: 800; margin-bottom: 12px; line-height: 1.2; }
.slide-content p { font-size: 1.1rem; opacity: .9; max-width: 560px; margin-bottom: 24px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-lt); color: var(--white); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-sm { font-size: .9rem; padding: 9px 20px; margin-top: 16px; }
.btn-lg { font-size: 1rem; padding: 14px 36px; }

/* ---- BUTTON GROUPS ---- */
.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.btn-group--centered { justify-content: center; }

/* ---- SLIDER DOTS ---- */
.slide-dots {
  position: absolute;
  bottom: 20px;
  right: 48px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none; cursor: pointer;
  transition: var(--transition);
}
.dot.active { background: var(--white); transform: scale(1.2); }

/* ---- FEATURE CARDS ---- */
.features {
  background: var(--offwhite);
  padding: 72px 0;
}
.features h2.section-title { text-align: center; margin-bottom: 48px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 28px; }
.card-body h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 10px; }
.card-body p { color: var(--muted); font-size: .95rem; }

/* ---- SECTION TITLES ---- */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-title.text-center { text-align: center; margin-bottom: 12px; }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 40px;
}
.section-subtitle.text-center { text-align: center; }
.divider {
  width: 56px; height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 12px 0 24px;
}
.divider--centered { margin: 12px auto 24px; }

/* ---- SPACING UTILITIES ---- */
.mt-sm  { margin-top: 16px; }
.mt-md  { margin-top: 24px; }
.btn-wrap { margin-top: 32px; }

/* ---- ABOUT STRIP (home) ---- */
.about-strip { padding: 80px 0; }
.about-strip .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-strip img { border-radius: 12px; box-shadow: var(--shadow-lg); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--navy);
  padding: 64px 0;
  text-align: center;
  color: var(--white);
}
.page-hero h1 { font-size: 2.8rem; font-weight: 800; }
.page-hero p  { font-size: 1.1rem; opacity: .75; margin-top: 12px; }

/* ---- PAGE CONTENT ---- */
.page-content { padding: 72px 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 72px;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col img { border-radius: 12px; box-shadow: var(--shadow); width: 100%; }

/* ---- WHY CHOOSE US ---- */
.why-box {
  background: var(--offwhite);
  border-radius: 16px;
  padding: 52px;
  margin-bottom: 72px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 8px;
}
.why-item { text-align: center; }
.why-icon { font-size: 2.5rem; margin-bottom: 12px; }
.why-title { color: var(--navy); margin-bottom: 8px; font-size: 1.05rem; }
.why-text  { color: var(--muted); font-size: .92rem; }

/* ---- HISTORY SECTION ---- */
#history {
  background: var(--offwhite);
  padding: 72px 0;
}
.history-block { padding: 60px 0; }
.history-block .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.history-block img { border-radius: 12px; box-shadow: var(--shadow); width: 100%; }

.timeline { list-style: none; margin-top: 12px; }
.timeline li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
}
.timeline li:last-child { border-bottom: none; }
.timeline-year { color: var(--orange); font-weight: 700; }

/* ---- CTA SECTIONS ---- */
.cta-dark {
  background: var(--navy);
  padding: 64px 0;
  text-align: center;
  color: var(--white);
}
.cta-dark h2 { font-size: 2rem; margin-bottom: 16px; }
.cta-text { opacity: .75; max-width: 500px; margin: 0 auto 32px; }

.cta-light { padding: 64px 0; text-align: center; }
.cta-text-muted { color: var(--muted); max-width: 520px; margin: 0 auto 32px; }

/* ---- SERVICES SECTIONS ---- */
.service-block {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; }
.service-block .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.service-block.flip .inner { direction: rtl; }
.service-block.flip .inner > * { direction: ltr; }
.service-block img { border-radius: 12px; box-shadow: var(--shadow); width: 100%; }

.service-list { margin: 16px 0 16px 20px; color: var(--text); }
.service-list li { margin-bottom: 8px; }

/* ---- STATS SECTION ---- */
.stats-section {
  background: var(--navy);
  padding: 64px 0;
  color: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-number { font-size: 2.8rem; font-weight: 800; color: var(--orange); }
.stat-label  { font-size: .95rem; opacity: .75; margin-top: 8px; }

/* ---- FOOTER ---- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .logo-text { color: var(--white); margin-bottom: 12px; font-size: 1.1rem; }
.footer-brand p { font-size: .9rem; line-height: 1.7; }

.footer-links h4, .footer-contact h4 {
  color: var(--white);
  font-size: .95rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .9rem; }
.footer-links a:hover { color: var(--orange); }

.footer-contact p { font-size: .9rem; margin-bottom: 6px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--orange); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .cards-grid, .why-grid, .stats-grid { grid-template-columns: 1fr; }
  .two-col, .service-block .inner, .about-strip .inner, .history-block .inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .two-col.reverse, .service-block.flip .inner { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { height: 420px; }
  .slide-content { padding: 36px 24px; }
  .slide-content h2 { font-size: 1.8rem; }
  .why-box { padding: 32px; }
}

@media (max-width: 640px) {
  nav ul { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy-mid); padding: 16px; }
  nav ul.open { display: flex; }
  .nav-toggle { display: block; }
  .dropdown-menu { position: static; box-shadow: none; background: rgba(255,255,255,.08); }
  .section-title { font-size: 1.6rem; }
  .page-hero h1 { font-size: 2rem; }
  .slide-dots { right: 24px; }
}
