/*
Theme Name: Top Touch Coachworks
Theme URI: https://www.toptouchcoachworks.co.uk
Author: Top Touch Coachworks
Author URI: https://www.toptouchcoachworks.co.uk
Description: Custom WordPress theme for Top Touch Coachworks - Car Restoration & Bodywork in Milton Keynes. Light, modern design with WhatsApp integration and dynamic YouTube feed.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: toptouch
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ===== VARIABLES ===== */
:root {
    --blue: #8BAFC4;
    --blue-deep: #5C8BA3;
    --blue-light: #D6E7F0;
    --blue-pale: #EDF4F8;
    --dark: #1A1D21;
    --charcoal: #2C3038;
    --white: #FFFFFF;
    --off-white: #F7F8FA;
    --text: #1A1D21;
    --text-mid: #4A4F5C;
    --text-light: #7C8290;
    --border: #E2E5EA;
    --border-light: #ECEEF1;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --radius: 8px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body, .page-template-front-page {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
ul { list-style: none; }

/* ===== WP ADMIN BAR FIX ===== */
body.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-nav { top: 46px; } }

/* ===== NAV ===== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid transparent;
    transition: all 0.35s ease;
}

.site-nav.scrolled {
    padding: 12px 48px;
    border-bottom-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.nav-logo img { height: 64px; width: auto; }

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--blue-deep); }

.nav-cta {
    background: #25D366 !important;
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 6px;
    font-weight: 600 !important;
    white-space: nowrap;
    transition: all 0.3s !important;
}

.nav-cta:hover {
    background: #1DB954 !important;
    color: var(--white) !important;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    margin: 5px 0;
    transition: 0.3s;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary { background: var(--dark); color: var(--white); }
.btn-primary:hover { background: var(--charcoal); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-deep); background: var(--blue-pale); }

.btn-whatsapp { background: #25D366; color: white; font-size: 15px; padding: 16px 36px; }
.btn-whatsapp:hover { background: #1DB954; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,211,102,0.25); }
.btn-whatsapp svg { width: 20px; height: 20px; fill: white; }
.btn-whatsapp i { font-size: 18px; }

.btn-youtube { background: #FF0000; color: white; margin-top: 12px; }
.btn-youtube:hover { background: #CC0000; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,0,0,0.15); }
.btn-youtube svg { width: 18px; height: 18px; fill: white; }
.btn-youtube i { font-size: 16px; }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 120px 48px 80px;
    gap: 48px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--blue-pale) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content { max-width: 580px; position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--blue-pale);
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue-deep);
    margin-bottom: 28px;
    animation: fadeInUp 0.7s ease;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--blue-deep);
    border-radius: 50%;
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(52px, 6vw, 86px);
    line-height: 0.95;
    letter-spacing: 1px;
    color: var(--dark);
    margin-bottom: 24px;
    animation: fadeInUp 0.7s ease 0.1s both;
}

.hero h1 .accent { color: var(--blue-deep); }

.hero-sub {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-mid);
    max-width: 460px;
    margin-bottom: 36px;
    animation: fadeInUp 0.7s ease 0.2s both;
}

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

.hero-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    animation: fadeInUp 0.8s ease 0.2s both;
    z-index: 2;
}

.hero-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.hero-img:hover img { transform: scale(1.04); }
.hero-img:nth-child(1) { grid-row: span 2; min-height: 420px; }
.hero-img:nth-child(2), .hero-img:nth-child(3) { min-height: 205px; }

/* ===== TRUST BAR ===== */
.trust-bar {
    display: flex;
    justify-content: center;
    gap: 64px;
    padding: 48px;
    background: var(--off-white);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.trust-item { text-align: center; }

.trust-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 40px;
    color: var(--dark);
    line-height: 1;
}

.trust-label {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: 6px;
    font-weight: 500;
}

/* ===== SECTIONS ===== */
.tt-section { padding: 100px 48px; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--blue-deep);
    margin-bottom: 14px;
}

