
/* ==========================================
   ST THERESE LITTLE FLOWER SCHOOL TIMAU
   OFFICIAL WEBSITE DESIGN
   RED - WHITE - GREY
========================================== */

:root {
  --red: #a71930;
  --red-dark: #761326;
  --red-soft: #f9ecef;
  --grey-dark: #30343a;
  --grey-medium: #59616a;
  --grey-light: #e5e7ea;
  --grey-bg: #f5f6f7;
  --white: #ffffff;
  --shadow: 0 12px 32px rgba(35,40,45,.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--grey-dark);
  line-height: 1.65;
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}

/* TOP CONTACT BAR */

.topbar {
  background: var(--grey-dark);
  color: white;
  font-size: .72rem;
  padding: 7px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.topbar-inner div {
  display: flex;
  gap: 22px;
}

/* SCHOOL LOGO AND BRAND */

.site-header {
  height: 78px;
  background: white;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 18px rgba(20,20,20,.07);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.school-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.school-logo {
  height: 49px;
  width: 49px;
  border: 2px solid var(--red);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--red);
  background: var(--red-dark);
  font-size: 1.8rem;
}

.school-logo small {
  position: absolute;
  bottom: 1px;
  font-size: .48rem;
  font-weight: 900;
  background: white;
  padding: 0 3px;
}

.brand-words strong,
.brand-words small {
  display: block;
  line-height: 1.2;
}

.brand-words strong {
  font-size: 1rem;
  letter-spacing: .09em;
  color: var(--red-dark);
}

.brand-words small {
  font-size: .58rem;
  letter-spacing: .11em;
  color: var(--grey-medium);
  margin-top: 5px;
}

/* NAVIGATION */

.main-nav {
  display: flex;
  align-items: center;
  gap: 13px;
}

.main-nav a {
  font-size: .69rem;
  font-weight: 800;
  color: #4e555d;
  white-space: nowrap;
  transition: color .2s;
}

.main-nav a:hover,
.main-nav a.current {
  color: var(--red);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--red);
  color: wheat;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 1.3rem;
  cursor: pointer;
}

/* HOMEPAGE HERO */

.hero {
  min-height: 590px;
  height: min(690px, 78vw);
  position: relative;
  overflow: hidden;
  background: #333;
  color: wheat
}

.hero-slideshow,
.hero-photo,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-photo {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s ease, transform 6s ease;
  height: 700px;
}

.hero-photo.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(25,25,27,.86),
    rgba(40,30,32,.61) 55%,
    rgba(40,30,32,.2)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 590px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 30px;
}

.eyebrow {
  display: block;
  color: var(--red);
  font-size: .68rem;
  letter-spacing: .17em;
  font-weight: 800;
  margin-bottom: 12px;
}

.eyebrow.light {
  color: #ffdce2;
}

.hero h1,
.page-hero h1 {
  font: 800 clamp(2.8rem,6vw,5.3rem)/1.08 "Playfair Display", Georgia, serif;
  margin-bottom: 18px;
}

.hero h1 em,
.page-hero h1 em {
  font-style: normal;
  color: #f1b9c2;
}

.hero-content > p {
  max-width: 590px;
  color:whitesmoke;
  font-size: 1rem;
  margin-bottom: 25px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-caption {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 10px;
  background: rgba(80,10,24,.78);
  font-size: .67rem;
  letter-spacing: .18em;
  font-weight: 800;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 19px;
  border-radius: 5px;
  font-size: .78rem;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 20px rgba(0,0,0,.16);
}

.btn-red {
  background: var(--red);
  color: white;
}

.btn-red:hover {
  background: var(--red-dark);
}

.btn-light-outline {
  border-color: white;
  color: white;
  background: transparent;
}

.btn-green {
  background: #17864c;
  color: white;
}

/* EIGHT PHOTOGRAPH MOVING STRIP */

.photo-strip-section {
  padding: 38px 0 15px;
  overflow: hidden;
}

.strip-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.strip-heading h2 {
  font-size: 1.9rem;
}

.strip-heading > p {
  font-size: .75rem;
  color: var(--grey-medium);
}

.photo-marquee {
  overflow: hidden;
  width: 100%;
  padding: 4px 0 16px;
}

.photo-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: flow-left 48s linear infinite;
}

