/* AFA Sant Cristòfor - Static CSS */

:root {
  --primary: hsl(142, 55%, 35%);
  --primary-light: hsl(142, 55%, 95%);
  --background: hsl(0, 0%, 99%);
  --foreground: hsl(150, 10%, 15%);
  --muted: hsl(150, 5%, 45%);
  --secondary: hsl(145, 30%, 96%);
  --border: hsl(150, 15%, 90%);
  --card: hsl(0, 0%, 100%);
  
  /* Social colors */
  --whatsapp: hsl(142, 70%, 45%);
  --instagram: hsl(340, 75%, 55%);
  --email: hsl(25, 85%, 55%);
  
  --radius: 0.75rem;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Poppins', system-ui, sans-serif;
}

.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero {
  padding: 2rem 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  animation: fadeIn 0.5s ease-out;
}

.logo {
  width: 7rem;
  height: 7rem;
  object-fit: contain;
  flex-shrink: 0;
}

.hero-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.description {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 32rem;
}

/* Contact Section */
.contact-section {
  padding: 2rem 0;
  background-color: var(--secondary);
}

.contact-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.social-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.social-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.social-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.social-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.social-card p {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Social card variants */
.social-card.whatsapp:hover {
  border-color: hsla(142, 70%, 45%, 0.5);
  background-color: hsla(142, 70%, 45%, 0.05);
}
.social-card.whatsapp .social-icon {
  background-color: hsla(142, 70%, 45%, 0.1);
  color: var(--whatsapp);
}

.social-card.instagram:hover {
  border-color: hsla(340, 75%, 55%, 0.5);
  background-color: hsla(340, 75%, 55%, 0.05);
}
.social-card.instagram .social-icon {
  background-color: hsla(340, 75%, 55%, 0.1);
  color: var(--instagram);
}

.social-card.email:hover {
  border-color: hsla(25, 85%, 55%, 0.5);
  background-color: hsla(25, 85%, 55%, 0.05);
}
.social-card.email .social-icon {
  background-color: hsla(25, 85%, 55%, 0.1);
  color: var(--email);
}

/* Info Section */
.info-section {
  padding: 2rem 0;
}

.info-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background-color: var(--secondary);
  border-radius: var(--radius);
}

