/* Additional Bold Refinements for Altadena Media */

/* Override Bootstrap where needed */
.container {
    max-width: 1200px;
}

.row {
    margin: 0;
}

/* Refined scroll behavior */
* {
    scroll-margin-top: 100px;
}

/* Remove Bootstrap shadows */
.shadow-sm, .shadow, .shadow-lg {
    box-shadow: none !important;
}

/* Remove Bootstrap rounded corners */
.rounded, .rounded-lg {
    border-radius: 0 !important;
}

/* Link underline effect */
a:not(.btn):not(.nav-link):not(.navbar-brand) {
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

a:not(.btn):not(.nav-link):not(.navbar-brand):hover {
    color: var(--rich-black);
}

/* Selection styling */
::selection {
    background-color: var(--celadon);
    color: var(--rich-black);
}

::-moz-selection {
    background-color: var(--celadon);
    color: var(--rich-black);
}

/* Refined card styles - remove default Bootstrap shadows */
.card {
    border: 1px solid var(--light-gray);
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Better list styling */
ul:not(.navbar-nav):not(.list-unstyled) {
    list-style: none;
    padding-left: 0;
}

ul:not(.navbar-nav):not(.list-unstyled) li {
    padding-left: 1.5em;
    position: relative;
    margin-bottom: 0.5em;
}

ul:not(.navbar-nav):not(.list-unstyled) li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--cambridge-blue);
    font-weight: 600;
}

/* Subtle focus outline */
*:focus-visible {
    outline: 2px solid var(--cambridge-blue);
    outline-offset: 3px;
}

/* Smooth hover for all clickable elements */
button, a, [role="button"] {
    -webkit-tap-highlight-color: transparent;
}

/* Enhanced text legibility */
p, li, .lead {
    max-width: 68ch;
}

/* Better line-height for larger text */
.display-4, .display-5, h1, h2 {
    line-height: 1.1;
}

/* Centered large text should have better max-width */
.text-center .display-4,
.text-center .display-5,
.text-center h1,
.text-center h2 {
    margin-left: auto;
    margin-right: auto;
    max-width: 25ch;
}

/* Cursor pointer for interactive elements */
.service-card,
.spotlight-image,
.btn {
    cursor: pointer;
}

/* Add visual rhythm */
section + section {
    position: relative;
}

/* Bold heading numbers in How It Works */
#how-it-works h3::before {
    font-family: "Unna", serif;
}

/* Fade animation for sections on scroll */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-section {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .fade-in-section.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Better spacing for sections */
section + section {
    position: relative;
}

/* Backdrop filter support check */
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
    .navbar {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}
