/* ============================================================
   Sevenfold Consulting — Responsive Breakpoints
   Dark-theme website redesign
   Desktop styles live in theme.css; this file is media queries only.
   ============================================================ */

/* ----------------------------------------------------------
   1200px — Narrow Desktop
   ---------------------------------------------------------- */
@media (max-width: 1200px) {
  .sf-container {
    max-width: 960px;
  }

  .sf-section {
    padding: 120px 40px;
  }
}

/* ----------------------------------------------------------
   1024px — Tablet Landscape
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Sections */
  .sf-section {
    padding: 80px 32px;
  }

  .sf-section--hero {
    padding: 140px 32px 80px;
    min-height: 80vh;
  }

  .sf-section--hero-short {
    padding: 140px 32px 40px;
  }

  /* Grids */
  .sf-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .sf-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .sf-grid-3-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Typography */
  .sf-heading-lg {
    letter-spacing: -1.5px;
  }

  /* SEVEN Steps */
  .sf-step-row {
    grid-template-columns: 80px 1fr;
    gap: 20px;
  }

  .sf-step-letter {
    width: 80px;
    height: 80px;
    border-radius: 18px;
  }

  .sf-step-letter span {
    font-size: 40px;
  }

  /* Dashboard */
  .sf-dashboard {
    padding: 28px 24px;
  }

  /* Compound-step indents halved */
  .sf-compound-step[style*="margin-left:48px"],
  .sf-compound-step--indent-1 {
    margin-left: 24px !important;
  }

  .sf-compound-step[style*="margin-left:96px"],
  .sf-compound-step--indent-2 {
    margin-left: 48px !important;
  }

  .sf-compound-step[style*="margin-left:144px"],
  .sf-compound-step--indent-3 {
    margin-left: 72px !important;
  }

  .sf-compound-step[style*="margin-left:192px"] {
    margin-left: 96px !important;
  }

  /* Team cards */
  .sf-team-card .sf-grid-2,
  .sf-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .sf-footer {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .sf-footer__links {
    justify-content: center;
  }
}

