/*
Theme Name: Thaai Tamil School
Theme URI: https://ttnps.com/
Author: Thaai Tamil Nursery and Primary School
Description: Single-page site for Thaai Tamil Nursery and Primary School, Salangapalayam. All wording, contact details and photos are edited in Appearance > Customize > Thaai Tamil website.
Version: 2.0.0
Requires at least: 5.8
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thaai-tamil
*/

/* Layout: curved hero photo, three action tiles that map to the three office forms, a two-tab programme viewer, a purple band. purple, crimson and gold, rounded corners, plain rounded photo frames. */
:root{
  --red:#C22A45;
  --red-deep:#A31C35;
  --coal:#3A1B52;
  --coal-2:#4D2A6B;
  --gold:#F5B323;
  --grey:#F7F2FB;
  --white:#FFFFFF;
  --text:#574B63;
  --muted:#8E8499;
  --line:#E9E0F0;
  --ok:#17794A;
  --display:"Poppins","Nirmala UI",system-ui,sans-serif;
  --sans:"Nunito","Nirmala UI",system-ui,-apple-system,"Segoe UI",sans-serif;
  --wrap:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:92px}
body{margin:0;background:var(--white);color:var(--text);font-family:var(--sans);font-size:17.5px;font-weight:500;line-height:1.7}
img{max-width:100%;display:block}
a{color:inherit}
h1,h2,h3{font-family:var(--display);color:var(--coal);font-weight:600;line-height:1.16;margin:0;letter-spacing:-.02em;text-wrap:balance}
p{margin:0}
.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:22px}
/* wide screens: use more of the width so the page does not sit in a narrow strip with empty sides */
@media (min-width:1500px){:root{--wrap:1400px}}
@media (min-width:1800px){:root{--wrap:1560px}}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-family:var(--sans);font-weight:800;font-size:1rem;padding:14px 28px;border-radius:10px;border:2px solid transparent;text-decoration:none;cursor:pointer;transition:background .15s,color .15s}
.btn svg{width:18px;height:18px;transition:transform .15s}
.btn:hover svg{transform:translateX(4px)}
.btn-red{background:var(--red);color:#fff}
.btn-red:hover{background:var(--red-deep)}
.btn-coal{background:var(--coal);color:#fff}
.btn-coal:hover{background:var(--coal-2)}
.btn-line{border-color:var(--coal);color:var(--coal)}
.btn-line:hover{background:var(--coal);color:#fff}

.rule{display:flex;align-items:center;gap:12px;font-family:var(--sans);font-weight:800;font-size:.8rem;letter-spacing:.16em;text-transform:uppercase;color:var(--red)}
.rule::before{content:"";width:30px;height:2px;background:var(--red)}
.dark .rule{color:var(--gold)}
.dark .rule::before{background:var(--gold)}

/* header: quiet and businesslike. Name on the left, plain menu with a sliding underline, phone number and one action button on the right */
.header{position:sticky;top:0;z-index:30;background:#fff;border-bottom:1px solid var(--line)}
.header .wrap{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:78px}
.lockup{display:flex;align-items:center;gap:14px;flex:none}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand-mark{width:46px;height:46px;border-radius:12px;background:var(--coal);color:var(--gold);display:grid;place-items:center;font-family:"Nirmala UI","Noto Sans Tamil",sans-serif;font-weight:700;font-size:1.5rem;line-height:1;flex:none}
.brand-name{display:block;font-family:var(--sans);font-weight:800;font-size:1.22rem;color:var(--coal);line-height:1.15;letter-spacing:-.01em}
.brand-sub{display:block;font-size:.68rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);white-space:nowrap}
.managed{display:flex;align-items:center;gap:8px;padding-left:14px;border-left:1px solid #D9CFE3;text-decoration:none}
.managed img{height:48px;width:auto;flex:none;filter:brightness(1.04)}
.managed-text{display:flex;flex-direction:column;line-height:1.3}
.managed-text span{font-size:.66rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.managed b{font-size:.98rem;font-weight:800;color:var(--red);white-space:nowrap}
.nav{display:flex;align-items:center;justify-content:flex-end;gap:18px;flex:1}
.menu{list-style:none;display:flex;gap:2px;margin:0;padding:0}
.menu > li{position:relative}
.menu > li > a{position:relative;display:flex;align-items:center;gap:6px;height:78px;padding:0 9px;font-weight:700;font-size:.98rem;color:var(--coal);text-decoration:none;white-space:nowrap;transition:color .15s}
.menu > li > a::after{content:"";position:absolute;left:9px;right:9px;bottom:-1px;height:3px;background:var(--red);transform:scaleX(0);transform-origin:left;transition:transform .2s}
.menu > li:hover > a,.menu > li:focus-within > a{color:var(--red)}
.menu > li:hover > a::after,.menu > li:focus-within > a::after{transform:scaleX(1)}
.menu > li > a svg{width:11px;height:11px}
.sub{list-style:none;margin:0;padding:8px;position:absolute;left:0;top:100%;min-width:220px;background:#fff;border:1px solid var(--line);border-top:0;border-radius:0 0 12px 12px;box-shadow:0 18px 36px rgba(58,27,82,.14);display:none}
.menu > li:hover .sub,.menu > li:focus-within .sub{display:block}
.sub a{display:block;padding:10px 12px;border-radius:8px;text-decoration:none;font-weight:600;font-size:.95rem;color:var(--coal)}
.sub a:hover{background:var(--grey);color:var(--red)}
.nav-actions{display:flex;align-items:center;gap:22px}
.nav-phone{display:none;align-items:center;gap:10px;text-decoration:none;color:var(--coal);font-weight:800;font-size:1rem;line-height:1.25;white-space:nowrap}
.nav-phone svg{width:38px;height:38px;padding:10px;border-radius:50%;background:var(--grey);color:var(--red);flex:none}
.nav-phone small{display:block;font-size:.66rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.nav-phone:hover{color:var(--red)}
.nav-actions .btn{border-radius:10px;padding:12px 22px;font-family:var(--sans);font-weight:800;font-size:.96rem;white-space:nowrap}
.menu-btn{display:none;background:none;border:0;padding:8px;cursor:pointer}
.menu-btn span{display:block;width:26px;height:2.5px;border-radius:2px;background:var(--coal);margin:5.5px 0}

/* hero */
.hero{position:relative;background:var(--grey);overflow:hidden}
.hero-photo{position:absolute;top:0;right:0;bottom:0;width:50%}
.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:center 45%}
.hero-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(58,27,82,.18),rgba(58,27,82,0) 30%)}
.hero .wrap{position:relative;padding-block:clamp(60px,9vw,130px)}
.hero-text{max-width:min(620px,44%);display:flex;flex-direction:column;gap:22px;align-items:flex-start}
.hero h1{font-size:clamp(2.3rem,4.6vw,3.7rem);font-weight:700}
.hero h1 span{color:var(--red)}
.hero p.lead{font-size:1.15rem}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}

/* action tiles */

/* sections */
.section{padding-block:clamp(64px,8vw,108px)}
.section h2{font-size:clamp(1.8rem,3.4vw,2.5rem);margin-top:14px}
.head{max-width:700px;margin-bottom:40px}

/* welcome */
.welcome .wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(36px,6vw,90px);align-items:center}
.welcome-text{display:flex;flex-direction:column;gap:18px;min-width:0;align-items:flex-start}
.welcome-photo{position:relative}
.welcome-photo img{width:100%;aspect-ratio:4/3.6;object-fit:cover;border-radius:16px;box-shadow:0 24px 50px rgba(58,27,82,.16)}

/* programme */
.programme{background:var(--grey)}
.stages{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.stage{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 14px 36px rgba(58,27,82,.07)}
.stage img{width:100%;aspect-ratio:16/9;object-fit:cover}
.stage-text{padding:clamp(22px,3vw,36px);display:flex;flex-direction:column;gap:12px;min-width:0}
.stage small{font-size:.78rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--red)}
.stage h3{font-size:clamp(1.25rem,2.1vw,1.55rem)}
.chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.chips a{text-decoration:none;font-family:var(--sans);font-weight:700;font-size:.92rem;color:var(--coal);background:#fff;border:1px solid #CDC3D8;border-radius:8px;padding:6px 16px}
.chips a:hover{border-color:var(--red);color:var(--red)}

/* purple band */
.hb{background:var(--coal);color:#DCCFE8;position:relative;overflow:hidden}
.hb .wrap{position:relative;z-index:1}
.hb .wrap{display:grid;grid-template-columns:auto 1fr;gap:clamp(30px,5vw,70px);align-items:center}
.hb-logo{width:200px;max-width:100%;background:#fff;padding:20px;border-radius:14px}
.hb-logo img{width:100%;filter:brightness(1.04)}
.hb-text{display:flex;flex-direction:column;gap:16px;min-width:0}
.hb-text h2{color:#fff}

/* gallery */
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:300px;gap:16px}
.gallery-grid img{width:100%;height:100%;object-fit:cover;border-radius:14px}
.gallery-grid img:first-child{grid-column:span 2}
.gallery-grid img:last-child{grid-column:span 2}

/* office */
.office{background:var(--grey)}
.office .wrap{display:grid;grid-template-columns:1fr 1fr;gap:clamp(30px,5vw,70px);align-items:start}
.office-info{display:flex;flex-direction:column;gap:18px;min-width:0}
.contact-list{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:0;border-top:1px solid var(--line)}
.contact-list li{display:flex;gap:16px;align-items:flex-start;padding-block:16px;border-bottom:1px solid var(--line)}
.contact-list svg{width:22px;height:22px;fill:var(--red);flex:none;margin-top:4px}
.contact-list b{display:block;font-family:var(--sans);font-weight:800;font-size:.74rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.contact-list a,.contact-list span span{color:var(--coal);font-weight:600;text-decoration:none}
.contact-list a:hover{color:var(--red)}
.desk-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;min-width:0;box-shadow:0 14px 40px rgba(58,27,82,.09)}
.form[hidden]{display:none}
.form{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;padding:clamp(18px,2.2vw,26px)}
.form-title{grid-column:1/-1}
.form-title h3{font-family:var(--sans);font-weight:800;font-size:1.12rem;letter-spacing:0;color:var(--coal)}
.form-title p{font-size:.95rem;color:var(--muted);margin-top:2px}
.form-sec{grid-column:1/-1;font-size:.76rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--red);padding-bottom:8px;border-bottom:1px solid var(--line);margin-top:4px}
.field{display:flex;flex-direction:column;gap:4px;min-width:0}
.field.full{grid-column:1/-1}
.field label{font-size:.84rem;font-weight:700;color:var(--coal)}
.field:has([required]) label::after{content:" *";color:var(--red)}
.field input,.field select,.field textarea{width:100%;font:inherit;font-size:.98rem;font-weight:500;color:var(--coal);background:#fff;border:1px solid #CDC3D8;border-radius:8px;padding:0 12px;height:40px}
.field textarea{height:auto;min-height:64px;padding:9px 12px;resize:vertical}
.field input:hover,.field select:hover,.field textarea:hover{border-color:#A796B8}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--coal);box-shadow:0 0 0 3px rgba(58,27,82,.14)}
.form-foot{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 20px;padding-top:14px;border-top:1px solid var(--line)}
.form-foot small{font-size:.86rem;color:var(--muted)}
.form-foot small b{color:var(--red)}
.form .btn{border-radius:8px;padding:11px 26px;font-family:var(--sans);font-weight:800;font-size:1rem}
.form-msg{grid-column:1/-1;font-size:.92rem;font-weight:700;color:var(--red)}
.form-msg:empty{display:none}
.form-msg.ok{color:var(--ok)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}

/* footer */
.footer{background:#2A113E;color:#C3B4D1;font-size:.95rem}
.footer .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 30px;padding-block:26px}
.footer .brand-name{color:#fff}
.footer-contact{display:flex;flex-wrap:wrap;gap:10px 30px}
.footer-contact a{display:flex;align-items:center;gap:8px;color:#fff;font-weight:700;text-decoration:none;white-space:nowrap}
.footer-contact a:hover{text-decoration:underline}
.footer-contact svg{width:18px;height:18px;color:var(--gold);flex:none}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);font-size:.88rem}
.footer .footer-bottom .wrap{padding-block:14px}
.footer-bottom b{color:var(--gold)}
.footer .brand-sub{color:#C3B4D1}
.footer .brand-mark{background:var(--gold);color:var(--coal)}

@media (max-width:1000px){
  .office .wrap{grid-template-columns:1fr}
}
@media (max-width:1200px){
}
@media (max-width:900px){
  .hero-photo{position:relative;width:100%;height:clamp(260px,50vw,440px)}
  .hero-text{max-width:none}
  .hero .wrap{padding-block:40px 56px}
}
@media (max-width:780px){
  body{font-size:16px}
  .welcome .wrap,.stages,.hb .wrap{grid-template-columns:1fr}
  .gallery-grid{grid-template-columns:1fr 1fr;grid-auto-rows:170px}
  .gallery-grid img:nth-child(6){grid-column:span 2}
}
@media (max-width:520px){
  .form{grid-template-columns:1fr}
}
@media (max-width:1200px){
  .menu-btn{display:block}
  .header .wrap{min-height:68px}
  .nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;flex-direction:column;align-items:stretch;gap:16px;padding:6px 22px 22px;border-bottom:1px solid var(--line);box-shadow:0 16px 24px rgba(58,27,82,.12);max-height:calc(100vh - 70px);overflow-y:auto}
  .nav.open{display:flex}
  .menu{flex-direction:column;gap:0}
  .menu > li > a{height:auto;padding:14px 0;border-bottom:1px solid var(--line)}
  .menu > li > a::after{display:none}
  .sub{position:static;display:block;border:0;box-shadow:none;padding:4px 0 4px 14px;min-width:0}
  .nav-actions{flex-direction:column;align-items:stretch;gap:14px}
  .nav-phone{display:flex}
  .nav-actions .btn{justify-content:center}
}
@media (max-width:560px){
  .brand-sub{display:none}
  .header .wrap{gap:10px}
  .lockup{gap:10px;min-width:0}
  .managed{padding-left:10px;gap:7px}
  .managed img{height:42px}
}
@media (max-width:440px){
  .managed-text span{font-size:.56rem;letter-spacing:.1em}
  .managed b{font-size:.84rem}
  .brand{gap:9px}
  .brand-mark{width:42px;height:42px;font-size:1.35rem}
  .brand-name{font-size:1.08rem}
}
@media (max-width:359px){
  .managed-text{display:none}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .btn,.btn svg,.tile{transition:none}
}

/* WordPress admin bar, shown to signed-in editors */
.admin-bar .header{top:32px}
@media (max-width:782px){.admin-bar .header{top:46px}}
@media (max-width:600px){.admin-bar .header{top:0}}
