/* ==========================================================================
   COTSWOLD WOODCRAFT & JOINERY LTD
   Bespoke Architectural Woodworking & Fine Joinery Studio - Oxfordshire, UK
   ========================================================================== */

:root {
    --cotswold-green: #1b4332;
    --cotswold-green-light: #2d6a4f;
    --cotswold-green-dark: #081c15;
    --cotswold-oak: #c89666;
    --cotswold-oak-hover: #b07d4f;
    --cotswold-wood-dark: #3a2618;
    --cotswold-cream: #faf7f2;
    --cotswold-slate: #1e293b;
    --cotswold-muted: #64748b;
    --cotswold-border: #e2e8f0;
}

body {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--cotswold-slate);
    background-color: #ffffff;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--cotswold-green-dark);
    font-weight: 700;
}

/* Top Notification / Contact Bar */
.cotswold-topbar {
    background: var(--cotswold-green-dark);
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(212, 163, 115, 0.2);
}

.cotswold-topbar a {
    color: #f1f5f9;
    text-decoration: none;
    transition: color 0.2s;
}

.cotswold-topbar a:hover {
    color: var(--cotswold-oak);
}

/* Header & Navigation */
.cotswold-topbar {
    background: var(--cotswold-green-dark);
    color: #cbd5e1;
    font-size: 0.82rem;
    padding: 7px 0;
    position: relative;
    z-index: 1002;
    border-bottom: 1px solid rgba(200, 150, 102, 0.25);
}

.cotswold-topbar a {
    color: #f1f5f9;
    text-decoration: none;
    transition: color 0.2s;
}

.cotswold-topbar a:hover {
    color: var(--cotswold-oak);
}

.header-area {
    position: sticky !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 84px !important;
    background: #ffffff !important;
    border-bottom: 2px solid rgba(200, 150, 102, 0.2);
    box-shadow: 0 4px 18px rgba(8, 28, 21, 0.08) !important;
    transition: all 0.3s ease;
}

.header-area .main-nav {
    min-height: 84px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-area .main-nav .logo {
    display: inline-flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--cotswold-green-dark) !important;
    letter-spacing: -0.3px;
    line-height: 84px;
    text-decoration: none !important;
    float: none;
}

.header-area .main-nav .logo img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    vertical-align: middle;
}

.header-area .main-nav .logo span {
    color: var(--cotswold-oak);
    font-style: italic;
    font-weight: 400;
    margin-left: 5px;
}

.header-area .main-nav .nav {
    float: none;
    margin: 0;
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    flex-wrap: nowrap !important;
    white-space: nowrap;
}

.header-area .main-nav .nav > li {
    padding: 0 7px !important;
    position: relative;
    white-space: nowrap;
}

.header-area .main-nav .nav > li > a {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--cotswold-slate) !important;
    letter-spacing: 0.2px;
    height: 84px;
    line-height: 84px;
    padding: 0 4px;
    text-transform: none;
    transition: color 0.2s ease;
    border: none;
    text-decoration: none !important;
    position: relative;
}

.header-area .main-nav .nav > li > a:hover,
.header-area .main-nav .nav > li > a.active {
    color: var(--cotswold-oak) !important;
    opacity: 1 !important;
}

.header-area .main-nav .nav > li > a.active::after {
    content: '';
    position: absolute;
    bottom: 22px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: var(--cotswold-oak);
}

/* Submenu Dropdown Styling */
.header-area .main-nav .nav li.submenu {
    padding-right: 22px;
}

.header-area .main-nav .nav li.submenu::after {
    font-family: 'FontAwesome';
    content: "\f107";
    font-size: 11px;
    color: #64748b;
    position: absolute;
    right: 6px;
    top: 36px;
    pointer-events: none;
    transition: transform 0.25s ease, color 0.25s ease;
}

.header-area .main-nav .nav li.submenu:hover::after {
    transform: rotate(180deg);
    color: var(--cotswold-oak);
}

