/* ===== Primary Playcare — global styles =====
   Adjust key variables below to re-skin the whole site.
   NOTE: If hosting in a subfolder, update <base href="/"> in each HTML.
*/
:root{
    /* Brand palette (yours first) */
    --brand-primary: #2d5827;   /* deep green */
    --brand-secondary: #6ea81c; /* bright green */
  
    /* Complimentary accents (feel free to tweak) */
    --accent-1: #0ea5e9;  /* sky blue for highlights/buttons */
    --accent-2: #22c55e;  /* mint-green accent */
  
    /* Neutrals */
    --ink: #0f172a;       /* text */
    --muted: #5b6877;     /* secondary text */
    --bg: #f6faf7;        /* page background */
    --card: #ffffff;      /* card background */
    --border: #e5e7eb;    /* subtle borders */
  
    /* Typography */
    --font-sans: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,'Noto Sans',Arial,'Apple Color Emoji','Segoe UI Emoji',sans-serif;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(2,8,23,.08);
  }
  
  /* Base */
  *{box-sizing:border-box}
  html,body{margin:0;padding:0}
  body{font-family:var(--font-sans);color:var(--ink);background:var(--bg);line-height:1.6}
  img{max-width:100%;display:block}
  a{color:var(--accent-1);text-decoration:none}
  a:hover{text-decoration:underline}
  .link{text-underline-offset:2px;text-decoration:underline}
  
  .wrap{max-width:1100px;margin:auto;padding:24px 20px}
  .muted{color:var(--muted)}
  .small{font-size:.9rem}
  
  /* Layout shell */
  .site-header{
    position:sticky;top:0;z-index:40;background:linear-gradient(180deg,#fff 0,#f6fff4 100%);
    border-bottom:1px solid var(--border);
  }
  .header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}
  /*.brand{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:800;
    color:var(--ink)}*/
  .logo{
    width:48px;height:48px;border-radius:14px;color:#fff;display:grid;place-items:center;
    font-weight:900;letter-spacing:.5px;
    background:
      radial-gradient(60% 60% at 70% 30%, rgba(255,255,255,.25) 0 60%, rgba(255,255,255,.05) 61% 100%),
      linear-gradient(135deg,var(--brand-secondary),var(--accent-1));
    box-shadow: var(--shadow);
  }
  /*.brand-text{font-size:1.15rem}*/

  .brand{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:800;
    color:var(--ink);
    text-decoration:none; /* remove default underline */
  }
  
  .brand:hover .brand-text{
    text-decoration:underline; /* underline only the text */
    cursor: pointer;
  }
  
  .brand-text{
    font-size:1.15rem;
  }
  
  .nav-toggle{display:none;background:none;border:1px solid var(--border);padding:8px 10px;border-radius:12px}


/*.nav ul{list-style:none;margin:0;padding:0;display:flex;gap:6px;align-items:center}*/
.nav > ul{list-style:none;margin:0;padding:0;display:flex;gap:6px;align-items:center}


  .nav a{display:block;padding:10px 14px;border-radius:12px;color:var(--ink);font-weight:600}
  .nav a[aria-current="page"], .nav a:hover{background:rgba(13,148,136,0.08);text-decoration:none}
  
  /* Desktop dropdown — hidden by default, fades in on hover/focus */
  .has-dropdown{position:relative}
  .has-dropdown > a::after{content:"▾";margin-left:.4ch;font-size:.9em}
  .dropdown{
    /* key fixes */
    display:block;                 /* override any flex from parent rules */
    position:absolute; left:0; top:100%;  /* no gap -> no hover flicker */
    z-index:2000;
  
    min-width:220px;
    background:#fff; border:1px solid var(--border);
    border-radius:14px; box-shadow:var(--shadow);
    padding:6px;
  
    opacity:0; visibility:hidden; pointer-events:none;
    transition:opacity .15s ease, visibility .15s ease;
  }

  /*.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown{display:block}*/
  .dropdown li{display:block}
