/* ── St. Hilda's Diocesan High School — Custom Styles ── */

:root {
  --purple:       #4a1462;
  --purple-mid:   #6b2d8a;
  --purple-light: #9b59b6;
  --purple-bg:    rgba(74, 20, 98, 0.07);
  --gold:         #c9a84c;
  --gold-light:   #e8c96a;
  --white:        #ffffff;
  --off-white:    #f9f7fc;
  --ink:          #1a0a24;
  --ink-mid:      #4a3558;
  --ink-muted:    #7a6888;
  --line:         rgba(74, 20, 98, 0.12);
  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --shadow-sm:    0 2px 12px rgba(74,20,98,.08);
  --shadow-md:    0 8px 32px rgba(74,20,98,.12);
  --shadow-lg:    0 20px 60px rgba(74,20,98,.16);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  margin: 0;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

h1 { font-weight: 900; }
h2 { font-weight: 800; }
h3 { font-weight: 700; }
h4, h5 { font-weight: 700; }

p { line-height: 1.7; margin: 0; }

img { max-width: 100%; display: block; }

a { text-decoration: none; }

/* ── Navbar ── */
.sh-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.sh-nav.scrolled { box-shadow: var(--shadow-md); }

.sh-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.sh-nav-brand-crest {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gold);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  flex-shrink: 0;
}
.sh-nav-brand-text { line-height: 1.2; }
.sh-nav-brand-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--purple);
}
.sh-nav-brand-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-muted);
}

.sh-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sh-nav-links a {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-mid);
  transition: background .15s, color .15s;
}
.sh-nav-links a:hover { background: var(--purple-bg); color: var(--purple); }
.sh-nav-links a.active { color: var(--purple); }

.sh-nav-cta {
  background: var(--purple) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.sh-nav-cta:hover { background: var(--purple-mid) !important; }

.sh-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--purple);
}

/* ── Hero ── */
.sh-hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--purple) 0%, #2a0840 55%, #1a0530 100%);
  overflow: hidden;
}
.sh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(201,168,76,.15), transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(155,89,182,.2), transparent 55%);
}
.sh-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  mix-blend-mode: luminosity;
}
.sh-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 120px 60px 80px;
}
.sh-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,.18);
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold-light);
  margin-bottom: 24px;
}
.sh-hero h1 {
  font-size: clamp(36px, 5.5vw, 68px);
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 800;
}
.sh-hero h1 span { color: var(--gold-light); }
.sh-hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.65;
}
.sh-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--purple) !important;
  font-weight: 800;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background .18s, transform .15s, box-shadow .18s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white) !important;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.4);
  cursor: pointer;
  transition: border-color .18s, background .18s;
  text-decoration: none;
}
.btn-outline:hover {
  border-color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.08);
}

.sh-hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.5);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  z-index: 2;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ── Stats bar ── */
.sh-stats {
  background: var(--purple);
  padding: 32px 60px;
}
.sh-stats-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.sh-stat-num {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}
.sh-stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.6);
  margin-top: 6px;
}

/* ── Section wrapper ── */
.sh-section { padding: 100px 60px; }
.sh-section-inner { max-width: 1200px; margin: 0 auto; }

.sh-section-kicker {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--purple-light);
  margin-bottom: 12px;
}
.sh-section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--ink);
  margin-bottom: 16px;
}
.sh-section-title span { color: var(--purple); }
.sh-section-lead {
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── About ── */
.sh-about { background: var(--off-white); }
.sh-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.sh-about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--purple-bg), rgba(201,168,76,.1));
}
.sh-about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sh-about-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--purple-light);
}
.sh-about-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--purple);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
}
.sh-about-badge strong {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 22px;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 2px;
}
.sh-values { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.sh-value-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.sh-value-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--purple-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--purple);
}
.sh-value-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.sh-value-text span {
  font-size: 13px;
  color: var(--ink-muted);
}

/* ── Programs ── */
.sh-programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.sh-program-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.sh-program-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  opacity: 0;
  transition: opacity .2s;
}
.sh-program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(74,20,98,.2);
}
.sh-program-card:hover::before { opacity: 1; }
.sh-program-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--purple-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  margin-bottom: 20px;
}
.sh-program-card h3 {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 10px;
}
.sh-program-card p {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ── Gallery ── */
.sh-gallery { background: var(--off-white); }
.sh-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 16px;
  margin-top: 48px;
}
.sh-gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--purple-bg);
  aspect-ratio: 4/3;
  position: relative;
}
.sh-gallery-item:first-child {
  grid-column: span 2;
  aspect-ratio: 16/9;
}
.sh-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.sh-gallery-item:hover img { transform: scale(1.04); }
.sh-gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--purple-light);
  font-size: 12px;
}