.info-card.clickable {
  background-color: var(--card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.info-card.clickable:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: hsla(142, 55%, 35%, 0.3);
  transform: translateY(-2px);
}

.info-card.clickable:hover .arrow-icon {
  color: var(--primary);
}

/* Disabled state - remove "disabled" class from HTML to re-enable */
.info-card.clickable.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.info-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: hsla(142, 55%, 35%, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.info-card p {
  font-size: 0.75rem;
  color: var(--muted);
}

.info-text {
  flex: 1;
  min-width: 0;
}

.arrow-icon {
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.3s ease;
}

/* School Section */
.school-section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.school-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.school-content p {
  font-size: 0.875rem;
  color: var(--muted);
}

.school-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.school-button:hover {
  background-color: hsl(142, 55%, 30%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background-color: hsla(150, 10%, 96%, 0.3);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-content p {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

.footer-content a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}

.footer-content a:hover {
  text-decoration: underline;
}

/* Services Section */
.services-section {
  padding: 2rem 0;
}

.services-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

a.service-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.service-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card--extraescolars .service-card-icon {
  background-color: hsla(142, 55%, 35%, 0.12);
  color: var(--primary);
}

a.service-card--extraescolars:hover {
  border-color: hsla(142, 55%, 35%, 0.35);
}

a.service-card--menjador:hover {
  border-color: hsla(30, 85%, 55%, 0.35);
}

.service-card--menjador .service-card-footer {
  color: hsl(30, 85%, 50%);
}

.service-card--menjador .service-card-icon {
  background-color: hsla(30, 85%, 55%, 0.12);
  color: hsl(30, 85%, 50%);
}

.service-card--llibres .service-card-icon {
  background-color: hsla(215, 70%, 55%, 0.12);
  color: hsl(215, 70%, 48%);
}

a.service-card--llibres:hover {
  border-color: hsla(215, 70%, 55%, 0.35);
}

.service-card--llibres .service-card-footer {
  color: hsl(215, 70%, 48%);
}

.service-card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card-body p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.service-card-footer {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 500;
}

.service-card--extraescolars .service-card-footer {
  color: var(--primary);
}

.service-card--menjador .service-card-footer {
  color: hsl(30, 85%, 50%);
}

.service-card-footer--apps {
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Àbaco app card (home page, preview only) */
@keyframes floatIcon {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

.abaco-section {
  padding: 2rem 0;
}

.abaco-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to right, hsl(142, 50%, 36%) 0%, hsl(158, 52%, 22%) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.abaco-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, hsla(142, 60%, 55%, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

.abaco-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.abaco-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(142, 80%, 75%);
  background-color: hsla(142, 60%, 55%, 0.2);
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  border: 1px solid hsla(142, 60%, 55%, 0.3);
}

.abaco-title {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin: 0;
}

.abaco-desc {
  font-size: 0.8125rem;
  color: hsla(0, 0%, 100%, 0.75);
  line-height: 1.6;
}

.abaco-desc strong {
  color: white;
}

.abaco-app-links {
  margin-top: 0.125rem;
}

.abaco-app-link--android,
.abaco-app-link--ios {
  background-color: hsla(0, 0%, 100%, 0.15) !important;
  color: white !important;
  border: 1px solid hsla(0, 0%, 100%, 0.25) !important;
  backdrop-filter: blur(4px);
}

.abaco-app-link--android:hover,
.abaco-app-link--ios:hover {
  background-color: hsla(0, 0%, 100%, 0.25) !important;
  box-shadow: none !important;
}

.abaco-card-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.abaco-home-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 22.5%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.15);
  animation: floatIcon 3.5s ease-in-out infinite;
  display: block;
}

/* ComoComen app card (menjador page) */
.como-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to right, hsl(28, 60%, 54%) 0%, hsl(15, 65%, 40%) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.como-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, hsla(35, 70%, 65%, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

.como-card-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.como-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 22.5%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.15);
  display: block;
}

.como-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.como-title {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin: 0;
}

.como-desc {
  font-size: 0.8125rem;
  color: hsla(0, 0%, 100%, 0.75);
  line-height: 1.6;
}

.como-app-links {
  margin-top: 0.125rem;
}

.como-app-links .app-link {
  background-color: hsla(0, 0%, 100%, 0.15) !important;
  color: white !important;
  border: 1px solid hsla(0, 0%, 100%, 0.25) !important;
  backdrop-filter: blur(4px);
}

.como-app-links .app-link:hover {
  background-color: hsla(0, 0%, 100%, 0.25) !important;
  box-shadow: none !important;
}

/* Preview banner (shown when afa_preview is set in localStorage) */
.preview-banner {
  background-color: hsl(38, 95%, 92%);
  border-bottom: 1px solid hsl(38, 80%, 78%);
  padding: 0.625rem 0;
}

.preview-banner .container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.preview-banner-icon {
  flex-shrink: 0;
  color: hsl(38, 80%, 40%);
  display: flex;
}

.preview-banner-text {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  color: hsl(38, 60%, 30%);
  line-height: 1.4;
}

.preview-banner-text strong {
  font-weight: 600;
}

.preview-banner-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(38, 60%, 28%);
  background: hsl(38, 90%, 85%);
  border: 1px solid hsl(38, 70%, 68%);
  border-radius: 999px;
  padding: 0.3125rem 0.875rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.preview-banner-btn:hover {
  background: hsl(38, 85%, 78%);
  border-color: hsl(38, 65%, 55%);
}

/* Page header (subpages) */
.page-header {
  padding: 1.25rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 0.875rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.back-link:hover {
  color: var(--primary);
  border-color: hsla(142, 55%, 35%, 0.35);
  background-color: hsla(142, 55%, 35%, 0.04);
}

.page-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.page-header-logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  flex-shrink: 0;
}

.page-header-title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.page-header-subtitle {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Intro section */
.intro-section {
  padding: 2rem 0;
}

.intro-text {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.intro-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.intro-highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background-color: var(--secondary);
  border-radius: var(--radius);
}

.intro-highlight-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background-color: hsla(142, 55%, 35%, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.intro-highlight strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.intro-highlight span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Placeholder block */
.placeholder-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 3rem 1rem;
  background-color: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  font-size: 0.875rem;
}

/* Section subtitle */
.section-subtitle {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: -0.75rem;
  margin-bottom: 1.25rem;
}

/* Timetable section */
.timetable-section {
  padding: 2rem 0;
  background-color: var(--secondary);
}

.timetable-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timetable-wrapper {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--card);
  margin-bottom: 0.75rem;
}

.timetable-wrapper iframe {
  display: block;
  width: 100%;
  height: 528px; /* 480 visible + ~48px to push the Google attribution out of view */
  margin-bottom: -48px;
  border: none;
}

.timetable-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  background-color: var(--primary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  margin-top: 0.25rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.timetable-link:hover {
  background-color: hsl(142, 55%, 30%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Signup notice (new process) */
@keyframes appIconSlideUp {
  0%   { opacity: 0; transform: translateY(52px) scale(0.82); }
  65%  { opacity: 1; transform: translateY(-6px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0)    scale(1);    }
}

.signup-notice {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to right, hsl(142, 50%, 36%) 0%, hsl(158, 52%, 22%) 100%);
  border-radius: var(--radius);
  margin-bottom: 1.75rem;
  overflow: hidden;
  position: relative;
}

.signup-notice::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, hsla(142, 60%, 55%, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

.signup-notice-content {
  flex: 1;
  min-width: 0;
}

.signup-notice-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: hsl(142, 80%, 75%);
  background-color: hsla(142, 60%, 55%, 0.2);
  border: 1px solid hsla(142, 60%, 55%, 0.3);
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  margin-bottom: 0.625rem;
}

.signup-notice-title {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.375rem;
}

.signup-notice-text {
  font-size: 0.8125rem;
  color: hsla(0, 0%, 100%, 0.75);
  line-height: 1.65;
}

.signup-notice-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

.signup-notice-app-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 22.5%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(52px) scale(0.82);
  display: block;
}

.signup-notice-app-icon.animate {
  animation: appIconSlideUp 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.signup-notice-app-name {
  font-size: 0.6875rem;
  font-weight: 500;
  color: hsla(0, 0%, 100%, 0.6);
  white-space: nowrap;
}

/* Activities grid */
.activities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.activity-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1rem 1.125rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.activity-card.placeholder {
  opacity: 0.5;
}

.activity-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.activity-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
}

.book-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.book-list li {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}

.book-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: hsl(215, 70%, 60%);
  font-weight: 700;
}

.activity-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-icon--book     { background-color: hsla(215, 70%, 55%, 0.12); color: hsl(215, 70%, 48%); }
.activity-icon--futbol   { background-color: hsla(30,  90%, 55%, 0.12); color: hsl(30,  90%, 44%); }
.activity-icon--basquet  { background-color: hsla(210, 80%, 55%, 0.12); color: hsl(210, 80%, 48%); }
.activity-icon--dansa    { background-color: hsla(330, 70%, 58%, 0.12); color: hsl(330, 70%, 50%); }
.activity-icon--robotica { background-color: hsla(270, 60%, 60%, 0.12); color: hsl(270, 60%, 52%); }
.activity-icon--dibuix   { background-color: hsla(175, 60%, 40%, 0.12); color: hsl(175, 60%, 36%); }
.activity-icon--angles   { background-color: hsla(200, 80%, 50%, 0.12); color: hsl(200, 80%, 40%); }
.activity-icon--escacs   { background-color: hsla(40,  85%, 50%, 0.12); color: hsl(40,  85%, 36%); }
.activity-icon--musica   { background-color: hsla(300, 60%, 58%, 0.12); color: hsl(300, 60%, 46%); }
.activity-icon--art      { background-color: hsla(160, 60%, 45%, 0.12); color: hsl(160, 60%, 36%); }
.activity-icon--cuina    { background-color: hsla(15,  85%, 55%, 0.12); color: hsl(15,  85%, 42%); }

.activity-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.activity-group {
  font-size: 0.7rem;
  font-weight: 500;
  color: #9ca3af;
  margin-left: 0.25rem;
  letter-spacing: 0.01em;
}

.activity-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: hsl(142, 75%, 38%);
  background-color: hsla(142, 60%, 50%, 0.12);
  border: 1px solid hsla(142, 60%, 50%, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-right: 0.35rem;
  vertical-align: middle;
  position: relative;
  top: -0.1em;
}

.activity-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.activities-note {
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* Signup steps */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.5rem;
}

.step-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.step-item:last-child {
  border-bottom: none;
}

.step-number {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.step-content h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.step-content p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.cta-button:hover {
  background-color: hsl(142, 55%, 30%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.875rem;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.app-link--android {
  background-color: hsl(142, 55%, 35%);
  color: white;
}

.app-link--android:hover {
  background-color: hsl(142, 55%, 30%);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.app-link--ios {
  background-color: hsl(220, 10%, 15%);
  color: white;
}

.app-link--ios:hover {
  background-color: hsl(220, 10%, 10%);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.app-link--web {
  background-color: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.app-link--web:hover {
  color: var(--foreground);
  border-color: hsl(150, 15%, 75%);
}

.app-link--video {
  background-color: hsl(0, 75%, 50%);
  color: white;
  border-color: transparent;
}

.app-link--video:hover {
  background-color: hsl(0, 75%, 44%);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.contact-box {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background-color: var(--secondary);
  border-radius: var(--radius);
}

.contact-box-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.contact-box-email {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

.contact-box-email:hover {
  text-decoration: underline;
}

/* Rules grid */
.rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

.rule-card {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.rule-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.rule-icon--payment  { background-color: hsla(210, 80%, 55%, 0.1); color: hsl(210, 80%, 50%); }
.rule-icon--cancel   { background-color: hsla(0,   80%, 55%, 0.1); color: hsl(0, 75%, 52%); }
.rule-icon--time     { background-color: hsla(38,  90%, 55%, 0.1); color: hsl(38, 90%, 45%); }
.rule-icon--list     { background-color: hsla(142, 55%, 35%, 0.1); color: var(--primary); }
.rule-icon--help     { background-color: hsla(270, 60%, 60%, 0.1); color: hsl(270, 60%, 55%); }
.rule-icon--phone    { background-color: hsla(180, 60%, 40%, 0.1); color: hsl(180, 60%, 38%); }

.rule-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.rule-card p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
}

.rule-card a {
  color: var(--primary);
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Abaco/Como cards mobile — reduce right padding so buttons fit on one row */
@media (max-width: 479px) {
  .abaco-card,
  .como-card {
    padding-right: 0.75rem;
  }

  .abaco-app-links .app-link,
  .como-app-links .app-link {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
  }
}

/* Responsive - Small screens */
@media (min-width: 480px) {
  .social-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .social-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.75rem;
  }
  
  .social-icon {
    margin-bottom: 0.5rem;
  }
  
  .social-text {
    justify-content: flex-start;
  }
}

/* Responsive - Tablet and up */
@media (min-width: 640px) {
  .school-content {
    flex-direction: row;
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 3rem 0;
  }
  
  .hero-content {
    flex-direction: row;
    text-align: left;
    gap: 2.5rem;
  }
  
  .logo {
    width: 9rem;
    height: 9rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1.125rem;
  }
  
  .contact-section h2,
  .info-section h2 {
    font-size: 1.5rem;
  }
  
  .social-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .social-card {
    padding: 1rem;
  }
  
  .social-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
  }
  
  .social-card h3 {
    font-size: 1rem;
  }
  
  .social-card p {
    font-size: 0.875rem;
  }
  
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-header-logo {
    width: 3.75rem;
    height: 3.75rem;
  }

  .page-header-title {
    font-size: 1.75rem;
  }

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

  .timetable-section h2 {
    font-size: 1.5rem;
  }

  .timetable-wrapper iframe {
    height: 608px; /* 560 visible + 48px clip */
  }

  .services-section h2 {
    font-size: 1.5rem;
  }

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

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

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

  .step-content h3 {
    font-size: 1rem;
  }

  .step-content p {
    font-size: 0.875rem;
  }

  .rule-card h3 {
    font-size: 1rem;
  }

  .rule-card p {
    font-size: 0.875rem;
  }
  
  .info-card {
    padding: 1.25rem;
  }
  
  .info-icon {
    width: 3rem;
    height: 3rem;
  }
  
  .info-card h3 {
    font-size: 1rem;
  }
  
  .info-card p {
    font-size: 0.875rem;
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .footer-content p {
    text-align: left;
  }
}