.header-area .main-nav .nav li.submenu ul {
    position: absolute;
    width: 290px !important;
    background: #ffffff !important;
    border-radius: 6px !important;
    border-top: 3px solid var(--cotswold-oak) !important;
    box-shadow: 0 12px 35px rgba(8, 28, 21, 0.15) !important;
    padding: 8px 0 !important;
    top: 76px !important;
    left: 0 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    z-index: 999;
}

.header-area .main-nav .nav li.submenu:hover ul {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.header-area .main-nav .nav li.submenu ul li {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.header-area .main-nav .nav li.submenu ul li a {
    display: block !important;
    padding: 10px 22px !important;
    font-size: 0.86rem !important;
    color: #1e293b !important;
    line-height: 1.4 !important;
    height: auto !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0.1px !important;
    border-bottom: 1px solid #f8fafc !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
}

.header-area .main-nav .nav li.submenu ul li a:hover {
    background: #faf7f2 !important;
    color: var(--cotswold-oak) !important;
    padding-left: 26px !important;
}

/* Call to Action Button in Header */
.nav-cta-btn {
    background: var(--cotswold-oak) !important;
    color: #ffffff !important;
    border-radius: 4px;
    padding: 9px 18px !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1 !important;
    height: auto !important;
    display: inline-block !important;
    box-shadow: 0 4px 12px rgba(200, 150, 102, 0.35);
    transition: all 0.25s ease !important;
    margin-left: 10px;
    text-decoration: none !important;
}

.nav-cta-btn:hover {
    background: var(--cotswold-green-dark) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(8, 28, 21, 0.25);
}

/* Breadcrumbs Styling */
.cotswold-breadcrumb-wrapper {
    background: #faf7f2;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
    position: relative;
    z-index: 10;
}

.cotswold-breadcrumbs {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.85rem;
}

.cotswold-breadcrumbs .breadcrumb-item a {
    color: var(--cotswold-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.cotswold-breadcrumbs .breadcrumb-item a:hover {
    color: var(--cotswold-oak);
}

.cotswold-breadcrumbs .breadcrumb-item.active {
    color: var(--cotswold-green-dark);
    font-weight: 600;
}

.cotswold-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    content: "\f105";
    font-family: 'FontAwesome';
    color: #94a3b8;
    padding: 0 8px;
}

/* Page Hero Banner Adjustments */
.cotswold-page-hero {
    background: linear-gradient(135deg, rgba(8, 28, 21, 0.88) 0%, rgba(27, 67, 50, 0.82) 100%), url('../images/cotswold_hero_workshop.jpg') center/cover no-repeat;
    padding: 70px 0 60px;
    color: #ffffff;
    position: relative;
    margin-bottom: 40px;
}

.cotswold-page-hero h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.cotswold-page-hero p {
    font-size: 1.2rem;
    color: #e2e8f0;
    max-width: 820px;
    line-height: 1.6;
}

.cotswold-badge {
    display: inline-block;
    background: var(--cotswold-oak);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 3px;
    margin-bottom: 15px;
}

/* Section Styling */
.cotswold-section {
    padding: 70px 0;
}

.cotswold-section-bg {
    background: var(--cotswold-cream);
}

.section-heading-custom {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading-custom h2 {
    font-size: 2.3rem;
    margin-bottom: 12px;
}

.section-heading-custom p {
    color: var(--cotswold-muted);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Cards & Grid Items */
.cotswold-card {
    background: #ffffff;
    border: 1px solid var(--cotswold-border);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.cotswold-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(8, 28, 21, 0.08);
}

.cotswold-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.cotswold-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cotswold-card-body h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.cotswold-card-body p {
    color: var(--cotswold-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Feature Boxes */
.cotswold-pillar {
    background: #ffffff;
    border: 1px solid var(--cotswold-border);
    border-radius: 6px;
    padding: 30px 25px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.cotswold-pillar:hover {
    border-color: var(--cotswold-oak);
    box-shadow: 0 8px 25px rgba(200, 150, 102, 0.12);
}

.cotswold-pillar-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    background: var(--cotswold-cream);
    color: var(--cotswold-green);
    border-radius: 50%;
    font-size: 28px;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.cotswold-pillar:hover .cotswold-pillar-icon {
    background: var(--cotswold-green);
    color: #ffffff;
}

/* Interactive Project Estimator */
.estimator-wrapper {
    background: #ffffff;
    border: 1px solid var(--cotswold-border);
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.04);
}

.estimator-summary-box {
    background: var(--cotswold-cream);
    border: 2px solid var(--cotswold-oak);
    border-radius: 8px;
    padding: 35px 25px;
    text-align: center;
}

.estimator-price-tag {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--cotswold-green);
    margin: 15px 0;
}

/* Testimonial Quote Box */
.cotswold-quote-card {
    background: #ffffff;
    border: 1px solid var(--cotswold-border);
    border-left: 4px solid var(--cotswold-oak);
    border-radius: 6px;
    padding: 30px;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cotswold-quote-card p {
    font-style: italic;
    font-size: 0.98rem;
    line-height: 1.8;
    color: #475569;
}

.cotswold-quote-author {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

/* Footer */
.cotswold-footer {
    background: var(--cotswold-green-dark);
    color: #94a3b8;
    padding: 80px 0 30px;
    margin-top: 70px;
    border-top: 3px solid var(--cotswold-oak);
}

.cotswold-footer h4 {
    color: #ffffff;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 10px;
}

.cotswold-footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--cotswold-oak);
}

.cotswold-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cotswold-footer ul li {
    margin-bottom: 12px;
}

.cotswold-footer ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s;
}

.cotswold-footer ul li a:hover {
    color: var(--cotswold-oak);
}

.cotswold-footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

/* Floating Action Button */
.cotswold-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--cotswold-oak);
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    text-decoration: none !important;
    transition: transform 0.3s ease, background 0.3s ease;
}

.cotswold-float-btn:hover {
    transform: scale(1.08);
    background: var(--cotswold-green);
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .cotswold-topbar {
        display: none;
    }
    .header-area {
        height: 74px !important;
    }
    .header-area .main-nav {
        min-height: 74px;
    }
    .header-area .main-nav .logo {
        line-height: 74px;
        font-size: 1.25rem;
    }
    .header-area .main-nav .menu-trigger {
        display: block !important;
        top: 18px;
        right: 15px;
    }
    .header-area .main-nav .nav {
        display: none;
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 14px 28px rgba(8, 28, 21, 0.15);
        padding: 15px 25px 25px;
        border-top: 1px solid #f1f5f9;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    .header-area .main-nav .nav.mobile-open {
        display: block !important;
    }
    .header-area .main-nav .nav > li {
        display: block;
        padding: 0;
        border-bottom: 1px solid #f1f5f9;
    }
    .header-area .main-nav .nav > li > a {
        height: auto;
        line-height: 1.5;
        padding: 12px 0;
        font-size: 0.95rem;
    }
    .header-area .main-nav .nav > li > a.active::after {
        display: none;
    }
    .header-area .main-nav .nav li.submenu::after {
        top: 14px;
        right: 10px;
        font-size: 14px;
    }
    .header-area .main-nav .nav li.submenu ul {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        border-top: none !important;
        padding: 5px 0 10px 15px !important;
        display: none;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: #faf7f2 !important;
        border-radius: 4px !important;
        margin-bottom: 10px;
    }
    .header-area .main-nav .nav li.submenu.open ul {
        display: block !important;
    }
    .header-area .main-nav .nav li.submenu ul li a {
        background: transparent !important;
        padding: 8px 12px !important;
        font-size: 0.88rem !important;
        border-bottom: 1px solid rgba(0,0,0,0.04) !important;
    }
    .nav-cta-btn {
        margin-left: 0 !important;
        margin-top: 15px;
        display: block !important;
        text-align: center;
        padding: 12px !important;
    }
    .cotswold-page-hero h1 {
        font-size: 2.2rem;
    }
}
