/* ========================================
   EGERIA – Gabinet masażu i terapii manualnych
   Design matching original WordPress site
   ======================================== */

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

:root {
    --gold: #e8a828;
    --gold-dark: #d49520;
    --gold-light: #f0c060;
    --cream: #faf3ea;
    --cream-dark: #f5ead8;
    --green-dark: #2d4a43;
    --green: #3a5f55;
    --teal: #4a7c6f;
    --text-dark: #2c2420;
    --text-body: #4a4340;
    --text-light: #6b6360;
    --white: #ffffff;
    --black: #1a1a1a;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--white);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

/* ========================================
   HEADER
   ======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 110;
    background: transparent;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-link {
    display: block;
}

.logo {
    height: 50px;
    width: auto;
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gold);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: background-color 0.3s;
    z-index: 110;
}

.mobile-menu-toggle:hover {
    background: var(--gold-dark);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ========================================
   SIDEBAR NAVIGATION
   ======================================== */
.sidebar-nav {
    position: fixed;
    top: 0;
    right: -360px;
    width: 340px;
    height: 100vh;
    background: var(--gold);
    z-index: 105;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-nav.active {
    right: 0;
}

.sidebar-inner {
    padding: 6rem 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-nav ul {
    list-style: none;
    margin-bottom: 3rem;
}

.sidebar-nav li {
    margin-bottom: 0.25rem;
}

.sidebar-nav a {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    display: block;
    padding: 0.3rem 0;
    transition: opacity 0.2s;
}

.sidebar-nav a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.sidebar-contact {
    margin-top: auto;
    color: var(--white);
    font-size: 0.9rem;
    line-height: 1.6;
}

.sidebar-contact p {
    margin-bottom: 0.15rem;
    color: var(--white);
}

.sidebar-phone {
    margin-top: 1rem !important;
}

.sidebar-phone a {
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.sidebar-contact a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.2s;
}

.sidebar-contact a:hover {
    opacity: 0.7;
}

.sidebar-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.sidebar-social a {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1.1rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.sidebar-social a:hover {
    opacity: 1;
}

/* Sidebar overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 102;
}

.sidebar-overlay.active {
    display: block;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(40, 30, 20, 0.45) 0%,
            rgba(50, 40, 30, 0.40) 50%,
            rgba(30, 25, 15, 0.50) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 5rem 2rem 2rem;
    max-width: 800px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
}

.hero-brand {
    font-size: 3.2rem;
    font-weight: 700;
}

.hero-details {
    margin-bottom: 1.5rem;
}

.hero-details p {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.15rem;
    line-height: 1.6;
}

.hero-details a {
    color: var(--white);
    text-decoration: none;
}

.hero-details a:hover {
    text-decoration: underline;
}

.hero-name {
    font-weight: 400;
    font-size: 1.1rem !important;
}

.hero-keywords {
    margin-top: 2rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-down {
    display: inline-block;
    margin-top: 3rem;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.3s;
}

.scroll-arrow {
    font-size: 2.5rem;
    display: block;
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(10px);
    }

    60% {
        transform: translateY(5px);
    }
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-section {
    background: var(--cream);
    padding: 4rem 0;
}

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

.service-card {
    position: relative;
    display: block;
    height: 320px;
    overflow: hidden;
    text-decoration: none;
    color: var(--white);
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card .service-card-overlay {
    position: absolute;
    inset: 0;
    transition: background 0.3s;
}

/* Masaż leczniczy - teal/green tint */
.service-card:nth-child(1) .service-card-overlay {
    background: linear-gradient(to bottom,
            rgba(45, 85, 75, 0.35) 0%,
            rgba(45, 85, 75, 0.65) 100%);
}

.service-card:nth-child(1):hover .service-card-overlay {
    background: linear-gradient(to bottom,
            rgba(45, 85, 75, 0.45) 0%,
            rgba(45, 85, 75, 0.75) 100%);
}

/* Strefa relaksu - warm orange tint */
.service-card:nth-child(2) .service-card-overlay {
    background: linear-gradient(to bottom,
            rgba(220, 140, 30, 0.35) 0%,
            rgba(220, 140, 30, 0.65) 100%);
}

.service-card:nth-child(2):hover .service-card-overlay {
    background: linear-gradient(to bottom,
            rgba(220, 140, 30, 0.45) 0%,
            rgba(220, 140, 30, 0.75) 100%);
}

/* Pielęgnacja ciała - dark/charcoal tint */
.service-card:nth-child(3) .service-card-overlay {
    background: linear-gradient(to bottom,
            rgba(40, 40, 35, 0.30) 0%,
            rgba(40, 40, 35, 0.60) 100%);
}

.service-card:nth-child(3):hover .service-card-overlay {
    background: linear-gradient(to bottom,
            rgba(40, 40, 35, 0.40) 0%,
            rgba(40, 40, 35, 0.70) 100%);
}

.service-card h4 {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    z-index: 2;
    margin: 0;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
    background: var(--white);
    padding: 5rem 0 6rem;
    margin: 2rem 0;
}

.about-subtitle {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.about-body p {
    margin-bottom: 1.2rem;
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.8;
}

.about-body ul {
    margin: 1rem 0 1.5rem 1.5rem;
    list-style: disc;
}

.about-body ul li {
    margin-bottom: 0.5rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* ========================================
   QUALIFICATIONS SECTION
   ======================================== */
.qualifications-section {
    background: var(--gold);
    color: var(--white);
    padding: 5rem 0;
}

.qualifications-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.qualifications-text h2 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    border: none;
    padding: 0;
}

.qualifications-text p {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
}

.qualifications-text ul {
    list-style: disc;
    margin-left: 1.2rem;
}

.qualifications-text ul li {
    color: var(--white);
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.qualifications-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ========================================
   ROLA MASAŻU SECTION
   ======================================== */
.rola-section {
    background: var(--cream);
    padding: 5rem 0;
}

.rola-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.rola-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.rola-content h2 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 2rem;
    border: none;
    padding: 0;
}

.rola-content blockquote {
    border-left: 3px solid var(--gold);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.rola-content blockquote p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-body);
}

.rola-content blockquote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-size: 0.95rem;
    color: var(--text-light);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s;
}

.link-arrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--text-dark);
    transition: width 0.3s;
}

.link-arrow:hover {
    color: var(--gold-dark);
}

.link-arrow:hover::before {
    width: 60px;
    background: var(--gold-dark);
}

/* ========================================
   PROMOTIONS SECTION
   ======================================== */
.promotions-section {
    background: var(--white);
    padding: 5rem 0;
}

.promotions-section h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    border: none;
    padding: 0;
}

