/* ========================================
   Janice Lieber Medical — Custom Styles
   Terracotta & Sand Palette
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-terracotta-500: #C0603A;
    --color-terracotta-600: #a84e2e;
    --color-sand-400: #ebc36a;
    --color-sand-500: #d4a84b;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* --- Header --- */
#site-header {
    background: rgba(253, 248, 238, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

#site-header.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* --- Buttons --- */
.btn-primary {
    background: var(--color-terracotta-500);
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--color-terracotta-600);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(192, 96, 58, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--color-terracotta-600);
    border: 2px solid var(--color-terracotta-500);
    border-radius: 9999px;
    padding: 0.8125rem 1.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--color-terracotta-500);
    color: #ffffff;
    transform: translateY(-1px);
}

/* CTA Buttons */
.btn-cta {
    background: #ffffff;
    color: var(--color-terracotta-600);
    border: none;
    border-radius: 9999px;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta:hover {
    background: var(--color-sand-100);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn-cta-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 9999px;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* --- Tags / Badges --- */
.tag-terracotta,
.tag-sand {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4375rem 1rem;
    border-radius: 9999px;
}

.tag-terracotta {
    background: rgba(192, 96, 58, 0.1);
    color: var(--color-terracotta-600);
}

.tag-sand {
    background: rgba(212, 168, 75, 0.15);
    color: #946a30;
}

/* --- Section Headings --- */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.15;
    color: #1c1917;
}

.section-subtitle {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #78716c;
    margin-top: 0.75rem;
}

/* --- Service Cards --- */
.card-service {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.card-service:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

/* --- Reason Cards --- */
.card-reason {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.card-reason:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

/* --- Testimonial Cards --- */
.card-testimonial {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.card-testimonial:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
}

/* --- Input Fields --- */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e7e5e4;
    border-radius: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: #1c1917;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.input-field::placeholder {
    color: #a8a29e;
}

.input-field:focus {
    border-color: var(--color-terracotta-500);
    box-shadow: 0 0 0 3px rgba(192, 96, 58, 0.1);
}

/* --- Geometric Shapes --- */
.geo-shapes {
    z-index: 0;
}

.geo-shape {
    position: absolute;
    opacity: 0.5;
    pointer-events: none;
}

.geo-circle-1 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(192, 96, 58, 0.08) 0%, transparent 70%);
    top: 15%;
    left: -5%;
    border-radius: 50%;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 168, 75, 0.1) 0%, transparent 70%);
    bottom: 20%;
    right: 5%;
    border-radius: 50%;
}

.geo-tri-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(192, 96, 58, 0.06);
    top: 45%;
    right: 15%;
    transform: rotate(15deg);
}

.geo-rect-1 {
    width: 80px;
    height: 80px;
    background: rgba(235, 195, 106, 0.12);
    top: 60%;
    left: 8%;
    border-radius: 1rem;
    transform: rotate(30deg);
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(192, 96, 58, 0.15) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    top: 30%;
    right: 35%;
    border-radius: 50%;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* --- Mobile Menu --- */
#mobile-menu {
    transition: opacity 0.3s ease, transform 0.3s ease, pointer-events 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#mobile-menu.closed {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.menu-line {
    transition: transform 0.3s ease, opacity 0.2s ease;
}

#menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.25rem;
}

/* --- Mobile Nav Links --- */
.mobile-nav-link {
    display: block;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: var(--color-terracotta-500);
}

/* --- Subtle Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}

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

.geo-circle-1 {
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    animation: float-slow 10s ease-in-out infinite;
}

.geo-tri-1 {
    animation: float 12s ease-in-out infinite;
}

.geo-rect-1 {
    animation: float-slow 9s ease-in-out infinite;
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-terracotta-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Utility --- */
.no-underline {
    text-decoration: none;
}

/* --- Responsive Tweaks --- */
@media (max-width: 640px) {
    .card-service,
    .card-reason,
    .card-testimonial {
        padding: 1.25rem;
    }

    .geo-shape {
        display: none;
    }

    .geo-circle-1,
    .geo-circle-2 {
        display: block;
        opacity: 0.3;
    }
}
