/* =============================================================
   MAX TALQS – Redesign Prototype Stylesheet
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --navy:        #0c3048;
  --navy-dark:   #081f30;
  --teal:        #087780;
  --teal-light:  #0a9aaa;
  --accent-bg:   #e8f4f6;
  --surface:     #f7f9fc;
  --white:       #ffffff;
  --text:        #2d3748;
  --text-muted:  #718096;
  --border:      #e2e8f0;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.13), 0 4px 8px rgba(0,0,0,0.06);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --max-w: 1140px;
  --section-pad: 5rem;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

/* ---- TYPOGRAPHY ---- */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.15rem); }
h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; }

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--navy); }

/* ---- LAYOUT ---- */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section        { padding: var(--section-pad) 0; }
.section--alt   { background: var(--surface); }
.section--dark  { background: linear-gradient(135deg, var(--navy) 0%, #1a4a6b 100%); }

/* ---- HEADER & NAV ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo img {
  height: 44px;
  width: auto;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 0.15rem;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--accent-bg);
  color: var(--teal);
}

/* ---- BUTTONS ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  color: var(--white);
}

/* ---- HERO (homepage) ---- */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: var(--white);
  padding: 5.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

/* subtle dot-grid texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.1rem;
}

.hero-content .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.625rem;
  max-width: 540px;
}

.hero-content .sub {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.hero-image {
  width: 100%;
  aspect-ratio: 7/8;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255,255,255,0.18);
}

/* ---- ABOUT STRIP ---- */

.about-strip .container {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3.5rem;
  align-items: start;
}

.about-strip h2 { margin-bottom: 0.875rem; }

.about-strip .body-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.about-strip ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about-strip li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.97rem;
  color: var(--text);
}

.about-strip li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 0.52rem;
}

.pullquote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
}

.pullquote blockquote {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--navy);
  line-height: 1.55;
  font-style: italic;
}

.pullquote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ---- SERVICES SECTION ---- */

.section-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-header p {
  margin-top: 0.625rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.625rem 1.375rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
  color: inherit;
}

.service-card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.125rem;
  font-size: 1.25rem;
  color: var(--teal);
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}

.card-link:hover { color: var(--navy); }

/* ---- CONTACT CTA BLOCK ---- */

.contact-block {
  background: linear-gradient(135deg, var(--navy) 0%, #1a4a6b 100%);
  padding: 4.5rem 0;
  text-align: center;
}

.contact-block h2 {
  color: var(--white);
  margin-bottom: 0.875rem;
}

.contact-block .sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.2s;
  text-decoration: none;
}

.contact-link:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}

/* ---- FOOTER ---- */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.5);
  padding: 1.75rem 0;
  font-size: 0.85rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---- PAGE HERO (inner pages) ---- */

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a5f70 100%);
  padding: 3.25rem 0 2.75rem;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.625rem;
}

.page-hero .desc {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  max-width: 600px;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.875rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { color: rgba(255,255,255,0.35); }

/* ---- CONTENT PAGE ---- */

.content-body {
  max-width: 860px;
}

.lead-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* ---- TOPICS GRID (training page) ---- */

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.625rem;
  margin: 1.5rem 0 2.5rem;
}

.topic-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--teal);
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.45;
}

.topic-item i {
  color: var(--teal);
  margin-top: 0.15rem;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.callout {
  padding: 1.5rem 1.75rem;
  background: var(--accent-bg);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-md);
}

.callout p {
  font-size: 1.02rem;
  color: var(--navy);
  font-weight: 500;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 900px) {
  .about-strip .container {
    grid-template-columns: 1fr;
  }
  .pullquote { max-width: 100%; }
}

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-image {
    max-width: 220px;
    justify-self: center;
  }
  .site-header .container {
    flex-direction: column;
    height: auto;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    gap: 0.625rem;
  }
  .site-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}
