/*
Theme Name: Ruthie's Cupcakes
Theme URI: https://www.ruthies-cupcakes.co.uk
Author: Mat Brett
Author URI: https://www.ruthies-cupcakes.co.uk
Description: Custom WordPress theme for Ruthie's Cupcakes
Version: 1.0.0
License: Proprietary
License URI: All Rights Reserved
Copyright: Copyright (C) 2026 Ruth Scammell trading as Ruthie's Cupcakes
Text Domain: ruthies-cupcakes
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ubuntu', 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fefaee;
    background-image:
        radial-gradient(circle, #f5f0d8 0.5em, transparent 0.5em),
        radial-gradient(circle, #f5f0d8 0.5em, transparent 0.5em),
        radial-gradient(circle, #f5f0d8 0.5em, transparent 0.5em);
    background-size:
        6em 6em,
        6em 6em,
        6em 6em;
    background-position:
        0 0,
        2em 3em,
        4.5em 1.5em;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #bf7bd3;
}

p {
    font-family: 'Nunito', 'Open Sans', sans-serif;
    margin-bottom: 1rem;
}

/* Container */
.container {
    margin: 0 auto;
    padding: 0 2em;
}

.site-main > .container {
    background: #fff;
    border-radius: 0.5em;
    padding: 2em;
    margin: 0 2em;
    box-shadow: inset 0 2px 10px rgba(210, 200, 180, 0.3);
}

.site-main .container .container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

/* Top Bar */
.top-bar {
    background: #F56A6A;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

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

.top-bar a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
}

/* Header */
.site-header {
    background: #fff;
    padding: 20px 0;
    padding-top: 5em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 2em;
    left: 0;
    right: 0;
    height: 2.5em;
    overflow: visible;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="420" height="55" viewBox="0 0 420 55"><defs><pattern id="s1" patternUnits="userSpaceOnUse" width="2" height="2" patternTransform="rotate(45)"><rect width="1" height="2" fill="%23e7eebf"/><rect x="1" width="1" height="2" fill="%23ffffff"/></pattern><pattern id="s2" patternUnits="userSpaceOnUse" width="2" height="2" patternTransform="rotate(45)"><rect width="1" height="2" fill="%23a8dee5"/><rect x="1" width="1" height="2" fill="%23ffffff"/></pattern><pattern id="s3" patternUnits="userSpaceOnUse" width="2" height="2" patternTransform="rotate(45)"><rect width="1" height="2" fill="%23fbd22b"/><rect x="1" width="1" height="2" fill="%23ffffff"/></pattern></defs><polygon points="0,0 35,1 17.5,40" fill="url(%23s1)"/><polygon points="35,1 70,3 52.5,42" fill="url(%23s2)"/><polygon points="70,3 105,5 87.5,44" fill="%23fc68a4"/><polygon points="105,5 140,8 122.5,46" fill="url(%23s3)"/><polygon points="140,8 175,11 157.5,49" fill="url(%23s1)"/><polygon points="175,11 210,13 192.5,52" fill="%23fc68a4"/><polygon points="210,13 245,11 227.5,52" fill="url(%23s2)"/><polygon points="245,11 280,8 262.5,49" fill="url(%23s3)"/><polygon points="280,8 315,5 297.5,46" fill="url(%23s1)"/><polygon points="315,5 350,3 332.5,44" fill="%23fc68a4"/><polygon points="350,3 385,1 367.5,42" fill="url(%23s2)"/><polygon points="385,1 420,0 402.5,41" fill="url(%23s3)"/></svg>');
    background-repeat: repeat-x;
    background-size: auto 100%;
}

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

.site-logo img {
    height: 80px;
    width: auto;
}

/* Sticky Header */
.site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
}

.site-header.sticky .site-logo img {
    height: 150px;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2em;
    align-items: center;
}

.main-navigation a {
    font-family: 'Ubuntu', sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1em;
    transition: all 0.3s;
    padding: 0.5em 0;
    position: relative;
}

