/*!
Theme Name: Equinox Custom
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: equinox-custom
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Equinox Custom is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
        - Normalize
        - Box sizing
# Base
        - Typography
        - Elements
        - Links
        - Forms
# Layouts
# Components
        - Custom UI Components
        - Navigation
        - Posts and pages
        - Comments
        - Widgets
        - Media
        - Captions
        - Galleries
# plugins
        - Jetpack infinite scroll
# Utilities
        - Accessibility
        - Alignments
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Custom Brand Variables
--------------------------------------------------------------*/
:root {
        --color-primary: #f6d148;     /* The yellow 'Book a free quote' button */
        --color-secondary: #f39c12;   /* The orange 'Find out more' buttons and contact links */
        --color-text-dark: #333333;   /* Standard charcoal for readable body text */
        --color-text-light: #ffffff;  /* White text for dark overlays */
        --color-bg-light: #fbfbf6;    /* The warm off-white/cream background used in the services and contact sections */
        
        --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        --container-max-width: 1200px;
}

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html {
        line-height: 1.15;
        -webkit-text-size-adjust: 100%;
}
body { margin: 0; }
main { display: block; }
h1 { font-size: 2em; margin: 0.67em 0; }
hr { box-sizing: content-box; height: 0; overflow: visible; }
pre { font-family: monospace, monospace; font-size: 1em; }
a { background-color: transparent; }
abbr[title] { border-bottom: none; text-decoration: underline; text-decoration: underline dotted; }
b, strong { font-weight: bolder; }
code, kbd, samp { font-family: monospace, monospace; font-size: 1em; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -0.25em; }
sup { top: -0.5em; }
img { border-style: none; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; }
button, input { overflow: visible; }
button, select { text-transform: none; }
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; }
button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner { border-style: none; padding: 0; }
button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring { outline: 1px dotted ButtonText; }
fieldset { padding: 0.35em 0.75em 0.625em; }
legend { box-sizing: border-box; color: inherit; display: table; max-width: 100%; padding: 0; white-space: normal; }
progress { vertical-align: baseline; }
textarea { overflow: auto; }
[type="checkbox"], [type="radio"] { box-sizing: border-box; padding: 0; }
[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button { height: auto; }
[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; }
[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; }
details { display: block; }
summary { display: list-item; }
template { display: none; }
[hidden] { display: none; }

/* Box sizing */
*, *::before, *::after { box-sizing: inherit; }
html { box-sizing: border-box; }

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
body, button, input, select, optgroup, textarea {
        color: var(--color-text-dark);
        font-family: var(--font-primary);
        font-size: 1rem;
        line-height: 1.5;
}
h1, h2, h3, h4, h5, h6 { clear: both; }
p { margin-bottom: 1.5em; }
dfn, cite, em, i { font-style: italic; }
blockquote { margin: 0 1.5em; }
address { margin: 0 0 1.5em; }
pre { background: #eee; font-family: "Courier 10 Pitch", courier, monospace; line-height: 1.6; margin-bottom: 1.6em; max-width: 100%; overflow: auto; padding: 1.6em; }
code, kbd, tt, var { font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace; }
abbr, acronym { border-bottom: 1px dotted #666; cursor: help; }
mark, ins { background: #fff9c0; text-decoration: none; }
big { font-size: 125%; }

body { background: var(--color-bg-light); }
hr { background-color: #ccc; border: 0; height: 1px; margin-bottom: 1.5em; }
ul, ol { margin: 0 0 1.5em 3em; }
ul { list-style: disc; }
ol { list-style: decimal; }
li > ul, li > ol { margin-bottom: 0; margin-left: 1.5em; }
dt { font-weight: 700; }
dd { margin: 0 1.5em 1.5em; }
embed, iframe, object { max-width: 100%; }
img { height: auto; max-width: 100%; }
figure { margin: 1em 0; }
table { margin: 0 0 1.5em; width: 100%; }

a { color: var(--color-secondary); transition: opacity 0.3s ease; }
a:visited { color: var(--color-secondary); }
a:hover, a:focus, a:active { color: var(--color-secondary); opacity: 0.8; }
a:focus { outline: thin dotted; }
a:hover, a:active { outline: 0; }

button, input[type="button"], input[type="reset"], input[type="submit"] {
        border: 1px solid; border-color: #ccc #ccc #bbb; border-radius: 3px; background: #e6e6e6;
        color: rgba(0, 0, 0, 0.8); line-height: 1; padding: 0.6em 1em 0.4em;
}
button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover { border-color: #ccc #bbb #aaa; }
button:active, button:focus, input[type="button"]:active, input[type="button"]:focus, input[type="reset"]:active, input[type="reset"]:focus, input[type="submit"]:active, input[type="submit"]:focus { border-color: #aaa #bbb #bbb; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="range"], input[type="date"], input[type="month"], input[type="week"], input[type="time"], input[type="datetime"], input[type="datetime-local"], input[type="color"], textarea {
        color: #666; border: 1px solid #ccc; border-radius: 3px; padding: 3px;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="number"]:focus, input[type="tel"]:focus, input[type="range"]:focus, input[type="date"]:focus, input[type="month"]:focus, input[type="week"]:focus, input[type="time"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="color"]:focus, textarea:focus { color: #111; }
select { border: 1px solid #ccc; }
textarea { width: 100%; }

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/
.container {
        width: 100%;
        max-width: var(--container-max-width);
        margin: 0 auto;
        padding: 0 20px;
}

.btn {
        display: inline-block;
        padding: 12px 28px;
        border-radius: 30px;
        font-weight: 600;
        text-align: center;
        text-decoration: none !important;
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        border: none;
}

.btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-primary {
        background-color: var(--color-primary);
        color: var(--color-text-dark);
}

.btn-secondary {
        background-color: var(--color-secondary);
        color: var(--color-text-light);
}

.testimonial-quote {
        color: var(--color-secondary);
        font-size: 1.2rem;
        font-style: italic;
}

/*--------------------------------------------------------------
# Header & Navigation (Sticky + Mobile Hamburger)
--------------------------------------------------------------*/
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-branding img, .custom-logo {
    max-width: 250px;
    height: auto;
    display: block;
}

.site-title a {
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: bold;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.top-bar {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.top-bar a.header-contact {
    color: var(--color-secondary);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.top-bar a.header-contact:hover {
    opacity: 0.7;
}

.top-bar .separator {
    margin: 0 10px;
    color: #ccc;
}

/* Hide the menu by default and style the dropdown */
.main-navigation ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-top: 1px solid #eaeaea;
    z-index: 9999; /* Forces the mobile dropdown above all page content */
}

.main-navigation a {
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

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

.menu-toggle {
    display: none;
}

/* Clean Mobile Layout & Hamburger Menu */
@media (max-width: 768px) {
    .header-container {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas: 
            "topbar topbar"
            "logo toggle";
        align-items: center;
    }

    .site-branding {
        grid-area: logo;
    }
    
    .site-branding img, .custom-logo {
        max-width: 200px;
    }

    .header-right {
        display: contents; 
    }

    .top-bar {
        grid-area: topbar;
        text-align: center;
        width: 100%;
        padding-bottom: 12px;
        margin-bottom: 12px;
        border-bottom: 1px solid #eaeaea;
    }

    .main-navigation {
        grid-area: toggle;
        justify-self: end;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--color-text-dark);
        padding: 5px;
        cursor: pointer;
        transition: color 0.2s ease;
    }
    
    .menu-toggle:hover {
        color: var(--color-secondary);
    }

    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        flex-direction: column;
        gap: 0;
        padding: 0;
        border-top: 1px solid #eaeaea;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #f5f5f5;
        font-size: 1.1rem;
    }
}

/*--------------------------------------------------------------
# Homepage - Hero Section
--------------------------------------------------------------*/
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: var(--color-text-dark);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.45); 
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-text-light);
    max-width: 650px;
    padding-top: 100px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

/*--------------------------------------------------------------
# Homepage - Services Section
--------------------------------------------------------------*/
.services-section {
    padding: 80px 20px;
}

.services-intro {
    max-width: 750px;
    margin-bottom: 50px;
}

.services-intro h2 {
    font-size: 2.5rem;
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

.services-intro p {
    font-size: 1.15rem;
    color: #555555;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

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

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--color-text-dark);
}

.card-content p {
    margin-bottom: 25px;
    color: #555555;
    flex-grow: 1;
}

.card-content .btn {
    align-self: flex-start;
}

/* Mobile Adjustments for Homepage */
@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        padding-top: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-intro h2 {
        font-size: 2rem;
    }
}

/*--------------------------------------------------------------
# Inner Page Hero Banner
--------------------------------------------------------------*/
.inner-hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    background-color: var(--color-text-dark);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.inner-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.inner-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    max-width: 600px;
}

.inner-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.inner-hero-content p {
    font-size: 1.15rem;
    color: var(--color-text-light);
}

.page-content-area {
    padding: 60px 20px;
    background-color: var(--color-bg-light);
}

/*--------------------------------------------------------------
# Split Screen Layout (Image Left/Right, Text Opposite)
--------------------------------------------------------------*/
.split-section {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
}

.split-section.reverse {
    flex-direction: row-reverse;
}

.split-image {
    flex: 1;
}

.split-image img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.split-text {
    flex: 1;
}

.split-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

/* Mobile Adjustments for Inner Pages */
@media screen and (max-width: 768px) {
    .inner-hero {
        min-height: 35vh;
    }
    
    .inner-hero-content h1 {
        font-size: 2.2rem;
    }

    .split-section,
    .split-section.reverse {
        flex-direction: column;
        gap: 30px;
    }
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials-container {
    max-width: 800px;
}

.testimonial-block {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.testimonial-block:last-child {
    border-bottom: none;
}

.testimonial-quote {
    color: var(--color-secondary);
    font-size: 1.4rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--color-text-dark);
}

/*--------------------------------------------------------------
# Contact Page Layout
--------------------------------------------------------------*/
.contact-page-main {
    padding: 150px 0 80px; 
    background-color: #ffffff;
}

.contact-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contact-info-col {
    flex: 1;
    max-width: 400px;
}

.contact-info-col .page-title {
    font-size: 3rem;
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

.contact-details-block,
.contact-hours-block,
.contact-social-block {
    margin-top: 40px;
}

.contact-info-col h2,
.contact-info-col h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-text-dark);
}

.contact-highlight {
    display: block;
    font-size: 1.8rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
    font-weight: 400;
}

.contact-form-col {
    flex: 1.5;
}

.enquiry-card {
    background-color: var(--color-bg-light); 
    padding: 40px;
    border-radius: 8px;
}

.enquiry-card h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.enquiry-card p {
    font-size: 1rem;
    margin-bottom: 25px;
    color: #444;
}

.bespoke-contact-form input[type="text"],
.bespoke-contact-form input[type="email"],
.bespoke-contact-form input[type="tel"],
.bespoke-contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #333;
    border-radius: 6px;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
}

.form-radio-section {
    margin-bottom: 20px;
}

.radio-label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--color-text-dark);
}

.radio-label small {
    color: #c0392b; 
    font-size: 0.85rem;
    font-style: italic;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.bespoke-contact-form .btn-secondary {
    padding: 12px 35px;
    font-size: 1.1rem;
    border-radius: 30px;
    margin-top: 10px;
}

.bespoke-contact-form input[type="submit"] {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    padding: 12px 35px;
    font-size: 1.1rem;
    border-radius: 30px;
    margin-top: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bespoke-contact-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.social-icons a svg {
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover svg {
    opacity: 0.7;
    transform: translateY(-2px);
}

@media screen and (max-width: 900px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info-col {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .enquiry-card {
        padding: 25px;
    }
}

/*--------------------------------------------------------------
# Inner Pages (page.php)
--------------------------------------------------------------*/
.page-hero-header {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    text-align: center;
    margin-bottom: 40px;
}

.page-standard-header {
    padding: 60px 0 20px 0;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 40px;
}

.page-content-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

/*--------------------------------------------------------------
# Pricing Tables (Matching Presentation Style)
--------------------------------------------------------------*/
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.entry-content thead th,
.entry-content tr:first-child th,
.entry-content tr:first-child td {
    background-color: #175d7a;
    color: #ffffff;
    font-weight: bold;
    padding: 15px 12px;
    border: 1px solid #ffffff;
    text-align: left;
}

.entry-content tbody td {
    background-color: #edf1f3;
    color: #333333;
    padding: 12px;
    border: 1px solid #ffffff;
}

.entry-content tbody td:first-child,
.entry-content tbody th:first-child {
    background-color: #175d7a;
    color: #ffffff;
    font-weight: 600;
}

.entry-content tbody tr:nth-child(even) td:not(:first-child) {
    background-color: #e1e7eb;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background-color: #f1f1f1; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); clip: auto !important; clip-path: none; color: #21759b; display: block; font-size: 0.875rem; font-weight: 700; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; }
#primary[tabindex="-1"]:focus { outline: 0; }
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1.5em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1.5em; }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; margin-bottom: 1.5em; }
