/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
  --primary-blue: #566FF2;
  --primary-green: #487A41;
  --bg-color: #FFFFFF;
  --bg-alt: #F8F9FA;
  --text-color: #1A1A1A;
  --text-light: #666666;
  --radius-lg: 16px;
  --radius-md: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --section-padding: clamp(64px, 10vw, 112px);
  --space-element: 24px;
  --space-group: 64px;
  --container-padding: 10%;
}

@media (max-width: 768px) {
  :root {
    --container-padding: 5%;
  }
}

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

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Layout Utilities */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Header */
header {
  background-color: var(--primary-blue);
  color: white;
  padding: 1rem var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  margin: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
}

.logo-link:hover {
  opacity: 0.8;
}

.logo {
  height: clamp(30px, 5vw, 40px);
  filter: brightness(0) invert(1);
}

/* Burger Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  position: relative;
}

.burger-icon {
  display: block;
  width: 25px;
  height: 2px;
  background-color: white;
  position: relative;
  transition: var(--transition);
}

.burger-icon::before, .burger-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: white;
  left: 0;
  transition: var(--transition);
}

.burger-icon::before { top: -8px; }
.burger-icon::after { top: 8px; }

/* Animation Burger -> X */
.menu-toggle.active .burger-icon {
  background-color: transparent;
}

.menu-toggle.active .burger-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .burger-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.8;
  transition: var(--transition);
  position: relative;
}

nav a:hover, nav a[aria-current="page"] {
  opacity: 1;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-green);
  transition: var(--transition);
}

nav a:hover::after, nav a[aria-current="page"]::after {
  width: 100%;
}

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

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%; /* Full width for better experience */
    height: 100vh;
    background-color: var(--primary-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  nav a {
    font-size: 1.8rem;
  }
}

/* Footer Premium */
footer {
  background-color: #1A1A1A;
  color: white;
  padding: 80px var(--container-padding) 40px;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 60px;
}

.footer-info h4 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: white;
}

.footer-info p {
  color: #AAA;
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--primary-green);
}

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

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #CCC;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

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

.footer-bottom a {
  color: #666;
  text-decoration: none;
  margin-left: 20px;
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: white;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-bottom a {
    margin: 0 10px;
  }
}

/* Typography */
.text-hero {
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}

.text-subhead {
  font-size: clamp(1rem, 4vw, 1.25rem);
  color: var(--text-light);
  max-width: 700px;
  margin-bottom: 2.5rem;
}

/* Sections */
section {
  padding: var(--section-padding) var(--container-padding);
}

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

/* Hero Specializations */
.hero {
  padding-top: clamp(80px, 12vw, 140px);
  padding-bottom: clamp(80px, 12vw, 140px);
}

/* Components */
.btn-primary {
  background-color: var(--primary-blue);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(86, 111, 242, 0.3);
}

.card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Accordion FAQ */
.faq-item {
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #eee;
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: white;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--bg-alt);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: white;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-light);
}

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--primary-blue);
  transition: var(--transition);
}

.faq-icon::before { width: 100%; height: 2px; top: 9px; left: 0; }
.faq-icon::after { width: 2px; height: 100%; top: 0; left: 9px; }

.faq-item.active .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-item.active .faq-answer { max-height: 200px; }

/* Form Styles */
form {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

form div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-weight: 700;
  color: var(--primary-blue);
}

input, textarea {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid #eee;
  background-color: var(--bg-alt);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(86, 111, 242, 0.1);
}

button[type="submit"] {
  align-self: flex-start;
}

/* Helper Classes */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 4rem; }
.py-4 { padding-top: 4rem; padding-bottom: 4rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

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

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
