/* ==========================================================
FUGUS Library — Home Page (index.php)
Green & gold university theme. Independent from style.css
so it never touches the admin/staff/student dashboards.
========================================================== */

:root {
--fg-green: #0a5c3c;
--fg-green-dark: #06381f;
--fg-green-darker: #042416;
--fg-gold: #d4af37;
--fg-gold-dark: #b8912c;
--fg-ink: #172033;
--fg-muted: #5c6b6a;
--fg-border: #e6e2d6;
--fg-cream: #faf8f2;

--fg-serif: "Merriweather", Georgia, serif;
--fg-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
box-sizing: border-box;
}

body {
margin: 0;
font-family: var(--fg-sans);
color: var(--fg-ink);
background: #fff;
-webkit-font-smoothing: antialiased;
scroll-behavior: smooth;
}

img {
max-width: 100%;
display: block;
}

a {
text-decoration: none;
color: inherit;
}

.container {
max-width: 1180px;
margin: 0 auto;
padding: 0 32px;
}

.eyebrow {
display: inline-flex;
align-items: center;
gap: 10px;
font-size: 12px;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--fg-gold);
margin-bottom: 16px;
}

.eyebrow::before {
content: "";
width: 24px;
height: 2px;
background: var(--fg-gold);
}

.eyebrow::after {
content: "";
width: 24px;
height: 2px;
background: var(--fg-gold);
}

.eyebrow-dark {
color: var(--fg-gold-dark);
}

/* -------------------- Buttons -------------------- */

.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 13px 28px;
font-size: 15px;
font-weight: 700;
border-radius: 4px;
border: 2px solid transparent;
cursor: pointer;
transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
white-space: nowrap;
}

.btn:hover {
transform: translateY(-2px);
}

.btn-gold {
background: var(--fg-gold);
color: var(--fg-green-darker);
border-color: var(--fg-gold);
}

.btn-gold:hover {
background: #e2c25c;
box-shadow: 0 10px 24px rgba(212, 175, 55, 0.35);
}

.btn-outline-light {
border-color: rgba(255, 255, 255, 0.55);
color: #fff;
background: transparent;
}

.btn-outline-light:hover {
border-color: #fff;
background: rgba(255, 255, 255, 0.1);
}

.btn-outline-dark {
border-color: var(--fg-green);
color: var(--fg-green);
background: transparent;
}

.btn-outline-dark:hover {
background: var(--fg-green);
color: #fff;
}

/* -------------------- Header / Nav -------------------- */

