/* Cartnicity global footer — .cn-footer beats single .site-footer on same element */
footer.site-footer.cn-footer {
    position: relative;
    background: linear-gradient(155deg, #0c3f44 0%, #1A5E63 42%, #123d42 100%);
    color: rgba(255, 255, 255, 0.92);
    padding: 0;
    margin-top: 48px;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 1;
    animation: none;
}

.cn-footer__accent {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #B7DB25, #FF4D00 45%, #B7DB25);
    background-size: 200% 100%;
    animation: cn-footer-accent-move 10s linear infinite;
}

@keyframes cn-footer-accent-move {
    to {
        background-position: 200% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cn-footer__accent {
        animation: none;
        background-position: 50% 0;
    }
}

.cn-footer__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.22;
    pointer-events: none;
}

.cn-footer__glow--one {
    width: 280px;
    height: 280px;
    background: #B7DB25;
    top: -120px;
    right: -60px;
}

.cn-footer__glow--two {
    width: 220px;
    height: 220px;
    background: #FF4D00;
    bottom: -80px;
    left: -40px;
    opacity: 0.18;
}

.cn-footer__inner {
    position: relative;
    z-index: 1;
    padding: 2.75rem 12px 2rem;
}

@media (min-width: 768px) {
    .cn-footer__inner {
        padding: 3.25rem 24px 2.25rem;
    }
}

.cn-footer__brand {
    padding-right: 1rem;
}

.cn-footer__logo-link {
    display: inline-block;
    line-height: 0;
    margin-bottom: 1rem;
    border-radius: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cn-footer__logo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.cn-footer__logo {
    width: 72px;
    height: auto;
    border-radius: 14px;
    display: block;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.cn-footer__tagline {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    max-width: 22rem;
    margin: 0 0 1.25rem;
    font-weight: 500;
}

.cn-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.cn-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cn-footer__social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(183, 219, 37, 0.5);
    color: #B7DB25;
    transform: translateY(-2px);
}

.cn-footer__social-link svg {
    flex-shrink: 0;
}

.cn-footer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0.25rem;
}

.cn-footer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.15rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cn-footer__btn--primary {
    background: #FF4D00;
    color: #fff;
    border: 2px solid #FF4D00;
    box-shadow: 0 4px 18px rgba(255, 77, 0, 0.35);
}

.cn-footer__btn--primary:hover {
    background: #ff6a2b;
    border-color: #ff6a2b;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(255, 77, 0, 0.45);
}

.cn-footer__btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.45);
}

.cn-footer__btn--outline:hover {
    border-color: #B7DB25;
    color: #B7DB25;
    background: rgba(183, 219, 37, 0.08);
}

.cn-footer__heading {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 800;
    color: #B7DB25;
    margin: 0 0 1rem;
    padding-top: 0.25rem;
}

.cn-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cn-footer__list li {
    margin-bottom: 0.45rem;
}

.cn-footer__list a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.94rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.cn-footer__list a:hover {
    color: #fff;
    padding-left: 4px;
}

.cn-footer__list--contact a {
    font-weight: 600;
}

.cn-footer__legal {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.22);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 12px;
}

.cn-footer__legal-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: center;
}

@media (min-width: 576px) {
    .cn-footer__legal-inner {
        flex-direction: row;
        text-align: left;
    }
}

.cn-footer__copy {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.cn-footer__legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: center;
}

@media (min-width: 576px) {
    .cn-footer__legal-nav {
        justify-content: flex-end;
    }
}

.cn-footer__legal-nav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.cn-footer__legal-nav a:hover {
    color: #B7DB25;
}

@media (max-width: 575.98px) {
    .cn-footer__brand {
        text-align: center;
    }

    .cn-footer__tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .cn-footer__social {
        justify-content: center;
    }

    .cn-footer__actions {
        justify-content: center;
    }

    .cn-footer__heading {
        margin-top: 0.5rem;
    }
}

/* Help & Support blocks (Privacy, Terms, Help & FAQ) */
.cn-support-block {
    max-width: 520px;
}

.cn-support-block h3 {
    font-weight: 800;
    color: #1A5E63;
    margin-bottom: 0.5rem;
}

.cn-support-block > p {
    color: #555;
    margin-bottom: 1.5rem;
}

.cn-support-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cn-support-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 1.25rem;
}

.cn-support-item:last-child {
    margin-bottom: 0;
}

.cn-support-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 94, 99, 0.1);
    border-radius: 12px;
    color: #1A5E63;
}

.cn-support-icon svg {
    width: 22px;
    height: 22px;
}

.cn-support-body {
    padding-top: 2px;
    line-height: 1.55;
    font-size: 1.05rem;
    color: #333;
}

.cn-support-body strong {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1A5E63;
    margin-bottom: 4px;
    font-weight: 700;
}

.cn-support-body a {
    color: #0d4a50;
    font-weight: 600;
    text-decoration: none;
}