.main-navigation li:nth-child(5n+1) a { color: #b5c475; }
.main-navigation li:nth-child(5n+2) a { color: #5db3c9; }
.main-navigation li:nth-child(5n+3) a { color: #e03e7d; }
.main-navigation li:nth-child(5n+4) a { color: #d9b316; }
.main-navigation li:nth-child(5n+5) a { color: #9552b8; }

.main-navigation a:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    border-bottom: 0.5em solid #fbd22b;
    padding-left: 2em;
}

.main-navigation .current-menu-item a::before,
.main-navigation .current_page_item a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 0.6em solid transparent;
    border-bottom: 0.6em solid transparent;
    border-left: 1em solid #9552b8;
}

/* Main Content */
.site-main {
    padding: 40px 0;
}

/* Article body links */
.site-main .container a:not(.btn) {
    color: #fc68a4;
    font-weight: 700;
    text-decoration: none;
    transition: text-decoration-color 0.2s;
}

.site-main .container a:not(.btn):hover {
    text-decoration: underline;
    text-decoration-color: #fbd22b;
    text-decoration-thickness: 4px;
    text-underline-offset: 3px;
}

/* Blog Section */
.blog-section {
    background: transparent;
    padding: 0;
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.product-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

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

.product-card-content {
    padding: 20px;
}

.product-card h3 {
    margin-bottom: 10px;
}

/* Newsletter Section */
.newsletter-section {
    background: #F5F5DC;
    padding: 60px 0;
    text-align: center;
}

.newsletter-section h2 {
    margin-bottom: 20px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.newsletter-form button {
    padding: 12px 30px;
    background: #F56A6A;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #e45555;
}

/* Footer */
.site-footer {
    width: 100%;
    clear: both;
}

/* Footer Widget Area - Dark Gray Section */
.footer-widgets-area {
    background: #313131;
    padding: 40px 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-widget {
    color: #cfcfcf;
}

.footer-widget h3 {
    color: #cfcfcf;
    margin-bottom: 15px;
    font-size: 18px;
}

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

.footer-widget a {
    color: #cbced3;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-widget a:hover {
    color: #ff5544;
}

.footer-widget p {
    color: #cfcfcf;
    line-height: 1.6;
}

/* Footer Bottom - Pink Section */
.footer-bottom {
    background: #ec9cb5;
    padding: 4em 0;
    padding-top: 5em;
    width: 100%;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1em;
    background: linear-gradient(to right,
        #e7eebf 0%, #e7eebf 20%,
        #a8dee5 20%, #a8dee5 40%,
        #fbd22b 40%, #fbd22b 60%,
        #fc68a4 60%, #fc68a4 80%,
        #bf7bd3 80%, #bf7bd3 100%);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1em;
}

.footer-logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo .copyright-text {
    color: #ffffff;
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    text-transform: none;
    font-size: 0.9em;
    -webkit-text-stroke: 0.5px #ffffff;
    text-shadow: 0 0 1px #ffffff;
}

.footer-bottom .copyright {
    color: #fdfaed;
    margin: 0;
    text-transform: uppercase;
    font-weight: bold;
}

.footer-menu-list {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

.footer-menu-list a {
    color: #fdfaed;
    text-decoration: none;
    transition: color 0.3s;
    text-transform: uppercase;
    font-weight: bold;
}

.footer-menu-list a:hover {
    color: #E65A50;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #fdfaed;
    font-size: 20px;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d88ba4;
    border-radius: 50%;
}

.social-links a:hover {
    color: #fdfaed;
    background: #2d3436;
}

/* Forminator */
.forminator-button {
    background: #e03e7d !important;
    color: #fff !important;
}

.forminator-button:hover {
    background: #c0326a !important;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #F56A6A;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn:hover {
    background: #e45555;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5em;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: #bf7bd3;
    margin: 6px 0;
    transition: 0.3s;
}

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

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

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Header adjustments */
    .site-header {
        padding-top: 4em;
    }

    .site-header .container {
        flex-wrap: wrap;
    }

    .site-logo img {
        height: 60px;
    }

    /* Show burger menu */
    .menu-toggle {
        display: block;
        order: 3;
    }

    /* Hide navigation by default on mobile */
    .main-navigation {
        display: none;
        width: 100%;
        order: 4;
        margin-top: 1em;
    }

    .main-navigation.active {
        display: block;
    }

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

    .main-navigation li {
        border-bottom: 1px solid #f5f5f5;
    }

    .main-navigation a {
        display: block;
        padding: 1em;
    }

    /* Main content adjustments */
    .site-main > .container {
        margin: 0 1em;
        padding: 1.5em;
    }

    /* Footer adjustments */
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-menu-list {
        flex-direction: column;
        gap: 1em;
    }

    .social-links {
        justify-content: center;
    }

    /* Bunting adjustments */
    .site-header::before {
        background-size: 210px 27.5px;
    }
}