.photo-track:hover {
  animation-play-state: paused;
}

.photo-track img {
  width: 230px;
  height: 145px;
  object-fit: cover;
  border-radius: 9px;
  box-shadow: var(--shadow);
  border: 3px solid white;
}

@keyframes flow-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* GENERAL SECTIONS */

.section {
  padding: 72px 0;
}

.compact-section {
  padding: 48px 0;
}

.soft-section {
  background: var(--grey-bg);
}

.section-heading {
  text-align: center;
  max-width: 770px;
  margin: 0 auto 35px;
}

.section-heading h2,
h2 {
  font: 700 clamp(2rem,4vw,3rem)/1.16 "Playfair Display", Georgia, serif;
  color: var(--grey-dark);
  margin-bottom: 13px;
}

.section-heading h2 em,
h2 em {
  color: var(--red);
  font-style: normal;
}

.section-heading p,
.narrow > p {
  color: var(--grey-medium);
  font-size: .9rem;
}

/* INFORMATION BOXES */

.card-grid {
  display: grid;
  gap: 17px;
}

.card-grid.three {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.card-grid.four {
  grid-template-columns: repeat(4,minmax(0,1fr));
}

.info-card,
.small-card {
  background: white;
  border: 1px solid var(--grey-light);
  border-radius: 10px;
  padding: 23px;
  box-shadow: 0 5px 18px rgba(30,35,40,.035);
  transition: transform .25s, box-shadow .25s;
}

.info-card:hover,
.small-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.info-card h3 {
  font: 700 1.3rem "Playfair Display", Georgia, serif;
  color: var(--grey-dark);
  margin: 8px 0;
}

.info-card p,
.small-card p {
  font-size: .83rem;
  color: var(--grey-medium);
}

.red-card {
  background: var(--red-soft);
  border-color: #f0d8dd;
}

.grey-card {
  background: #f0f1f2;
}

.white-card {
  background: white;
  border-top: 3px solid var(--red);
}

.card-kicker {
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .16em;
  color: var(--red);
}

.card-icon {
  font-size: 1.6rem;
  color: var(--red);
  margin-top: 10px;
}

.small-card b {
  display: block;
  color: var(--red-dark);
  font-size: .88rem;
  margin-bottom: 8px;
}

/* RED INFORMATION BANNER */

.red-band {
  padding: 57px 0;
  background: linear-gradient(110deg,#761326,#b11d37);
  color: white;
}

.red-band h2 {
  color: white;
  margin-bottom: 23px;
}

.red-band h2 em {
  color: #ffd1d9;
}

.band-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.band-inner p {
  color: #f5e8eb;
  font-size: .9rem;
}

/* ADMISSIONS BANNER */

.admission-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  background: #f8edef;
  border: 1px solid #f0dce0;
  border-radius: 12px;
  padding: 27px 30px;
}

.admission-callout h2 {
  font-size: 2.1rem;
}

.admission-callout p {
  color: var(--grey-medium);
  font-size: .85rem;
}

/* OTHER PAGE HEADERS */

.page-hero {
  padding: 72px 0;
  background: linear-gradient(110deg,#33373c,#777d83);
  color: white;
}

.page-hero h1 {
  font-size: clamp(2.6rem,5vw,4.3rem);
  margin-bottom: 10px;
}

.page-hero h1 em {
  color: #ffc5ce;
}

.page-hero p {
  color: #f0f0f0;
}

/* ABOUT AND VALUES */

.narrow {
  max-width: 920px;
}

.narrow > p {
  margin: 14px 0;
}

.top-gap {
  margin-top: 27px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
}

.value-grid span {
  padding: 12px 15px;
  border: 1px solid var(--grey-light);
  border-radius: 7px;
  background: white;
  font-weight: 800;
  font-size: .8rem;
  text-align: center;
}

/* CURRICULUM COMPETENCIES */

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-list span {
  padding: 12px 15px;
  border: 1px solid #ffffff5c;
  border-radius: 7px;
  background: #ffffff16;
  color: white;
  font-weight: 800;
  font-size: .8rem;
}

/* FAITH PAGE */

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}

.split-layout p {
  color: var(--grey-medium);
  margin-bottom: 12px;
  font-size: .9rem;
}

.quote-section {
  background: #f7edef;
  text-align: center;
  padding: 55px 0;
  color: var(--red-dark);
}

.quote-section blockquote {
  font: 700 clamp(1.8rem,4vw,2.6rem) "Playfair Display", Georgia, serif;
}

.quote-section small {
  color: var(--grey-medium);
}

/* HEAD TEACHER */

.leader-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 55px;
  align-items: center;
}

