/*
Theme Name: Surface Repair Specialists
Theme URI: https://www.bathfixer.co.uk
Author: Surface Repair Specialists
Description: Custom theme for Surface Repair Specialists / Bath Fixer
Version: 1.0
License: Private
Text Domain: surface-repair-specialists
*/

/* ============================================================
   BRAND COLOURS
   Primary blue:  #0070cd
   Orange CTA:    #ff7900
   Orange hover:  #d2a92d
   Dark text:     #3a3f52
   Light bg:      #f6f8f9
   ============================================================ */

html { scroll-behavior: smooth; }

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

body {
    font-family: 'Open Sans', sans-serif;
    color: #3a3f52;
    margin: 0;
    padding: 0;
}

h1 { font-size: 50px; font-weight: 300; }
h2 { font-size: 2em; font-weight: 700; }
h3 { font-size: 24px; font-weight: 500; margin-bottom: 25px; }
h4 { font-size: 20px; font-weight: 600; }
h5 { font-size: 16px; }
p  { font-size: 16px; font-weight: 400; letter-spacing: .05em; }
b  { font-weight: 700; }
img { max-width: 100%; height: auto; }

a { color: #0070cd; text-decoration: none; }
a:hover { color: #d2a92d; text-decoration: none; }

section { padding: 70px 0; }

.container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 15px; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
.col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; padding: 0 15px; }
.col-md-12 { flex: 0 0 100%; max-width: 100%; padding: 0 15px; }
.col-lg-7 { flex: 0 0 58.333%; max-width: 58.333%; padding: 0 15px; }
.col-lg-5 { flex: 0 0 41.666%; max-width: 41.666%; padding: 0 15px; }
.offset-md-1 { margin-left: 8.333%; }

@media (max-width: 768px) {
    .col-md-4, .col-md-6, .col-md-8, .col-lg-7, .col-lg-5 {
        flex: 0 0 100%; max-width: 100%;
    }
    .offset-md-1 { margin-left: 0; }
}

/* ============================================================
   NAVBAR
   ============================================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,.09);
    border-bottom: 1px solid #0070cc;
    height: 90px;
}

.site-header .header-inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo img { max-width: 200px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 10px; }

.site-nav a {
    color: #0070cd;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 12px;
    letter-spacing: .05em;
}

.site-nav a:hover { color: #d2a92d; }

.site-nav .nav-cta {
    background: #ff7900;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 3px;
}

.site-nav .nav-cta:hover { background: #d2a92d; color: #fff !important; }

.nav-toggle {
    display: none;
    background: #f6f8f9;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 5px 10px;
    color: #0070cd;
}

@media (max-width: 992px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background: #f6f8f9;
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
    .site-nav.open { display: flex; }
    .site-nav a {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        text-align: center;
    }
}

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

.site-hero {
    background-image: url('/wp-content/themes/surface-repair-specialists/images/banner-bg.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    padding: 120px 0 80px;
    margin-top: 90px;
}

.hero-inner {
    background: rgba(0,0,0,.5);
    border-radius: 15px;
    padding: 40px 35px;
    max-width: 600px;
}

.hero-inner h1 {
    color: #fff;
    font-size: 46px;
    font-weight: 300;
    margin: 0 0 15px;
    line-height: 1.2;
}

.hero-inner .hero-sub {
    color: #fff;
    font-size: 18px;
    font-weight: 300;
    margin: 0 0 25px;
}

.hero-inner .trust-bar {
    color: rgba(255,255,255,.9);
    font-size: 13px;
    margin-bottom: 25px;
    line-height: 1.8;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary-cta {
    background: #ff7900;
    color: #fff;
    padding: 14px 24px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: .05em;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary-cta:hover { background: #d2a92d; color: #fff; }

.btn-secondary-cta {
    background: #e8edee;
    color: #0070cc;
    padding: 14px 24px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: .05em;
    display: inline-block;
}

.btn-secondary-cta:hover { background: #bababa; color: #0070cc; }

@media (max-width: 768px) {
    .hero-inner h1 { font-size: 32px; }
    .hero-inner { padding: 25px 20px; }
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section-dark { background: #f6f8f9; border-top: 1px solid #F8F9FB; border-bottom: 1px solid #F8F9FB; }
.section-white { background: #fff; }

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.section-title h2 { color: #343434; margin-bottom: 15px; }
.section-title p { font-size: 18px; font-weight: 300; }

.content-box { padding: 20px 15px; }

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-card {
    background: #fff;
    border: 1px solid #e8edee;
    border-radius: 8px;
    padding: 25px 20px;
    transition: box-shadow .2s;
}

.service-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }

.service-card h3 {
    color: #0070cd;
    font-size: 18px;
    margin-bottom: 10px;
}

.service-card p { font-size: 14px; color: #666; margin-bottom: 15px; }

.service-card a {
    color: #ff7900;
    font-weight: 600;
    font-size: 14px;
}

/* ============================================================
   TRUST BADGES
   ============================================================ */

.trust-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    margin: 20px 0;
}

