/* ============================================
   FARMACIA ELENA ORTEGA COTO
   Premium Dark Luxury — Emerald & Gold
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --bg-primary: #040d0a;
    --bg-secondary: #061a12;
    --bg-card: #0a2418;
    --bg-card-hover: #0d2e1f;
    --emerald-deep: #064e3b;
    --emerald-mid: #059669;
    --emerald-light: #10b981;
    --gold: #d4af37;
    --gold-light: #e8c95a;
    --gold-dim: rgba(212, 175, 55, 0.15);
    --cream: #f5f0e8;
    --cream-soft: #e8e0d0;
    --cream-dim: rgba(245, 240, 232, 0.06);
    --text-primary: #f5f0e8;
    --text-secondary: rgba(245, 240, 232, 0.7);
    --text-muted: rgba(245, 240, 232, 0.4);
    --border: rgba(212, 175, 55, 0.12);
    --border-hover: rgba(212, 175, 55, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 24px rgba(212, 175, 55, 0.2);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Raleway', 'Segoe UI', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

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

ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Typography ---- */
.text-gold { color: var(--gold); }
.text-gradient {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--emerald-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Section Common ---- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--gold-dim);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.8;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--emerald-mid) 0%, var(--emerald-deep) 100%);
    color: var(--cream);
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.35);
    border-color: rgba(16, 185, 129, 0.5);
}

.btn--gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--bg-primary);
    border: 1px solid var(--gold);
    box-shadow: var(--shadow-gold);
}

.btn--gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--cream);
    border: 1px solid var(--border-hover);
}

.btn--outline:hover {
    background: var(--cream-dim);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn--outline-light {
    background: transparent;
    color: var(--cream);
    border: 1px solid rgba(245, 240, 232, 0.25);
}

.btn--outline-light:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(4, 13, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-logo-text {
    background: linear-gradient(135deg, var(--cream) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--gold);
    background: var(--gold-dim);
}

.nav-link--cta {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--bg-primary);
    font-weight: 600;
    margin-left: 8px;
}

.nav-link--cta:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-1px);
    color: var(--bg-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--cream);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(6, 78, 59, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 30% 30% at 90% 10%, rgba(16, 185, 129, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-bg-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--gold-dim);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease both;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s 0.1s ease both;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 480px;
    animation: fadeInUp 0.8s 0.2s ease both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    animation: fadeInUp 0.8s 0.3s ease both;
}

/* ---- Hero Visual & Floating Cards ---- */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 560px;
    animation: fadeIn 1s 0.4s ease both;
}

.hero-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-card--main {
    width: 320px;
    height: 420px;
    z-index: 2;
}

.hero-card--main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 13, 10, 0.8) 0%, transparent 50%);
    border-radius: var(--radius-xl);
}

.hero-card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--emerald-light), var(--gold));
}

/* Floating stat cards */
.float-card {
    position: absolute;
    background: rgba(10, 36, 24, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow-md);
    animation: float 6s ease-in-out infinite;
    z-index: 3;
}

.float-card--1 {
    top: 20px;
    right: -20px;
    animation-delay: 0s;
}

.float-card--2 {
    bottom: 80px;
    left: -30px;
    animation-delay: 2s;
}

.float-card--3 {
    bottom: -10px;
    right: 10px;
    animation-delay: 4s;
}

.float-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-dim);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
}

.float-card-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.float-card-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fadeIn 1s 1s ease both;
}

.hero-scroll svg {
    animation: bounce 2s infinite;
}

/* ---- Services ---- */
.services {
    padding: 120px 0;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(6, 26, 18, 0.6) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--emerald-light));
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: linear-gradient(145deg, var(--bg-card-hover) 0%, var(--bg-card) 100%);
    box-shadow: var(--shadow-md), 0 0 60px rgba(212, 175, 55, 0.05);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-dim);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    transition: all var(--transition);
}

.service-card:hover .service-card-icon {
    background: rgba(212, 175, 55, 0.25);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--cream);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- About ---- */