.promo-card {
    display: block;
    padding: 2rem;
    background: var(--cream);
    transition: background 0.3s, transform 0.3s;
    text-decoration: none;
}

.promo-card:hover {
    background: var(--cream-dark);
    transform: translateY(-2px);
}

.promo-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.promo-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ========================================
   OPINIONS SECTION
   ======================================== */
.opinions-section {
    background: var(--green-dark);
    padding: 5rem 0;
}

.opinions-section h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 2.5rem;
    border: none;
    padding: 0;
    text-align: center;
}

.opinions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.opinion-card blockquote {
    border-left: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.opinion-card blockquote p {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: normal;
    line-height: 1.8;
    color: var(--cream);
}

.opinion-card:nth-child(2) {
    margin-top: 4rem;
}

.opinion-author {
    padding-left: 0;
    margin-top: 1.5rem;
}

.opinion-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--cream);
    font-weight: 700;
}

.opinion-author span {
    font-size: 0.8rem;
    color: rgba(250, 243, 234, 0.6);
}

/* ========================================
   PRICING SECTION (CENNIK)
   ======================================== */
.pricing-section {
    background: var(--cream);
    padding: 5rem 0;
}

.pricing-section h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 3rem;
    border: none;
    padding: 0;
}

.price-table {
    max-width: 900px;
    margin: 0 auto;
}

.price-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s;
}

.price-row:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.price-row:hover {
    background-color: rgba(232, 168, 40, 0.06);
}

.price-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.price-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

.price-amount {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: right;
    white-space: nowrap;
}

