/* ==========================================================================
   1. CSS Reset
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

ul, ol {
    list-style: none;
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    margin: 0;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

/* ==========================================================================
   2. CSS Variables
   ========================================================================== */
:root {
    /* Colors */
    --primary-color: #F27A21;       /* Orange accent from UI */
    --primary-hover: #D96A19;
    --secondary-color: #111827;     /* Dark navy/slate for text and footer */
    --accent-color: #FCD34D;        /* Star rating yellow */
    
    --bg-main: #FFFFFF;             /* Main white background */
    --bg-light: #F9FAFB;            /* Light gray background (Testimonials) */
    --bg-dark: #1F2937;             /* Dark background */
    
    --text-main: #1F2937;           /* Primary text color */
    --text-muted: #6B7280;          /* Secondary/muted text */
    --text-light: #F9FAFB;          /* Text on dark backgrounds */
    
    --border-color: #E5E7EB;        /* Light gray borders */
    
    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Layout & Spacing */
    --container-width: 1200px;
    --section-spacing-y: 80px;
    --section-spacing-x: 24px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Box Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
}

/* ==========================================================================
   3. Global Typography
   ========================================================================== */
body {
    font-family: var(--font-primary);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

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

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    transition: color var(--transition-fast);
}

/* ==========================================================================
   4. Body Styling
   ========================================================================== */
body {
    background-color: var(--bg-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ==========================================================================
   5. Container Class
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--section-spacing-x);
    padding-right: var(--section-spacing-x);
}

/* ==========================================================================
   6. Section Spacing
   ========================================================================== */
.section {
    padding-top: var(--section-spacing-y);
    padding-bottom: var(--section-spacing-y);
}

.section-sm {
    padding-top: calc(var(--section-spacing-y) / 2);
    padding-bottom: calc(var(--section-spacing-y) / 2);
}

.section-lg {
    padding-top: calc(var(--section-spacing-y) * 1.5);
    padding-bottom: calc(var(--section-spacing-y) * 1.5);
}

/* ==========================================================================
   7. Common Utility Classes
   ========================================================================== */
/* Display & Layout */
.flex { display: flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none !important; }

/* Flexbox Utilities */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Backgrounds */
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }
.bg-white { background-color: var(--bg-main); }

/* Spacing */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ==========================================================================
   8. Image Rules
   ========================================================================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

figure {
    margin: 0;
}

/* ==========================================================================
   9. Common Animation Utilities
   ========================================================================== */
.fade-in {
    animation: fadeIn var(--transition-normal) forwards;
}

.slide-up {
    animation: slideUp var(--transition-normal) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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