/* ============================================
   public/css/public.css - Public Site Styles
   ============================================ */

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1e17a9;
  --primary-light: #6060c2;
  --primary-dark: #544988;
  --secondary: #e66a22;
  --accent: #f37f12;
  --success: #036901;
  --danger: #ff1900;
  --text-dark: #2c3750;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 6px 30px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Trebuchet MS",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--bg-white);
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER / NAVBAR ===== */
.site-header {
  background: var(--text-dark) !important;
  color: white;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 24px;
  font-weight: 700;
}

.logo i {
  font-size: 28px;
  color: var(--accent);
}

.logo span {
  color: var(--accent);
}

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

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: white;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

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

.nav-links a.active {
  color: white;
}

.nav-links .btn-nav {
  background: var(--accent);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.nav-links .btn-nav:hover {
  background: #e67e22;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.nav-links .btn-nav::after {
  display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--accent);
}

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

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary:hover {
  background: #e67e22;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.btn-secondary {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  color: var(--danger);
  border: 2px solid white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* ===== SECTION ===== */
.section {
  padding: 60px 0;
}

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

.section-title h2 {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title p {
  color: var(--text-light);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== FEATURES / SERVICES GRID ===== */
.features-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card,
.service-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid #f0f0f0;
}

.feature-card:hover,
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.feature-card i,
.service-card i {
  color: var(--primary);
  /* margin-bottom: 16px; */
  /* display: block; */
}

.feature-card h3,
.service-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.feature-card p,
.service-card p {
  color: var(--text-light);
  font-size: 15px;
}

.service-card .service-details {
  text-align: left;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.service-card .service-details li {
  padding: 4px 0;
  font-size: 14px;
  color: var(--text-dark);
}

.service-card .service-details li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  margin-right: 8px;
}

.service-card .btn-service {
  margin-top: 12px;
  display: inline-block;
  padding: 10px 24px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.service-card .btn-service:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* ===== ABOUT PAGE ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.about-content h2 {
  color: var(--primary);
  font-size: 32px;
  margin-bottom: 16px;
}

.about-content p {
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 16px;
}

.about-values {
  list-style: none;
  padding: 0;
}

.about-values li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 16px;
}

.about-values li i {
  color: var(--success);
  font-size: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-item {
  background: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
}

.stat-item .number {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-item .label {
  color: var(--text-light);
  font-size: 14px;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h2 {
  color: var(--primary);
  font-size: 28px;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.contact-item i {
  font-size: 24px;
  color: var(--primary);
  width: 40px;
  text-align: center;
  margin-top: 4px;
}

.contact-item strong {
  display: block;
  color: var(--text-dark);
}

.contact-item span {
  color: var(--text-light);
}

.contact-hours {
  background: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius);
  margin-top: 20px;
}

.contact-hours h4 {
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-hours p {
  margin: 4px 0;
  font-size: 14px;
}

/* ===== APPLICATION FORM ===== */
.application-form {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.application-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.application-form .form-group {
  margin-bottom: 20px;
}

.application-form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.application-form label .required {
  color: var(--danger);
}

.application-form input,
.application-form select,
.application-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 14px;
  transition: var(--transition);
  font-family: inherit;
}

.application-form input:focus,
.application-form select:focus,
.application-form textarea:focus {
  border-color: var(--primary-light);
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.1);
}

.application-form textarea {
  resize: vertical;
  min-height: 100px;
}

.application-form .form-submit {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  text-align: center;
  padding: 80px 0;
}

.success-page .success-icon {
  font-size: 80px;
  color: var(--success);
  margin-bottom: 24px;
}

.success-page h1 {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 16px;
}

.success-page p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto 30px;
}

/* ===== LEGAL PAGES ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 8px;
}

.legal-content .last-updated {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 30px;
}

.legal-content h2 {
  color: var(--primary);
  font-size: 22px;
  margin: 30px 0 12px;
}

.legal-content p {
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.8;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content ul li {
  color: var(--text-light);
  margin-bottom: 8px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary-dark);
  color: white;
  padding: 60px 0 20px;
  margin-top: 60px;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer h4 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--accent);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer ul li {
  margin-bottom: 8px;
}

.site-footer ul a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: var(--transition);
}

.site-footer ul a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

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

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .application-form .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0;
    width: 100%;
    background: var(--primary-dark);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 20px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .btn-nav {
    width: 100%;
    text-align: center;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .features-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .application-form {
    padding: 24px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero {
    padding: 60px 0;
  }

  .section {
    padding: 40px 0;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-item i {
    margin-bottom: 8px;
  }

  .application-form .form-submit {
    flex-direction: column;
  }

  .application-form .form-submit button {
    width: 100%;
  }
}