/* ── Testimonials ── */
.sh-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.sh-testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.sh-testimonial-card::before {
  content: '\201C';
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 72px;
  color: var(--purple-bg);
  position: absolute;
  top: 16px; left: 24px;
  line-height: 1;
}
.sh-testimonial-text {
  font-size: 14.5px;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 24px;
  margin-top: 20px;
}
.sh-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sh-testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  color: var(--gold-light);
  font-weight: 700;
  flex-shrink: 0;
}
.sh-testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.sh-testimonial-role {
  font-size: 12px;
  color: var(--ink-muted);
}

/* ── CTA banner ── */
.sh-cta {
  background: linear-gradient(135deg, var(--purple) 0%, #2a0840 100%);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sh-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(201,168,76,.1), transparent 65%);
}
.sh-cta-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.sh-cta h2 { font-size: clamp(28px, 3.5vw, 44px); color: var(--white); margin-bottom: 16px; }
.sh-cta h2 span { color: var(--gold-light); }
.sh-cta p { font-size: 16px; color: rgba(255,255,255,.72); margin-bottom: 36px; }
.sh-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Contact ── */
.sh-contact { background: var(--off-white); }
.sh-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.sh-contact-info { display: flex; flex-direction: column; gap: 24px; }
.sh-contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.sh-contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  flex-shrink: 0;
}
.sh-contact-item-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.sh-contact-item-value {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.sh-contact-item-value a { color: var(--purple); }
.sh-contact-item-value a:hover { text-decoration: underline; }

.sh-contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.sh-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sh-form-group { margin-bottom: 18px; }
.sh-form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-mid);
  margin-bottom: 6px;
}
.sh-form-group input,
.sh-form-group select,
.sh-form-group textarea {
  width: 100%;
  border: 1.5px solid rgba(74,20,98,.15);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.sh-form-group input:focus,
.sh-form-group select:focus,
.sh-form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(74,20,98,.08);
}
.sh-form-group textarea { resize: vertical; min-height: 110px; }
.sh-form-submit {
  width: 100%;
  background: var(--purple);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .18s, transform .15s;
}
.sh-form-submit:hover { background: var(--purple-mid); transform: translateY(-1px); }

/* ── Footer ── */
.sh-footer {
  background: var(--ink);
  color: rgba(255,255,255,.65);
  padding: 60px 60px 32px;
}
.sh-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 48px;
}
.sh-footer-brand-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.sh-footer-brand-tag {
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.sh-footer-desc { font-size: 13px; line-height: 1.7; margin-bottom: 20px; }
.sh-footer-social { display: flex; gap: 10px; }
.sh-footer-social a {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  transition: background .15s, color .15s;
  font-size: 15px;
}
.sh-footer-social a:hover { background: var(--purple); color: var(--white); }

.sh-footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  margin-bottom: 16px;
}
.sh-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sh-footer-links a { font-size: 13.5px; color: rgba(255,255,255,.6); transition: color .15s; }
.sh-footer-links a:hover { color: var(--gold-light); }

.sh-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
}
.sh-footer-bottom span { color: var(--gold); }

/* ── Mobile offcanvas ── */
.sh-offcanvas .uk-offcanvas-bar {
  background: var(--purple);
  padding: 32px 24px;
}
.sh-offcanvas-links {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sh-offcanvas-links a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  transition: background .15s;
}
.sh-offcanvas-links a:hover { background: rgba(255,255,255,.1); color: var(--white); }

/* ── Life section ── */
.sh-life-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.sh-life-houses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .sh-nav { padding: 0 24px; }
  .sh-nav-links { display: none; }
  .sh-nav-toggle { display: block; }

  .sh-hero-content { padding: 120px 24px 60px; }
  .sh-hero-scroll { left: 24px; }
  .sh-section { padding: 64px 24px; }
  .sh-stats { padding: 32px 24px; }
  .sh-about-grid { grid-template-columns: 1fr; gap: 36px; }
  .sh-life-grid { grid-template-columns: 1fr; gap: 36px; }
  .sh-life-houses { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sh-gallery-grid { grid-template-columns: 1fr 1fr; }
  .sh-gallery-item:first-child { grid-column: span 2; }
  .sh-contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .sh-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .sh-cta { padding: 60px 24px; }
}

@media (max-width: 640px) {
  .sh-gallery-grid { grid-template-columns: 1fr; }
  .sh-gallery-item:first-child { grid-column: span 1; aspect-ratio: 4/3; }
  .sh-footer-grid { grid-template-columns: 1fr; }
  .sh-footer { padding: 48px 24px 24px; }
  .sh-form-row { grid-template-columns: 1fr; }
}

/* ── Fade-in animation ── */
.sh-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.sh-fade.visible {
  opacity: 1;
  transform: translateY(0);
}
.sh-fade-delay-1 { transition-delay: .1s; }
.sh-fade-delay-2 { transition-delay: .2s; }
.sh-fade-delay-3 { transition-delay: .3s; }
.sh-fade-delay-4 { transition-delay: .4s; }
