/* ═══════════════════════════════════════════
   DR. KIAMOS — MEDICAL & HEALTH WEBSITE
   Custom Styles
   ═══════════════════════════════════════════ */

/* ── Base / Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }

/* ── Navbar ── */
.nav-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 247, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(45, 90, 61, 0.08);
    box-shadow: 0 1px 20px rgba(45, 90, 61, 0.06);
}

.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4a7c49;
    border-radius: 1px;
    transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile Menu ── */
.mobile-menu {
    z-index: 200;
}
.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
.mobile-menu-link {
    position: relative;
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #1a3a25;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        url('https://images.pexels.com/photos/4021794/pexels-photo-4021794.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080')
        center center / cover no-repeat;
    opacity: 0.35;
    filter: blur(2px);
}
.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 58, 37, 0.92) 0%,
        rgba(45, 90, 61, 0.85) 50%,
        rgba(29, 58, 39, 0.90) 100%
    );
}
.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    background: white;
}
.hero-shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
    animation: float-slow 20s ease-in-out infinite;
}
.hero-shape-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    animation: float-slow 15s ease-in-out infinite reverse;
}
.hero-shape-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 15%;
    animation: float-slow 12s ease-in-out infinite;
}
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    padding-top: 80px;
}
.hero-badge {
    animation: fadeInDown 0.8s ease both;
}
.hero-headline {
    animation: fadeInUp 0.8s ease 0.15s both;
}
.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.3s both;
}
.hero-ctas {
    animation: fadeInUp 0.8s ease 0.45s both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 0.8s ease 0.8s both;
}
.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4a7c49;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 60px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    text-decoration: none;
}
.btn-primary:hover {
    background: #3a6338;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 124, 73, 0.35);
}
.btn-arrow {
    transition: transform 0.2s ease;
}
.btn-primary:hover .btn-arrow {
    transform: translate(3px, -3px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

/* ── Section ── */
.section { position: relative; }

/* ── Label ── */
.label { letter-spacing: 0.12em; }

/* ── Stats ── */
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-number { line-height: 1; }
.stat-label  { line-height: 1.4; }

/* ── About Image ── */
.about-img-wrapper {
    box-shadow: 0 32px 64px rgba(29, 58, 39, 0.18);
    transition: transform 0.4s ease;
}
.about-img-wrapper:hover { transform: scale(1.01); }

/* ── Service Cards ── */
.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(45, 90, 61, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(45, 90, 61, 0.12);
    border-color: rgba(74, 124, 73, 0.2);
}
.service-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f1f5f0 0%, #dce8dd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d5a3d;
    transition: background 0.3s ease;
}
.service-card:hover .service-icon-wrap {
    background: linear-gradient(135deg, #2d5a3d 0%, #3a6338 100%);
    color: #fff;
}
.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Approach Section ── */
.approach-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a3a25 0%, #2d5a3d 50%, #1d3a27 100%);
}

/* ── Contact Form ── */
.contact-form-card {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(45, 90, 61, 0.08);
    box-shadow: 0 16px 48px rgba(45, 90, 61, 0.08);
}
.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2d5a3d;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #dce8dd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9375rem;
    color: #1a3a25;
    background: #fafaf7;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}
.form-input::placeholder { color: #8fb58e; }
.form-input:focus {
    border-color: #4a7c49;
    box-shadow: 0 0 0 3px rgba(74, 124, 73, 0.12);
    background: #fff;
}
.form-input:hover:not(:focus) {
    border-color: #8fb58e;
}

.contact-info-item { transition: transform 0.2s ease; }
.contact-info-item:hover { transform: translateX(4px); }
.contact-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f1f5f0 0%, #dce8dd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d5a3d;
    flex-shrink: 0;
}
.contact-label  { font-weight: 500; }
.contact-value  { line-height: 1.5; }

/* ── Form Success ── */
.form-success {
    text-align: center;
    padding: 3rem 1rem;
    animation: fadeInUp 0.5s ease both;
}
.form-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1f5f0 0%, #dce8dd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #2d5a3d;
}
.form-success.hidden { display: none; }

/* ── Scroll Reveal ── */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}
/* Progressive enhancement: hidden by default when JS is active */
.js-enabled .reveal-up,
.js-enabled .reveal-left,
.js-enabled .reveal-right {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-enabled .reveal-up   { transform: translateY(32px); }
.js-enabled .reveal-left { transform: translateX(-32px); }
.js-enabled .reveal-right{ transform: translateX(32px); }
.js-enabled .reveal-up.revealed,
.js-enabled .reveal-left.revealed,
.js-enabled .reveal-right.revealed {
    opacity: 1;
    transform: none;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal-up, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-headline { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.0625rem; }
    .section { padding-top: 4rem; padding-bottom: 4rem; }
    .about-accent, .about-accent2 { display: none; }
    .contact-form-card { padding: 1.5rem; }
}
@media (max-width: 480px) {
    .hero-headline { font-size: 2rem; }
    .hero-ctas { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