.trust-badge {
    background: #f6f8f9;
    border: 1px solid #e8edee;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #3a3f52;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.step-item { text-align: center; padding: 20px; }

.step-number {
    width: 50px;
    height: 50px;
    background: #0070cd;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 15px;
}

.step-item h3 { font-size: 16px; color: #0070cd; margin-bottom: 10px; }
.step-item p { font-size: 14px; color: #666; }

/* ============================================================
   TESTIMONIALS CAROUSEL
   ============================================================ */

.carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 5px;
    cursor: grab;
}

.carousel::-webkit-scrollbar { display: none; }
.carousel:active { cursor: grabbing; }

.testimonial-card {
    flex: 0 0 calc(50% - 20px);
    min-width: calc(50% - 20px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    padding: 25px;
}

.testimonial-card h3 { font-size: 16px; color: #343434; margin-bottom: 12px; }
.testimonial-card p { font-size: 15px; color: #666; line-height: 1.7; }

.carousel-btn {
    background: #ff7900;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .testimonial-card { flex: 0 0 100%; min-width: 100%; }
}

/* ============================================================
   ACCORDION / FAQ
   ============================================================ */

.accordion {
    background: #0070cc;
    color: #fff;
    cursor: pointer;
    padding: 16px 18px;
    width: 100%;
    border: 2px solid #0070cc;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    transition: .3s;
    margin: 8px 0 0;
    border-radius: 3px;
}

.accordion:hover { background: #005ba3; }

.panel {
    display: none;
    padding: 16px 18px;
    background: #f2f2f2;
    border: 1px solid #e0e0e0;
    margin-bottom: 4px;
}

.panel p { margin: 0; font-size: 15px; }

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact-form-wrap {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 1px rgba(0,12,32,.04), 0 10px 16px rgba(10,31,68,.06);
}

.contact-form-wrap h3 { text-align: center; color: #343434; font-weight: 800; margin-bottom: 25px; }

.form-row { display: flex; gap: 15px; margin-bottom: 15px; }
.form-group { flex: 1; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    color: #3a3f52;
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-submit {
    background: #ff7900;
    color: #fff;
    border: none;
    padding: 13px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.form-submit:hover { background: #d2a92d; }

@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
}

/* ============================================================
   CALL TO ACTION SECTION
   ============================================================ */

.cta-section { background: #f6f8f9; padding: 60px 0; text-align: center; }
.cta-section h2 { color: #343434; margin-bottom: 10px; }
.cta-section p { font-size: 18px; color: #666; margin-bottom: 25px; }

.cta-btn-large {
    background: #ff7900;
    color: #fff;
    padding: 18px 40px;
    border-radius: 3px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .05em;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.cta-btn-large:hover { background: #d2a92d; color: #fff; }

/* ============================================================
   COVERAGE / PRICING TABLE
   ============================================================ */

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.price-table th {
    background: #0070cd;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-size: 15px;
}

.price-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #e8edee;
    font-size: 15px;
}

.price-table tr:nth-child(even) td { background: #f6f8f9; }

/* ============================================================
   SERVICE LINKS FOOTER BLOCK
   ============================================================ */

.other-services {
    background: #f6f8f9;
    padding: 40px 0;
    border-top: 1px solid #e8edee;
}

.other-services h2 { text-align: center; color: #343434; margin-bottom: 25px; font-size: 1.4em; }

.services-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.services-links a {
    background: #fff;
    border: 1px solid #0070cd;
    color: #0070cd;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.services-links a:hover { background: #0070cd; color: #fff; }

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

.site-footer {
    background: #2c2f3a;
    color: #ccc;
    padding: 50px 0 20px;
}

.site-footer h5 { color: #fff; font-size: 16px; margin-bottom: 15px; margin-top: 20px; }

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul li a { color: #aaa; font-size: 14px; }
.site-footer ul li a:hover { color: #ff7900; }

.site-footer p { font-size: 14px; color: #aaa; }
.site-footer a { color: #aaa; }
.site-footer a:hover { color: #ff7900; }

.footer-divider {
    border-top: 1px solid #3c3f45;
    margin: 30px 0 20px;
    padding-top: 20px;
}

.footer-social img {
    width: 30px;
    margin: 0 8px 0 0;
    opacity: .7;
    transition: opacity .2s;
}

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

.footer-copy { font-size: 13px; color: #888; }

/* ============================================================
   FLOATING CTA BAR (mobile)
   ============================================================ */

.floating-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border-top: 1px solid #e8edee;
    box-shadow: 0 -2px 8px rgba(0,0,0,.1);
}

.floating-cta a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #3a3f52;
    gap: 4px;
}

.floating-cta a img { width: 24px; height: 24px; }
.floating-cta a:first-child { background: #ff7900; color: #fff; }
.floating-cta a:first-child span { color: #fff; }

@media (max-width: 768px) {
    .floating-cta { display: flex; }
    body { padding-bottom: 70px; }
}

/* ============================================================
   WORDPRESS CONTENT AREA (for blog posts and pages)
   ============================================================ */

.entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    line-height: 1.8;
}

.entry-content h1 { font-size: 36px; color: #343434; margin-bottom: 20px; }
.entry-content h2 { font-size: 26px; color: #0070cd; margin: 35px 0 15px; }
.entry-content h3 { font-size: 20px; color: #343434; margin: 25px 0 10px; }
.entry-content p { margin-bottom: 18px; }
.entry-content ul, .entry-content ol { padding-left: 25px; margin-bottom: 18px; }
.entry-content li { margin-bottom: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.entry-content table th { background: #0070cd; color: #fff; padding: 10px 14px; text-align: left; }
.entry-content table td { padding: 10px 14px; border-bottom: 1px solid #e8edee; }
.entry-content table tr:nth-child(even) td { background: #f6f8f9; }

.entry-content .cta-inline {
    background: #f6f8f9;
    border-left: 4px solid #ff7900;
    padding: 20px 25px;
    border-radius: 0 8px 8px 0;
    margin: 30px 0;
}

/* ============================================================
   BLOG INDEX / ARCHIVE
   ============================================================ */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 50px 0;
}

.blog-card {
    background: #fff;
    border: 1px solid #e8edee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .2s;
}

.blog-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }

.blog-card-body { padding: 20px; }
.blog-card-body h3 { font-size: 17px; color: #343434; margin-bottom: 10px; line-height: 1.4; }
.blog-card-body p { font-size: 14px; color: #666; margin-bottom: 15px; }
.blog-card-body a.read-more { color: #ff7900; font-weight: 600; font-size: 14px; }

/* ============================================================
   PAGE HERO (for interior pages)
   ============================================================ */

.page-hero {
    background: linear-gradient(135deg, #0070cd 0%, #005ba3 100%);
    padding: 80px 0 50px;
    margin-top: 90px;
    text-align: center;
}

.page-hero h1 { color: #fff; font-size: 38px; font-weight: 400; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 18px; max-width: 600px; margin: 0 auto; }

/* ============================================================
   UTILITIES
   ============================================================ */

.text-center { text-align: center; }
.text-blue { color: #0070cd; }
.text-orange { color: #ff7900; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.pt-50 { padding-top: 50px; }
.pb-50 { padding-bottom: 50px; }
.img-fluid { max-width: 100%; height: auto; }
.w-100 { width: 100%; }

.divider {
    border-top: 1px solid #3c3f45;
    margin: 30px 0;
    padding-top: 20px;
}