.site-header {
position: sticky;
top: 0;
z-index: 100;
background: rgba(6, 56, 31, 0.92);
backdrop-filter: blur(6px);
transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
background: var(--fg-green-dark);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-inner {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 32px;
}

.brand {
display: flex;
align-items: center;
gap: 12px;
}

.brand img {
width: 46px;
height: 46px;
object-fit: contain;
}

.brand-text {
line-height: 1.25;
}

.brand-text strong {
display: block;
font-family: var(--fg-serif);
font-size: 15.5px;
font-weight: 700;
color: #fff;
}

.brand-text span {
display: block;
font-size: 11.5px;
letter-spacing: 0.04em;
color: var(--fg-gold);
margin-top: 1px;
}

.site-nav {
display: flex;
align-items: center;
gap: 30px;
}

.nav-link {
font-size: 14.5px;
font-weight: 600;
color: rgba(255, 255, 255, 0.88);
position: relative;
padding: 4px 0;
transition: color 0.2s ease;
}

.nav-link::after {
content: "";
position: absolute;
left: 0;
bottom: -3px;
width: 0;
height: 2px;
background: var(--fg-gold);
transition: width 0.2s ease;
}

.nav-link:hover {
color: #fff;
}

.nav-link:hover::after {
width: 100%;
}

.nav-cta {
padding: 10px 22px;
font-size: 14px;
}

.nav-toggle {
display: none;
flex-direction: column;
justify-content: center;
gap: 5px;
width: 32px;
height: 32px;
background: none;
border: none;
cursor: pointer;
padding: 0;
}

.nav-toggle span {
display: block;
height: 2px;
background: #fff;
border-radius: 2px;
transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
transform: translateY(-7px) rotate(-45deg);
}

/* -------------------- Hero -------------------- */

.hero {
position: relative;
min-height: 92vh;
display: flex;
align-items: center;
overflow: hidden;
}

.hero-bg {
position: absolute;
inset: 0;
background-size: cover;
background-position: center;
transform: scale(1);
}

.hero-overlay {
position: absolute;
inset: 0;
background:
linear-gradient(180deg, rgba(4, 36, 22, 0.88) 0%, rgba(6, 56, 31, 0.82) 45%, rgba(4, 36, 22, 0.94) 100%);
}

.hero-content {
position: relative;
z-index: 2;
max-width: 720px;
padding-top: 40px;
}

.hero h1 {
font-family: var(--fg-serif);
font-weight: 900;
font-size: 48px;
line-height: 1.18;
color: #fff;
margin: 0 0 20px;
}

.hero p {
font-size: 17px;
line-height: 1.7;
color: rgba(255, 255, 255, 0.86);
max-width: 560px;
margin: 0 0 34px;
}

.hero-actions {
display: flex;
gap: 16px;
flex-wrap: wrap;
}

.scroll-cue {
position: absolute;
bottom: 28px;
left: 50%;
transform: translateX(-50%);
z-index: 2;
color: rgba(255, 255, 255, 0.75);
font-size: 20px;
animation: bounce 2.2s ease-in-out infinite;
}

@keyframes bounce {
0%, 100% { transform: translate(-50%, 0); }
50% { transform: translate(-50%, 8px); }
}

/* -------------------- Section shared -------------------- */

.section {
padding: 96px 0;
}

.section-head {
text-align: center;
max-width: 560px;
margin: 0 auto 52px;
}

.section-head h2 {
font-family: var(--fg-serif);
font-size: 34px;
font-weight: 900;
margin: 0;
color: var(--fg-ink);
}

/* -------------------- Services -------------------- */

.services {
position: relative;
background:
linear-gradient(180deg, rgba(4, 36, 22, 0.88) 0%, rgba(6, 56, 31, 0.82) 45%, rgba(4, 36, 22, 0.94) 100%),
url("../images/library-bg.jpg") center / cover no-repeat;
}

.services .section-head .eyebrow-dark {
color: var(--fg-gold);
}

.services .section-head h2 {
color: #fff;
}

.services-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 26px;
}

.service-card {
background: #fff;
border: 1px solid var(--fg-border);
border-radius: 10px;
padding: 34px 26px;
text-align: center;
transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
transform: translateY(-6px);
box-shadow: 0 20px 40px rgba(10, 92, 60, 0.12);
border-color: var(--fg-gold);
}

.service-icon {
width: 60px;
height: 60px;
margin: 0 auto 18px;
border-radius: 50%;
background: var(--fg-green);
color: var(--fg-gold);
display: flex;
align-items: center;
justify-content: center;
transition: background 0.25s ease;
}

.service-icon svg {
width: 26px;
height: 26px;
}

.service-card:hover .service-icon {
background: var(--fg-gold);
color: var(--fg-green-darker);
}

.service-card h3 {
font-family: var(--fg-serif);
font-size: 19px;
font-weight: 700;
margin: 0 0 10px;
}

.service-card p {
font-size: 14px;
line-height: 1.65;
color: var(--fg-muted);
margin: 0;
}

.service-card.reveal {
opacity: 0;
transform: translateY(24px);
transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.reveal.is-visible {
opacity: 1;
transform: translateY(0);
}

/* -------------------- About -------------------- */

.about-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 64px;
align-items: center;
}

.about-text h2 {
font-family: var(--fg-serif);
font-size: 32px;
font-weight: 900;
margin: 0 0 18px;
line-height: 1.25;
}

.about-text p {
font-size: 15.5px;
line-height: 1.75;
color: var(--fg-muted);
margin: 0 0 32px;
}

.user-types {
display: grid;
gap: 18px;
}

.user-type {
padding: 16px 20px;
border-left: 3px solid var(--fg-gold);
background: var(--fg-cream);
border-radius: 0 6px 6px 0;
}