.section-label::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--blue);
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 4.5vw, 58px);
    line-height: 1.05;
    letter-spacing: 1px;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-mid);
    max-width: 520px;
}

/* ===== SERVICES ===== */
.services { background: var(--white); }
.services-header { text-align: center; margin-bottom: 56px; }
.services-header .section-desc { margin: 0 auto; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: var(--off-white);
    border: 1px solid var(--border-light);
    padding: 40px 32px;
    border-radius: var(--radius);
    transition: all 0.35s ease;
}

.service-card:hover {
    border-color: var(--blue-light);
    background: var(--blue-pale);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-light);
    border-radius: 10px;
    margin-bottom: 20px;
    transition: background 0.3s;
}

.service-card:hover .service-icon { background: var(--blue); }

.service-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--blue-deep);
    fill: none;
    stroke-width: 1.8;
    transition: stroke 0.3s;
}

.service-icon i {
    font-size: 20px;
    color: var(--blue-deep);
    transition: color 0.3s;
}

.service-card:hover .service-icon svg { stroke: var(--white); }
.service-card:hover .service-icon i { color: var(--white); }

.service-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 0.5px;
    color: var(--dark);
    margin-bottom: 10px;
}

.service-card p { font-size: 14px; line-height: 1.7; color: var(--text-mid); }

/* ===== ABOUT ===== */
.about {
    background: var(--off-white);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 72px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-image { position: relative; }

.about-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.about-image-badge {
    position: absolute;
    bottom: -16px;
    left: -16px;
    background: var(--dark);
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.about-image-badge .badge-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    line-height: 1;
    color: var(--blue);
}

.about-image-badge .badge-label {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 500;
}

.about-text blockquote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--blue-deep);
    border-left: 3px solid var(--blue);
    padding-left: 20px;
    margin: 28px 0;
}

.about-text p { font-size: 15px; line-height: 1.8; color: var(--text-mid); margin-bottom: 14px; }

.about-signature {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.about-sig-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--blue-light);
}

.about-sig-name { font-weight: 700; font-size: 15px; color: var(--dark); }
.about-sig-role { font-size: 13px; color: var(--blue-deep); font-weight: 500; }

/* ===== GALLERY ===== */
.gallery { background: var(--white); }

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1200px;
    margin: 0 auto 48px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 260px;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
}

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

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.35s;
    border-radius: 6px;
}

.gallery-item:hover::after { opacity: 1; }
.gallery-item.wide { grid-column: span 2; }

.gallery-follow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-deep);
    letter-spacing: 0.5px;
    transition: gap 0.3s;
}

.gallery-follow:hover { gap: 14px; }

/* ===== WORKSHOP BANNER ===== */
.workshop-banner { position: relative; height: 400px; overflow: hidden; }
.workshop-banner img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55); }

.workshop-banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px;
}

.workshop-banner h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.workshop-banner p { font-size: 17px; color: rgba(255,255,255,0.8); max-width: 500px; line-height: 1.6; }

/* ===== YOUTUBE ===== */
.youtube { background: var(--off-white); border-top: 1px solid var(--border-light); }

.youtube-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.youtube-thumb { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }

.youtube-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--blue-light);
}

.youtube-channel-info h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: var(--dark);
    letter-spacing: 0.5px;
}

.youtube-channel-info p { color: var(--text-light); font-size: 13px; font-weight: 500; }

.youtube-text h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 44px;
    color: var(--dark);
    margin-bottom: 18px;
    line-height: 1.05;
}

.youtube-text .yt-red { color: #FF0000; }
.youtube-text p { font-size: 15px; color: var(--text-mid); line-height: 1.7; margin-bottom: 14px; }

.yt-video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }

/* ===== CTA ===== */
.cta {
    background: var(--dark);
    text-align: center;
    padding: 100px 48px;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%; left: -25%;
    width: 150%; height: 150%;
    background: radial-gradient(ellipse at 30% 50%, rgba(139,175,196,0.12) 0%, transparent 50%);
    pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.cta .section-label { color: var(--blue); }
.cta .section-label::before { background: var(--blue); }

.cta h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(42px, 5vw, 68px);
    color: var(--white);
    line-height: 1;
    margin-bottom: 18px;
}

