/* ===================================
   PALLIACARE - DESIGN SYSTEM
   =================================== */

:root {
    /* Colors */
    --color-primary: #2d5f4f;
    --color-primary-dark: #1f4438;
    --color-primary-light: #6fa896;
    --color-accent: #e8b4a0;
    --color-accent-dark: #d4956f;
    --color-sakinah: #8a9a8b;
    --color-sakinah-light: #c8d2c4;
    
    --color-bg: #ffffff;
    --color-bg-alt: #faf8f5;
    --color-bg-warm: #f5f1ea;
    --color-bg-dark: #1a3530;
    
    --color-text: #2a2a2a;
    --color-text-muted: #6b6b6b;
    --color-text-light: #9a9a9a;
    --color-border: #e8e6e0;
    --color-border-strong: #d4d2cc;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --container-max: 1200px;
    --container-narrow: 880px;
    
    /* Animation */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================================
   RESET & BASE
   =================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary-light);
    margin-bottom: 1rem;
}

/* ===================================
   LAYOUT
   =================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

/* ===================================
   HEADER & NAV
   =================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav-wrapper {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.85;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

@media (max-width: 600px) {
    .logo-img { height: 30px; }
}

.site-footer .logo-img {
    height: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    list-style: none;
}

.nav-menu a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.2s var(--ease);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
}

.nav-cta {
    background: var(--color-primary);
    color: white !important;
    padding: 0.625rem 1.25rem;
    border-radius: 100px;
    font-weight: 500 !important;
    transition: all 0.2s var(--ease);
}

.nav-cta:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.nav-cta::after { display: none !important; }

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-text);
}

@media (max-width: 900px) {
    .menu-toggle { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s var(--ease);
    }
    
    .nav-menu.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-menu li { width: 100%; }
    
    .nav-menu a {
        display: block;
        padding: 0.875rem 0;
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav-menu a.active::after { display: none; }
    
    .nav-cta {
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.25s var(--ease);
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(45, 95, 79, 0.4);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

.btn-accent:hover {
    background: var(--color-accent-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-ghost {
    color: var(--color-primary);
    padding: 0.5rem 0;
    border-radius: 0;
}

.btn-ghost:hover {
    gap: 0.75rem;
}

.btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* ===================================
   HERO
   =================================== */

.hero {
    position: relative;
    padding: clamp(4rem, 10vw, 7rem) 0 clamp(4rem, 8vw, 6rem);
    overflow: hidden;
    background: linear-gradient(135deg, #f5f1ea 0%, #faf8f5 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(111, 168, 150, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 180, 160, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: var(--color-primary-dark);
}

.hero-lead {
    font-size: clamp(1.0625rem, 1.75vw, 1.25rem);
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===================================
   SECTION HEADERS
   =================================== */

.section-header {
    margin-bottom: 4rem;
    max-width: 720px;
}

.section-header.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-header h2 {
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}

.section-header p {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ===================================
   CARDS
   =================================== */

.card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s var(--ease);
}

.card:hover {
    border-color: var(--color-primary-light);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(45, 95, 79, 0.15);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--color-bg-warm);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    transition: all 0.3s var(--ease);
}

.card:hover .card-icon {
    background: var(--color-primary);
    color: white;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.75;
}

.card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.card p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* ===================================
   GRID
   =================================== */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* ===================================
   FOOTER
   =================================== */

.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    line-height: 1.65;
    max-width: 320px;
}

.footer-col h4 {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: color 0.2s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col a:hover { color: white; }

.footer-col svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.75;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease);
}

.social-links a:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
}

.social-links svg {
    width: 18px;
    height: 18px;
    stroke: white;
    stroke-width: 1.75;
}

/* ===================================
   CTA BANNER
   =================================== */

.cta-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: clamp(3rem, 6vw, 5rem) 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 180, 160, 0.15) 0%, transparent 70%);
}

.cta-banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.cta-banner h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.0625rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    animation: fadeUp 0.6s var(--ease-out) forwards;
}

.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   UTILITIES
   =================================== */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