.user-type-label {
font-family: var(--fg-serif);
font-weight: 700;
font-size: 15.5px;
color: var(--fg-green);
display: block;
margin-bottom: 4px;
}

.user-type p {
margin: 0;
font-size: 13.5px;
color: var(--fg-muted);
}

.about-image img {
border-radius: 12px;
box-shadow: 0 24px 48px rgba(10, 92, 60, 0.18);
}

.about-text.reveal,
.about-image.reveal {
opacity: 0;
transform: translateY(24px);
transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-text.reveal.is-visible,
.about-image.reveal.is-visible {
opacity: 1;
transform: translateY(0);
}

/* -------------------- CTA band -------------------- */

.cta-band {
background: var(--fg-green);
background-image: linear-gradient(120deg, var(--fg-green) 0%, var(--fg-green-dark) 100%);
}

.cta-inner {
padding: 56px 0;
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
flex-wrap: wrap;
}

.cta-inner h2 {
font-family: var(--fg-serif);
font-size: 26px;
font-weight: 900;
color: #fff;
margin: 0 0 6px;
}

.cta-inner p {
color: rgba(255, 255, 255, 0.78);
font-size: 14.5px;
margin: 0;
}

.cta-actions {
display: flex;
gap: 14px;
flex-wrap: wrap;
}

.cta-band .btn-outline-dark {
border-color: rgba(255, 255, 255, 0.55);
color: #fff;
}

.cta-band .btn-outline-dark:hover {
background: #fff;
color: var(--fg-green-dark);
}

/* -------------------- Footer -------------------- */

.site-footer {
background: var(--fg-green-darker);
color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
display: grid;
grid-template-columns: 1.4fr 1fr 1fr;
gap: 40px;
padding: 56px 0 36px;
}

.footer-brand {
display: flex;
align-items: center;
gap: 14px;
}

.footer-brand img {
width: 44px;
height: 44px;
object-fit: contain;
}

.footer-brand strong {
display: block;
font-family: var(--fg-serif);
font-size: 15px;
color: #fff;
}

.footer-brand span {
display: block;
font-size: 12px;
color: var(--fg-gold);
margin-top: 2px;
}

.footer-heading {
display: block;
font-size: 12.5px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--fg-gold);
margin-bottom: 14px;
}

.footer-links {
display: flex;
flex-direction: column;
gap: 10px;
}

.footer-links a {
font-size: 14px;
transition: color 0.2s ease;
}

.footer-links a:hover {
color: var(--fg-gold);
}

.footer-note p {
font-size: 13.5px;
line-height: 1.6;
margin: 0;
}

.footer-bottom {
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding: 20px 32px;
font-size: 13px;
text-align: center;
color: rgba(255, 255, 255, 0.55);
}

/* -------------------- Focus states -------------------- */

a:focus-visible,
button:focus-visible {
outline: 2px solid var(--fg-gold);
outline-offset: 3px;
}

/* -------------------- Responsive -------------------- */

@media (max-width: 980px) {

.services-grid {
grid-template-columns: repeat(2, 1fr);
}

.about-grid {
grid-template-columns: 1fr;
gap: 40px;
}

.about-image {
order: -1;
}

.hero h1 {
font-size: 38px;
}

.footer-grid {
grid-template-columns: 1fr 1fr;
}
}

@media (max-width: 720px) {

.container {
padding: 0 20px;
}

.nav-toggle {
display: flex;
}

.site-nav {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
background: var(--fg-green-dark);
flex-direction: column;
align-items: flex-start;
gap: 4px;
padding: 16px 20px 22px;
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.site-nav.is-open {
display: flex;
}

.nav-link {
width: 100%;
padding: 10px 0;
}

.nav-cta {
margin-top: 8px;
}

.hero {
min-height: 82vh;
text-align: left;
}

.hero h1 {
font-size: 30px;
}

.hero p {
font-size: 15.5px;
}

.section {
padding: 64px 0;
}

.section-head h2 {
font-size: 27px;
}

.services-grid {
grid-template-columns: 1fr;
}

.footer-grid {
grid-template-columns: 1fr;
gap: 28px;
}

.cta-inner {
flex-direction: column;
align-items: flex-start;
}
}