.cta p { font-size: 16px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 32px; }
.cta-note { font-size: 13px; color: rgba(255,255,255,0.35); margin-top: 16px; }

.cta-features { display: flex; gap: 24px; justify-content: center; margin-bottom: 36px; flex-wrap: wrap; }
.cta-feature { text-align: center; }
.cta-feature-title { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--blue); }
.cta-feature-label { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.4); }

/* ===== SEO TEXT ===== */
/* Map */
.map-section { padding: 80px 24px; background: var(--off-white); }
.map-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: center; }
.map-info .section-label { margin-bottom: 8px; }
.map-info h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(32px,5vw,48px); color: var(--dark); margin-bottom: 24px; }
.map-address { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 28px; line-height: 1.7; color: var(--text-light); font-size: 15px; }
.map-address strong { color: var(--dark); font-size: 16px; }
.btn-outline { display: inline-block; padding: 12px 28px; border: 2px solid var(--accent); color: var(--accent); font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 1px; border-radius: 4px; text-decoration: none; transition: all .3s ease; }
.btn-outline:hover { background: var(--accent); color: #fff; }
.map-embed { min-height: 350px; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.map-embed iframe { display: block; width: 100%; min-height: 350px; }
@media (max-width: 768px) {
    .map-inner { grid-template-columns: 1fr; gap: 32px; }
    .map-embed { min-height: 280px; }
    .map-embed iframe { min-height: 280px; }
}

/* SEO */
.seo-text { padding: 48px; background: var(--off-white); border-top: 1px solid var(--border-light); }
.seo-text-inner { max-width: 900px; margin: 0 auto; }
.seo-text h2 { font-family: 'Bebas Neue', sans-serif; font-size: 26px; color: var(--dark); margin-bottom: 10px; }
.seo-text p { font-size: 14px; color: var(--text-light); line-height: 1.8; }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--border-light);
    padding: 56px 48px 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-brand img { height: 52px; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--text-light); line-height: 1.7; max-width: 280px; }

.footer-col h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 17px;
    color: var(--dark);
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--text-light); font-size: 13px; transition: color 0.3s; }
.footer-col a:hover { color: var(--blue-deep); }

.footer-bottom {
    border-top: 1px solid var(--border-light);
    margin-top: 40px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom p { font-size: 12px; color: var(--text-light); }

.footer-social { display: flex; gap: 12px; }

.footer-social a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-light);
    transition: all 0.3s;
}

.footer-social a:hover { border-color: var(--blue); color: var(--blue-deep); background: var(--blue-pale); }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }
.footer-social i { font-size: 14px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .tt-section { padding: 72px 32px; }
    .hero { grid-template-columns: 1fr; min-height: auto; padding: 120px 32px 60px; }
    .hero-images { max-width: 600px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image img { aspect-ratio: 16/10; }
    .youtube-inner { grid-template-columns: 1fr; gap: 40px; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .trust-bar { gap: 40px; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .site-nav { padding: 12px 20px; }
    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-md);
    }
    .mobile-toggle { display: block; }
    .tt-section { padding: 56px 20px; }
    .hero { padding: 100px 20px 48px; }
    .hero-images { grid-template-columns: 1fr 1fr; }
    .hero-img:nth-child(1) { grid-row: span 1; min-height: 200px; }
    .hero-img:nth-child(2), .hero-img:nth-child(3) { min-height: 200px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
    .gallery-item.wide { grid-column: span 2; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .hero-actions { flex-direction: column; }
    .btn { justify-content: center; }
    .workshop-banner { height: 280px; }
    .trust-bar { gap: 24px; padding: 32px 20px; }
    .cta { padding: 64px 20px; }
    .site-footer { padding: 40px 20px 20px; }
}
