/* ============================================
   DOCTOR-ACASA.RO - Tailark Design System
   Modern, Clean, Professional
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Colors - Pink & Orange Theme */
    --primary: #FF6B9D;
    --primary-foreground: #ffffff;
    --secondary: #f5f5f5;
    --secondary-foreground: #0a0a0a;
    --accent: #fafafa;
    --accent-foreground: #0a0a0a;
    --muted: #f5f5f5;
    --muted-foreground: #737373;
    
    /* Base Colors */
    --background: #ffffff;
    --foreground: #0a0a0a;
    --card: #ffffff;
    --card-foreground: #0a0a0a;
    
    /* Border & Input */
    --border: #e5e5e5;
    --input: #e5e5e5;
    --ring: #FF6B9D;
    
    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #FF6B9D 0%, #FF8C42 100%);
    
    /* Radius */
    --radius: 0.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* ============================================
   BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: var(--foreground);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

p {
    color: var(--muted-foreground);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
}

/* Container */
.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

/* ============================================
   BUTTON COMPONENT (from shadcn)
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none;
}

.btn:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* Button Variants */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    border: 1px solid var(--input);
    background: var(--background);
    color: var(--foreground);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--accent-foreground);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
}

.btn-secondary:hover {
    background: var(--secondary);
    opacity: 0.8;
}

.btn-ghost:hover {
    background: var(--accent);
    color: var(--accent-foreground);
}

/* Button Sizes */
.btn-sm {
    height: 2.25rem;
    padding: 0 0.75rem;
    border-radius: var(--radius);
}

.btn {
    height: 2.5rem;
    padding: 0.5rem 1rem;
}