.leader-photo {
  height: 410px;
  background: #f0f1f2;
  border-radius: 12px;
  overflow: hidden;
}

.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-layout h3 {
  font: 700 1.55rem "Playfair Display", Georgia, serif;
  color: var(--red);
  margin: 15px 0 3px;
}

.role {
  display: block;
  font-size: .76rem;
  color: var(--grey-medium);
  margin-bottom: 16px;
}

.leader-layout p {
  color: var(--grey-medium);
  font-size: .88rem;
  margin-bottom: 12px;
}

/* PHOTO GALLERY */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 15px;
}

.gallery-grid figure {
  border: 1px solid var(--grey-light);
  border-radius: 9px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.gallery-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform .4s;
}

.gallery-grid figure:hover img {
  transform: scale(1.04);
}

.gallery-grid figcaption {
  padding: 10px 12px;
  font-size: .75rem;
  font-weight: 800;
  color: var(--grey-medium);
}

/* ADMISSIONS VACANCIES */

.vacancy-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 12px;
}

.vacancy-grid article {
  padding: 17px 10px;
  text-align: center;
  background: var(--red-soft);
  border: 1px solid #f0dce0;
  border-radius: 9px;
}

.vacancy-grid small,
.vacancy-grid span {
  display: block;
  color: var(--grey-medium);
  font-size: .68rem;
}

.vacancy-grid strong {
  display: block;
  color: var(--red);
  font: 800 2.35rem "Playfair Display", Georgia, serif;
}

.notice {
  margin-top: 14px;
  padding: 13px 16px;
  background: #f0f1f2;
  border-left: 4px solid var(--red);
  font-size: .82rem;
  color: var(--grey-medium);
  border-radius: 4px;
}

.info-card ul {
  padding-left: 18px;
  color: var(--grey-medium);
  font-size: .83rem;
}

.red-text {
  color: var(--red);
}

.text-link {
  display: block;
  color: var(--red);
  font-size: .8rem;
  font-weight: 800;
  margin-top: 10px;
}

/* WHATSAPP FORMS */

.form-panel {
  max-width: 720px;
  margin: 30px auto 0;
  padding: 26px;
  border: 1px solid var(--grey-light);
  border-radius: 11px;
  background: white;
  box-shadow: var(--shadow);
}

.form-panel h2 {
  font-size: 2rem;
}

.whatsapp-form label {
  display: block;
  font-size: .76rem;
  font-weight: 800;
  color: var(--grey-medium);
  margin: 12px 0;
}

.whatsapp-form input,
.whatsapp-form select,
.whatsapp-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid #d9dde1;
  border-radius: 6px;
  font: inherit;
  font-size: .85rem;
  background: white;
}

.whatsapp-form input:focus,
.whatsapp-form select:focus,
.whatsapp-form textarea:focus {
  outline: 2px solid #e9aab5;
  border-color: var(--red);
}

.whatsapp-form small {
  display: block;
  text-align: center;
  color: var(--grey-medium);
  font-size: .68rem;
  margin-top: 10px;
}

.note {
  font-size: .75rem;
  color: var(--grey-medium);
  margin-top: 20px;
}

