/*
Theme Name: Faiha Theme
Theme URI: https://faiha.id/
Author: Faiha
Author URI: https://faiha.id/
Description: Custom theme for Faiha Bakery with preorder system integration. Optimized for single-page landing with Elementor support.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: faiha-theme
Tags: one-column, custom-colors, custom-menu, featured-images, full-width-template, elementor

This theme is designed to work with the Faiha Preorder Plugin.
*/

/* CSS Variables - Design Tokens */
:root {
    /* Primary Colors */
    --color-primary: #F5B841;
    --color-primary-dark: #e5a831;
    --color-secondary: #7ECFB3;
    --color-secondary-dark: #6ebfa3;
    --color-accent: #F28B82;

    /* Neutral Colors */
    --color-dark: #3D3D3D;
    --color-gray: #6c757d;
    --color-gray-light: #adb5bd;
    --color-border: #e9ecef;
    --color-light: #f8f9fa;
    --color-body-bg: #FFFDFB;
    --color-white: #ffffff;

    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Pacifico', cursive;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Container */
    --container-max: 1200px;
    --container-padding: 15px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-body-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--spacing-sm) 0;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 var(--spacing-sm) 0;
}

ul, ol {
    margin: 0 0 var(--spacing-sm) 0;
    padding-left: var(--spacing-md);
}

/* Bootstrap Overrides - Primary Button */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

/* Bootstrap Overrides - Secondary Button */
.btn-secondary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
}

/* Bootstrap Overrides - Text & Background Colors */
.text-primary {
    color: var(--color-primary) !important;
}

.text-secondary {
    color: var(--color-secondary) !important;
}

.bg-primary {
    background-color: var(--color-primary) !important;
}

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

/* Bootstrap Overrides - Form Focus */
.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.25rem rgba(245, 184, 65, 0.25);
}

/* Display Font */
.font-display {
    font-family: var(--font-display);
}

/* Navbar Brand */
.navbar-brand {
    font-size: 1.8rem;
    color: var(--color-primary) !important;
}

/* Custom Logo */
.site-branding img,
.footer-about img {
    max-height: 50px;
    width: auto;
}

.footer-about img {
    max-width: 70px;
    margin: 0 0 10px;
}

/* Footer Nav Links */
.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--color-primary);
}

/* Footer Dark Theme Text Colors */
.site-footer.bg-dark {
    background-color: #1a1a1a !important;
}

.site-footer .text-muted {
    color: #adb5bd !important;
}

.site-footer .text-white {
    color: #ffffff !important;
}

.site-footer a.text-muted {
    color: #adb5bd !important;
    transition: color 0.2s ease;
}

.site-footer a.text-muted:hover {
    color: var(--color-primary) !important;
}

.site-footer .footer-widget h4 {
    color: var(--color-primary);
    font-weight: 600;
}

.site-footer .list-unstyled a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer .list-unstyled a:hover {
    color: var(--color-primary);
}

.site-footer .copyright {
    color: #6c757d;
}

/* Card Hover Effect */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}
