/* 
 * Secret Angels for Children
 * Main Stylesheet
 */

/* ---------- Base & Reset ---------- */
:root {
  --color-white: #FFFFFF;
  --color-blue: #0073FF;
  --color-blue-dark: #0055cc;
  --color-blue-light: #e6f2ff;
  --color-green: #00B386;
  --color-green-dark: #009670;
  --color-green-light: #e6fff9;
  --color-text: #222222;
  --color-text-light: #555555;
  --color-light-gray: #f8f9fa;
  --color-medium-gray: #e9ecef;
  --color-dark-gray: #6c757d;
  
  --font-base: 'Inter', system-ui, sans-serif;
  --container-max: 1080px;
  --transition-standard: 0.6s ease-out;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.07), 0 4px 6px rgba(0, 0, 0, 0.05);
  --border-radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-white);
  font-size: clamp(1rem, 3.5vw, 1.1rem);
}

@media (min-width: 481px) {
  body {
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  }
}

@media (min-width: 1025px) {
  body {
    font-size: 1.125rem;
  }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--color-blue);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--color-green);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--color-text);
}

@media (min-width: 481px) {
  h1 {
    font-size: clamp(2.2rem, 4vw, 2.8rem);
  }
}

@media (min-width: 1025px) {
  h1 {
    font-size: 3rem;
  }
}

p {
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

a:hover, a:focus {
  color: var(--color-blue-dark);
  text-decoration: none;
}

/* ---------- Layout & Containers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 481px) {
  .container {
    width: 90%;
    padding: 0 2rem;
  }
}

.section {
  padding: 4rem 0;
  position: relative;
}

.section:nth-child(even) {
  background-color: var(--color-light-gray);
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

@media (min-width: 1025px) {
  .section {
    padding: 6rem 0;
  }
  
  .section h2 {
    margin-bottom: 2rem;
  }
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-blue);
  color: white;
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Focus styles */
a:focus, button:focus, summary:focus {
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 48px;
  min-width: 120px;
  border: none;
  box-shadow: var(--box-shadow);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn:hover::before, 
.btn:focus::before {
  transform: translateX(0);
}

.btn-primary {
  background-color: var(--color-green);
  color: white;
  border: 2px solid var(--color-green);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--color-green-dark);
  border-color: var(--color-green-dark);
  text-decoration: none;
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--color-blue);
  color: white;
  border: 2px solid var(--color-blue);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--color-blue-dark);
  border-color: var(--color-blue-dark);
  text-decoration: none;
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-2px);
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 115, 255, 0.3), var(--box-shadow);
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:focus {
    transform: none;
  }
  
  .btn::before {
    transition: none;
  }
}

@media (max-width: 480px) {
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* ---------- Header & Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-blue-light) 0%, var(--color-white) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 70% 30%, rgba(0, 115, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 0;
}

.hero-content {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 2rem 0;
  width: 100%;
}

.hero-text {
  margin-top: 2rem;
  max-width: 600px;
  padding: 0 1rem;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  position: relative;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--color-blue);
}

.hero-text h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--color-green);
  margin: 1.5rem auto 0;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-text);
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
}

.hero-image {
  width: 90%;
  max-width: 450px;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
  transform: translateY(0);
  animation: float 6s ease-in-out infinite;
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image {
    animation: none;
  }
}

@media (min-width: 481px) {
  .hero-content {
    padding: 3rem 0;
  }
  
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
  
  .btn {
    margin-right: 1rem;
    margin-bottom: 0;
  }
}

@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    text-align: left;
    padding: 0;
    height: 100vh;
  }
  
  .hero-text {
    flex: 1;
    margin-right: 2rem;
    margin-top: 0;
    text-align: left;
    padding: 0;
  }
  
  .hero-text h1::after {
    margin: 1.5rem 0 0;
  }
  
  .hero-image {
    flex: 1;
    max-width: 50%;
  }
  
  .hero-buttons {
    justify-content: flex-start;
  }
}

@media (min-width: 1025px) {
  .hero-content {
    max-height: 90vh;
  }
  
  .hero-text {
    max-width: 550px;
  }
  
  .hero-text h1 {
    font-size: 3.2rem;
  }
  
  .hero-text p {
    font-size: 1.3rem;
  }
  
  .hero-image {
    max-width: 45%;
  }
}

/* ---------- How It Works ---------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  background-color: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-medium-gray);
}

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

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--color-blue);
}

.step-icon {
  margin-bottom: 1.5rem;
  background-color: var(--color-blue-light);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.step-icon svg {
  width: 40px;
  height: 40px;
}

.step h3 {
  margin-bottom: 1rem;
  color: var(--color-blue);
}

@media (prefers-reduced-motion: reduce) {
  .step:hover {
    transform: none;
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1025px) {
  .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* ---------- Testimonials ---------- */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3rem;
}

.testimonial {
  background-color: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  border: 1px solid var(--color-medium-gray);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -30px;
  left: 30px;
  font-size: 6rem;
  color: var(--color-blue);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.2;
}

blockquote {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  color: var(--color-text);
}

cite {
  font-style: normal;
  font-weight: 600;
  display: block;
  text-align: right;
  color: var(--color-blue);
  position: relative;
  padding-top: 1rem;
}

cite::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 2px;
  background-color: var(--color-green);
}

@media (min-width: 768px) {
  .testimonials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* ---------- CTA Banner ---------- */
#cta-banner {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
  color: white;
  text-align: center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

#cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-content .btn-primary {
  margin-top: 0.5rem;
  background-color: white;
  color: var(--color-blue);
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
}

.cta-content .btn-primary:hover, 
.cta-content .btn-primary:focus {
  background-color: var(--color-green);
  color: white;
}

/* ---------- FAQ ---------- */
.faq-items {
  margin-top: 3rem;
}

details {
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-medium-gray);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  overflow: hidden;
}

details:hover {
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-2px);
}

summary {
  padding: 1.25rem;
  cursor: pointer;
  position: relative;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  background-color: var(--color-white);
  color: var(--color-blue);
  transition: all 0.3s ease;
}

summary:hover {
  background-color: var(--color-blue-light);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '';
  width: 0.75rem;
  height: 0.75rem;
  border-right: 2px solid var(--color-blue);
  border-bottom: 2px solid var(--color-blue);
  transform: rotate(45deg);
  margin-left: auto;
  transition: transform 0.3s ease;
}

details[open] summary {
  border-bottom: 1px solid var(--color-medium-gray);
}

details[open] summary::after {
  transform: rotate(-135deg);
}

.faq-content {
  padding: 1.5rem;
  background-color: var(--color-white);
}

@media (prefers-reduced-motion: reduce) {
  details:hover {
    transform: none;
  }
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--color-light-gray);
  padding: 4rem 0;
  border-top: 1px solid var(--color-medium-gray);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-logo h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-blue);
  position: relative;
  display: inline-block;
}

.footer-logo h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-green);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--color-text);
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a:hover, 
.footer-links a:focus {
  color: var(--color-blue);
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-green);
  transition: width 0.3s ease;
}

.footer-links a:hover::after,
.footer-links a:focus::after {
  width: 100%;
}

.footer-legal {
  font-size: 0.875rem;
  color: var(--color-dark-gray);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .footer-logo {
    flex: 1;
  }
  
  .footer-links {
    flex: 1;
    justify-content: center;
  }
  
  .footer-legal {
    flex: 1;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-links a::after {
    transition: none;
  }
}

/* ---------- Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-standard), transform var(--transition-standard);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    transition: none;
    opacity: 1;
    transform: none;
  }
  
  html {
    scroll-behavior: auto;
  }
}