/* CONTACT PAGE */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 55px;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 16px;
  margin: 25px 0;
}

.contact-details p {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: .85rem;
  color: var(--grey-medium);
  overflow-wrap: anywhere;
}

.contact-details span {
  height: 35px;
  width: 35px;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  border-radius: 50%;
  color: var(--red);
}

/* FOOTER */

.site-footer {
  background: #292d32;
  color: #dfe1e3;
}

.footer-top {
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand .school-logo {
  background: white;
}

.footer-brand .brand-words strong {
  color: white;
}

.footer-brand .brand-words small {
  color: #c3c6c9;
}

.footer-top > p,
.footer-links {
  font-size: .77rem;
  color: #c4c8cc;
}

.footer-links {
  display: flex;
  gap: 17px;
}

.footer-bottom {
  border-top: 1px solid #ffffff20;
  padding: 12px 0;
  color: #aeb4ba;
  font-size: .68rem;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* FLOATING WHATSAPP */

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  background: #159b58;
  color: white;
  padding: 11px 16px;
  border-radius: 30px;
  font-size: .76rem;
  font-weight: 800;
  box-shadow: 0 8px 25px rgba(0,0,0,.2);
  transition: transform .2s;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
}

/* BACK TO TOP */

.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 76px;
  z-index: 55;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-size: 1.2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  cursor: pointer;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* TABLET RESPONSIVENESS */

@media(max-width:1100px) {
  .main-nav {
    gap: 8px;
  }

  .main-nav a {
    font-size: .62rem;
  }
}

@media(max-width:900px) {

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 22px 18px;
    box-shadow: 0 12px 20px rgba(0,0,0,.12);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    font-size: .82rem;
    padding: 10px 3px;
    border-bottom: 1px solid var(--grey-light);
  }

  .card-grid.four,
  .gallery-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .value-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

/* MOBILE RESPONSIVENESS */

@media(max-width:650px) {

  .container {
    width: calc(100% - 32px);
  }

  .topbar-inner {
    justify-content: center;
  }

  .topbar-inner > div {
    display: none;
  }

  .site-header {
    height: 68px;
  }

  .main-nav {
    top: 68px;
  }

  .school-logo {
    height: 42px;
    width: 42px;
  }

  .brand-words strong {
    font-size: .88rem;
  }

  .brand-words small {
    font-size: .51rem;
  }

  .hero {
    height: 76vh;
    min-height: 560px;
  }

  .hero-content {
    min-height: 560px;
  }

  .hero h1 {
    font-size: clamp(2.55rem,11vw,3.7rem);
  }

  .hero-content > p {
    font-size: .88rem;
  }

  .section {
    padding: 55px 0;
  }

  .compact-section {
    padding: 35px 0;
  }

  .card-grid.three,
  .card-grid.four {
    grid-template-columns: 1fr;
  }

  .band-inner,
  .split-layout,
  .leader-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .red-band {
    padding: 43px 0;
  }

  .page-hero {
    padding: 55px 0;
  }

  .page-hero h1 {
    font-size: 2.7rem;
  }

  .strip-heading {
    display: block;
  }

  .strip-heading > p {
    margin-top: 5px;
  }

  .photo-track img {
    width: 190px;
    height: 125px;
  }

  .admission-callout {
    padding: 22px;
    align-items: flex-start;
    flex-direction: column;
  }

  .admission-callout h2 {
    font-size: 1.8rem;
  }

  .gallery-grid {
    gap: 9px;
  }

  .gallery-grid img {
    height: 140px;
  }

  .vacancy-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .vacancy-grid article:last-child {
    grid-column: span 2;
  }

  .leader-photo {
    height: 320px;
  }

  .form-panel {
    padding: 20px 16px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom .container {
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .whatsapp-float {
    right: 10px;
    bottom: 12px;
    padding: 9px 12px;
  }
}

/* ACCESSIBILITY: REDUCE MOTION */

@media(prefers-reduced-motion:reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
