/* ============================================
   Sukriti World School - Static Site Stylesheet
   Mobile-first responsive design
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #1a3a6b;
  --color-primary-light: #2a5298;
  --color-secondary: #e8a838;
  --color-accent: #d4382c;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-bg-dark: #1a2a3a;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-white: #ffffff;
  --color-border: #e0e0e0;
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Georgia', serif;
  --max-width: 1200px;
  --header-height: 80px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-bg);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-secondary);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1em;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 3rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-text-white);
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-secondary);
}

.text-center {
  text-align: center;
}

/* --- Placeholder Images --- */
.placeholder-img {
  background: linear-gradient(135deg, #e0e8f0, #c8d4e0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.875rem;
  font-style: italic;
  border: 1px dashed var(--color-border);
  min-height: 200px;
}

.placeholder-img--hero {
  min-height: 300px;
  font-size: 1.1rem;
}

.placeholder-img--gallery {
  min-height: 180px;
  aspect-ratio: 4/3;
}

.placeholder-img--small {
  min-height: 120px;
}

/* --- Top Bar --- */
.top-bar {
  background: var(--color-primary);
  color: var(--color-text-white);
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.top-bar a {
  color: var(--color-text-white);
}

.top-bar a:hover {
  color: var(--color-secondary);
}

.top-bar__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar__links {
  display: flex;
  gap: 1rem;
}

/* --- Header / Navigation --- */
.header {
  background: var(--color-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo__img {
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.logo__text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: bold;
  line-height: 1.2;
}

.logo__text small {
  display: block;
  font-size: 0.7rem;
  font-weight: normal;
  color: var(--color-text-light);
}

/* Mobile menu toggle */
.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-primary);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* Navigation */
.nav {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-bg);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.nav.active {
  display: block;
}

.nav__list {
  display: flex;
  flex-direction: column;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

/* Dropdown */
.nav__dropdown {
  display: none;
  background: var(--color-bg-alt);
  padding-left: 1rem;
}

.nav__item:hover .nav__dropdown,
.nav__item.open .nav__dropdown {
  display: block;
}

.nav__dropdown .nav__link {
  font-size: 0.9rem;
  padding: 0.5rem 1.5rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-text-white);
  padding: 4rem 0;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>') repeat;
  opacity: 0.5;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--color-text-white);
  font-size: 2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* --- Page Header (for inner pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-text-white);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  color: var(--color-text-white);
  margin-bottom: 0.5rem;
}

.breadcrumb {
  font-size: 0.9rem;
  opacity: 0.8;
}

.breadcrumb a {
  color: var(--color-text-white);
  opacity: 0.8;
}

.breadcrumb a:hover {
  opacity: 1;
}

/* --- Cards / Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background: var(--color-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.card__body {
  padding: 1.5rem;
}

.card__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card__date {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.card__text {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

/* --- Info Boxes --- */
.info-box {
  background: var(--color-bg);
  border-left: 4px solid var(--color-secondary);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-box h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

/* --- Table --- */
.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  background: var(--color-primary);
  color: var(--color-text-white);
  font-weight: 600;
}

tr:nth-child(even) {
  background: var(--color-bg-alt);
}

/* --- List Styles --- */
.styled-list {
  margin: 1rem 0;
}

.styled-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.styled-list li:last-child {
  border-bottom: none;
}

.styled-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: bold;
}

.numbered-list {
  margin: 1rem 0;
  counter-reset: item;
}

.numbered-list li {
  padding: 0.75rem 0 0.75rem 2.5rem;
  position: relative;
  border-bottom: 1px solid var(--color-border);
  counter-increment: item;
}

.numbered-list li:last-child {
  border-bottom: none;
}

.numbered-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--color-primary);
  color: var(--color-text-white);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.btn:hover {
  background: var(--color-primary-light);
  color: var(--color-text-white);
}

.btn--secondary {
  background: var(--color-secondary);
}

.btn--secondary:hover {
  background: #c99530;
}

/* --- Footer --- */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-white);
  padding: 3rem 0 1rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h3 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.footer a:hover {
  color: var(--color-secondary);
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__contact-item {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
}

.footer__contact-item strong {
  min-width: 50px;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer__social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: background var(--transition);
}

.footer__social a:hover {
  background: var(--color-secondary);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .container {
    padding: 0 2rem;
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    padding: 6rem 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .placeholder-img--hero {
    min-height: 400px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Desktop (1024px+) --- */
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    display: block;
    position: static;
    box-shadow: none;
    padding: 0;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
  }

  .nav__link {
    padding: 0.5rem 0.9rem;
  }

  .nav__item:hover .nav__dropdown {
    display: block;
  }

  .nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-bg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    padding: 0.5rem 0;
    z-index: 100;
  }

  .nav__dropdown .nav__link {
    padding: 0.5rem 1.25rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

/* --- Large Desktop (1200px+) --- */
@media (min-width: 1200px) {
  .container {
    padding: 0;
  }
}