.about {
    padding: 120px 0;
    position: relative;
    background: var(--bg-secondary);
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-image-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.about-image-main img {
    width: 100%;
    height: 700px;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--bg-secondary);
    z-index: 2;
}

.about-image-accent img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    top: -20px;
    right: 40px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--bg-primary);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-gold);
    z-index: 3;
}

.about-experience-badge .experience-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.about-experience-badge .experience-text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-content {
    max-width: 480px;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-values {
    margin-top: 32px;
    display: grid;
    gap: 16px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.value-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-dim);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.value-item span {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ---- Schedule ---- */
.schedule {
    padding: 120px 0;
    position: relative;
}

.schedule::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.schedule-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.schedule-left {
    position: sticky;
    top: 120px;
}

.schedule-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.schedule-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.schedule-table {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(6, 26, 18, 0.6) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.schedule-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    padding: 16px 28px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-row:hover {
    background: var(--cream-dim);
}

.schedule-row--header {
    background: rgba(212, 175, 55, 0.08);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
}

.schedule-row span:first-child {
    font-weight: 500;
    color: var(--cream);
}

.schedule-row span:nth-child(2) {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.schedule-row span:last-child {
    text-align: right;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status--open {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald-light);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status--closed {
    background: rgba(245, 240, 232, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.status--open::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--emerald-light);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.schedule-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.schedule-note a {
    color: var(--gold);
    border-bottom: 1px dotted var(--gold);
}

.schedule-note a:hover {
    color: var(--gold-light);
}

/* ---- Location / Contact ---- */
.location {
    padding: 120px 0;
    position: relative;
    background: var(--bg-secondary);
}

.location::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.location-info {
    display: flex;
    flex-direction: column;
}

.location-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
    flex: 1;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-dim);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
}

.contact-item span,
.contact-item a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--gold);
}

.location-map {
    min-height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

/* ---- Footer ---- */
.footer {
    padding: 80px 0 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4,
.footer-legal h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-contact a,
.footer-legal a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-legal a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- Back to top ---- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-gold);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(6px); }
    60% { transform: translateY(3px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Scroll animation target */
[data-animate] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-content {
        max-width: 100%;
        order: 1;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        min-height: 400px;
        order: 2;
    }

    .hero-card--main {
        width: 260px;
        height: 340px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .schedule-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .schedule-left {
        position: static;
        text-align: center;
    }

    .schedule-cta {
        justify-content: center;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(4, 13, 10, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 40px;
        transition: right var(--transition);
        border-left: 1px solid var(--border);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 12px 24px;
    }

    .nav-link--cta {
        margin-left: 0;
        margin-top: 16px;
    }

    .hero {
        padding: 100px 20px 80px;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-visual {
        min-height: 320px;
    }

    .float-card {
        padding: 12px 16px;
    }

    .float-card--1 {
        right: 0;
        top: 10px;
    }

    .float-card--2 {
        left: 0;
        bottom: 60px;
    }

    .float-card--3 {
        right: 0;
        bottom: 0;
    }

    .float-card-number {
        font-size: 1.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 28px 24px;
    }

    .about-image-accent {
        width: 200px;
        right: -20px;
        bottom: -20px;
    }

    .about-image-accent img {
        height: 250px;
    }

    .about-experience-badge {
        right: 20px;
        top: -10px;
        padding: 16px 20px;
    }

    .about-experience-badge .experience-number {
        font-size: 2rem;
    }

    .schedule-row {
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 90px 16px 60px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-card--main {
        width: 220px;
        height: 290px;
    }

    .float-card {
        display: none;
    }

    .float-card--1,
    .float-card--2,
    .float-card--3 {
        display: flex;
    }

    .section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .services,
    .about,
    .schedule,
    .location {
        padding: 80px 0;
    }

    .services {
        padding: 80px 0;
    }

    .schedule-table {
        overflow-x: auto;
    }

    .schedule-row {
        min-width: 260px;
    }
}
