/*
Theme Name: Upper Canada Trading Co.
Theme URI: https://uctradingco.com
Author: Upper Canada Trading Co.
Author URI: https://uctradingco.com
Description: A modern, clean WordPress theme for Upper Canada Trading Co. - Smart vending and micromarket solutions.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: upper-canada-trading
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, theme-options
*/

/* ==========================================================================
   CSS Variables - Brand Colors
   ========================================================================== */

:root {
    /* Brand Colors - Upper Canada Trading Co. */
    --background: #ffffff;
    --foreground: #2e2e2e;
    
    --card: #ffffff;
    --card-foreground: #2e2e2e;
    
    /* Primary: Warm Red #c14553 */
    --primary: #c14553;
    --primary-foreground: #ffffff;
    --primary-hsl: 354, 52%, 51%;
    
    /* Secondary: Soft cream/gray */
    --secondary: #f7f5f3;
    --secondary-foreground: #2e2e2e;
    
    /* Muted */
    --muted: #f0eeec;
    --muted-foreground: #737373;
    
    /* Accent */
    --accent: #fae8ea;
    --accent-foreground: #9a3545;
    
    --destructive: #ef4444;
    --destructive-foreground: #ffffff;
    
    --border: #e8e4e0;
    --input: #e8e4e0;
    --ring: #c14553;
    
    --radius: 0.75rem;
    
    /* Text colors */
    --heading: #2e2e2e;
    --body: #595959;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #c14553 0%, #9a3545 100%);
    --gradient-subtle: linear-gradient(180deg, #faf9f8 0%, #ffffff 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(193, 69, 83, 0.15);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

p {
    color: var(--body);
    line-height: 1.7;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.container-max {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.section-padding {
    padding: 4rem 1rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 6rem 2rem;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding: 8rem 4rem;
    }
}

.text-heading {
    color: var(--heading);
}

.text-body {
    color: var(--body);
}

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

.bg-secondary {
    background-color: var(--secondary);
}

.bg-muted {
    background-color: var(--muted);
}

.gradient-hero {
    background: var(--gradient-hero);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #a93a48;
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background-color: #e8e6e4;
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--accent);
    border-color: var(--primary);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .header-container {
        height: 5rem;
        padding: 0 2rem;
    }
}

.site-logo img {
    height: 3rem;
    width: auto;
}

@media (min-width: 768px) {
    .site-logo img {
        height: 3.5rem;
    }
}

.main-navigation {
    display: none;
}

@media (min-width: 768px) {
    .main-navigation {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.main-navigation a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(46, 46, 46, 0.8);
    transition: color 0.2s ease;
}

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

.header-cta {
    display: none;
}

@media (min-width: 768px) {
    .header-cta {
        display: block;
    }
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--foreground);
}

.mobile-navigation {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

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

@media (min-width: 768px) {
    .mobile-navigation {
        display: none !important;
    }
}

.mobile-navigation a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(46, 46, 46, 0.8);
    transition: color 0.2s ease;
}

.mobile-navigation a:hover {
    color: var(--primary);
}

.mobile-navigation .btn {
    margin: 0.5rem 1rem;
    width: calc(100% - 2rem);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-container {
    width: 100%;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.hero-content {
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
    }
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-title .text-primary {
    color: var(--primary);
}

.hero-description {
    font-size: 1.125rem;
    max-width: 36rem;
    margin: 0 auto 2rem;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-description {
        margin: 0 0 2rem;
    }
}

.hero-description strong {
    color: var(--heading);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.hero-image-wrapper {
    position: relative;
    opacity: 0;
    animation: slideInRight 0.6s ease-out 0.2s forwards;
}

.hero-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.hero-decoration-1 {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 6rem;
    height: 6rem;
    background-color: rgba(193, 69, 83, 0.1);
    border-radius: 50%;
    filter: blur(2rem);
}

.hero-decoration-2 {
    position: absolute;
    bottom: -1rem;
    left: -1rem;
    width: 8rem;
    height: 8rem;
    background-color: rgba(193, 69, 83, 0.05);
    border-radius: 50%;
    filter: blur(3rem);
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-section {
    background-color: var(--secondary);
}

.about-image {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.about-image img {
    width: 100%;
    max-width: 42rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.about-content {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 3rem;
}

.about-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .about-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .about-title {
        font-size: 3rem;
    }
}

.about-description {
    font-size: 1.125rem;
}

.about-description strong {
    color: var(--heading);
}

.about-cta {
    text-align: center;
}

.about-cta .btn {
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Smart Machines Section
   ========================================================================== */

.smart-machines-section .section-padding {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .smart-machines-section .section-padding {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.smart-machines-grid {
    display: grid;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

@media (min-width: 1024px) {
    .smart-machines-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.smart-machines-image {
    position: relative;
    height: 16rem;
}

@media (min-width: 1024px) {
    .smart-machines-image {
        height: auto;
    }
}

.smart-machines-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.smart-machines-content {
    background: var(--gradient-hero);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .smart-machines-content {
        padding: 3rem;
    }
}

@media (min-width: 1024px) {
    .smart-machines-content {
        padding: 4rem;
    }
}

.smart-machines-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary-foreground);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .smart-machines-title {
        font-size: 2.25rem;
    }
}

.smart-machines-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.smart-machines-description strong {
    color: var(--primary-foreground);
}

/* ==========================================================================
   Comparison Section
   ========================================================================== */

.comparison-section {
    background-color: var(--secondary);
}

.comparison-header {
    text-align: center;
    margin-bottom: 3rem;
}

.comparison-title {
    font-size: 1.875rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .comparison-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .comparison-title {
        font-size: 3rem;
    }
}

.comparison-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.comparison-card {
    border-radius: 1rem;
    padding: 2rem;
}

.comparison-card-other {
    background-color: rgba(240, 238, 236, 0.5);
}

.comparison-card-us {
    background-color: var(--background);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(193, 69, 83, 0.2);
}

.comparison-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.comparison-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comparison-item {
    display: flex;
    gap: 1rem;
}

.comparison-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.125rem;
}

.comparison-icon-x {
    background-color: rgba(239, 68, 68, 0.1);
}

.comparison-icon-x svg {
    width: 1rem;
    height: 1rem;
    color: var(--destructive);
}

.comparison-icon-check {
    background-color: rgba(193, 69, 83, 0.1);
}

.comparison-icon-check svg {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
}

.comparison-item-title {
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 0.25rem;
}

.comparison-item-desc {
    font-size: 0.875rem;
    color: var(--body);
}

/* ==========================================================================
   Spaces Section
   ========================================================================== */

.spaces-section {
    background-color: var(--background);
}

.spaces-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.spaces-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .spaces-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .spaces-title {
        font-size: 3rem;
    }
}

.spaces-description {
    font-size: 1.125rem;
}

.spaces-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .spaces-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .spaces-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.space-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.space-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(193, 69, 83, 0.3);
}

.space-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background-color: rgba(193, 69, 83, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

.space-card:hover .space-icon {
    background-color: rgba(193, 69, 83, 0.2);
}

.space-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.space-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.space-description {
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-section {
    background-color: var(--secondary);
}

.faq-container {
    max-width: 48rem;
    margin: 0 auto;
}

.faq-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .faq-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .faq-title {
        font-size: 3rem;
    }
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.faq-item.active {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-weight: 600;
    color: var(--heading);
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.25rem;
    color: var(--body);
}

/* ==========================================================================
   Benefits Section
   ========================================================================== */

.benefits-section {
    background-color: var(--background);
}

.benefits-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.benefits-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.benefits-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.benefit-icon {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.benefit-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-foreground);
}

.benefit-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--heading);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--gradient-hero);
    color: var(--primary-foreground);
}

.footer-mission {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.footer-mission-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

@media (min-width: 768px) {
    .footer-mission-title {
        font-size: 2.25rem;
    }
}

.footer-mission-text {
    font-size: 1.125rem;
    color: #ffffff;
    font-style: italic;
}

.footer-info {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem 1rem;
}

@media (min-width: 768px) {
    .footer-info {
        padding: 3rem 2rem;
    }
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .footer-branding {
        flex-direction: row;
    }
}

.footer-logo img {
    height: 4rem;
    width: auto;
}

.footer-address {
    text-align: center;
}

@media (min-width: 640px) {
    .footer-address {
        text-align: left;
    }
}

.footer-company-name {
    font-weight: 600;
    font-size: 1.125rem;
    color: #ffffff;
}

.footer-address-text {
    font-size: 0.875rem;
    color: #ffffff;
    line-height: 1.6;
}

.footer-contact {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-contact {
        text-align: right;
    }
}

.footer-contact-text {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.footer-contact-email {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    transition: text-decoration 0.2s ease;
}

.footer-contact-email:hover {
    text-decoration: underline;
}

.footer-contact-note {
    font-size: 0.875rem;
    color: #ffffff;
    margin-top: 0.5rem;
}

.footer-image {
    margin-top: 3rem;
}

.footer-image img {
    width: 100%;
    border-radius: 0.5rem;
}

.footer-copyright {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 0.875rem;
    color: var(--primary-foreground);
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

/* Intersection Observer animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   WordPress Specific
   ========================================================================== */

.wp-block-image img {
    height: auto;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.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;
    width: 1px;
    word-wrap: normal !important;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 8px;
    z-index: 100000;
}

.skip-link:focus {
    top: 0;
}
