/*
Theme Name: The Tanning Basement
Theme URI: https://www.thetanningbasement.co.uk
Author: The Tanning Basement
Author URI: https://www.thetanningbasement.co.uk
Description: Custom theme for The Tanning Basement — tanning, beauty, fitness and sports massage in Queniborough, Leicester. Lightweight, fast-loading, fully editable through the Customizer.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tanning-basement
*/

/* ===========================================
   RESET
   =========================================== */

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #6ab023; text-decoration: none; transition: color .2s; }
a:hover { color: #4e8419; }
ul { list-style: none; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: #1a1a1a; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.2rem; }

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

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

/* ===========================================
   TOP BAR
   =========================================== */

.top-bar {
    background: #222;
    padding: 7px 0;
    font-size: .82rem;
    color: #ccc;
}
.top-bar .wrap {
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 8px;
}
.top-bar__contact { display: flex; gap: 22px; }
.top-bar__contact a { color: #ccc; }
.top-bar__contact a:hover { color: #6ab023; }
.top-bar__social { display: flex; gap: 14px; }
.top-bar__social a { color: #ccc; font-size: .8rem; }
.top-bar__social a:hover { color: #6ab023; }

/* ===========================================
   HEADER
   =========================================== */

.site-header {
    background: #fff;
    padding: 16px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    position: sticky; top: 0; z-index: 100;
}
.site-header .wrap {
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 12px;
}
.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-logo img { max-height: 50px; width: auto; }
.site-logo__fallback {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.35rem; font-weight: 700;
    color: #1a1a1a; letter-spacing: 1.5px;
    text-transform: uppercase; line-height: 1;
}
.site-logo__fallback small {
    display: block; font-size: .55em;
    letter-spacing: .5px; font-weight: 400;
}

/* Nav */
.main-nav__toggle {
    display: none; background: none;
    border: 2px solid #333; padding: 5px 10px;
    font-size: 1.15rem; cursor: pointer;
    border-radius: 3px; color: #333; line-height: 1;
}
.main-nav__list {
    display: flex; gap: 2px; align-items: center;
}
.main-nav__list a {
    display: block; padding: 8px 15px;
    color: #333; font-size: .92rem; font-weight: 500;
    border-radius: 4px; transition: background .2s, color .2s;
}
.main-nav__list a:hover,
.main-nav__list .current-menu-item a {
    background: #6ab023; color: #fff;
}
.main-nav__list a.nav-cta {
    background: #6ab023; color: #fff; font-weight: 600;
}
.main-nav__list a.nav-cta:hover { background: #5a9a1d; }

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

.btn {
    display: inline-block; padding: 12px 30px;
    background: #6ab023; color: #fff;
    font-size: .95rem; font-weight: 600;
    border-radius: 4px; border: none; cursor: pointer;
    transition: background .2s; text-decoration: none;
}
.btn:hover { background: #5a9a1d; color: #fff; }
.btn--outline {
    background: transparent; border: 2px solid #fff; color: #fff;
}
.btn--outline:hover { background: #fff; color: #1a1a1a; }
.btn--dark-outline {
    background: transparent; border: 2px solid #333; color: #333;
}
.btn--dark-outline:hover { background: #333; color: #fff; }

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

.hero {
    position: relative; background: #1a1a1a;
    color: #fff; overflow: hidden; min-height: 440px;
    display: flex; align-items: center;
}
.hero__bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: .3;
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero__content { max-width: 620px; padding: 65px 0; }
.hero__content h1 { color: #fff; font-size: 2.4rem; margin-bottom: 18px; }
.hero__content p { font-size: 1.1rem; color: #d0d0d0; margin-bottom: 26px; line-height: 1.7; }
.hero__buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===========================================
   SERVICES
   =========================================== */

.services { padding: 65px 0; }
.services h2 { text-align: center; margin-bottom: 14px; }
.services__intro { text-align: center; color: #666; max-width: 600px; margin: 0 auto 40px; }
.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.svc {
    background: #fafafa; border: 1px solid #eee;
    border-radius: 8px; padding: 28px 22px;
    text-align: center;
    transition: box-shadow .2s, transform .15s;
}
.svc:hover { box-shadow: 0 6px 20px rgba(0,0,0,.07); transform: translateY(-3px); }
.svc__icon {
    width: 56px; height: 56px; margin: 0 auto 16px;
    background: #eaf5dd; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #6ab023;
}
.svc h3 { margin-bottom: 8px; }
.svc p { font-size: .88rem; color: #666; line-height: 1.55; }

/* ===========================================
   SUNBED SHOWCASE (home)
   =========================================== */

.sunbed-showcase {
    padding: 60px 0; background: #f7f7f7;
}
.sunbed-showcase .wrap {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 30px; align-items: center;
}
.sunbed-showcase__img {
    border-radius: 8px; overflow: hidden;
}
.sunbed-showcase__img img { width: 100%; }
.sunbed-showcase__text { grid-column: span 1; }
.sunbed-showcase__text h2 { margin-bottom: 16px; }
.sunbed-showcase__text p { color: #555; margin-bottom: 14px; }

/* ===========================================
   ABOUT STRIP (home)
   =========================================== */

.about-strip {
    background: #1a1a1a; color: #fff; padding: 60px 0;
}
.about-strip .wrap {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 40px; align-items: center;
}
.about-strip h2 { color: #fff; margin-bottom: 16px; }
.about-strip p { color: #bbb; margin-bottom: 14px; }
.about-strip img { border-radius: 8px; width: 100%; }

/* ===========================================
   PRICING TABLES
   =========================================== */

.pricing { padding: 60px 0; }
.pricing h2 { text-align: center; margin-bottom: 10px; }
.pricing__intro { text-align: center; color: #666; margin-bottom: 40px; }

.pricing__group { margin-bottom: 50px; }
.pricing__group h3 {
    text-align: center; margin-bottom: 24px;
    font-size: 1.3rem; color: #1a1a1a;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.pricing__cards {
    display: grid; gap: 18px;
    justify-content: center;
}
.pricing__cards--4 { grid-template-columns: repeat(4, 1fr); }
.pricing__cards--3 { grid-template-columns: repeat(3, 1fr); }

.price-card {
    background: #fff; border: 2px solid #e8e8e8;
    border-radius: 8px; text-align: center;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.price-card:hover {
    border-color: #6ab023;
    box-shadow: 0 4px 16px rgba(106,176,35,.12);
}
.price-card__head {
    background: #6ab023; color: #fff;
    padding: 18px 14px;
}
.price-card__head strong {
    display: block; font-size: 1.05rem; margin-bottom: 2px;
}
.price-card__head span { font-size: .9rem; opacity: .9; }
.price-card__price {
    padding: 22px 14px;
    font-size: 1.7rem; font-weight: 700; color: #1a1a1a;
}

/* Popular card highlight */
.price-card--popular { border-color: #6ab023; }
.price-card--popular .price-card__head { background: #4e8419; }

/* ===========================================
   OPENING HOURS
   =========================================== */

.hours { padding: 55px 0; background: #f9f9f9; }
.hours h2 { text-align: center; margin-bottom: 28px; }
.hours__grid { max-width: 440px; margin: 0 auto; }
.hours__row {
    display: flex; justify-content: space-between;
    padding: 11px 0; border-bottom: 1px solid #e5e5e5;
    font-size: .95rem;
}
.hours__row:last-child { border-bottom: none; }
.hours__day { font-weight: 600; }
.hours__time { color: #555; }

/* ===========================================
   CONTACT BAR
   =========================================== */

.cta-bar {
    background: #6ab023; color: #fff;
    padding: 28px 0; text-align: center;
}
.cta-bar .wrap {
    display: flex; justify-content: center;
    align-items: center; flex-wrap: wrap; gap: 28px;
}
.cta-bar a { color: #fff; font-weight: 600; font-size: 1.05rem; }
.cta-bar a:hover { color: #e0e0e0; }

/* ===========================================
   PAGE HEADER
   =========================================== */

.page-header {
    background: #1a1a1a; padding: 44px 0; text-align: center;
}
.page-header h1 { color: #fff; }

/* ===========================================
   PAGE CONTENT
   =========================================== */

.page-content { padding: 55px 0; }
.page-content h1 { margin-bottom: 22px; }
.page-content h2 { margin-top: 36px; margin-bottom: 16px; }
.page-content p { margin-bottom: 16px; line-height: 1.7; }

/* ===========================================
   TEAM (about)
   =========================================== */

.team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px; margin-top: 30px;
}
.team-card {
    text-align: center; padding: 28px 20px;
    background: #fafafa; border-radius: 8px; border: 1px solid #eee;
}
.team-card h3 { margin-bottom: 3px; }
.team-card__role {
    color: #6ab023; font-size: .82rem;
    font-weight: 600; margin-bottom: 10px;
    text-transform: uppercase; letter-spacing: .5px;
}
.team-card p { font-size: .88rem; color: #666; }

/* ===========================================
   TANNING FEATURES
   =========================================== */

.tanning-intro {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 36px; align-items: center; margin-bottom: 40px;
}
.tanning-intro img { border-radius: 8px; }
.tanning-intro p { margin-bottom: 14px; color: #555; }

.tanning-beds {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 28px; margin: 36px 0;
}
.bed-card {
    display: flex; gap: 20px; align-items: flex-start;
    background: #fafafa; border-radius: 8px;
    padding: 24px; border: 1px solid #eee;
}
.bed-card img {
    width: 120px; flex-shrink: 0; border-radius: 6px;
}
.bed-card h3 { margin-bottom: 6px; }
.bed-card p { font-size: .88rem; color: #666; }

.tanning-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px; margin: 30px 0;
}
.tanning-feat {
    padding: 22px;
    background: #f9f9f9; border-left: 4px solid #6ab023;
    border-radius: 0 6px 6px 0;
}
.tanning-feat h3 { margin-bottom: 6px; font-size: 1.05rem; }
.tanning-feat p { font-size: .88rem; color: #555; }

/* ===========================================
   CONTACT PAGE
   =========================================== */

.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 40px; margin-top: 20px;
}
.contact-info h3 { margin-bottom: 8px; margin-top: 20px; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info p { color: #555; margin-bottom: 6px; }
.contact-info a { color: #6ab023; font-weight: 500; }
.contact-map {
    border-radius: 8px; overflow: hidden; min-height: 360px;
    background: #eee;
}
.contact-map iframe { width: 100%; height: 100%; min-height: 360px; border: none; }

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

.site-footer { background: #1a1a1a; color: #999; padding: 45px 0 22px; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px; margin-bottom: 28px;
}
.footer-col h4 { color: #fff; margin-bottom: 12px; font-size: .95rem; }
.footer-col p, .footer-col a { color: #999; font-size: .88rem; line-height: 1.7; }
.footer-col a:hover { color: #6ab023; }
.footer-col ul li { margin-bottom: 5px; }
.footer-bottom {
    border-top: 1px solid #333; padding-top: 16px;
    text-align: center; font-size: .78rem; color: #555;
}

/* ===========================================
   WP DEFAULTS
   =========================================== */

.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }
.wp-caption { max-width: 100%; margin-bottom: 16px; }
.wp-caption-text { font-size: .82rem; color: #888; padding: 5px 0; }
.gallery {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px; margin-bottom: 20px;
}
.sticky { border-left: 4px solid #6ab023; padding-left: 16px; }

/* ===========================================
   RESPONSIVE
   =========================================== */

@media (max-width: 900px) {
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .pricing__cards--4 { grid-template-columns: repeat(2, 1fr); }
    .pricing__cards--3 { grid-template-columns: repeat(2, 1fr); }
    .sunbed-showcase .wrap { grid-template-columns: 1fr; }
    .tanning-beds { grid-template-columns: 1fr; }
    .tanning-intro { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav__toggle { display: block; }
    .main-nav__list {
        display: none; flex-direction: column;
        width: 100%; padding: 8px 0; gap: 0;
        position: absolute; top: 100%; left: 0;
        background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.1);
        z-index: 99;
    }
    .main-nav__list.is-open { display: flex; }
    .main-nav__list a {
        padding: 12px 24px; border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    .site-header .wrap { position: relative; }
    .site-header { position: relative; }

    h1 { font-size: 1.65rem; }
    h2 { font-size: 1.35rem; }
    .hero { min-height: 340px; }
    .hero__content { padding: 40px 0; }
    .hero__content h1 { font-size: 1.8rem; }
    .about-strip .wrap { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .top-bar__contact { flex-wrap: wrap; gap: 10px; }
}

@media (max-width: 520px) {
    .wrap { padding: 0 16px; }
    .services__grid { grid-template-columns: 1fr; }
    .pricing__cards--4,
    .pricing__cards--3 { grid-template-columns: 1fr; }
    .hero__content h1 { font-size: 1.5rem; }
    .hero__content p { font-size: .95rem; }
    .footer-grid { grid-template-columns: 1fr; }
}