.price-action {
    text-align: right;
}

.price-action a {
    font-size: 0.8rem;
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s;
}

.price-action a:hover {
    color: var(--gold-dark);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--gold);
    color: var(--white);
    padding: 3rem 0;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.footer-brand p {
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.footer-copyright {
    font-size: 0.85rem !important;
    opacity: 0.8;
    margin-top: 0.5rem !important;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-social a {
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}

.footer-social a:hover {
    opacity: 1;
}

.footer-contact {
    text-align: right;
}

.footer-contact p {
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-phone {
    margin-top: 1rem !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .qualifications-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .qualifications-image {
        order: -1;
    }

    .qualifications-image img {
        max-width: 500px;
    }

    .rola-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-brand {
        font-size: 2.4rem;
    }

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

    .service-card {
        height: 250px;
    }

    .opinions-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .price-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 1rem;
        padding: 1rem;
    }

    .price-desc {
        grid-column: 1 / -1;
        order: 3;
    }

    .price-amount {
        text-align: left;
    }

    .price-action {
        text-align: right;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-contact {
        text-align: left;
    }

    .sidebar-nav {
        width: 100%;
        right: -100%;
    }

    .rola-content h2 {
        font-size: 2.5rem;
    }

    .qualifications-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-brand {
        font-size: 1.9rem;
    }

    .hero-details p {
        font-size: 0.9rem;
    }

    .price-row {
        grid-template-columns: 1fr auto;
        gap: 0.25rem 1rem;
    }

    .pricing-section h2 {
        font-size: 2rem;
    }
}

/* ========================================
   SUBPAGE STYLES (for masaz-leczniczy etc.)
   ======================================== */

/* Legacy support for subpage hero */
.hero p {
    color: var(--white);
    font-size: 1.2rem;
}

/* Legacy content sections used on subpages */
.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 0.5rem;
}

.content-section h3 {
    font-family: var(--font-display);
    color: var(--text-dark);
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-body);
}

.content-section ul {
    margin: 1rem 0 1.5rem 2rem;
    line-height: 1.8;
    list-style: disc;
}

.content-section ul li {
    margin-bottom: 0.5rem;
    color: var(--text-body);
}

/* Legacy price list on subpages */
.price-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.price-item {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: 0;
    border-left: 4px solid var(--gold);
}

.price-item h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.price-item .price {
    font-size: 1.5rem;
    color: var(--gold-dark);
    font-weight: bold;
    margin: 0.5rem 0;
}

/* Legacy contact info */
.contact-info {
    background: var(--gold);
    color: var(--white);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.contact-info h3 {
    color: var(--white);
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ========================================
   KARNETY PAGE STYLES
   ======================================== */
.karnet-promo-image {
    margin-bottom: 2.5rem;
}

.karnet-promo-image img {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.karnet-info-box {
    background: var(--cream);
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.karnet-info-box a {
    color: var(--gold-dark);
    font-weight: 700;
}

.karnet-offer {
    margin-bottom: 2rem;
}

.karnet-offer h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
}

.karnet-offer h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: #c0392b;
    margin: 2rem 0 1rem;
}

.karnet-prices {
    max-width: 500px;
}

.karnet-price-row {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
}

.karnet-price-row.highlight {
    font-weight: 700;
}

.karnet-duration {
    font-size: 1.05rem;
    color: var(--text-dark);
    min-width: 100px;
}

.karnet-amount {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
}

.karnet-old {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}

.karnet-old s {
    color: #c0392b;
}

/* Subpage main container */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Subpage hero with dark green background */
.hero:not(:has(.hero-bg)) {
    min-height: auto;
    padding: 8rem 2rem 4rem;
    background: var(--green-dark);
    flex-direction: column;
}

.hero:not(:has(.hero-bg)) .hero-overlay {
    display: none;
}

.hero:not(:has(.hero-bg)) h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

/* Override main padding for homepage sections */
.section main,
.services-section+.about-section {
    padding: 0;
}

/* When main contains sections (homepage), remove its padding */
main:has(.section) {
    max-width: none;
    padding: 0;
}