
/* SOT Academy V16.6.4 — Mobile / Responsive refinement
   Mobile-first polish only; desktop layout is intentionally unchanged. */

html{-webkit-text-size-adjust:100%}
body{overflow-x:hidden}
img{max-width:100%;height:auto}
input,select,textarea,button{max-width:100%}

/* Avoid long Tamil/English words pushing cards outside the screen. */
h1,h2,h3,h4,p,a,span,strong,label{
  overflow-wrap:anywhere;
  word-break:normal;
}

/* Touch-friendly controls without changing desktop appearance. */
@media (max-width:900px){
  .site-header{position:relative;z-index:100}
  .site-header .container,
  .nav-wrap{
    min-height:68px;
    display:flex;
    align-items:center;
    gap:7px;
  }

  .brand{
    flex:0 1 auto;
    min-width:0;
    margin-right:auto;
  }
  .brand img{max-height:50px;width:auto}

  /* Language control stays visible beside hamburger. */
  .sot-language-switch{
    order:2;
    margin-left:auto !important;
    margin-right:3px !important;
    flex:0 0 auto;
    box-shadow:0 3px 12px rgba(15,23,42,.08);
  }
  .menu-btn{
    order:3;
    flex:0 0 auto;
    min-width:42px;
    min-height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px;
    border-radius:10px;
  }

  /* When the existing menu JS opens nav, keep links readable and tappable. */
  .main-nav{
    max-height:calc(100vh - 76px);
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  .main-nav a{
    min-height:44px;
    display:flex;
    align-items:center;
  }
  .main-nav .nav-cta{
    justify-content:center;
    margin-top:5px;
  }

  /* Page spacing */
  .page-hero{
    padding-top:46px !important;
    padding-bottom:42px !important;
  }
  .page-hero .container,
  .section .container{
    width:min(100% - 32px, 1160px);
  }
  .page-hero h1{
    font-size:clamp(1.9rem,8vw,2.65rem);
    line-height:1.14;
    margin-bottom:14px;
  }
  .page-hero p{
    font-size:1rem;
    line-height:1.7;
  }
  .breadcrumb{
    line-height:1.5;
    margin-bottom:12px;
  }

  .section{
    padding-top:52px !important;
    padding-bottom:52px !important;
  }
  .section-heading{
    margin-bottom:28px;
  }
  .section-heading h1,
  .section-heading h2{
    line-height:1.2;
  }

  /* Common grids collapse cleanly. */
  .grid-2,.grid-3,.grid-4,
  .contact-grid,.gallery-grid,.photo-split,
  .footer-grid,.v15-event-grid{
    grid-template-columns:1fr !important;
  }
  .photo-split{
    gap:28px !important;
  }

  /* Cards */
  .card,.contact-card,.gallery-card,.v15-card,.v15-event{
    min-width:0;
  }
  .card,.contact-card,.v15-card,.v15-event{
    padding:22px !important;
  }
  .card h3,.contact-card h3,.v15-event h3{
    line-height:1.3;
  }

  /* Images */
  .photo-frame,.feature-photo,.gallery-card{
    overflow:hidden;
    border-radius:18px;
  }
  .photo-frame img,.feature-photo img,.gallery-card img{
    width:100%;
    object-fit:cover;
  }

  /* Buttons should be comfortable to tap. */
  .btn,
  a.btn,
  button.btn,
  input[type="submit"]{
    min-height:46px;
    padding:12px 18px;
    white-space:normal;
    text-align:center;
    line-height:1.35;
  }

  /* Forms */
  form input,
  form select,
  form textarea{
    width:100%;
    min-height:46px;
    font-size:16px; /* prevents iPhone form zoom */
  }
  form textarea{min-height:120px}
  form label{line-height:1.45}
  .form-grid,.form-row{
    grid-template-columns:1fr !important;
  }

  /* Pills can wrap instead of overflowing. */
  .pills{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
  }
  .pill{
    white-space:normal;
    line-height:1.35;
  }

  /* Event data can be long on phones. */
  .v15-event-meta{
    line-height:1.65;
  }
  .v15-seat,.v15-pill{
    display:inline-block;
    max-width:100%;
    white-space:normal;
  }

  /* Footer */
  .site-footer{
    padding-top:42px;
    padding-bottom:30px;
  }
  .footer-brand img{max-width:150px}
}

@media (max-width:600px){
  .site-header .container,
  .nav-wrap{
    width:min(100% - 20px,1160px);
    min-height:64px;
  }

  .brand img{max-height:44px}

  .sot-language-switch{
    gap:2px !important;
    padding:3px !important;
  }
  .sot-language-icon{font-size:13px !important;padding:0 2px !important}
  .sot-language-divider{display:none}
  .sot-lang-btn{
    font-size:11px !important;
    padding:7px 6px !important;
  }
  .menu-btn{
    min-width:40px;
    min-height:40px;
  }

  .page-hero .container,
  .section .container{
    width:min(100% - 24px,1160px);
  }
  .page-hero{
    padding-top:38px !important;
    padding-bottom:36px !important;
  }
  .section{
    padding-top:42px !important;
    padding-bottom:42px !important;
  }

  .eyebrow{
    letter-spacing:.04em;
    line-height:1.45;
  }

  .card,.contact-card,.v15-card,.v15-event{
    padding:19px !important;
    border-radius:16px;
  }

  .gallery-grid{
    gap:18px !important;
  }
  .gallery-card .caption{
    padding:13px 14px !important;
    line-height:1.4;
  }

  .btn,
  a.btn,
  button.btn,
  input[type="submit"]{
    width:100%;
  }

  /* Contact details must not run off screen. */
  .contact-card a[href^="mailto:"],
  .contact-card a[href^="tel:"]{
    word-break:break-word;
  }

  /* Tamil usually needs slightly more vertical breathing room. */
  html[lang="ta"] h1,
  html[lang="ta"] h2,
  html[lang="ta"] h3{
    line-height:1.35;
  }
  html[lang="ta"] p,
  html[lang="ta"] a,
  html[lang="ta"] label{
    line-height:1.75;
  }
}

/* Homepage-specific mobile polish */
@media (max-width:900px){
  .hero-banner{
    min-height:auto !important;
  }
  .hero-banner-wrap{
    min-height:500px;
    display:flex;
    align-items:center;
  }
  .hero-banner-copy{
    max-width:650px;
    padding-top:48px;
    padding-bottom:48px;
  }
  .hero-banner-copy h1{
    font-size:clamp(2.2rem,10vw,3.5rem);
    line-height:1.05;
  }
  .hero-banner-copy .lead{
    font-size:1rem;
    line-height:1.7;
    max-width:32rem;
  }
  .hero-banner-actions{
    display:flex;
    flex-wrap:wrap;
    gap:11px;
  }
  .hero-banner-contact{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:7px;
    line-height:1.6;
  }

  .who-serve-grid-v142{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media (max-width:600px){
  .brand-v157 .brand-text-v157{
    display:none;
  }

  .hero-banner-wrap{
    min-height:470px;
  }
  .hero-banner-copy{
    padding-top:38px;
    padding-bottom:38px;
  }
  .hero-banner-copy h1{
    font-size:clamp(2rem,12vw,2.8rem);
  }
  .hero-banner-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .hero-banner-actions .btn{
    width:100%;
  }
  .hero-banner-contact{
    font-size:.94rem;
  }

  .who-serve-grid-v142{
    grid-template-columns:1fr !important;
  }

  .live-event-flash-v15,
  .live-event-flash-top-v154{
    border-radius:14px;
  }
}


/* V16.6.5 — Keep founder headroom consistent on desktop.
   background-size: cover can crop differently at different browser aspect ratios;
   anchoring to the top protects the top of the portrait. */
@media (min-width:901px){
  .hero-banner{
    background-position:center top !important;
  }
}


/* V16.6.6 — Compact mobile refinement based on live phone screenshots */
@media (max-width:600px){

  .section{
    padding-top:34px !important;
    padding-bottom:34px !important;
  }

  .section-heading{
    margin-bottom:22px !important;
  }

  .section-heading h1,
  .section-heading h2,
  .who-serve-title,
  .founder-title,
  .program-title{
    font-size:clamp(1.75rem,8vw,2.35rem) !important;
    line-height:1.16 !important;
  }

  .section-heading p,
  .section-intro,
  .who-serve-subtitle{
    font-size:1rem !important;
    line-height:1.65 !important;
  }

  .card,
  .contact-card,
  .v15-card,
  .v15-event,
  .who-serve-card,
  .stat-card,
  .program-card{
    padding:22px 20px !important;
    min-height:0 !important;
  }

  .who-serve-card,
  .program-card,
  .stat-card{
    margin-bottom:18px !important;
  }

  .who-serve-card h3,
  .program-card h3,
  .card h3{
    font-size:1.35rem !important;
    line-height:1.28 !important;
    margin-bottom:12px !important;
  }

  .who-serve-card p,
  .program-card p,
  .card p{
    font-size:1rem !important;
    line-height:1.65 !important;
    margin-bottom:12px !important;
  }

  .stats-grid{
    gap:16px !important;
  }

  .stat-card{
    padding-top:28px !important;
    padding-bottom:28px !important;
  }

  .stat-card .stat-number,
  .stat-card strong{
    font-size:2rem !important;
    line-height:1.15 !important;
  }

  .founder-section p,
  .founder-copy p{
    font-size:1rem !important;
    line-height:1.75 !important;
  }

  .hero-banner-copy{
    padding:30px 24px 32px !important;
    border-radius:22px !important;
  }

  .hero-banner-copy h1{
    font-size:clamp(2.15rem,11vw,2.75rem) !important;
    line-height:1.03 !important;
  }

  .hero-banner-copy .lead{
    font-size:1rem !important;
    line-height:1.62 !important;
  }

  .live-event-flash-v15,
  .live-event-flash-top-v154{
    padding:20px !important;
  }

  .floating-whatsapp,
  .whatsapp-float,
  .wa-float,
  a[href*="wa.me"].floating,
  .fixed-whatsapp{
    right:14px !important;
    bottom:18px !important;
    min-width:auto !important;
    width:auto !important;
    padding:11px 16px !important;
    font-size:.95rem !important;
    border-radius:999px !important;
    line-height:1.2 !important;
    z-index:999 !important;
  }

  body > a[href*="wa.me"][style*="position: fixed"],
  body > a[href*="api.whatsapp.com"][style*="position: fixed"]{
    right:14px !important;
    bottom:18px !important;
    padding:11px 16px !important;
    font-size:.95rem !important;
  }

  main,
  .page-content{
    padding-bottom:72px !important;
  }
}

@media (max-width:390px){
  .hero-banner-copy{
    padding-left:20px !important;
    padding-right:20px !important;
  }

  .hero-banner-copy h1{
    font-size:2.05rem !important;
  }

  .card,
  .who-serve-card,
  .program-card,
  .stat-card{
    padding-left:18px !important;
    padding-right:18px !important;
  }
}


/* V16.6.7 — Mobile About + WhatsApp refinement */
@media (max-width:600px){

  /* Make long About-page paragraphs easier to read */
  .founder-copy,
  .founder-section,
  .story-section,
  .about-story,
  .why-story{
    text-align:left !important;
  }

  .founder-copy p,
  .founder-section p,
  .story-section p,
  .about-story p,
  .why-story p{
    font-size:.98rem !important;
    line-height:1.7 !important;
    text-align:left !important;
    margin-bottom:18px !important;
  }

  .story-section h2,
  .about-story h2,
  .why-story h2{
    font-size:clamp(1.8rem,8vw,2.25rem) !important;
    line-height:1.18 !important;
    text-align:left !important;
  }

  .story-section .eyebrow,
  .about-story .eyebrow,
  .why-story .eyebrow{
    text-align:left !important;
    margin-left:0 !important;
    margin-right:auto !important;
  }

  /* Founder image remains prominent but not oversized */
  .photo-frame img,
  .feature-photo img{
    max-height:560px;
    object-fit:cover;
    object-position:center top;
  }

  /* Make proof pills more compact */
  .pills{
    gap:8px !important;
  }
  .pill{
    font-size:.88rem !important;
    padding:9px 12px !important;
  }

  /* Floating WhatsApp: significantly smaller */
  .floating-whatsapp,
  .whatsapp-float,
  .wa-float,
  .fixed-whatsapp,
  a[href*="wa.me"][class],
  a[href*="api.whatsapp.com"][class]{
    right:12px !important;
    bottom:16px !important;
    padding:9px 13px !important;
    min-height:40px !important;
    max-height:42px !important;
    font-size:.84rem !important;
    font-weight:700 !important;
    line-height:1 !important;
    border-radius:999px !important;
    width:auto !important;
    min-width:auto !important;
  }

  /* If inline styling is used */
  body > a[href*="wa.me"],
  body > a[href*="api.whatsapp.com"]{
    right:12px !important;
    bottom:16px !important;
    padding:9px 13px !important;
    font-size:.84rem !important;
    min-height:40px !important;
    width:auto !important;
    min-width:auto !important;
    border-radius:999px !important;
  }

  /* Give content safe space above fixed button */
  body{
    padding-bottom:58px;
  }

  /* Avoid button covering full-width CTAs */
  .btn,
  .nav-cta,
  .cta,
  .register-btn{
    position:relative;
    z-index:1;
  }
}

@media (max-width:390px){
  .floating-whatsapp,
  .whatsapp-float,
  .wa-float,
  .fixed-whatsapp,
  body > a[href*="wa.me"],
  body > a[href*="api.whatsapp.com"]{
    padding:8px 11px !important;
    font-size:.8rem !important;
    min-height:38px !important;
  }
}
