:root {
    --iftu-lilac: #e1d5f5;
    --color-bg: #fff8ef;
    --color-surface: #ffffff;
    --color-surface-warm: #f6efe7;
    --color-surface-lavender: #f1ebf8;
    --color-lavender: #e1d5f5;
    --color-lavender-strong: #d9c7ee;
    --color-plum: #241a2a;
    --color-plum-soft: #3a2443;
    --color-text: #241a2a;
    --color-text-muted: #5b4a60;
    --color-accent: #7a5ca8;
    --color-border: #e7dccf;
    --color-border-strong: #cdbfd7;
    --color-disabled-bg: #e9e0d6;
    --color-focus: #7a5ca8;
    --color-danger: #9f3030;

    --font-display: 'Viaoda Libre', serif;
    --font-ui: 'Inter', Arial, sans-serif;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 80px;
    --space-10: 96px;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(36, 26, 42, 0.12);
    --shadow-md: 0 8px 28px rgba(36, 26, 42, 0.08);
    --shadow-lg: 0 18px 48px rgba(36, 26, 42, 0.12);

    --motion-fast: 150ms;
    --motion-standard: 200ms;
    --motion-slow: 300ms;
    --motion-ease: ease;

    --content-max: 1180px;
    --reading-max: 68ch;
  }

  
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px); /* Start with a slight downward offset */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Move into place */
    }
}

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

html, body {
    height: 100%; /* Ensure the layout spans the full viewport height */
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* General Styles */

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-ui);
    line-height: 1.6;
}

button,
input,
select,
textarea {
    font-family: var(--font-ui);
}

button,
a,
input,
select,
textarea {
    touch-action: manipulation;
}

button,
select,
input[type="checkbox"],
input[type="radio"] {
    cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
}

/* Route headings receive programmatic focus for screen-reader context. */
.page :is(h1, h2)[tabindex="-1"]:focus {
    outline: none;
}

/* Fullscreen background image at the top */

.home-hero-bg {
  position: relative;
  width: 100%;
  height: auto; /* not forced to 100vh anymore unless you want */
  padding-top: 20px; /* if you want breathing space */
  padding-bottom: 20px;
  /* background-color: #e1d5f5; */
  display: flex;
  align-items: center;
  justify-content: center;
}



header,
.site-footer {
    font-family: var(--font-ui);
}

/* Header */
header {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  z-index: 10;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 20px;
}

  
  


.logo img {
    width: 60px;
    max-width: 100%;
    margin-right: 10px;
}


.site-header nav {
    width: 100%;
    display: flex;
    justify-content: left;
  }
  

.site-header nav ul {
    top: 0px;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    position: relative;
  }
  

.site-header nav a {
    font-size: 15px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-family: var(--font-ui);
    position: relative;
    padding-bottom: 0px; /* Adds spacing for the underline */
    transition: color 0.3s ease; /* Smooth color transition */
}

/* Hover effect for navigation links */
.site-header nav a:hover {
    color: #000000; /* Change text color on hover */
}

/* Underline animation */
.site-header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px; /* Thickness of the underline */
    background-color: #000000; /* Color of the underline */
    transition: width 0.3s ease; /* Animation for expanding the underline */
}

/* Expand underline on hover */
.site-header nav a:hover::after {
    width: 100%; /* Expand underline to full width */
}


/* Main Layout */
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure container spans full viewport height */
}

main {
    flex: 1; /* Take up remaining space between header and footer */
    display: flex;
    flex-direction: column; /* Stack children vertically */
    justify-content: space-between; /* Push sections down */
}

/* Shared secondary-page system */
.page:not(#home) {
    width: 100%;
    min-height: calc(100svh - 80px);
    padding: 152px max(24px, calc((100vw - var(--content-max)) / 2)) var(--space-10);
    overflow: clip;
    background: var(--color-bg);
}

.page-intro {
    width: min(100%, 760px);
    margin: 0 auto var(--space-8);
    text-align: center;
}

.page-intro::after {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    margin: var(--space-5) auto 0;
    background: var(--color-lavender-strong);
}

