/* =============================================================================
   CANNAMEDICAL BRITANNIA — responsive.css
   Mobile-First Breakpoints
   Version: 1.0.0 | 2026-05-15
   ============================================================================= */

/* =============================================================================
   TABLET — max-width: 1024px
   ============================================================================= */

@media (max-width: 1024px) {

  /* Container */
  .container {
    padding: 0 1.25rem;
  }

  /* Sections */
  .section    { padding: 4rem 0; }
  .section-lg { padding: 5rem 0; }

  /* Header */
  .header-inner {
    gap: 1.25rem;
  }

  .nav-list a {
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
  }

  /* Hero */
  .hero {
    min-height: 75vh;
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-split .hero-image-col img {
    height: 360px;
  }

  /* Stats Grid — 2×2 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .stat-item:nth-child(3) {
    border-right: 1px solid rgba(255,255,255,0.1);
  }

  /* Dual Entry */
  .dual-grid {
    gap: 1.5rem;
  }

  .entry-card {
    padding: 2rem;
  }

  /* Benefits Grid — 2-col */
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  /* Cards Grid — 2-col */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Jobs Grid — 2-col */
  .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Quality Pillars — 2-col */
  .quality-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer Grid — 2-col */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Entry Layout — single col */
  .entry-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .entry-sidebar {
    position: static;
  }

  /* Map Layout */
  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-list-panel {
    max-height: 300px;
    border-right: none;
    border-bottom: 1px solid var(--light-grey);
  }

  /* Download Card */
  .download-card {
    flex-direction: column;
    text-align: center;
  }

  /* CTA Banner */
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 2rem;
  }

  /* Clinicians hero stats */
  .clinicians-hero-meta {
    gap: 1.5rem;
  }

  /* Grid utilities */
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================================
   MOBILE — max-width: 768px
   ============================================================================= */

@media (max-width: 768px) {
  /* Partner split cards mobile */
  .partner-split-visual { height: 180px; }
  .partner-split-body { padding: 1.25rem 1.5rem 1.5rem; }
  .partner-split-body h3 { font-size: 1.05rem; }


  /* Body padding for header */
  body {
    padding-top: 64px;
  }

  /* Container */
  .container {
    padding: 0 1rem;
  }

  /* Sections */
  .section    { padding: 3rem 0; }
  .section-sm { padding: 2rem 0; }
  .section-lg { padding: 4rem 0; }

  /* --- Header --- */
  .hamburger {
    display: flex;
  }

  .primary-nav {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  .site-header .header-actions {
    display: none;
  }

  /* Show only hamburger + logo */
  .hamburger {
    display: flex;
    margin-left: auto;
  }

  /* Mobile menu header CTA */
  .mobile-menu-header-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--light-grey);
    z-index: 1000;
  }

  /* --- Hero --- */
  .hero {
    min-height: 70vh;
    padding: 3rem 0;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-content {
    max-width: 100%;
  }

  /* --- Dual Entry --- */
  .dual-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .entry-card {
    padding: 1.75rem;
  }

  /* --- Stats --- */
  .stats-bar {
    padding: 2.5rem 0;
  }

  .stat-item {
    padding: 1.25rem 0.75rem;
  }

  /* --- Cards Grid --- */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  /* Strain / 3-col cards: keep 2-col on mobile for usability */
  .cards-grid.cards-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
  }
  .cards-grid.cards-3 .strain-card img {
    height: 130px;
  }

  /* --- Jobs Grid --- */
  .jobs-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* --- Benefits Grid --- */
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .benefit-card {
    padding: 1.5rem;
  }

  /* --- Strain Grid --- */
  .strain-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* --- Footer --- */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-top {
    padding: 3rem 0 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-bottom-links {
    gap: 1rem;
    font-size: 0.8rem;
  }

  /* --- Strain Finder Filters --- */
  .strain-filters {
    padding: 1rem 0;
    overflow-x: auto;
  }

  .filters-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    gap: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filters-inner::-webkit-scrollbar {
    display: none;
  }

  .filter-group {
    flex-shrink: 0;
  }

  .filter-search {
    width: 180px;
  }

  /* --- Clinicians --- */
  .clinicians-hero {
    padding: 4rem 0 3rem;
  }

  .clinicians-hero-meta {
    flex-direction: column;
    gap: 1rem;
  }

  /* --- Contact Form --- */
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full {
    grid-column: auto;
  }

  .contact-form {
    padding: 2rem;
  }

  /* --- Download Card --- */
  .download-card {
    padding: 2rem;
  }

  /* --- Entry --- */
  .entry-header {
    padding: 2.5rem 0 1.5rem;
  }

  .entry-featured-image {
    max-height: 280px;
    border-radius: var(--radius);
    margin: 1.5rem 0;
  }

  .entry-meta {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .author-box {
    flex-direction: column;
    padding: 1.5rem;
  }

  /* --- Section header --- */
  .section-header {
    margin-bottom: 2.5rem;
  }

  /* --- Quality Pillars --- */
  .quality-pillars {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* --- CTA Banner --- */
  .cta-banner {
    padding: 2rem 1.5rem;
  }

  /* --- Hiring --- */
  .hiring-teaser {
    padding: 3.5rem 0;
  }

  /* --- Trust Bar --- */
  .trust-grid {
    gap: 1.5rem;
    justify-content: flex-start;
  }

  /* --- Age Gate --- */
  .age-gate-box {
    padding: 2rem 1.5rem;
  }

  /* --- Grid utilities --- */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* --- Cookie Bar --- */
  .cookie-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* --- Formulary Table (horizontal scroll) --- */
  .formulary-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* --- Footer social --- */
  .footer-social {
    margin-top: 1rem;
  }

  /* --- Strain Finder Header --- */
  .strain-finder-header {
    padding: 3rem 0 2rem;
  }

  .strain-filters {
    top: 64px;
  }
}

/* =============================================================================
   SMALL MOBILE — max-width: 480px
   ============================================================================= */

@media (max-width: 480px) {

  /* Typography */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }

  /* Container */
  .container {
    padding: 0 0.875rem;
  }

  /* --- Stats Grid — 1-col --- */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

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

  /* --- Hero CTAs — vertical --- */
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  /* --- Form Grid — 1-col --- */
  .form-grid {
    grid-template-columns: 1fr;
  }

  /* --- Buttons full-width where needed --- */
  .mobile-menu-ctas .btn {
    width: 100%;
  }

  /* --- Entry meta — compact --- */
  .entry-meta {
    gap: 0.75rem;
    font-size: 0.8rem;
  }

  /* --- Cards --- */
  .card-body {
    padding: 1.25rem;
  }

  /* --- Strain Card --- */
  .strain-card-body {
    padding: 1.25rem;
  }

  .strain-percentages {
    gap: 0.375rem;
  }

  /* --- Entry Card --- */
  .entry-card {
    padding: 1.5rem;
  }

  /* --- Dual entry ctas --- */
  .entry-card .btn {
    width: 100%;
    justify-content: center;
  }

  /* --- Download Card --- */
  .download-card {
    padding: 1.5rem;
  }

  /* --- Contact Form --- */
  .contact-form {
    padding: 1.5rem;
  }

  /* --- Footer --- */
  .footer-top {
    padding: 2.5rem 0 1.5rem;
  }

  .footer-tagline {
    max-width: 100%;
  }

  /* --- Trust Bar --- */
  .trust-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* --- Section Header --- */
  .section-header {
    margin-bottom: 2rem;
  }

  /* --- Age Gate --- */
  .age-gate-box {
    padding: 1.75rem 1.25rem;
  }

  .age-gate h2 {
    font-size: 1.25rem;
  }

  /* --- Clinicians hero stats --- */
  .clinicians-hero-meta {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* --- Jobs grid --- */
  .job-card {
    padding: 1.5rem;
  }

  /* --- Filter search --- */
  .filter-search {
    width: 160px;
  }

  /* --- Stats bar --- */
  .stats-bar {
    padding: 2rem 0;
  }

  /* --- Hiring --- */
  .hiring-teaser {
    padding: 2.5rem 0;
  }

  /* --- Map list panel --- */
  .map-list-panel {
    max-height: 250px;
  }

  /* --- CTA banner --- */
  .cta-banner {
    padding: 1.75rem 1.25rem;
    text-align: center;
  }

  .cta-banner .btn {
    width: 100%;
    justify-content: center;
  }

  /* --- Benefit card --- */
  .benefit-card {
    padding: 1.25rem;
  }

  /* --- Quality pillar --- */
  .quality-pillar {
    padding: 1.75rem 1.25rem;
  }

  /* --- Accordion --- */
  .accordion-trigger {
    font-size: 0.95rem;
    padding: 1rem 0;
  }

  /* --- Author box --- */
  .author-box {
    padding: 1.25rem;
  }

  /* --- Sidebar widget --- */
  .sidebar-widget {
    padding: 1.25rem;
  }
}

/* =============================================================================
   PRINT
   ============================================================================= */

@media print {
  .site-header,
  .site-footer,
  .age-gate,
  .cookie-bar,
  .mobile-menu,
  .strain-filters {
    display: none !important;
  }

  body {
    padding-top: 0;
    color: #000;
    font-size: 12pt;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .hero {
    background: #fff !important;
    color: #000 !important;
    min-height: auto;
    padding: 2rem 0;
  }

  .hero h1,
  .hero p {
    color: #000 !important;
  }

  .stats-bar {
    background: #f5f5f5 !important;
  }

  .stat-number,
  .stat-label {
    color: #000 !important;
  }

  .entry-layout {
    grid-template-columns: 1fr;
  }

  .entry-sidebar {
    display: none;
  }
}

/* Who Are You grid: stack on mobile */
@media (max-width: 640px) {
  .who-are-you-grid { grid-template-columns: 1fr !important; }
}

/* =============================================================================
   CONDITION PAGE — RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
  /* Hero: stack text on top, hide image */
  .condition-hero .container > div[style*='grid'] {
    display: block !important;
  }
  .condition-hero-img {
    display: none;
  }
  .condition-hero-content {
    max-width: 100%;
  }
  .condition-hero h1 {
    font-size: 1.6rem;
  }
  .condition-hero-stats {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .condition-hero-ctas {
    flex-direction: column;
    gap: 0.625rem;
  }
  .condition-hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  /* Content + Sidebar: single column */
  .condition-body {
    grid-template-columns: 1fr !important;
  }
  .condition-sidebar {
    position: static !important;
    top: auto !important;
    order: -1;
  }
  .cta-prescription-card {
    padding: 1.25rem;
  }
  .condition-trust-items {
    grid-template-columns: 1fr !important;
  }

  /* FAQ */
  .condition-faq summary {
    font-size: 0.9rem;
    padding: 0.875rem 0;
  }
}

@media (max-width: 480px) {
  .condition-hero {
    padding-top: calc(72px + 2rem);
    padding-bottom: 2rem;
  }
  .condition-hero h1 {
    font-size: 1.35rem;
  }
  .condition-breadcrumb {
    font-size: 0.7rem;
  }
}

/* Condition page hero grid: stack on mobile */
@media (max-width: 900px) {
  .condition-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .condition-hero-grid > div:last-child {
    max-height: 280px;
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  /* Condition content+sidebar: stack to single col */
  .condition-body {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .condition-sidebar {
    position: static !important;
    top: auto !important;
    order: -1;
  }
  /* Hide hero image on small mobile */
  .condition-hero-grid > div:last-child {
    display: none;
  }
}

/* Footer brand column responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 2rem !important; }
  .footer-brand-col { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand-col > a { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 1.5rem !important; }
  .footer-brand-col { grid-column: 1 / -1; display: block; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr !important; }
}

/* === Audience Grid + Steps Grid responsive === */
@media (max-width: 900px) {
  .cm-audience-grid { grid-template-columns: 1fr 1fr !important; gap: 1rem !important; }
  .cm-steps-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
}
@media (max-width: 540px) {
  .cm-audience-grid { grid-template-columns: 1fr !important; }
}

/* Nav hiring badge moved to components.css */
.mmenu-item-hiring-badge {
  text-decoration: none;
}
.mmenu-item-hiring-badge .mmenu-item-text strong,
.mmenu-item-hiring-badge .mmenu-item-text span {
  /* colors set inline */
}

/* Blog post content — proper padding, not edge-to-edge */
.entry-content,
.post-content,
.single-post-content {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (max-width: 768px) {
  .entry-content,
  .post-content,
  .single-post-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Careers office photo strip — 2x2 on mobile */
@media (max-width: 768px) {
  .careers-photo-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    height: 240px !important;
  }
}
