/* ============================================================
   Data Integration Mastery™ — Main Stylesheet
   Brand: DIM | Shared Visual Theme
   ============================================================ */

/* --- CSS Custom Properties (from shared-visual-theme.md) --- */
:root {
  /* Typography */
  --font-heading: 'Roboto Slab', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;

  /* Colors */
  --color-brand: #5A6B8A;
  --color-heading: #A55A82;
  --color-highlight: #FFF9C4;
  --color-body-text: #3A506B;
  --color-link: #5A6B8A;
  --color-button-text: #FFFFFF;
  --color-card-bg: #FFFFFF;
  --color-page-bg: #6D6D7A;

  /* Layout */
  --max-width: 60rem;
  --card-radius: 1.75rem;
  --spacing: 2.5rem;
  --padding-h: 5rem;
  --padding-v: 3.5rem;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-body-text);
  background-color: var(--color-page-bg);
  background-image: url('../assets/images/bg-texture.png');
  background-repeat: repeat;
  background-size: auto;
  line-height: 1.75;
  min-height: 100vh;
}

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

a {
  color: var(--color-link);
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: none;
  color: var(--color-heading);
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-brand);
  color: var(--color-button-text);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  z-index: 10000;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.translate-hint {
  background: #f0f4f8;
  border-bottom: 1px solid #d0dae8;
  color: #5a6b8a;
  font-size: 0.8rem;
  padding: 5px 1rem;
  text-align: center;
}

/* --- Main Layout --- */
.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing);
}

/* --- Card Component --- */
.card {
  background-color: var(--color-card-bg);
  border-radius: var(--card-radius);
  padding: var(--padding-v) var(--padding-h);
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.card > * + * {
  margin-top: 1.5rem;
}

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

.brand-title {
  font-size: 2.875em;
  letter-spacing: -0.025rem;
  text-shadow: 0.125rem 0 2.0625rem var(--color-highlight);
  color: var(--color-body-text);
}

.brand-title .tm {
  font-size: 0.5em;
  vertical-align: super;
}

.hero-tagline {
  font-size: 2.5em;
  text-shadow: 0.056rem 0.028rem 1.3125rem var(--color-highlight);
  line-height: 1.25;
}

.card-title {
  font-size: 2em;
  text-shadow: 0 0 0.5625rem var(--color-highlight);
}

.section-subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
  font-size: 1.5em;
  text-shadow: 0.088rem 0.088rem 0.625rem var(--color-highlight);
}

.course-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
  font-size: 1.5em;
  line-height: 1.375;
  text-shadow: 0.088rem 0.088rem 0.625rem var(--color-highlight);
}

.highlight-text {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
  font-size: 1.5em;
  line-height: 1.375;
}

.course-detail {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
  font-size: 1.5em;
  line-height: 1.375;
  text-shadow: 0.088rem 0.088rem 0.625rem var(--color-highlight);
}

.udemy-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
  font-size: 1.5em;
}

.feedback-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
  font-size: 1.5em;
  margin-top: 2.5rem;
}

.journey-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-button-text);
  font-size: 1.5em;
  text-align: center;
  text-shadow: 0.088rem 0.088rem 0.625rem rgba(0,0,0,0.3);
}

.body-text {
  font-family: var(--font-body);
  font-size: 1em;
  line-height: 1.875;
  text-shadow: 0.228rem 0.102rem 0.4375rem var(--color-highlight);
}

.body-text p + p {
  margin-top: 0.875rem;
}

.fine-print {
  font-family: var(--font-body);
  font-size: 1em;
  line-height: 1.875;
}

.copyright {
  font-family: var(--font-body);
  font-size: 0.875em;
  color: #888;
  margin-top: 2rem;
}

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

.copyright a:hover {
  text-decoration: underline;
}

.accent {
  color: var(--color-heading);
  font-weight: 700;
}

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

/* --- Hero Section --- */
.hero-logo {
  display: flex;
  justify-content: center;
}

.hero-logo img {
  width: 14.375rem;
  height: auto;
  border-radius: 1.25rem;
}

.hero-description {
  text-align: left;
  font-family: var(--font-body);
  font-size: 1em;
  line-height: 1.875;
  text-shadow: 0.437rem 0.023rem 0.375rem var(--color-highlight);
}

.hero-description p + p {
  margin-top: 0.875rem;
}

/* --- YouTube Video Facade --- */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0.75rem;
}

.video-facade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: #000;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.video-facade:hover img,
.video-facade:focus img {
  opacity: 1;
}

.video-facade .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.video-facade:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-facade iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Course Images --- */
.course-image {
  display: flex;
  justify-content: center;
}

.course-image img {
  width: 24.375rem;
  height: auto;
  border-radius: 1.25rem;
}

