/* ===========================
   Sport Gym Pori - Custom Styles
   Bootstrap 5.3 Base
   Color Scheme: Black, White, Red
   =========================== */

:root {
    --primary-red: #C41E3A;
    --primary-red-dark: #A01729;
    --primary-red-rgb: 196, 30, 58;
    --dark-black: #000000;
    --pure-white: #FFFFFF;
    --light-gray: #f8f9fa;
    --dark-gray: #212529;
}

/* ===========================
   Global Styles
   =========================== */

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-gray);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    margin-bottom: 0;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--primary-red);
}

/* Tekstilogo - korvaa aiemman kuvalogon */
.brand-wordmark {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--pure-white);
}

.brand-wordmark span {
    color: var(--primary-red);
}

/* ===========================
   Navigation
   =========================== */

.navbar {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand.brand-wordmark {
    font-size: 1.75rem;
    color: var(--pure-white) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.navbar-brand.brand-wordmark:hover {
    text-shadow: 0 0 12px rgba(var(--primary-red-rgb), 0.8);
    transform: translateY(-2px);
}

.navbar-nav .nav-link {
    color: var(--pure-white) !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 80%;
}

/* Instagram-ikoni yläpalkissa */
.navbar-nav .nav-link-social i {
    font-size: 1.25rem;
    vertical-align: middle;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link-social:hover i {
    color: var(--primary-red);
}

.navbar-nav .nav-link.btn {
    background-color: var(--primary-red);
    border-radius: 5px;
    padding: 0.5rem 1.5rem !important;
}

.navbar-nav .nav-link.btn::before {
    display: none;
}

.navbar-nav .nav-link.btn:hover {
    background-color: var(--primary-red-dark);
    transform: translateY(-2px);
}

/* ===========================
   Hero Section
   =========================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 5rem;
    background-color: var(--dark-black);
    background-image:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(var(--primary-red-rgb), 0.35), transparent 70%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(var(--primary-red-rgb), 0.12), transparent 70%);
    color: var(--pure-white);
    overflow: hidden;
}

/* Hienovarainen punainen viiva heron alareunassa */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-red);
}

.hero-eyebrow {
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-size: clamp(3rem, 12vw, 8rem);
    line-height: 0.95;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease;
}

.hero-lead {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.85);
    animation: fadeInUp 1.2s ease;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1.4s ease;
}

.hero-section .btn {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.hero-section .btn-danger:hover {
    background-color: var(--primary-red-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(var(--primary-red-rgb), 0.4);
}

.hero-section .btn-outline-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Pricing Section
   =========================== */

.pricing-card {
    background: var(--pure-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(var(--primary-red-rgb), 0.2);
}

.pricing-header {
    background: var(--dark-black);
    color: var(--pure-white);
    padding: 1.5rem 2rem;
    text-align: center;
}

.pricing-header h3 {
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.pricing-body {
    padding: 0;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table thead {
    background: var(--light-gray);
}

.pricing-table thead th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: var(--dark-gray);
    border-bottom: 2px solid var(--primary-red);
}

.pricing-table tbody th,
.pricing-table tbody td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--dark-gray);
}

/* Rivin otsikkosolu on <th scope="row"> - pidetään leipätekstin näköisenä */
.pricing-table tbody th {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    letter-spacing: normal;
    text-align: left;
}

.pricing-table tbody tr:hover {
    background: rgba(var(--primary-red-rgb), 0.05);
}

.pricing-table tbody tr.featured {
    background: rgba(var(--primary-red-rgb), 0.1);
}

.pricing-table tbody tr.featured th {
    font-weight: 700;
}

.pricing-table tbody tr.featured td {
    color: var(--primary-red);
    font-size: 1.4rem;
}

.pricing-table thead th:nth-child(2),
.pricing-table thead th:nth-child(3),
.pricing-table tbody td {
    text-align: center;
    font-weight: 600;
}

.pricing-table tbody td {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    color: var(--primary-red);
}

/* Jäsenyysohje hinnaston alla - erottuu korttina */
.pricing-callout {
    background: var(--pure-white);
    border-top: 4px solid var(--primary-red);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.pricing-callout-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 1px;
    line-height: 1.1;
    color: var(--primary-red);
    margin-bottom: 0.75rem;
}

.pricing-callout-text {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
}

.pricing-callout-text a {
    color: var(--primary-red);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.pricing-callout-text a:hover {
    text-decoration: underline;
}

.pricing-callout-note {
    color: #6c757d;
}

/* ===========================
   Contact Section
   =========================== */

.contact-block {
    height: 100%;
    padding: 1.75rem;
    border-left: 3px solid var(--primary-red);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.contact-block:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--pure-white);
}

.contact-info h3 i {
    color: var(--primary-red);
    margin-right: 0.75rem;
    width: 1.25em;
    text-align: center;
}

.contact-info p {
    margin-bottom: 0;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
}

.contact-info a {
    color: var(--pure-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

/* Karttalinkki erottuu leipätekstistä */
.contact-info .map-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-red);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid transparent;
}

.contact-info .map-link:hover {
    color: var(--primary-red);
    text-decoration: none;
    border-bottom-color: var(--primary-red);
}

/* Instagram-linkki yhteystietojen alla */
.instagram-link {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 0.5rem;
    color: var(--pure-white);
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.instagram-link i {
    color: var(--primary-red);
    font-size: 1.75rem;
}

.instagram-link:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

.instagram-handle {
    font-weight: 700;
}

/* ===========================
   Footer
   =========================== */

footer {
    border-top: 3px solid var(--primary-red);
}

.footer-brand {
    font-size: 1.5rem;
}

.footer-social {
    font-size: 1.5rem;
    color: var(--pure-white);
    transition: color 0.3s ease;
}

.footer-social:hover {
    color: var(--primary-red);
}

/* ===========================
   Responsive Adjustments
   =========================== */

@media (max-width: 991.98px) {
    .navbar-brand.brand-wordmark {
        font-size: 1.5rem;
    }

    .navbar-nav .nav-link.btn {
        display: inline-block;
        margin-top: 0.5rem;
    }

    .section-title {
        font-size: 3rem;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 2.5rem;
    }

    .hero-lead {
        font-size: 1.1rem;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand.brand-wordmark {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-eyebrow {
        letter-spacing: 4px;
        font-size: 0.8rem;
    }

    .pricing-table thead th,
    .pricing-table tbody th,
    .pricing-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    .pricing-table tbody td {
        font-size: 1.1rem;
    }

    .pricing-table tbody tr.featured td {
        font-size: 1.2rem;
    }

    .contact-block {
        padding: 1.25rem;
    }

    .pricing-callout {
        padding: 1.5rem 1.25rem;
    }

    .pricing-callout-title {
        font-size: 1.75rem;
    }

    .pricing-callout-text {
        font-size: 1.1rem;
    }
}

/* ===========================
   Utilities
   =========================== */

.bg-black {
    background-color: var(--dark-black) !important;
}

.text-primary-red {
    color: var(--primary-red) !important;
}

.btn-danger {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
    background-color: var(--primary-red-dark) !important;
    border-color: var(--primary-red-dark) !important;
}