.btn-lg {
    height: 2.75rem;
    padding: 0.5rem 2rem;
    border-radius: var(--radius);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav-wrapper {
    position: fixed;
    z-index: 20;
    width: 100%;
    border-bottom: 1px dashed var(--border);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-wrapper[data-state="active"] .menu-icon {
    transform: rotate(180deg);
    scale: 0;
    opacity: 0;
}

.nav-wrapper[data-state="active"] .menu-icon-close {
    transform: rotate(0deg);
    scale: 1;
    opacity: 1;
}

.nav-container {
    margin: 0 auto;
    max-width: 80rem;
    padding: 0 1.5rem;
}

.nav-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem 0;
}

.nav-top {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-svg {
    height: 1.5rem;
    width: auto;
}

.menu-toggle {
    position: relative;
    z-index: 20;
    display: block;
    margin: -0.625rem;
    margin-right: -1rem;
    cursor: pointer;
    padding: 0.625rem;
    background: none;
    border: none;
}

.menu-icon,
.menu-icon-close {
    margin: auto;
    width: 1.5rem;
    height: 1.5rem;
    transition: all 0.2s ease;
}

.menu-icon-close {
    position: absolute;
    inset: 0;
    margin: auto;
    transform: rotate(-180deg);
    scale: 0;
    opacity: 0;
}

.menu-content {
    display: none;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    padding: 1.5rem;
    background: var(--background);
    box-shadow: var(--shadow-2xl);
}

.nav-wrapper[data-state="active"] .menu-content {
    display: block;
}

.menu-inner {
    margin-bottom: 2rem;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1rem;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    color: var(--muted-foreground);
    display: block;
    transition: all 0.15s ease;
}

.nav-link:hover {
    color: var(--accent-foreground);
}

.nav-buttons {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
}

/* Desktop Navigation */
@media (min-width: 1024px) {
    .nav-wrapper {
        position: relative;
        background: transparent;
        backdrop-filter: none;
        border-bottom: none;
    }
    
    .nav-content {
        gap: 0;
        padding: 1rem 0;
    }
    
    .nav-top {
        width: auto;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .menu-content {
        display: flex;
        margin: 0;
        width: fit-content;
        gap: 1.5rem;
        border: none;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }
    
    .menu-inner {
        margin: 0;
        padding-right: 1rem;
    }
    
    .nav-menu {
        flex-direction: row;
        gap: 2rem;
        font-size: 0.875rem;
    }
    
    .nav-buttons {
        flex-direction: row;
        width: auto;
        border-left: 1px solid var(--border);
        padding-left: 1.5rem;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    overflow: hidden;
    padding-top: 7rem;
    padding-bottom: 4rem;
}

.hero-container {
    position: relative;
    margin: 0 auto;
    max-width: 80rem;
    padding: 0 1.5rem;
}

.hero-grid {
    position: relative;
    z-index: 10;
}

.hero-content {
    position: relative;
    z-index: 10;
    margin: 0 auto;
    max-width: 36rem;
    text-align: center;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.25rem;
    padding-right: 0.75rem;
    margin: 0 auto 2.5rem;
    background: var(--background);
    cursor: pointer;
    transition: background 0.15s ease;
}

.hero-badge:hover {
    background: var(--muted);
}

.badge-new {
    background: var(--muted);
    border-radius: calc(var(--radius) - 0.25rem);
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-text {
    font-size: 0.875rem;
    color: var(--foreground);
}

.badge-divider {
    display: block;
    height: 1rem;
    width: 1px;
    background: var(--border);
}

.badge-icon {
    width: 1rem;
    height: 1rem;
}

/* Hero Title & Description */
.hero-title {
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    text-wrap: balance;
}

.hero-description {
    margin-top: 2rem;
    font-size: 1rem;
}

/* Hero Form */
.hero-form {
    margin: 2.5rem auto;
    max-width: 28rem;
}

.input-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding-right: 0.25rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
}

.input-wrapper:focus-within {
    box-shadow: 0 0 0 2px var(--muted);
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: var(--muted-foreground);
    pointer-events: none;
}

.email-input {
    height: 3.5rem;
    width: 100%;
    background: transparent;
    border: none;
    padding-left: 3rem;
    font-size: 0.875rem;
    color: var(--foreground);
}

.email-input:focus {
    outline: none;
}

.email-input::placeholder {
    color: var(--muted-foreground);
}

.button-wrapper {
    padding-right: 0.375rem;
}

.btn-text-desktop {
    display: none;
}

.btn-icon-mobile {
    position: relative;
    margin: auto;
    width: 1.25rem;
    height: 1.25rem;
}

/* Hero Features List */
.hero-features {
    list-style: disc inside;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.hero-features li {
    color: var(--foreground);
    font-size: 0.9375rem;
}

/* Hero Background Image */
.hero-image-wrapper {
    display: block;
    position: relative;
    margin-top: 2rem;
    width: 100%;
    z-index: 1;
}

.hero-gradient-overlay {
    display: none;
}

.hero-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    position: relative;
    width: 100%;
}

.hero-img-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #000;
    transition: transform 0.3s ease;
}

/* Mobile: all cards same size */
.hero-img-card.large,
.hero-img-card.small {
    aspect-ratio: 3/4;
    height: auto;
    width: 100%;
}

/* Mobile: 2 columns grid, auto-flow */
.hero-img-card:nth-child(1),
.hero-img-card:nth-child(2),
.hero-img-card:nth-child(3),
.hero-img-card:nth-child(4),
.hero-img-card:nth-child(5),
.hero-img-card:nth-child(6),
.hero-img-card:nth-child(7),
.hero-img-card:nth-child(8),
.hero-img-card:nth-child(9),
.hero-img-card:nth-child(10),
.hero-img-card:nth-child(11),
.hero-img-card:nth-child(12),
.hero-img-card:nth-child(13) {
    grid-column: auto;
    grid-row: auto;
}

.hero-img-card:hover {
    transform: scale(1.02);
    z-index: 1;
}

.hero-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.img-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
}

.img-subtitle {
    font-size: 0.75rem;
    opacity: 0.75;
}

/* Desktop Hero */
@media (min-width: 768px) {
    .btn-text-desktop {
        display: block;
    }
    
    .btn-icon-mobile {
        display: none;
    }
    
    .button-wrapper {
        padding-right: 0.375rem;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 5rem 0;
    }
    
    .hero-container {
        min-height: 600px;
    }
    
    .hero-grid {
        display: flex;
        align-items: center;
        gap: 3rem;
    }
    
    .hero-content {
        margin: 0;
        width: 50%;
        text-align: left;
    }
    
    .hero-badge {
        margin: 0 0 2.5rem 0;
    }
    
    .hero-form {
        margin: 3rem 0;
    }
    
    .button-wrapper {
        padding-right: 0;
    }
    
    /* Desktop: show image on right with gradient */
    .hero-image-wrapper {
        display: block;
        position: absolute;
        inset: 0;
        margin: 0 -1rem;
        border-radius: 1.5rem;
        padding: 0.75rem;
    }
    
    .hero-gradient-overlay {
        display: block;
        position: absolute;
        z-index: 1;
        inset: 0;
        background: linear-gradient(to right, var(--background) 35%, transparent);
    }
    
    /* Desktop: 10 column grid for precise layout */
    .hero-image-grid {
        grid-template-columns: repeat(10, 1fr);
    }
    
    /* Desktop: Large cards sizing */
    .hero-img-card.large {
        aspect-ratio: 3/4;
        height: 330px;
    }
    
    /* Desktop: Small cards sizing */
    .hero-img-card.small {
        aspect-ratio: 4/5;
        height: 180px;
    }
    
    /* Desktop: Top row - 5 large cards */
    .hero-img-card:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1;
    }
    
    .hero-img-card:nth-child(2) {
        grid-column: 3 / 5;
        grid-row: 1;
    }
    
    .hero-img-card:nth-child(3) {
        grid-column: 5 / 7;
        grid-row: 1;
    }
    
    .hero-img-card:nth-child(4) {
        grid-column: 7 / 9;
        grid-row: 1;
    }
    
    .hero-img-card:nth-child(5) {
        grid-column: 9 / 11;
        grid-row: 1;
    }
    
    /* Desktop: Bottom row - 8 small cards */
    .hero-img-card:nth-child(6) { grid-column: 1 / 2.25; grid-row: 2; }
    .hero-img-card:nth-child(7) { grid-column: 2.25 / 3.5; grid-row: 2; }
    .hero-img-card:nth-child(8) { grid-column: 3.5 / 4.75; grid-row: 2; }
    .hero-img-card:nth-child(9) { grid-column: 4.75 / 6; grid-row: 2; }
    .hero-img-card:nth-child(10) { grid-column: 6 / 7.25; grid-row: 2; }
    .hero-img-card:nth-child(11) { grid-column: 7.25 / 8.5; grid-row: 2; }
    .hero-img-card:nth-child(12) { grid-column: 8.5 / 9.75; grid-row: 2; }
    .hero-img-card:nth-child(13) { grid-column: 9.75 / 11; grid-row: 2; }
}

/* ============================================
   CARDS & SERVICES
   ============================================ */

.services-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 3rem;
    color: var(--muted-foreground);
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
}

@media (min-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    display: block;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--foreground);
}

.card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.card-price {
    font-size: 1.125rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1rem 0;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.card-link:hover {
    gap: 0.75rem;
}

.link-icon {
    width: 1rem;
    height: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--muted);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--foreground);
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.footer-section a:hover {
    color: var(--foreground);
}

.footer-section p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* ============================================
   FLOATING CTA
   ============================================ */

.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 999;
}

.floating-cta:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.floating-cta svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center {
    text-align: center;
}

.mt-8 {
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .section {
        padding: 7rem 0;
    }
}