.section-heading {
    margin: 0;
    color: var(--color-plum);
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.98;
    text-align: center;
    text-transform: none;
}

.section-subtext {
    width: min(100%, var(--reading-max));
    margin: var(--space-4) auto 0;
    color: var(--color-text-muted);
    font-family: var(--font-ui);
    font-size: 1.0625rem;
    line-height: 1.7;
    text-align: center;
}

.small-note {
    color: var(--color-text-muted);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .page:not(#home) {
        padding: 136px 32px var(--space-9);
    }

    .section-heading {
        font-size: 3.75rem;
    }
}

@media (max-width: 768px) {
    .page:not(#home) {
        padding: 112px 20px var(--space-8);
    }

    .page-intro {
        margin-bottom: var(--space-7);
    }

    .section-heading {
        font-size: 3rem;
        line-height: 1;
    }

    .section-subtext {
        font-size: 1rem;
    }
}

@media (max-width: 420px) {
    .page:not(#home) {
        padding-right: 16px;
        padding-left: 16px;
    }

    .section-heading {
        font-size: 2.5rem;
    }
}

/* Footer */
.site-footer {
    flex-shrink: 0;
    width: 100%;
    margin: 0;
    color: var(--color-plum);
    background:
      linear-gradient(180deg, var(--color-surface-warm) 0%, rgba(225, 213, 245, 0.34) 100%);
    border-top: 1px solid var(--color-border);
}

.site-footer-inner {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: clamp(56px, 6vw, 72px) clamp(24px, 4vw, 48px) var(--space-7);
    display: grid;
    grid-template-columns: minmax(220px, 1.15fr) minmax(260px, 1fr) minmax(220px, 0.85fr);
    gap: clamp(40px, 5vw, 64px);
}

.site-footer .site-footer-logo {
    display: inline-flex;
    color: var(--color-plum);
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 2.4vw, 2.125rem);
    font-weight: 400;
    line-height: 1.1;
    text-decoration: none;
}

.site-footer-brand p {
    max-width: 28ch;
    margin-top: var(--space-4);
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.site-footer h2 {
    margin: 0 0 var(--space-4);
    color: var(--color-accent);
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

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

.site-footer .site-footer-nav {
    display: block;
    width: auto;
}

.site-footer .site-footer-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-6);
    row-gap: var(--space-1);
}

.site-footer-contact ul {
    display: grid;
    gap: var(--space-1);
}

.site-footer a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    color: var(--color-plum);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition:
      color var(--motion-standard) var(--motion-ease),
      text-decoration-color var(--motion-standard) var(--motion-ease);
}

.site-footer nav a::after {
    content: none;
}

.site-footer a:hover {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.site-footer a.is-current {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.site-footer-contact a[href^="http"] {
    gap: var(--space-1);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.site-footer-bottom {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: var(--space-5) clamp(24px, 4vw, 48px) var(--space-6);
    border-top: 1px solid rgba(36, 26, 42, 0.12);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.site-footer-bottom p {
    margin: 0;
}

@media (max-width: 768px) {
    .site-footer-inner {
        padding: var(--space-8) 20px var(--space-6);
        grid-template-columns: 1fr;
        gap: var(--space-7);
    }

    .site-footer-brand p {
        max-width: 34ch;
    }

    .site-footer .site-footer-nav ul {
        column-gap: var(--space-4);
    }

    .site-footer a {
        min-height: 44px;
    }

    .site-footer-bottom {
        padding: var(--space-5) 20px var(--space-6);
    }
}

@media (max-width: 420px) {
    .site-footer .site-footer-nav ul {
        grid-template-columns: 1fr;
    }
}


/* Back to Top button (bottom-right, lilac theme) */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  padding: 0;
  background-color: var(--color-plum);
  color: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: none;               /* hidden by default */
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition:
    opacity var(--motion-standard) var(--motion-ease),
    background-color var(--motion-standard) var(--motion-ease);
}
#backToTop:hover {
  background-color: var(--color-accent);
}