/* ----------------------------------------------------------
   768px — Tablet Portrait / Mobile
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  /* --- Navigation --- */
  .sf-nav {
    padding: 0 20px;
    height: 64px;
  }

  .sf-nav__links {
    display: none;
  }

  .sf-nav__hamburger {
    display: flex;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 201;
    padding: 0;
  }

  .sf-nav__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--sf-white);
    border-radius: 2px;
    transition: all 0.3s;
  }

  .sf-nav__hamburger--open span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
  }

  .sf-nav__hamburger--open span:nth-child(2) {
    opacity: 0;
  }

  .sf-nav__hamburger--open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
  }

  /* --- Mobile Nav Drawer --- */
  .sf-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--sf-void);
    border-left: 1px solid var(--sf-ghost);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 80px 32px 32px;
  }

  .sf-mobile-nav--open {
    transform: translateX(0);
  }

  .sf-mobile-nav__link {
    display: block;
    color: var(--sf-slate);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 16px 0;
    border-bottom: 1px solid var(--sf-ghost);
    transition: color 0.3s;
  }

  .sf-mobile-nav__link:hover,
  .sf-mobile-nav__link:active {
    color: var(--sf-white);
  }

  .sf-mobile-nav__cta {
    display: block;
    background: linear-gradient(135deg, var(--sf-gold), var(--sf-orange));
    color: var(--sf-void);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 60px;
    text-decoration: none;
    margin-top: 24px;
  }

  .sf-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 11, 20, 0.8);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .sf-mobile-overlay--open {
    opacity: 1;
    pointer-events: auto;
  }

  /* --- Sections --- */
  .sf-section {
    padding: 60px 24px;
  }

  .sf-section--hero {
    padding: 120px 24px 60px;
    min-height: auto;
  }

  .sf-section--hero-short {
    padding: 120px 24px 40px;
    min-height: auto;
  }

  .sf-container {
    padding: 0 24px;
  }

  /* --- Grids --- */
  .sf-grid-2,
  .sf-grid-3,
  .sf-grid-4,
  .sf-grid-3-2 {
    grid-template-columns: 1fr;
  }

  .sf-grid-2--keep {
    grid-template-columns: repeat(2, 1fr);
  }

  /* --- Typography --- */
  .sf-heading-lg {
    font-size: clamp(32px, 8vw, 48px);
  }

  .sf-heading {
    font-size: clamp(26px, 6vw, 40px);
  }

  .sf-heading-sm {
    font-size: clamp(24px, 5vw, 32px);
  }

  .sf-body {
    font-size: 16px;
  }

  .sf-section-label {
    font-size: 10px;
    letter-spacing: 2.5px;
  }

  /* --- Cards --- */
  .sf-card {
    padding: 24px 20px;
  }

  .sf-card--value {
    padding: 28px 24px;
  }

  /* --- Hero Orbs & decorative elements --- */
  .sf-orb,
  .sf-orb-hide-mobile {
    display: none;
  }

  /* --- SEVEN Page --- */
  .sf-step-row {
    grid-template-columns: 1fr;
  }

  .sf-step-letter {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    margin: 0 auto 12px;
  }

  .sf-step-letter span {
    font-size: 32px;
  }

  .sf-step-content {
    padding: 20px 24px;
  }

  .sf-compound-step,
  .sf-compound-step[style*="margin-left"],
  .sf-compound-step--indent-1,
  .sf-compound-step--indent-2,
  .sf-compound-step--indent-3 {
    margin-left: 0 !important;
  }

  .sf-dashboard {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .sf-dashboard__score-section {
    grid-template-columns: 1fr;
  }

  .sf-dashboard .sf-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .sf-dashboard .sf-grid-3 {
    grid-template-columns: 1fr;
  }

  .sf-animated-bar {
    height: 6px;
  }

  /* --- FoundationHouse --- */
  .sf-fh {
    padding: 28px 20px;
  }

  .sf-fh__triangle svg {
    width: 150px;
    height: 50px;
  }

  .sf-fh__house-body {
    padding: 16px 16px 12px;
  }

  .sf-fh__people {
    gap: 10px;
  }

  /* --- Contact Page --- */
  .sf-contact-grid,
  .sf-form-grid {
    grid-template-columns: 1fr;
  }

  .sf-form-input,
  .sf-form-textarea {
    font-size: 16px;
  }

  /* --- Footer --- */
  .sf-footer {
    padding: 32px 24px 24px;
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .sf-footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* --- About Page --- */
  .sf-team-grid {
    grid-template-columns: 1fr;
  }

  .sf-values-grid {
    grid-template-columns: 1fr;
  }

  .sf-impact-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .sf-quote-block {
    padding: 24px 20px;
  }

  /* --- Services Page --- */
  .sf-tier-grid {
    grid-template-columns: 1fr;
  }

  .sf-process-steps {
    grid-template-columns: 1fr;
  }

  .sf-deliverables-grid,
  .sf-outcomes-grid {
    grid-template-columns: 1fr;
  }

  /* --- FAQ --- */
  .sf-faq-question {
    padding: 16px 0;
  }

  .sf-faq-question h3 {
    font-size: 16px;
  }

  /* --- Legal Pages --- */
  .sf-legal-section {
    margin-bottom: 36px;
  }

  .sf-legal-content {
    padding: 20px 24px;
  }
}

/* ----------------------------------------------------------
   480px — Small Mobile
   ---------------------------------------------------------- */
@media (max-width: 480px) {
  /* Sections */
  .sf-section {
    padding: 48px 16px;
  }

  .sf-section--hero {
    padding: 100px 16px 48px;
  }

  .sf-container {
    padding: 0 16px;
  }

  /* Navigation */
  .sf-nav {
    padding: 0 16px;
  }

  .sf-nav__logo-text {
    font-size: 18px;
  }

  /* Typography */
  .sf-heading-lg {
    font-size: clamp(28px, 7vw, 36px);
  }

  .sf-heading {
    font-size: clamp(24px, 6vw, 32px);
  }

  /* CTA Button */
  .sf-cta-gold {
    font-size: 14px;
    padding: 14px 32px;
  }

  /* Cards */
  .sf-card {
    padding: 20px 16px;
  }

  /* Dashboard grid override */
  .sf-dashboard .sf-grid-4 {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .sf-footer {
    padding: 24px 16px 20px;
  }

  .sf-footer__links {
    gap: 16px;
  }

  /* Badges */
  .sf-badge {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* FoundationHouse mobile */
  .sf-fh {
    padding: 20px 14px;
  }

  .sf-fh__triangle svg {
    width: 130px;
    height: 44px;
  }

  .sf-fh__triangle {
    margin-bottom: -10px;
  }

  .sf-fh__house-body {
    padding: 14px 12px 10px;
  }

  .sf-fh__people {
    gap: 8px;
  }

  .sf-fh__person svg {
    width: 16px;
    height: 22px;
  }

  /* SEVEN step measures */
  .sf-step-measures {
    flex-direction: column;
    gap: 8px;
  }

  /* Mobile nav full-width */
  .sf-mobile-nav {
    width: 100%;
  }
}
