/*
Theme Name: Storefront Child
Theme URI: https://woocommerce.com/storefront
Description: Storefront Child Theme
Author: Darron Barnes
Author URL: http://cameramill.co.uk
Template: storefront
Version: 1.0.0
Text Domain: storefront-child
*/
/* ============================================
   MILLY'S CAMERAS - SCHEME A CRAFTSMAN
   Designed for accessibility & dark/light mode
   ============================================ */

:root {
    /* Light Mode Colours */
    --mc-bg:            #F8F5F0;
    --mc-bg-secondary:  #EDEAE4;
    --mc-text:          #1C1C1C;
    --mc-text-muted:    #555550;
    --mc-accent:        #2D5A27;
    --mc-accent-hover:  #1E3D1A;
    --mc-border:        #D8D4CC;
    --mc-nav-bg:        #1C1C1C;
    --mc-nav-text:      #F8F5F0;
    --mc-footer-bg:     #111111;
    --mc-footer-text:   #F0EBE3;
    --mc-trust-bg:      #2D5A27;
    --mc-trust-text:    #FFFFFF;
    --mc-btn-bg:        #2D5A27;
    --mc-btn-text:      #FFFFFF;
    --mc-btn-hover:     #1E3D1A;
}

/* Dark Mode Colours */
body.dark-mode {
    --mc-bg:            #1A1A1A;
    --mc-bg-secondary:  #242424;
    --mc-text:          #F0EBE3;
    --mc-text-muted:    #B0A898;
    --mc-accent:        #4A8A42;
    --mc-accent-hover:  #5A9E52;
    --mc-border:        #333330;
    --mc-nav-bg:        #111111;
    --mc-nav-text:      #F0EBE3;
    --mc-footer-bg:     #0A0A0A;
    --mc-footer-text:   #B0A898;
    --mc-trust-bg:      #111111;
    --mc-trust-text:    #F0EBE3;
    --mc-btn-bg:        #4A8A42;
    --mc-btn-text:      #FFFFFF;
    --mc-btn-hover:     #5A9E52;
}

/* Apply colour variables globally */
body {
    background-color: var(--mc-bg);
    color: var(--mc-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}
/* ============================================
   DARK/LIGHT MODE TOGGLE BUTTON
   ============================================ */

.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: var(--mc-accent);
    color: var(--mc-btn-text);
    border: none;
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dark-mode-toggle:hover {
    background: var(--mc-accent-hover);
    transform: scale(1.05);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .dark-mode-toggle {
        bottom: 15px;
        right: 15px;
        padding: 8px 14px;
        font-size: 13px;
    }
}
/* ============================================
   TYPOGRAPHY
   ============================================ */

/* Import Google Font - Playfair Display for headings
   and Source Sans 3 for body text.
   Both are elegant, highly readable and accessible */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;600&display=swap');

/* Base typography */
body {
    font-family: 'Source Sans 3', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--mc-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--mc-text);
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 0.75em;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* Body text */
p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--mc-text);
    margin-bottom: 1.2em;
}

/* Muted/secondary text */
.mc-text-muted {
    color: var(--mc-text-muted);
    font-size: 0.9rem;
}

/* Links */
a {
    color: var(--mc-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--mc-accent-hover);
    text-decoration: underline;
}

/* Accent highlight - use on special words */
.mc-highlight {
    color: var(--mc-accent);
    font-weight: 600;
}

/* Readable max width for long form content */
.mc-prose {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile typography adjustments */
@media (max-width: 768px) {
    body {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* Stop oversized breadcrumb elements */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative; /* helps Samsung Internet respect the clip */
}