/* ========================================
   North Texas Kidney Care Associates
   Custom Styles
======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #a85a3e;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    z-index: 100;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* --- Navbar --- */
#navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(232, 212, 176, 0.4);
    transition: box-shadow 0.3s ease;
}
#navbar.nav-scrolled {
    box-shadow: 0 2px 16px rgba(164, 90, 62, 0.08);
}
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c4704b;
    border-radius: 1px;
    transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* --- Mobile Menu --- */
.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #723b2b;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}
.mobile-menu-btn:hover { background: rgba(196, 112, 75, 0.08); }
.mobile-menu { animation: slideDown 0.25s ease; }
.mobile-menu-link {
    border-bottom: 1px solid rgba(232, 212, 176, 0.4);
}
.mobile-menu-link:last-of-type { border: none; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #c4704b;
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(196, 112, 75, 0.25);
}
.btn-primary:hover {
    background: #a85a3e;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(196, 112, 75, 0.35);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}
.btn-secondary.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(160deg, rgba(51, 24, 16, 0.82) 0%, rgba(110, 59, 43, 0.75) 50%, rgba(139, 72, 50, 0.70) 100%),
        url('https://images.pexels.com/photos/11589213/pexels-photo-11589213.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
    color: #fff;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, #fdfcfa, transparent);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    padding: 2rem 1.5rem;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #f2d5c8;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}
.hero-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.1875rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
}

/* --- Section Layout --- */
.section {
    padding: 5rem 0;
}
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c4704b;
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: #331810;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #723b2b;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Cards --- */
.card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(164, 90, 62, 0.07);
    border: 1px solid rgba(232, 212, 176, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(164, 90, 62, 0.12);
}
.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #faf0eb, #f2d5c8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a85a3e;
    margin-bottom: 1.25rem;
}
.card-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #331810;
    margin-bottom: 0.625rem;
}
.card-text {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #723b2b;
}

/* --- About --- */
.about-image-wrapper {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(164, 90, 62, 0.12);
}
.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about-accent {
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f2d5c8, #e9b5a0);
    border-radius: 1.5rem;
    z-index: -1;
}
.about-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #723b2b;
    margin-bottom: 1rem;
}
.about-stats {
    border-top: 1px solid rgba(232, 212, 176, 0.5);
    padding-top: 1.5rem;
}
.stat-number {
    display: block;
    font-family: 'Lora', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #a85a3e;
    line-height: 1;
    margin-bottom: 0.375rem;
}
.stat-label {
    font-size: 0.8125rem;
    color: #723b2b;
    font-weight: 500;
}

/* --- Reason Cards --- */
.reason-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(164, 90, 62, 0.07);
    border: 1px solid rgba(232, 212, 176, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.reason-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(164, 90, 62, 0.12);
}
.reason-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, #faf0eb, #f2d5c8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a85a3e;
    margin-bottom: 1rem;
}
.reason-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #331810;
    margin-bottom: 0.5rem;
}
.reason-text {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #723b2b;
}

/* --- Form --- */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e8d4b0;
    border-radius: 0.75rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    color: #331810;
    background: #fdfcfa;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.input-field::placeholder { color: #dbbc88; }
.input-field:focus {
    border-color: #c4704b;
    box-shadow: 0 0 0 3px rgba(196, 112, 75, 0.12);
    background: #fff;
}
.input-field:hover:not(:focus) { border-color: #dbbc88; }

/* --- Reveal Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Fallback: always visible if JS is disabled or prefers-reduced-motion */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 1; transform: none; }
}
html.no-js .reveal,
.js .reveal { /* JS will add .revealed */ }

/* --- Responsive --- */
@media (max-width: 767px) {
    .section { padding: 3.5rem 0; }
    .hero { min-height: 80vh; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary { width: 100%; justify-content: center; }
    .about-image-wrapper { margin-bottom: 1.5rem; }
    .about-accent { display: none; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .section { padding: 4rem 0; }
}

@media (min-width: 1024px) {
    .section { padding: 5.5rem 0; }
}
