/* 
   SMP Islam As-Salaam Premium Vanilla CSS Design System
   Color Palette: Forest Green, Gold, Cream, Charcoal
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Color Tokens */
  --primary: #133c2c;
  --primary-rgb: 19, 60, 44;
  --secondary: #c5a059;
  --secondary-dark: #a9833b;
  --accent: #40916c;
  --text-dark: #2d312e;
  --text-muted: #626864;
  --bg-light: #f4f7f5;
  --bg-white: #ffffff;
  
  /* Fonts */
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
  
  /* Spacing & Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

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

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

/* Typography Helpers */
.text-serif { font-family: var(--font-serif); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--secondary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(19, 60, 44, 0.2);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.2);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  transform: translateY(-2px);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

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

.section-title {
  margin-bottom: 48px;
  text-align: center;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Header & Navbar */
header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.5rem;
  font-family: var(--font-serif);
  font-weight: 700;
  border: 2px solid var(--secondary);
}

.logo-text h1 {
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.logo-text p {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links li.active a {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links li.active a::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(19, 60, 44, 0.9) 0%, rgba(27, 67, 50, 0.8) 100%), 
              url('../images/hero.jpg') no-repeat center center/cover;
  color: var(--bg-white);
  padding: 60px 0;
}

.hero-content {
  max-width: 650px;
}

.hero-tagline {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary);
  margin-bottom: 16px;
  display: inline-block;
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 4px;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--bg-white);
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 36px;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Features/Highlights */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  background-color: var(--bg-white);
  padding: 40px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border-top: 4px solid transparent;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--secondary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
}

/* About Snippet */
.about-snippet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-snippet-image {
  position: relative;
}

.about-snippet-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.about-snippet-image::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border-top: 4px solid var(--secondary);
  border-left: 4px solid var(--secondary);
  z-index: -1;
  border-top-left-radius: var(--radius-md);
}

.about-snippet-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-snippet-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

/* Stat Cards */
.stats-bar {
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat-card h4 {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 8px;
}

.stat-card p {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* Card General */
.card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 28px;
}

.card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
footer {
  background-color: #0b1a13;
  color: rgba(255,255,255,0.7);
  padding: 80px 0 30px 0;
  border-top: 4px solid var(--secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-logo h3 {
  color: var(--bg-white);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.footer-logo p {
  margin-bottom: 24px;
}

.footer-widget h4 {
  color: var(--bg-white);
  font-size: 1.2rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 6px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--secondary);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid #ced4da;
  background-color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(19, 60, 44, 0.15);
}

/* Responsive Table */
table.table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

table.table th, table.table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid #eef1ef;
}

table.table th {
  background-color: var(--primary);
  color: var(--bg-white);
  font-family: var(--font-sans);
  font-weight: 600;
}

table.table tr:last-child td {
  border-bottom: none;
}

/* Map Container */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.8rem; }
  .about-snippet { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 768px) {
  .navbar { height: 75px; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.1rem; }
  .hero-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .grid-2 { grid-template-columns: 1fr; }
}
