/*
Theme Name: Nottingham Dog Training
Theme URI: https://www.nottinghamdogtraining.co.uk
Author: Nottingham Dog Training Club
Author URI: https://www.nottinghamdogtraining.co.uk
Description: A warm, community-focused theme for Nottingham Dog Training Club featuring custom front page, mobile-friendly navigation, and integrated contact features.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nottingham-dog-training
Tags: custom-menu, featured-images, responsive-design, accessibility-ready

Nottingham Dog Training WordPress Theme
*/

:root {
    --warm-cream: #FFF8F0;
    --rich-brown: #3D2817;
    --terracotta: #D4765C;
    --sage: #7B9E89;
    --deep-sage: #5A7C68;
    --golden: #E8A75D;
    --soft-gray: #E8E1D8;
}

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

body {
    font-family: 'Questrial', sans-serif;
    background: var(--warm-cream);
    color: var(--rich-brown);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Top Bar */
.top-bar {
    background: var(--rich-brown);
    color: var(--warm-cream);
    padding: 0.75rem 4rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    font-size: 0.9rem;
}

.top-bar a {
    color: var(--warm-cream);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--golden);
}

/* Header */
header {
    background: var(--warm-cream);
    box-shadow: 0 2px 10px rgba(61, 40, 23, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
}

/* Desktop Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    text-decoration: none;
    color: var(--rich-brown);
    font-size: 1.05rem;
    padding: 0.75rem 1.25rem;
    display: block;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--terracotta);
}

/* Dropdown Menus */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(61, 40, 23, 0.1);
    border-radius: 10px;
    min-width: 220px;
    padding: 0.5rem 0;
    z-index: 100;
}

.main-navigation li:hover > .sub-menu {
    display: block;
}

.main-navigation .sub-menu li {
    width: 100%;
}

.main-navigation .sub-menu a {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.main-navigation .sub-menu a:hover {
    background: var(--warm-cream);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--rich-brown);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 6rem 4rem 4rem;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--soft-gray) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

.hero-badge {
    display: inline-block;
    background: var(--golden);
    color: var(--rich-brown);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

h1 {
    font-family: 'Fraunces', serif;
    font-size: 4.5rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--rich-brown);
}

h1 strong {
    font-weight: 700;
    font-style: italic;
    color: var(--terracotta);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: #5A4A3A;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: 'Questrial', sans-serif;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-primary {
    background: var(--terracotta);
    color: white;
}

.cta-primary:hover {
    background: #C16850;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 118, 92, 0.4);
}

.cta-secondary {
    background: transparent;
    color: var(--rich-brown);
    border: 2px solid var(--rich-brown);
}

.cta-secondary:hover {
    background: var(--rich-brown);
    color: var(--warm-cream);
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(61, 40, 23, 0.15);
}

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

.stat-card {
    position: absolute;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(61, 40, 23, 0.1);
    animation: slideIn 0.8s ease-out 1.2s both;
}

@keyframes slideIn {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.stat-card:first-of-type {
    bottom: -30px;
    left: -30px;
}

.stat-card:last-of-type {
    top: 30px;
    right: -30px;
}

.stat-number {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--terracotta);
    display: block;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--rich-brown);
    opacity: 0.8;
}

/* Services Section */
.services {
    padding: 6rem 4rem;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--terracotta);
    margin-bottom: 0.75rem;
}

h2 {
    font-family: 'Fraunces', serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--rich-brown);
}

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

.service-card {
    background: var(--warm-cream);
    padding: 2.5rem;
    border-radius: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--terracotta), var(--golden));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(61, 40, 23, 0.12);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--rich-brown);
}

.service-card p {
    line-height: 1.7;
    color: #5A4A3A;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--terracotta);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
}

/* Content Pages */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.page-content .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.page-content .entry-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.page-content .entry-content h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--rich-brown);
}

.page-content .entry-content p {
    margin-bottom: 1.5rem;
}

.page-content .entry-content ul,
.page-content .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.page-content .entry-content li {
    margin-bottom: 0.5rem;
}

.page-content .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 2rem 0;
}

.page-content .entry-content blockquote {
    border-left: 4px solid var(--terracotta);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #5A4A3A;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--soft-gray);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: #5A4A3A;
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-form-section h2,
.contact-info-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--rich-brown);
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--soft-gray);
    border-radius: 10px;
    font-family: 'Questrial', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sage);
}

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

.submit-btn {
    background: var(--terracotta);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: 'Questrial', sans-serif;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background: #C16850;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 118, 92, 0.4);
}

.contact-info-section {
    background: var(--warm-cream);
    padding: 2.5rem;
    border-radius: 25px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-item-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--rich-brown);
}

.contact-item-content a {
    color: var(--terracotta);
    text-decoration: none;
}

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

.map-container {
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.what3words {
    margin-top: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--terracotta);
}

.what3words h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--rich-brown);
    margin-bottom: 0.5rem;
}

.what3words-address {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    color: var(--terracotta);
    font-weight: 600;
}

/* Testimonial */
.testimonial {
    padding: 6rem 4rem;
    background: var(--rich-brown);
    color: var(--warm-cream);
    position: relative;
    overflow: hidden;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -2rem;
    left: 4rem;
    font-family: 'Fraunces', serif;
    font-size: 20rem;
    opacity: 0.05;
    font-weight: 700;
}

.testimonial-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    line-height: 1.6;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.author-info strong {
    display: block;
    font-size: 1.1rem;
}

.author-info span {
    opacity: 0.7;
    font-size: 0.95rem;
}

/* Footer CTA */
.footer-cta {
    padding: 6rem 4rem;
    background: var(--sage);
    color: white;
    text-align: center;
}

.footer-cta h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-cta p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* Footer */
footer {
    padding: 3rem 4rem;
    background: var(--rich-brown);
    color: var(--warm-cream);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-about h3,
.footer-links h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-about p {
    line-height: 1.7;
    opacity: 0.9;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--warm-cream);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--golden);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 248, 240, 0.1);
    text-align: center;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 1024px) {
    .top-bar {
        padding: 0.75rem 2rem;
    }

    .header-container {
        padding: 1.5rem 2rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 4rem 2rem;
        gap: 3rem;
    }

    h1 {
        font-size: 3.5rem;
    }

    .services {
        padding: 4rem 2rem;
    }

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

    .contact-container {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .top-bar {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .main-navigation.active {
        left: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid var(--soft-gray);
    }

    .main-navigation a {
        padding: 1rem 0;
    }

    .main-navigation .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        border-radius: 0;
        background: var(--warm-cream);
        padding: 0;
    }

    .main-navigation li.menu-item-has-children > a::after {
        content: ' ▼';
        font-size: 0.8rem;
    }

    .main-navigation li.menu-item-has-children.active > .sub-menu {
        display: block;
    }

    .main-navigation .sub-menu a {
        padding: 0.75rem 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .services {
        padding: 3rem 2rem;
    }

    .testimonial {
        padding: 3rem 2rem;
    }

    .testimonial-text {
        font-size: 1.5rem;
    }

    .footer-cta {
        padding: 3rem 2rem;
    }

    footer {
        padding: 2rem;
    }
}
