/* ==========================================================================
   Custom Cables Direct — base stylesheet
   Colour palette taken from the logo:
     - Teal (dark)  #0b4f4c  -> headings, nav text, footer background
     - Teal (light) #14a098  -> accents, hover states
     - Orange       #f2811d  -> calls to action, highlights
     - Cream        #fbe9c9  -> subtle backgrounds (matches logo badge)
   ========================================================================== */

:root {
    --teal-dark: #0b4f4c;
    --teal-light: #14a098;
    --orange: #f2811d;
    --orange-dark: #d96e0f;
    --cream: #fbe9c9;
    --text: #22302f;
    --text-muted: #5b6b6a;
    --white: #ffffff;
    --border: #e5ece9;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--white);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--teal-light);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

a:hover {
    color: var(--orange);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */

.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}

.site-header .logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header .logo-link img {
    height: 56px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: inline-block;
    padding: 10px 18px;
    color: var(--teal-dark);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border-radius: 6px;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: var(--cream);
    color: var(--orange-dark);
}

/* Mobile nav toggle (kept simple — expand later if the menu grows) */
.nav-toggle {
    display: none;
}

@media (max-width: 640px) {
    .site-header .container {
        flex-wrap: wrap;
    }

    .main-nav ul {
        flex-wrap: wrap;
    }
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */

.site-footer {
    background-color: var(--teal-dark);
    color: var(--white);
    margin-top: 64px;
}

.site-footer .container {
    padding-top: 40px;
    padding-bottom: 28px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--cream);
    font-weight: 600;
    font-size: 0.9rem;
}

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

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0 0 20px 0;
}

.footer-copyright {
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.footer-copyright strong {
    color: var(--white);
}

.footer-copyright a {
    color: var(--orange);
    font-weight: 600;
}

.footer-copyright a:hover {
    color: var(--white);
}

/* ---------------------------------------------------------------------- */
/* Generic page/content helpers (used by index.php and the legal pages)   */
/* ---------------------------------------------------------------------- */

main {
    min-height: 50vh;
}

.page-section {
    padding: 56px 0;
}

.page-section--muted {
    background-color: #fafbfa;
}

h1, h2, h3 {
    color: var(--teal-dark);
    margin-top: 0;
}

.btn {
    display: inline-block;
    background-color: var(--orange);
    color: var(--white);
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.btn:hover {
    background-color: var(--orange-dark);
    color: var(--white);
}

.hero {
    text-align: center;
    padding: 72px 0;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 16px auto 32px auto;
}
