/* ============================================
   Bokang Bogopane — Medical Health Website
   Vibrant Modern · Terracotta + Sand
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* ============================================
   Geometric Background Shapes
   ============================================ */
.geo-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.shape-circle-1 {
    top: 15%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200, 90, 60, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
    bottom: 20%;
    left: -8%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(226, 173, 66, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 10s ease-in-out infinite reverse;
}

.shape-rect-1 {
    top: 60%;
    right: 5%;
    width: 120px;
    height: 120px;
    background: rgba(200, 90, 60, 0.06);
    border-radius: 20px;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.shape-triangle {
    top: 40%;
    left: 3%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(226, 173, 66, 0.06);
    animation: float-slow 6s ease-in-out infinite;
}

.shape-dots {
    top: 25%;
    left: 10%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(200, 90, 60, 0.15) 2px, transparent 2px);
    background-size: 12px 12px;
    animation: float-slow 7s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes spin-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* ============================================
   Navigation
   ============================================ */
.nav-header {
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all duration-300;
}

.nav-header.scrolled {
    background: rgba(253, 248, 240, 0.97);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C85A3C;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu {
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.mobile-menu.open {
    max-height: 400px;
    padding-top: 0;
}

.mobile-nav-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #C85A3C, #e2ad42);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ============================================
   Approach Cards
   ============================================ */
.approach-card {
    position: relative;
}

.approach-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #e2ad42, #C85A3C);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.approach-card:hover::after {
    width: 60%;
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement — content is visible
   by default; JS adds the animated state.
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion — keep everything visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================
   Button Focus States
   ============================================ */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C85A3C;
    outline-offset: 2px;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: rgba(200, 90, 60, 0.2);
    color: #1c1917;
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FDF8F0;
}

::-webkit-scrollbar-thumb {
    background: #C85A3C;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b5452a;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .shape-circle-1,
    .shape-circle-2,
    .shape-rect-1,
    .shape-triangle,
    .shape-dots {
        display: none;
    }
}
