/* Typographic system: variables for sizes and weights to ensure consistency */
:root{
    --ff-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --base-size: 16px;
    --size-xs: clamp(12px, 0.9rem, 13px);
    --size-sm: clamp(13px, 0.95rem, 14px);
    --size-md: clamp(14px, 1rem, 16px);
    --size-lg: clamp(16px, 1.125rem, 18px);
    --size-xl: clamp(18px, 1.25rem, 20px);
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --muted-white: rgba(255,255,255,0.85);
    --muted-white-2: rgba(255,255,255,0.8);
    --accent: #ff7f21;
}

.footer-wrapper {
    position: relative;
    background: linear-gradient(90deg, #103757 70%, #80ba28 100%);
    margin-top: auto;
    color: #fff;
    font-family: var(--ff-sans);
    /* ensure footer text uses a consistent base */
    font-size: var(--size-sm);
    line-height: 1.4;
}

.wave {
    position: absolute;
    top: -85px;
    left: 0;
    width: 100%;
    height: 90px;
    overflow: hidden;
    line-height: 0;
}

.wave svg {
    display: block;
    width: 100%;
    height: 90px;
}

.footer-content {
    padding: 10px 0 24px;
    color: white;
    position: relative;
}

.brand-section {
    padding: 12px 16px;
    padding-bottom: 6px;
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 90px; /* keep footer compact */
}

.logo-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.footer-logo {
    width: 150px;
    height: auto;
}

.social-media-inline {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-btn:hover {
    background: #fff;
    color: #ff7f21;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 127, 33, 0.18);
}

.info-section {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0px 5px 100px 5px;
    padding: 18px;
    height: 100%;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.info-section:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.section-title {
    color: #fff;
    font-weight: var(--weight-bold);
    margin-bottom: 12px;
    font-size: var(--size-md);
    letter-spacing: 0.4px;
    position: relative;
    display: inline-block; /* keep underline sized to the heading area */
    padding-bottom: 6px;
}

/* subtle modern orange underline for section headings */
.section-title::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: 3px;
    height: 2px;
    width: 100%;
    max-width: 88px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.5;
    transition: width 260ms ease, opacity 200ms ease, transform 260ms ease;
    transform-origin: left center;
}

/* Slightly expand underline on hover of the containing info box for a modern interactive feel */
.info-section:hover .section-title::after{
    width: 52%;
    opacity: 1;
}

/* tighten widths on very small screens */
@media (max-width: 480px){
    .section-title::after{ width: 28%; max-width: 64px; }
    .info-section:hover .section-title::after{ width: 40%; }
}

.section-title-main {
    color: #fff;
    font-weight: var(--weight-semibold);
    font-size: var(--size-sm);
    padding-bottom: 8px;
}

.footer-link {
    color: var(--muted-white);
    text-decoration: none;
    display: block;
    padding: 2px 0;
    font-size: var(--size-sm);
    font-weight: var(--weight-regular);
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: #ff7f21;
    padding-left: 6px;
}

.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--muted-white);
    font-size: var(--size-sm);
    font-weight: var(--weight-regular);
}

.contact-info i {
    color: #ff7f21;
    margin-right: 10px;
    flex-shrink: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 20px;
    color: var(--muted-white-2);
    font-size: var(--size-xs);
    font-weight: var(--weight-regular);
    flex-wrap: wrap;
}

.footer-bottom .footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #60a5fa;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
    .footer-content { padding: 14px 0 14px; }
    .brand-section { flex-direction: column; text-align: center; gap: 8px; padding: 10px; min-height: 80px; }
    .footer-logo { width: 110px; }
    .info-section { margin-bottom: 10px; padding: 10px; }
    .footer-bottom { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
    .footer-bottom .footer-links { flex-direction: row; gap: 8px; }
}

@media (min-width: 992px) {
    .brand-section { min-height: 140px; }
    .footer-logo { width: 150px; }
    .info-section { padding: 18px; }
}

@media (min-width: 1400px) {
    .brand-section { min-height: 220px; }
    .footer-logo { width: 180px; }
    .footer-content { padding-top: 10px; }
}
