/*
Theme Name: Smart Home Services
Theme URI: https://example.com/smart-home-theme
Author: Antigravity
Author URI: https://example.com
Description: A modern, responsive, and SEO-optimized WordPress theme for Smart Home Services.
Version: 1.0.0
Requires at least: 6.0
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: smart-home
Tags: one-column, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, footer-widgets, full-width-template, theme-options, translation-ready
*/

:root {
    /* Color Palette */
    --color-primary: #0075FF;
    --color-secondary: #00C6A5;
    --color-accent: #FECF00;
    --color-text: #333333;
    --color-text-light: #777777;
    --color-background: #FFFFFF;
    --color-bg-light: #F7F9FB;
    --color-white: #FFFFFF;

    /* Typography */
    --font-primary: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Fallback */
    --font-heading: 'Poppins', sans-serif;
    --font-arabic: 'Cairo', sans-serif;

    /* Spacing */
    --spacing-unit: 1rem;
    --container-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

/* Base Styles */
html {
    box-sizing: border-box;
    font-size: 16px;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* RTL Support for Arabic */
[dir="rtl"] body {
    font-family: var(--font-arabic), var(--font-primary);
    direction: rtl;
    text-align: right;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
    font-family: var(--font-arabic);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.bg-light { background-color: var(--color-bg-light); }
.section-padding { padding: 4rem 0; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #005bb7;
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: #009e82;
    color: var(--color-white);
}

.btn-accent {
    background-color: var(--color-accent);
    color: #333;
}

/* Helper for WordPress Admin Bar */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
