/* ===================
   DESKTOP STYLES
   =================== */

@media (min-width: 1024px) {
  .page-hero {
    padding: 120px 0 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===================
   TABLET STYLES (max-width: 820px)
   =================== */

@media (max-width: 820px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .split {
    gap: var(--space-md);
  }

  .about-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }

  .principles-visual {
    margin-top: var(--space-md);
  }

  .outline-circle {
    display: none;
  }

  .cta-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-grid {
    gap: var(--space-md);
  }

  .card-grid {
    gap: var(--space-sm);
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-section .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-columns {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Hero badges - centered on tablets */
  .hero-badges {
    justify-content: center;
  }

  /* Hero CTA full width */
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .primary-button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .meta-note {
    text-align: center;
    width: 100%;
    justify-content: center;
  }

  /* CTA actions */
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .primary-button,
  .cta-actions .ghost-button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Reduce animation intensity on tablet */
  .card:hover {
    transform: translateY(-4px);
  }

  .hero::before,
  .hero::after {
    opacity: 0.3;
  }

  /* Stats banner tablet */
  .stats-banner {
    flex-direction: column;
  }

  .stats-banner-numbers {
    flex-wrap: wrap;
    justify-content: center;
  }

  .circle-btn-accent {
    width: 120px;
    height: 120px;
    font-size: 12px;
  }

  /* Hero circle button on tablet - right side of photo */
  .circle-button.hero-circle {
    position: absolute;
    left: auto;
    right: -20px;
    bottom: 20px;
    width: 100px;
    height: 100px;
    font-size: 12px;
  }
}

/* ===================
   MOBILE STYLES (max-width: 520px)
   =================== */

@media (max-width: 520px) {
  :root {
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 64px;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Header fixes */
  .header-inner {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  /* Hero section fixes */
  .hero-grid {
    padding-top: 40px;
    padding-bottom: 32px;
    gap: 24px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-cta .primary-button {
    margin-left: 0;
    margin-right: 0;
  }

  .pricing-section .card-grid {
    grid-template-columns: 1fr;
  }

  .pricing-section .card h3 {
    min-height: 0;
  }

  /* Typography adjustments */
  h1 {
    font-size: clamp(32px, 8vw, 48px);
    line-height: 1.1;
    margin-bottom: 12px;
  }

  h2 {
    font-size: clamp(24px, 6vw, 32px);
    line-height: 1.2;
  }

  h3 {
    font-size: 20px;
  }

  .lead {
    font-size: 15px;
    line-height: 1.6;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 6px;
  }

  .eyebrow::after {
    width: 24px;
  }

  /* Hero CTA */
  .hero-cta {
    margin: 20px 0 16px;
    gap: 12px;
    align-items: stretch;
  }

  .hero-cta .primary-button {
    width: 100%;
    padding: 16px 24px;
    font-size: 14px;
    box-sizing: border-box;
  }

  .ghost-button {
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
  }

  .meta-note {
    font-size: 12px;
    text-align: center;
    width: 100%;
    justify-content: center;
  }

  /* Hero badges - centered */
  .hero-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 8px;
    justify-content: center !important;
    width: 100%;
  }

  .badge {
    font-size: 11px;
    padding: 6px 12px;
  }

  /* Hero portrait */
  .hero-portrait {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    position: relative;
  }

  .hero-portrait::before {
    display: none;
  }

  .photo-placeholder {
    width: 100%;
    max-width: 280px;
  }

  .hero-photo {
    width: 100%;
    max-width: 280px;
  }

  /* Circle button on mobile, positioned at bottom-left of photo */
  .circle-button.hero-circle {
    position: absolute;
    left: 5px;
    right: auto;
    bottom: 15px;
    width: 95px;
    height: 95px;
    min-width: 0;
    min-height: 0;
    font-size: 12px;
  }

  /* Section spacing */
  .section {
    padding: var(--space-lg) 0;
  }

  .section-title {
    margin-bottom: var(--space-md);
  }

  /* About section */
  .split {
    gap: var(--space-md);
  }

  .about-text {
    text-align: left;
  }

  .about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: var(--space-sm);
  }

  .about-stats > div {
    min-width: 0;
    padding: 12px;
  }

  .about-stats > div:last-child {
    grid-column: span 2;
  }

  .stat-number {
    font-size: 28px;
    word-break: break-word;
  }

  .stat-label {
    font-size: 10px;
    display: block;
    white-space: normal;
    word-break: break-word;
  }

  .about-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
  }

  .about-visual .photo-placeholder {
    width: 180px;
    height: 180px;
  }

  .about-visual .circle-button {
    width: 120px;
    height: 120px;
    font-size: 10px;
  }

  .circle-button {
    width: 80px;
    height: 80px;
    font-size: 10px;
  }

  /* Help columns */
  .help-column {
    padding: var(--space-md);
  }

  .help-column h3 {
    font-size: 20px;
  }

  .help-column h3::before {
    height: 20px;
  }

  /* Accordion */
  .accordion summary {
    font-size: 15px;
    padding: 4px 0;
  }

  .accordion details {
    padding: 12px 0;
  }

  .accordion details p {
    font-size: 14px;
    margin-top: 8px;
  }

  /* Cards */
  .card-grid {
    gap: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: var(--space-md);
  }

  .card::before {
    height: 2px;
  }

  .card h3 {
    font-size: 18px;
  }

  .card p {
    font-size: 14px;
  }

  .card .primary-button {
    padding: 12px 20px;
    font-size: 13px;
  }

  /* Reduce hover intensity on mobile */
  .card:hover {
    transform: translateY(-4px);
  }

  /* Principles section */
  .principles-copy {
    text-align: left;
  }

  .soft-list {
    gap: 12px;
  }

  .soft-list li {
    font-size: 14px;
    line-height: 1.5;
    padding-left: 24px;
  }

  .principles-visual {
    margin-top: var(--space-sm);
  }

  .principles-visual .photo-placeholder {
    width: 100%;
    max-width: 240px;
  }

  .outline-circle {
    display: none;
  }

  /* CTA section */
  .cta-box {
    padding: var(--space-md);
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: var(--space-md);
  }

  .cta-box::before {
    height: 3px;
  }

  .cta-box h2 {
    font-size: clamp(22px, 5vw, 28px);
    margin-bottom: 8px;
  }

  .cta-box p {
    font-size: 14px;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .cta-actions .primary-button,
  .cta-actions .ghost-button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    font-size: 12px;
  }

  /* Contact page */
  .contact-grid {
    gap: var(--space-md);
  }

  .contact-list {
    gap: 12px;
  }

  .contact-list li {
    font-size: 14px;
  }

  .contact-list-icons {
    gap: 10px;
    padding-bottom: 10px;
  }

  .contact-list-icons a {
    padding: 12px 16px;
    font-size: 13px;
  }

  .contact-icon {
    width: 24px;
    height: 24px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 14px 16px;
    font-size: 14px;
    border-radius: 16px;
  }

  .contact-form label {
    font-size: 12px;
  }

  .map-placeholder {
    min-height: 180px;
  }

  /* Page hero */
  .page-hero {
    padding: var(--space-lg) 0;
  }

  .page-hero h1 {
    margin-bottom: 12px;
  }

  .page-hero .lead {
    font-size: 15px;
  }

  /* List columns */
  .list-columns {
    gap: 12px;
  }

  .list-columns li {
    padding: 12px;
    font-size: 14px;
  }

  /* Education section */
  .education-item h3 {
    font-size: 16px;
  }

  .education-item h3::before {
    width: 6px;
    height: 6px;
  }

  /* Text blocks */
  .text-block {
    font-size: 14px;
  }

  .text-block p {
    margin-bottom: 12px;
  }

  /* Social platforms */
  .social-platforms {
    gap: 12px;
  }

  .platform-link {
    padding: var(--space-md);
  }

  .platform-icon {
    width: 48px;
    height: 48px;
    padding: 8px;
  }

  .platform-name {
    font-size: 14px;
  }

  /* Disable decorative elements on mobile */
  .hero::before,
  .hero::after {
    display: none;
  }

  /* Reduce animation motion */
  .reveal {
    transform: translateY(20px);
  }

  /* Stats banner mobile */
  .stats-banner {
    padding: var(--space-md);
  }

  .stats-banner-numbers {
    gap: 8px;
  }

  .stat-item {
    flex: 1;
    min-width: 80px;
    padding: var(--space-sm) var(--space-xs);
  }

  .stat-item .stat-number {
    font-size: 20px;
  }

  .stat-item .stat-label {
    font-size: 9px;
  }

  .circle-btn-accent {
    width: 110px;
    height: 110px;
    font-size: 11px;
  }
}

/* ===================
   EXTRA SMALL SCREENS (max-width: 360px)
   =================== */

@media (max-width: 360px) {
  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .hero-badges {
    flex-direction: column;
    align-items: center;
  }

  .badge {
    width: auto;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .about-stats > div:last-child {
    grid-column: span 2;
  }

  .stat-number {
    font-size: 26px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .pricing-section .card-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: var(--space-sm);
  }

  .about-visual .circle-button {
    width: 100px;
    height: 100px;
    font-size: 9px;
  }

  .contact-list-icons a {
    padding: 10px 14px;
    font-size: 12px;
  }
}

/* ===================
   REDUCED MOTION
   =================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===================
   DARK MODE SUPPORT (optional, for future)
   =================== */

@media (prefers-color-scheme: dark) {
  /* Placeholder for dark mode support */
  /* Currently disabled to maintain warm aesthetic */
}

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

@media print {
  .site-header,
  .mobile-menu,
  .burger,
  .circle-button,
  .primary-button,
  .ghost-button {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .hero-bg-text {
    display: none;
  }

  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