.dropdown a{
  display:block;                 /* full-row click target */
  white-space:nowrap;            /* “Gaelic School” stays on one line */
  padding:10px 12px; border-radius:10px;
}
.dropdown a:hover{background:#f3f7f4}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown{
  opacity:1; visibility:visible; pointer-events:auto;
}
  /*.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.open .dropdown{
    opacity:1; visibility:visible; transform:none; pointer-events:auto;
    }*/

  .dropdown a{padding:10px 12px;border-radius:10px}
  .dropdown a:hover{background:#f3f7f4}

/* Mobile menu behaviour */
@media (max-width:840px) {
    .nav-toggle{display:block}
    .nav{display:none; position:absolute; left:0; right:0; top:100%; background:#fff; border-bottom:1px solid var(--border)}
    .nav.open{display:block}
    .nav ul{flex-direction:column; align-items:stretch; padding:10px}
  
    /* Only show the dropdown when the mobile nav is actually open */
    .has-dropdown .dropdown{
      position:static; border:none; box-shadow:none; padding:0; margin-left:18px;
      opacity:1; visibility:visible; transform:none; pointer-events:auto;
      display:none;
    }
    .nav.open .has-dropdown .dropdown{display:block}
}
  
  .site-footer{border-top:1px solid var(--border);background:#fff}
  .footer-inner{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px 20px}
  .footer-left,.footer-right{font-size:.95rem;color:var(--muted)}
  .footer-right a{color:inherit}
  .social{display:flex;gap:14px;justify-content:center;color:var(--brand-primary)}
  .dot{opacity:.5;margin:0 6px}
  
  .hero{
    background: url("/data/images/banner.jpg") center / cover no-repeat;
    border-bottom:1px solid var(--border);
  }


  .hero-card{
    margin:22px auto;
    background:var(--card);
    background: color-mix(in srgb, var(--card) 50%, transparent);
    padding:28px;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    text-align:center
  }

  .hero h1{margin:0 0 6px 0;font-size:clamp(26px,4vw,42px)}
  .tag{font-size:1.1rem;color:var(--muted)}
  .hero-cta{display:flex;gap:10px;justify-content:center;margin-top:14px}
  
  .btn{
    display:inline-block;padding:10px 16px;border-radius:14px;font-weight:700;border:1px solid transparent;
    background:linear-gradient(135deg,var(--brand-secondary),var(--accent-1));color:#fff;
    box-shadow:var(--shadow);
    cursor:pointer;
  }
  .btn:hover{text-decoration:none;filter:saturate(1.05)}
  .btn-secondary{background:linear-gradient(135deg,var(--brand-primary),var(--brand-secondary))}
  
  /* Sections & cards */
  .section{padding:26px 0}
  .section-head{margin-bottom:12px}
  .grid{display:grid;gap:16px}
  .grid.two{grid-template-columns:1fr 1fr}
  .grid.four{grid-template-columns:repeat(4,1fr)}
  @media (max-width:900px){.grid.two,.grid.four{grid-template-columns:1fr}}
  .card{
    background:var(--card);border-radius:var(--radius);padding:18px;border:1px solid var(--border);
    box-shadow:var(--shadow)
  }
  .list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
  .block{display:block}
  .pill{
    display:inline-flex;gap:.5ch;align-items:center;background:#e6f6ff;border:1px solid #cdeefd;
    color:#0b6ea8;padding:6px 10px;border-radius:999px;font-weight:700;font-size:.95rem
  }
  .stack{display:flex;flex-wrap:wrap;gap:8px}
  .badge{
    display:inline-flex;align-items:center;gap:.5ch;background:#ecfeff;border:1px solid #cffafe;color:#155e75;
    padding:4px 8px;border-radius:999px;font-size:.9rem
  }
  
  /* Service tiles */
  .service-card{padding:0}
  .service-card h3{margin:10px 12px 0 12px}
  .service-card p{margin:4px 12px 14px 12px}
  .service-photo{
    height:150px;border-radius:calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;border-bottom:1px solid var(--border)
  }
  
  /* Contact form */
  .form label{display:grid;gap:6px;margin-bottom:10px}
  .form input,.form textarea{
    padding:10px;border-radius:12px;border:1px solid var(--border);font:inherit
  }
  .form button{margin-top:6px}
  
  /* Placeholder “photos” as gradients — replace with real photos later via background-image:url(...) */
  .bg-photo-about{
    min-height:240px;
    /*background: linear-gradient(135deg, var(--brand-secondary), var(--accent-1));*/
    background-image: url('/data/images/about_us.jpg'); background-size: cover; background-position: center; 
  }
  .bg-photo-about1{
    min-height:240px;
    /*background: linear-gradient(135deg, var(--brand-secondary), var(--accent-1));*/
    background-image: url('/data/images/about_us1.jpg'); background-size: cover; background-position: center; 
  }
  .bg-photo-about2{
    min-height:240px;
    /*background: linear-gradient(135deg, var(--brand-secondary), var(--accent-1));*/
    background-image: url('/data/images/about_us2b.jpg'); background-size: cover; background-position: center; 
  }
  .bg-photo-about3{
    min-height:240px;
    /*background: linear-gradient(135deg, var(--brand-secondary), var(--accent-1));*/
    background-image: url('/data/images/about_us3.jpg'); background-size: cover; background-position: center; 
  }
  
  
  .bg-photo-olm1{
    min-height:240px;
    background-image: url('/data/images/olm_1.jpg'); background-size: cover; background-position: center; 
  }
  .bg-photo-olm2{
    min-height:240px;
    background-image: url('/data/images/olm_2.jpg'); background-size: cover; background-position: center; 
  }
  .bg-photo-woodfarm1{
    min-height:240px;
    background-image: url('/data/images/woodfarm_1.jpg'); background-size: cover; background-position: center; 
  }
  .bg-photo-woodfarm2{
    min-height:240px;
    background-image: url('/data/images/woodfarm_2.jpg'); background-size: cover; background-position: center; 
  }
  .bg-photo-gaelic1{
    min-height:240px;
    background-image: url('/data/images/gaelic_1.jpg'); background-size: cover; background-position: center; 
  }
  .bg-photo-gaelic2{
    min-height:240px;
    background-image: url('/data/images/gaelic_2.jpg'); background-size: cover; background-position: center; 
  }
  .bg-photo-giffnock1{
    min-height:240px;
    background-image: url('/data/images/giffnock_1.jpg'); background-size: cover; background-position: center; 
  }
  .bg-photo-giffnock2{
    min-height:240px;
    background-image: url('/data/images/giffnock_2.jpg'); background-size: cover; background-position: center; 
  }



  .bg-photo-gaelic{
    background-image: url('/data/images/pic01.jpg'); background-size: cover; background-position: center; 
  }
  .bg-photo-giffnock{
    background-image: url('/data/images/pic02.jpg'); background-size: cover; background-position: center; 
  }

  /*.bg-photo-olm{
    background: linear-gradient(135deg, #0ea5e9 0%, #6ea81c 50%, #2d5827 100%);
  }*/
  .bg-photo-olm { background-image: url('/data/images/pic03.jpg'); background-size: cover; background-position: center; }


  .bg-photo-woodfarm{
    background-image: url('/data/images/pic04.jpg'); background-size: cover; background-position: center; 
  }
  /*.bg-photo-woodfarm{
    background: linear-gradient(135deg, #22c55e 0%, #6ea81c 50%, #0ea5e9 100%);
  }*/
  
  /* Utilities */
  .sr-only{position:absolute;width:1px;height:1px;margin:-1px;border:0;padding:0;clip:rect(0 0 0 0);overflow:hidden}
  
  /* Service heading toggle: checkbox immediately left of label text */
.service-toggle{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-bottom:8px;
    font-weight:700;
  }
  .service-toggle input{ margin:0; }
  
  /* Ensure day labels also keep checkbox tight to the text */
  .day-grid label{
    display:inline-flex;
    align-items:center;
    gap:8px;
  }
  .day-grid input{ margin:0; }
.days{display:flex;flex-wrap:wrap;gap:10px}

/* Service heading toggles (Breakfast Club / After School Club) */
label.services,
label.service-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;                /* checkbox snug to the text */
  margin:0 0 8px 0;
  font-weight:700;
  line-height:1.2;
}
label.services input[type="checkbox"],
label.service-toggle input[type="checkbox"]{
  margin:0;
}

/* Final consent / long checkbox labels */
label.agree{
    display:inline-flex;
    align-items:flex-start;
    gap:8px;
    line-height:1.35;
  }
  label.agree input[type="checkbox"]{ margin:0; margin-top:3px; }
  

  /* Ensure hidden sections always collapse */
[hidden]{ display:none !important; }

/* Long consent / agreement checkboxes (already used on membership) */
label.agree{
  display:inline-flex;
  align-items:flex-start;
  gap:8px;
  line-height:1.35;
}
label.agree input[type="checkbox"]{ margin:0; margin-top:3px; }

.banner{
    background:linear-gradient(90deg,#22c55e 0,#0ea5e9 100%);color:#fff;border-radius:var(--radius);
    padding:14px 18px;margin:26px 0;display:flex;flex-wrap:wrap;gap:12px;justify-content:center;font-weight:600
  }
  /*.sr{position:absolute;left:-9999px}*/
  /* Print */
  @media print{
    .banner{box-shadow:none;border:1px solid #e5e7eb}
  }

  .cols{display:grid;gap:16px}
    @media(min-width:900px){.cols{grid-template-columns:1.0fr 1.0fr}}


/* Responsive embeds (maps/videos) */
.embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;         /* adjust if you prefer a taller map */
    border-radius: var(--radius);
    overflow: hidden;
  }
  .embed > iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
  }

  
  @media (min-width:610px) {
    .breakline {
        display: none;
        
        /*opacity: 0.75;*/
    
    } /* keep it wide on mobile too */
  }


  .bg-photo-aims{
    aspect-ratio: 16 / 5;
    background-image: url('/data/images/aims.jpg'); background-size: cover; background-position: center; 
  
    border-radius: var(--radius);
  }
  
  .aims-list li{
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;
  }
  
  .aims-list span{
    font-size: 1.1rem;
    line-height: 1.4;
  }
  
  .staff-centre {
    margin-bottom: 2rem;
  }
  
  .staff-centre h3 {
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    color: var(--brand-primary);
    border-bottom: 2px solid var(--brand-secondary);
  }
  

  
  .staff-table-wrap {
    overflow-x: auto;
  }
  
  .staff-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(2, 8, 23, 0.05);
  }
  
  .staff-table th,
  .staff-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
  }
  
  .staff-table th {
    width: 32%;
    min-width: 170px;
    font-weight: 600;
    color: var(--brand-primary);
    background: #eef6ea;
    white-space: nowrap;
  }
  
  .staff-table td {
    width: 68%;
    color: var(--ink);
    background: var(--card);
  }
  
  .staff-table tr:nth-child(even) th {
    background: #e8f2e3;
  }
  
  .staff-table tr:nth-child(even) td {
    background: #fbfdfb;
  }
  
  .staff-table tr:hover th {
    background: #e3f1db;
  }
  
  .staff-table tr:hover td {
    background: #f4fafe;
  }
  
  .staff-table tr:last-child th,
  .staff-table tr:last-child td {
    border-bottom: none;
  }
  
  @media (max-width: 600px) {
    .staff-table th,
    .staff-table td {
      padding: 0.65rem 0.75rem;
      font-size: 0.95rem;
    }
  
    .staff-table th {
      min-width: 120px;
    }
  }

  .alert{
    margin: 0 0 16px 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
  }
  
  .alert.success{
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
  }
  
  .alert.error{
    background: #fef2f2;
    border-color: #fecaca;
    color: #7f1d1d;
  }

  .alert{
    margin: 0 0 16px 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
  }
  
  .alert.success{
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
  }
  
  .alert.error{
    background: #fef2f2;
    border-color: #fecaca;
    color: #7f1d1d;
  }

  .processing-overlay{
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.82);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  .processing-box{
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px 24px;
    box-shadow: var(--shadow);
    text-align: center;
    min-width: 220px;
  }
  
  .spinner{
    width: 38px;
    height: 38px;
    margin: 0 auto 12px auto;
    border: 4px solid #dbeafe;
    border-top: 4px solid var(--accent-1);
    border-radius: 50%;
    animation: spin .8s linear infinite;
  }
  
  @keyframes spin{
    to { transform: rotate(360deg); }
  }

  .processing-overlay{
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.82);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  .processing-box{
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px 24px;
    box-shadow: var(--shadow);
    text-align: center;
    min-width: 220px;
  }
  
  .spinner{
    width: 38px;
    height: 38px;
    margin: 0 auto 12px auto;
    border: 4px solid #dbeafe;
    border-top: 4px solid var(--accent-1);
    border-radius: 50%;
    animation: spin .8s linear infinite;
  }
  
  @keyframes spin{
    to { transform: rotate(360deg); }
  }