.cn-support-body a:hover {
    text-decoration: underline;
}

/* ========== Shared mobile layout (all pages using footer.css) ========== */
html {
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

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

video,
iframe {
    max-width: 100%;
}

@media (max-width: 575.98px) {
    #mainNavbar .navbar-brand img,
    nav#mainNavbar .navbar-brand img {
        width: 56px !important;
        height: 56px !important;
        max-width: 56px;
        object-fit: contain;
    }

    #mainNavbar .container-fluid,
    nav#mainNavbar .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-body {
        padding: 1rem;
    }
}

/* Native HubSpot newsletter (no embed) */
.cn-newsletter-hs-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
}

.cn-newsletter-hs-form .cn-newsletter-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1A5E63;
    margin-bottom: 6px;
}

.cn-newsletter-hs-form .cn-newsletter-field input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cn-newsletter-hs-form .cn-newsletter-field input:focus {
    outline: none;
    border-color: #1A5E63;
    box-shadow: 0 0 0 3px rgba(26, 94, 99, 0.15);
}

.cn-newsletter-hs-form .cn-newsletter-submit {
    margin-top: 4px;
    padding: 12px 22px;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    background: linear-gradient(135deg, #FF4D00, #cc3e00);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 77, 0, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cn-newsletter-hs-form .cn-newsletter-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 77, 0, 0.45);
}

.cn-newsletter-hs-form .cn-newsletter-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.cn-newsletter-hs-form .cn-newsletter-msg {
    font-size: 0.9rem;
    margin: 0;
    min-height: 1.35em;
}

.cn-newsletter-hs-form .cn-newsletter-msg.text-success {
    color: #1A5E63;
    font-weight: 600;
}

.cn-newsletter-hs-form .cn-newsletter-msg.text-danger {
    color: #c0392b;
}

.cn-form-embed.cn-form-embed--newsletter-native {
    min-height: 0;
    background: transparent;
    padding: 0;
}

/* Native HubSpot modal forms (join / captain / reservation) */
.cn-form-embed--native-modal {
    min-height: 0;
    background: transparent;
    padding: 0;
}

.cn-hs-native-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
}

.cn-hs-native-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 575.98px) {
    .cn-hs-native-grid {
        grid-template-columns: 1fr;
    }
}

.cn-hs-native-form .cn-hs-field--full {
    grid-column: 1 / -1;
}

.cn-hs-native-form .cn-hs-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1A5E63;
    margin-bottom: 5px;
}

.cn-hs-native-form .cn-hs-field input,
.cn-hs-native-form .cn-hs-field textarea,
.cn-hs-native-form .cn-hs-field select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cn-hs-native-form .cn-hs-field textarea {
    min-height: 88px;
    resize: vertical;
}

.cn-hs-native-form .cn-hs-field input:focus,
.cn-hs-native-form .cn-hs-field textarea:focus,
.cn-hs-native-form .cn-hs-field select:focus {
    outline: none;
    border-color: #1A5E63;
    box-shadow: 0 0 0 3px rgba(26, 94, 99, 0.12);
}

.cn-hs-native-submit {
    margin-top: 6px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.98rem;
    cursor: pointer;
    background: linear-gradient(135deg, #FF4D00, #cc3e00);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 77, 0, 0.35);
}

.cn-hs-native-submit:hover:not(:disabled) {
    transform: translateY(-1px);
}

.cn-hs-native-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.cn-hs-native-msg {
    font-size: 0.88rem;
    margin: 0;
    min-height: 1.3em;
}

.cn-hs-native-msg.text-success {
    color: #1A5E63;
    font-weight: 600;
}

.cn-hs-native-msg.text-danger {
    color: #c0392b;
}

/*
 * HubSpot embedded forms (targets .cn-form-embed only):
 * Hides common “Powered by / create a form” promo links and badges so the UI looks on-brand.
 * Submissions still go to HubSpot CRM; workflows and automated emails are unchanged.
 * If branding persists, turn it off in HubSpot (plan/form/account branding settings)—that is the supported fix.
 */
.cn-form-embed a[href*="hubspot.com/products"],
.cn-form-embed a[href*="hubspot.com/free"],
.cn-form-embed a[href*="hubspot.com/get-started"],
.cn-form-embed a[href*="hubspot.com/signup"],
.cn-form-embed a[href*="hubspot.com/campaigns"],
.cn-form-embed a[href*="click.hubspot.com"],
.cn-form-embed a[href*="links.hubspot.com"] {
    display: none !important;
}

.cn-form-embed p:has(> a[href*="hubspot.com"]:only-child),
.cn-form-embed div:has(> a[href*="hubspot.com"]:only-child) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

.cn-form-embed img[src*="hubspot"],
.cn-form-embed img[alt*="HubSpot"],
.cn-form-embed img[alt*="hubspot"] {
    display: none !important;
}

/* Hide legacy bar if any page still outputs it */
.copyright-bar:empty {
    display: none;
}