.course-image a {
  display: inline-block;
  transition: transform 0.2s ease;
}

.course-image a:hover {
  transform: scale(1.02);
}

/* --- Testimonial Images --- */
.testimonial-image {
  display: flex;
  justify-content: center;
}

.testimonial-image img {
  width: 33.25rem;
  height: auto;
  border-radius: 1.25rem;
}

.testimonial-image.wide img {
  width: 37.875rem;
}

/* --- eBook Image --- */
.ebook-image {
  display: flex;
  justify-content: center;
}

.ebook-image img {
  width: 22.375rem;
  height: auto;
  border-radius: 1.25rem;
}

/* --- Instructor Image --- */
.instructor-image {
  display: flex;
  justify-content: center;
}

.instructor-image img {
  width: 12.75rem;
  height: auto;
  border-radius: 1.25rem;
}

/* --- Contact Logo --- */
.contact-logo {
  display: flex;
  justify-content: center;
}

.contact-logo img {
  width: 14.375rem;
  height: auto;
  border-radius: 1.25rem;
}

/* --- Button Component --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.25em;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-body-text);
  color: var(--color-button-text);
  padding: 0 1.625rem;
  height: 3.25rem;
  line-height: 3.25rem;
}

.btn-primary:hover {
  background-color: #B3889E;
  color: var(--color-button-text);
  transform: scale(1.025);
}

.btn-primary svg {
  flex-shrink: 0;
}

.btn-large {
  font-size: 1.25em;
}

.btn-sm {
  font-size: 0.875em;
  padding: 0.5rem 1.25rem;
  height: auto;
  line-height: 1.5;
}

.btn-outline {
  background: transparent;
  color: var(--color-button-text);
  border: 2px solid var(--color-button-text);
  padding: 0.5rem 1.25rem;
  height: auto;
  line-height: 1.5;
  font-family: var(--font-body);
  font-weight: 400;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: var(--color-button-text);
}

.cta-group {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* --- Section Divider --- */
.section-divider {
  border: none;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
  width: 100%;
}

/* --- FAQ Section (AEO) --- */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.25rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-accent);
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
  margin: 0;
}

/* --- Social Icons --- */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5em;
  height: 3.5em;
  border-radius: 50%;
  background-color: #373345;
  color: var(--color-button-text);
  text-decoration: none;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.11);
  transform: scale(1.08);
  color: var(--color-button-text);
}

.social-link svg {
  fill: var(--color-button-text);
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #2c2c3a;
  color: #fff;
  padding: 1rem 1.5rem;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-inner p {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.5;
  min-width: 200px;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* --- MailerLite Embedded Forms --- */
.ml-embedded {
  width: 100%;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet and below */
@media (max-width: 1024px) {
  html {
    font-size: 12pt;
  }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
  :root {
    --padding-h: 2.5rem;
    --padding-v: 2.5rem;
    --spacing: 2rem;
  }

  html {
    font-size: 11pt;
  }

  .brand-title {
    font-size: 2.25em;
  }

  .hero-tagline {
    font-size: 2em;
  }

  .card-title {
    font-size: 1.75em;
  }

  .course-image img {
    width: 16rem;
  }

  .testimonial-image img {
    width: 100%;
    max-width: 32rem;
  }

  .testimonial-image.wide img {
    width: 100%;
    max-width: 32rem;
  }

  .ebook-image img {
    width: 16rem;
  }

  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 480px) {
  :root {
    --padding-h: 1.5rem;
    --padding-v: 2rem;
    --spacing: 1.75rem;
  }

  html {
    font-size: 12pt;
  }

  .brand-title {
    font-size: 2em;
  }

  .hero-tagline {
    font-size: 1.75em;
  }

  .card-title {
    font-size: 1.5em;
  }

  .section-subtitle,
  .course-name,
  .highlight-text,
  .course-detail,
  .udemy-heading,
  .feedback-heading,
  .journey-heading {
    font-size: 1.25em;
  }

  .hero-logo img {
    width: 10rem;
  }

  .course-image img {
    width: 100%;
    max-width: 14rem;
  }

  .ebook-image img {
    width: 100%;
    max-width: 14rem;
  }

  .instructor-image img {
    width: 9rem;
  }

  .contact-logo img {
    width: 10rem;
  }

  .social-link {
    width: 3em;
    height: 3em;
  }

  .btn-large {
    font-size: 1em;
  }
}

/* Tiny screens */
@media (max-width: 360px) {
  :root {
    --padding-h: 1.125rem;
    --padding-v: 1.5rem;
    --spacing: 1.5rem;
  }

  .brand-title {
    font-size: 1.75em;
  }

  .hero-tagline {
    font-size: 1.5em;
  }
}
