:root {
    --primary-color: #30495f;
    --secondary-color: #5c829c;
    --accent-color: #c2e2eb;
    --text-dark: #1a2a38;
    --bg-light: #f4f7f9;
}

body {
    font-family: 'ClashDisplay-Regular', sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: #ffffff;
    color: #1a1a1a;
}

h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: 'ClashDisplay-Medium', sans-serif;
}

/* Custom Styles & Utilities not easily done with standard Tailwind */
.mega-menu {
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.99);
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Mobile mega-menu: handled entirely in main.js via JS show/hide */

.menu-pane {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #1a1a1a;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 8px;
    margin-bottom: 0.25rem;
}

.menu-link:hover {
    background-color: #f3f4f6;
}

.menu-link.active {
    background-color: #e8f3f8; /* Light blue tint bg */
    color: #30495f; /* Deep blue text */
    font-weight: 600;
}

.menu-link.active-gray {
    background-color: #f3f4f6;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}








/* Marquee Animation */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

/* Fade in up animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* For smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Subpage Header & Components Styling */
.dark-text-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2.5rem;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 40;
}
.dark-text-header .logo img {
    height: 2.25rem;
    object-fit: contain;
}
.dark-text-header .menu-toggle {
    display: none;
    font-size: 1.75rem;
    cursor: pointer;
}
.dark-text-header .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.dark-text-header .nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.dark-text-header .nav-links a:hover {
    color: var(--secondary-color);
}

.subpage-hero {
    padding: 5rem 2rem 4rem;
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
}
.hero-content {
    max-width: 900px;
    width: 100%;
}
.hero-content h1 {
    font-size: 2.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.section.bg-light {
    background-color: var(--bg-light);
    max-width: 100%;
}
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-header h2 {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: var(--secondary-color);
}

footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 4rem 2rem 2rem;
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}
.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 0.75rem;
}
.footer-col ul a {
    color: #bac6c0;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}
.footer-col ul a:hover {
    color: #ffffff;
}
.footer-logo img {
    height: 2rem;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}
.footer-desc {
    color: #bac6c0;
    font-size: 0.9rem;
    line-height: 1.6;
}
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #bac6c0;
}
.footer-bottom a {
    color: #bac6c0;
    text-decoration: none;
}
.footer-bottom a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .dark-text-header .menu-toggle { display: block; }
    .dark-text-header .nav-links { display: none; }
    .grid-2, .grid-3, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}


.pause-on-hover:hover {
    animation-play-state: paused !important;
}

.line-clamp-4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
