/* Emerald Ledger Ireland — Financial Literacy */

:root {
  --green: #168058;
  --green-dark: #0b5d3b;
  --green-light: #e8f5ef;
  --gold: #d4a843;
  --gold-dark: #b8922f;
  --navy: #1a2b3c;
  --slate: #475569;
  --slate-light: #94a3b8;
  --bg: #f7faf8;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 16px 48px rgba(11, 93, 59, 0.1);
  --shadow-lg: 0 28px 72px rgba(11, 93, 59, 0.14);
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--green);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  z-index: 9999;
}

.skip-link:focus {
  top: 1rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.65rem;
}

.section-label::before {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 58ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(22, 128, 88, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(22, 128, 88, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--green);
  background: var(--green-light);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-size: 1rem;
  color: var(--green-dark);
}

.logo-text span {
  font-size: 0.72rem;
  color: var(--slate-light);
}

.nav-desktop {
  display: none;
  gap: 1.75rem;
  margin-left: auto;
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  transition: color var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--green);
}

.header-cta {
  display: none;
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1rem;
}

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

.mobile-nav a {
  padding: 0.75rem 0;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--green-light) 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-badge {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--green-dark);
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--slate);
  margin-bottom: 2rem;
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Stats */
.stats-bar {
  background: var(--green-dark);
  color: var(--white);
  padding: 2.5rem 0;
}

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

@media (min-width: 700px) {
  .stats-inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}

/* Cards grid */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .section-lead {
  margin-inline: auto;
}

.cards-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .cards-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.2rem;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--slate);
  margin-bottom: 1.25rem;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
}

.card-link:hover {
  color: var(--gold-dark);
}

/* Feature rows */
.feature-row {
  display: grid;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (min-width: 800px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
  }

  .feature-row.reverse .feature-content {
    order: 2;
  }
}

.feature-visual {
  background: var(--green-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.feature-visual .big-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
}

.feature-visual p {
  color: var(--slate);
  margin-top: 0.5rem;
}

.feature-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.feature-content p {
  color: var(--slate);
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: var(--slate);
}

.feature-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-light);
  color: var(--green);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Trust */
.trust-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-item {
  text-align: center;
  padding: 1.5rem;
}

.trust-item img {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
}

.trust-item h3 {
  font-size: 1rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.trust-item p {
  font-size: 0.88rem;
  color: var(--slate);
}

/* Testimonials */
.testimonials {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .testimonials {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.testimonial blockquote {
  font-size: 0.95rem;
  color: var(--slate);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testimonial cite {
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
  color: var(--green-dark);
}

.testimonial cite span {
  display: block;
  font-weight: 400;
  color: var(--slate-light);
  margin-top: 0.15rem;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta-section p {
  opacity: 0.9;
  max-width: 50ch;
  margin: 0 auto 2rem;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--green-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary:hover {
  background: var(--gold);
  color: var(--navy);
}

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  opacity: 0.85;
  font-size: 0.95rem;
}

/* Legal & guide */
.legal-content,
.guide-article .container {
  max-width: 72ch;
  padding: 3rem 0 5rem;
}

.legal-content h2,
.guide-article h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--green-dark);
  margin: 2.5rem 0 1rem;
}

.legal-content p,
.legal-content li,
.guide-article p,
.guide-article li {
  color: var(--slate);
  margin-bottom: 1rem;
}

.legal-content ul,
.guide-article ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.tip-box {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.tip-box strong {
  color: var(--green-dark);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 3rem;
  padding: 3rem 0 5rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail strong {
  display: block;
  color: var(--green-dark);
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* Resource cards */
.resource-list {
  display: grid;
  gap: 1rem;
  padding: 3rem 0 5rem;
}

.resource-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}

.resource-item:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
}

.resource-item h3 {
  font-size: 1.05rem;
  color: var(--green-dark);
  margin-bottom: 0.35rem;
}

.resource-item p {
  font-size: 0.9rem;
  color: var(--slate);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.footer-brand .logo-mark {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.92rem;
  max-width: 32ch;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-col a,
.footer-col span {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
}

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

.footer-legal a:hover {
  color: var(--gold);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
  z-index: 200;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 1140px;
  margin-inline: auto;
}

.cookie-inner p {
  font-size: 0.88rem;
  color: var(--slate);
  max-width: 60ch;
}

.cookie-inner a {
  color: var(--green);
  font-weight: 600;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-actions .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}
