/*
Theme Name: SmartFix Dubai Child
Theme URI: https://smartfixdubai.com
Description: Child theme for SmartFix Dubai — custom ACF Pro blocks, the site-wide quote modal and the About page layout. Bump the version to re-run inc/provision.php on deploy.
Author: SmartFix Dubai
Author URI: https://smartfixdubai.com
Template: generatepress
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smartfix-dubai
*/

/* =========================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================================= */

:root {
    /* Brand Colors */
    --sf-color-primary: #0cae9d;
    --sf-color-primary-10: rgba(12, 174, 157, 0.10);
    --sf-color-primary-12: rgba(12, 174, 157, 0.12);

    /* Background Colors */
    --sf-bg-dark-1: #071212;
    --sf-bg-dark-2: #0a1c1b;
    --sf-bg-dark-3: #131f28;
    --sf-bg-light: #f4f4f4;
    --sf-bg-white: #ffffff;

    /* Text Colors */
    --sf-text-dark: #071212;
    --sf-text-muted: #65747c;
    --sf-text-white: #ffffff;
    --sf-text-white-72: rgba(255, 255, 255, 0.722);
    --sf-border-color: #d9d9d9;

    /* Typography */
    --sf-font-heading: 'Instrument Sans', sans-serif;
    --sf-font-body: 'Onest', sans-serif;
    --sf-font-logo: 'Bebas Neue', cursive;

    /* Font Sizes */
    --sf-fs-logo: 50px;
    --sf-fs-h1: 66px;
    --sf-fs-h2: 48px;
    --sf-fs-h3: 36px;
    --sf-fs-h4: 24px;
    --sf-fs-tag: 16px;
    --sf-fs-body: 16px;
    --sf-fs-body-lg: 18px;
    --sf-fs-cta: 16px;
    --sf-fs-card-nr: 36px;
    --sf-fs-card-label: 14px;
    --sf-fs-tab: 16px;

    /* Line Heights */
    --sf-lh-h1: 66px;
    --sf-lh-h2: 54px;
    --sf-lh-h3: 36px;
    --sf-lh-body: 25px;
    --sf-lh-body-lg: 28px;
    --sf-lh-nav: 25px;
    --sf-lh-card-label: 18px;

    /* Spacing */
    --sf-padding-section: 80px;
    --sf-content-max: 1480px;
    --sf-gap-section: 40px;
    --sf-gap-card: 30px;
    --sf-btn-padding-v: 16px;
    --sf-btn-padding-h: 24px;
    --sf-btn-radius: 50px;
    --sf-btn-radius-lg: 100px;
    --sf-card-radius: 10px;
    --sf-card-radius-pill: 16px;
    --sf-gap-nav: 30px;

    /* Component-specific tokens */
    --sf-color-star: #f5a623;
    --sf-color-card-hover: #395956;
}

/* =========================================================
   GLOBAL BASE STYLES
   ========================================================= */

/* `overflow-x: hidden` here would turn html/body into scroll containers
   (overflow-y computes to auto), and a position:sticky element then sticks
   to THAT scrollport rather than the viewport — which silently killed the
   sticky header. `overflow-x: clip` clips the same stray horizontal
   overflow without creating a scroll container, so sticky keeps working. */
html,
body {
    overflow-x: clip;
    max-width: 100%;
}

body {
    font-family: var(--sf-font-body);
    color: var(--sf-text-dark);
    font-size: var(--sf-fs-body);
    line-height: var(--sf-lh-body);
}

body.sf-modal-open {
    overflow: hidden;
}

/* Google Fonts are loaded via functions.php */

/* =========================================================
   SHARED UTILITY CLASSES
   ========================================================= */

.sf-section-inner {
    max-width: var(--sf-content-max);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.sf-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sf-font-heading);
    font-weight: 600;
    font-size: var(--sf-fs-tag);
    letter-spacing: 0.10em;
    color: var(--sf-text-dark);
    text-transform: uppercase;
}

.sf-tag::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--sf-color-primary);
    flex-shrink: 0;
    animation: sf-tag-ripple 2.6s ease-out infinite;
}

/* Expanding ripple: 10px dot → 24px outer ring, 4 layers fading out */
@keyframes sf-tag-ripple {
    0% {
        box-shadow:
            0 0 0 0 rgba(12, 174, 157, 0.32),
            0 0 0 0 rgba(12, 174, 157, 0.22),
            0 0 0 0 rgba(12, 174, 157, 0.13),
            0 0 0 0 rgba(12, 174, 157, 0.07);
    }
    70%, 100% {
        box-shadow:
            0 0 0 3px rgba(12, 174, 157, 0),
            0 0 0 4.5px rgba(12, 174, 157, 0),
            0 0 0 6px rgba(12, 174, 157, 0),
            0 0 0 7px rgba(12, 174, 157, 0);
    }
}

.sf-tag--light {
    color: var(--sf-text-white);
}

.sf-tag--teal {
    color: var(--sf-color-primary);
}

.sf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sf-font-body);
    font-weight: 500;
    font-size: var(--sf-fs-cta);
    text-decoration: none;
    padding: var(--sf-btn-padding-v) var(--sf-btn-padding-h);
    border-radius: var(--sf-btn-radius);
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
    border: 2px solid transparent;
    cursor: pointer;
    line-height: 1;
}

.sf-btn:hover,
.sf-btn:focus-visible {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(7, 18, 18, 0.16);
}

.sf-btn .sf-btn__icon {
    transition: transform 0.25s ease;
}

.sf-btn:hover .sf-btn__icon,
.sf-btn:focus-visible .sf-btn__icon {
    transform: translateX(3px);
}

.sf-btn--primary {
    background-color: var(--sf-color-primary);
    color: var(--sf-text-white);
    border-color: var(--sf-color-primary);
}

.sf-btn--dark {
    background-color: var(--sf-bg-dark-1);
    color: var(--sf-text-white);
    border-color: var(--sf-bg-dark-1);
}

.sf-btn--lg {
    border-radius: var(--sf-btn-radius-lg);
}

.sf-btn--whatsapp {
    background-color: #25d366;
    color: var(--sf-text-white);
    border-color: #25d366;
}

/* Shared two-button CTA row used across every homepage block */
.sf-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

@media (max-width: 600px) {
    .sf-cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .sf-cta-group .sf-btn {
        justify-content: center;
    }
}

/* Teal text highlight spans inside headings */
.sf-highlight {
    color: var(--sf-color-primary);
}

/* =========================================================
   REDUCED MOTION — disable decorative animation/movement
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .sf-tag::before {
        animation: none;
    }

    .sf-btn,
    .sf-btn .sf-btn__icon {
        transition-duration: 0.01ms;
    }

    .sf-btn:hover,
    .sf-btn:focus-visible,
    .sf-btn:hover .sf-btn__icon,
    .sf-btn:focus-visible .sf-btn__icon {
        transform: none;
    }
}
