/* ============================================================
   Tree of Creativity Nursery — Stylesheet
   ============================================================ */

:root {
  --white:  #FBF8F1;
  --sage:   #7C9A7E;
  --sage-deep: #536B57;
  --sand:   #E4D3B8;
  --beige:  #EFE7D8;
  --sky:    #AED4E6;
  --sun:    #F4C95D;
  --ink:    #3E4A3F;
  --muted:  #7d846f;
  --border: #EAE0CF;
  --head-font: 'Quicksand', 'Nunito', system-ui, sans-serif;
  --body-font: 'Nunito', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* Arabic / RTL uses Tajawal for everything */
html[dir="rtl"] body,
html[dir="rtl"] .head { font-family: 'Tajawal', system-ui, sans-serif; }

a { color: var(--sage-deep); text-decoration: none; }
a:hover { color: var(--sage); }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }
::selection { background: var(--sun); color: var(--ink); }

.head { font-family: var(--head-font); }
.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,241,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 14px 24px; max-width: 1200px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; text-align: start; }
.brand-name { font-family: var(--head-font); font-weight: 700; font-size: 17px; color: var(--ink); }
.brand-sub  { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #95886f; }

.main-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-link {
  font-family: var(--head-font); font-weight: 600; font-size: 14.5px;
  padding: 9px 16px; border-radius: 999px; color: var(--ink); transition: all .2s;
}
.nav-link:hover { background: var(--beige); }
.nav-link.active { background: var(--sage); color: #fff; }

.lang-switch { display: flex; align-items: center; gap: 4px; background: var(--beige); padding: 4px; border-radius: 999px; }
.lang-btn { font-weight: 700; font-size: 12.5px; padding: 6px 11px; border-radius: 999px; color: #8a8069; transition: all .2s; }
.lang-btn.active { background: #fff; color: var(--sage); }

/* ---------- Buttons ---------- */
.btn { font-family: var(--head-font); font-weight: 700; font-size: 16px; padding: 15px 28px; border-radius: 999px; transition: transform .15s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-sage { background: var(--sage); color: #fff; box-shadow: 0 8px 20px rgba(124,154,126,0.35); }
.btn-sun  { background: var(--sun); color: #5a4a12; box-shadow: 0 8px 20px rgba(244,201,93,0.35); }

/* ---------- Layout helpers ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 56px 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 44px; align-items: center; }
.grid-2.start { align-items: start; }
.page-hero { background: var(--beige); padding: 52px 24px 44px; }
.page-hero h1 { font-family: var(--head-font); font-weight: 700; font-size: clamp(30px, 4.5vw, 44px); color: var(--ink); }
.page-hero p { font-size: 18px; color: var(--muted); margin-top: 10px; }

.photo { width: 100%; height: 100%; min-height: 340px; object-fit: cover; border-radius: 28px; box-shadow: 0 14px 40px rgba(124,120,90,0.18); }
.eyebrow { font-family: var(--head-font); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); }
.block-title { font-family: var(--head-font); font-weight: 700; font-size: clamp(24px, 3vw, 32px); line-height: 1.25; color: var(--ink); margin: 12px 0 18px; }
.lead { font-size: 16.5px; line-height: 1.7; color: #5f6b5e; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14.5px; color: var(--sage-deep); }

/* ---------- Home ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--beige) 0%, var(--white) 100%); }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 64px 24px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 48px; align-items: center; }
.hero-badge { display: inline-block; background: var(--sky); color: #33586b; font-weight: 700; font-size: 13px; padding: 7px 16px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-family: var(--head-font); font-weight: 700; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 20px; text-wrap: balance; }
.hero-sub { font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: #5f6b5e; margin-bottom: 16px; max-width: 34ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-media { position: relative; min-height: 340px; }
.hero-media .floaty { position: absolute; inset: 0; animation: floaty 6s ease-in-out infinite; }
.hero-media .floaty img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; border-radius: 28px; box-shadow: 0 14px 40px rgba(124,120,90,0.18); }
.blob { position: absolute; border-radius: 50%; z-index: -1; }
.blob-sun { bottom: -24px; inset-inline-end: -16px; width: 150px; height: 150px; background: var(--sun); opacity: .5; }
.blob-sky { top: -24px; inset-inline-start: -20px; width: 90px; height: 90px; background: var(--sky); opacity: .6; }

.intro-text { max-width: 70ch; margin: 0 auto; text-align: center; font-size: 17px; line-height: 1.7; color: #5f6b5e; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; }
.lang-card { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 28px 24px; text-align: center; box-shadow: 0 6px 18px rgba(124,120,90,0.06); }
.lang-card .flag { font-size: 40px; margin-bottom: 12px; }
.lang-card h3 { font-family: var(--head-font); font-weight: 700; font-size: 19px; margin-bottom: 6px; color: var(--ink); }
.lang-card p { font-size: 15px; color: var(--muted); }

.motto-band { background: var(--sage); color: #fff; }
.motto-band .inner { max-width: 900px; margin: 0 auto; padding: 60px 24px; text-align: center; }
.motto-band .star { font-size: 34px; margin-bottom: 18px; }
.motto-band p { font-family: var(--head-font); font-weight: 500; font-size: clamp(22px, 3vw, 30px); line-height: 1.4; font-style: italic; text-wrap: balance; }

.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 22px; }
.link-card { text-align: start; background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 28px; box-shadow: 0 6px 18px rgba(124,120,90,0.06); display: flex; flex-direction: column; gap: 10px; transition: transform .2s; width: 100%; }
.link-card:hover { transform: translateY(-4px); }
.link-card .ico { font-size: 30px; }
.link-card .lc-title { font-family: var(--head-font); font-weight: 700; font-size: 19px; color: var(--ink); }
.link-card .lc-desc { font-size: 15px; line-height: 1.55; color: var(--muted); }
.link-card .lc-more { font-weight: 700; font-size: 14px; color: var(--sage); margin-top: 4px; }

/* ---------- Programs ---------- */
.lang-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 22px; margin-top: 28px; }
.lang-panel { border-radius: 26px; padding: 30px 26px; border: 1px solid rgba(0,0,0,0.04); }
.lang-panel .flag { font-size: 38px; margin-bottom: 12px; }
.lang-panel h3 { font-family: var(--head-font); font-weight: 700; font-size: 22px; color: var(--ink); margin-bottom: 6px; }
.lang-panel .desc { font-size: 14.5px; color: #5f6b5e; margin-bottom: 16px; min-height: 20px; }
.bullets { display: flex; flex-direction: column; gap: 9px; }
.bullet { display: flex; align-items: center; gap: 9px; font-size: 15px; color: var(--ink); }
.bullet .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); flex-shrink: 0; }

.band-sage { background: var(--sage); color: #fff; }
.band-sage .eyebrow { color: #cfe0cd; }
.band-sage .block-title { color: #fff; }
.band-sage .lead { color: #eef4ec; }
.band-sage .intro { color: #e7efe5; font-size: 16px; margin-bottom: 16px; }
.chip-light { background: rgba(255,255,255,0.15); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14.5px; color: #fff; }

/* ---------- Parents ---------- */
.parents-lead { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.55; color: var(--ink); font-weight: 600; font-family: var(--head-font); margin-bottom: 20px; text-wrap: balance; }
.parents-text { font-size: 17px; line-height: 1.75; color: #5f6b5e; margin-bottom: 28px; }
.info-list { display: flex; flex-direction: column; gap: 14px; }
.info-row { display: flex; align-items: flex-start; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 18px 20px; }
.info-row .ico { font-size: 24px; flex-shrink: 0; }
.info-row .ir-title { font-family: var(--head-font); font-weight: 700; font-size: 16.5px; color: var(--ink); margin-bottom: 2px; }
.info-row .ir-desc { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 18px; }
.value-card { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 24px; display: flex; align-items: center; gap: 14px; box-shadow: 0 5px 14px rgba(124,120,90,0.05); }
.value-card .ico { font-size: 30px; flex-shrink: 0; }
.value-card span.label { font-family: var(--head-font); font-weight: 600; font-size: 16px; color: var(--ink); }

/* ---------- Contact ---------- */
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-card { display: flex; align-items: flex-start; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 22px; }
.contact-card .ci-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--beige); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.contact-card .ci-label { font-family: var(--head-font); font-weight: 700; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--sage); margin-bottom: 5px; }
.contact-card .ci-value { font-size: 16px; line-height: 1.55; color: var(--ink); white-space: pre-line; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: 28px; padding: 30px; box-shadow: 0 10px 30px rgba(124,120,90,0.08); }
.form-card h2 { font-family: var(--head-font); font-weight: 700; font-size: 22px; color: var(--ink); margin-bottom: 6px; }
.form-note { font-size: 14px; color: #9a917c; margin-bottom: 22px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-weight: 600; font-size: 14px; color: var(--sage-deep); }
.field input, .field textarea {
  border: 1.5px solid var(--border); border-radius: 14px; padding: 13px 16px;
  font-size: 15px; background: var(--white); color: var(--ink); outline: none; transition: border .2s;
  width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--sage); }
.field textarea { resize: vertical; }
.hp { display: none !important; }
.submit-btn { margin-top: 6px; font-family: var(--head-font); font-weight: 700; font-size: 16px; padding: 15px; border-radius: 14px; background: var(--sage); color: #fff; box-shadow: 0 8px 20px rgba(124,154,126,0.3); }
.submit-btn:disabled { opacity: .6; cursor: wait; }
.form-success { background: #EAF3E7; border: 1px solid #cbe0c5; border-radius: 18px; padding: 28px 22px; text-align: center; }
.form-success .star { font-size: 38px; margin-bottom: 10px; }
.form-success .fs-title { font-family: var(--head-font); font-weight: 700; font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.form-success .fs-msg { font-size: 15px; color: #5f6b5e; line-height: 1.55; }
.form-error { background: #FBEAEA; border: 1px solid #e6c9c9; border-radius: 12px; padding: 12px 14px; font-size: 14px; color: #9a3b3b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #dfe6dc; margin-top: 20px; }
.footer-grid { max-width: 1200px; margin: 0 auto; padding: 52px 24px 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 34px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .mark { width: 44px; height: 44px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; }
.footer-brand .mark img { width: 34px; height: 34px; object-fit: contain; }
.footer-brand .name { font-family: var(--head-font); font-weight: 700; font-size: 17px; color: #fff; }
.footer-motto { font-size: 14px; line-height: 1.6; color: #a9b3a5; max-width: 34ch; font-style: italic; }
.footer-heading { font-family: var(--head-font); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: #8fa08b; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-links button { font-size: 15px; color: #dfe6dc; text-align: start; }
.footer-links button:hover { color: #fff; }
.footer-address { font-size: 14.5px; line-height: 1.7; color: #c3ccbf; white-space: pre-line; }
.footer-bar { border-top: 1px solid #4d5a4e; }
.footer-bar .inner { max-width: 1200px; margin: 0 auto; padding: 18px 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #8fa08b; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px) {
  .header-inner { justify-content: center; }
  .section { padding: 40px 20px; }
  .grid-2 { gap: 28px; }
}
