/*
Theme Name: DDS Dental Theme
Theme URI: https://ddsdental.com
Author: DDS Dental Clinic
Author URI: https://ddsdental.com
Description: A professional dental billing services theme for WordPress
Version: 1.2.0
Requires at least: 6.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dds-theme
*/

/* ================================================
   CSS VARIABLES (from Brand Kit)
   ================================================ */

:root {
    /* ==========================================
       BRAND COLORS (from Brand Kit)
       ========================================== */

    /* Gravel - Stability, professionalism, sophistication
       Use: Text, headings, and accents */
    --color-gravel: #434C59;

    /* Havelock Blue - Trust, approachability, friendliness
       Use: CTA buttons, backgrounds, highlights */
    --color-havelock-blue: #6495ED;

    /* Mid Blue - Trustworthiness, confidence, reliability
       Use: Primary logo color, key elements, backgrounds */
    --color-mid-blue: #2976BB;

    /* White - Purity, clarity, simplicity
       Use: Backgrounds for enhanced clarity */
    --color-white: #FFFFFF;

    /* ==========================================
       SEMANTIC COLOR MAPPING
       ========================================== */

    /* Primary Colors - Main brand interactions */
    --primary-color: var(--color-mid-blue);
    --primary-hover: var(--color-havelock-blue);

    /* Text Colors - For readability and hierarchy */
    --heading-color: var(--color-gravel);
    --text-color: var(--color-gravel);

    /* Background Colors - Surface variations */
    --bg-white: var(--color-white);
    --bg-light: #F5F7FA;           /* Subtle off-white for sections */
    --bg-subtle: #EDF1F5;          /* Even subtler background */

    /* ==========================================
       TYPOGRAPHY (from Brand Kit)
       ========================================== */

    /* Font Family - Inter with fallbacks */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Font Weights - Available in Inter */
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;

    /* Desktop Font Sizes (Brand Kit specifications) */
    --h1-size: 36px;
    --h2-size: 28px;
    --h3-size: 22px;
    --body-size: 12px;

    /* ==========================================
       SPACING & LAYOUT
       ========================================== */
    --container-width: 1280px;
    --section-padding: 80px;
    --border-radius: 8px;

    /* ==========================================
       UTILITIES
       ========================================== */
    --border-color: #E2E8F0;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(67, 76, 89, 0.08);
    --shadow-md: 0 8px 24px rgba(67, 76, 89, 0.12);
    --shadow-lg: 0 20px 40px rgba(67, 76, 89, 0.15);
}

/* ================================================
   RESET & BASE STYLES
   ================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    font-size: 16px; /* Base font size for better readability, B1 (12px) used for captions */
    line-height: 1.65;
    color: var(--text-color);
    background-color: var(--bg-light);
}

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

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

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

ul {
    list-style: none;
}

/* ================================================
   TYPOGRAPHY
   ================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--heading-color);
    line-height: 1.3;
}

h1 {
    font-size: var(--h1-size);
    font-weight: var(--font-weight-bold);
    line-height: 1.25;
}

h2 {
    font-size: var(--h2-size);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
}

h3 {
    font-size: var(--h3-size);
    font-weight: var(--font-weight-medium);
    line-height: 1.35;
}

h4 {
    font-size: 18px;
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
}

h5 {
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
}

h6 {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    line-height: 1.45;
}

p {
    margin-bottom: 1em;
    font-size: 16px;
}

.text-small,
.caption {
    font-size: var(--body-size);
    font-weight: var(--font-weight-regular);
}

/* ================================================
   CONTAINER & UTILITIES
   ================================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.text-left {
    text-align: left;
}

.text-white {
    color: var(--bg-white);
}

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

.text-mid-blue {
    color: var(--color-mid-blue);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-padding {
    padding: var(--section-padding) 0;
}

/* Section Subtitle */
.section-subtitle {
    color: var(--color-mid-blue);
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-semibold);
    font-size: 15px;
    line-height: 1em;
    padding: 17px 34px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

/* Primary Button */
.btn-primary {
    color: var(--bg-white);
    background-color: var(--color-mid-blue);
    border-color: var(--color-mid-blue);
}

.btn-primary:hover {
    color: var(--bg-white);
    background-color: var(--color-havelock-blue);
    border-color: var(--color-havelock-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Outline Button */
.btn-outline {
    color: var(--bg-white);
    background-color: transparent;
    border-color: var(--bg-white);
}

.btn-outline:hover {
    color: var(--color-mid-blue);
    background-color: var(--bg-white);
    border-color: var(--bg-white);
}

/* Light Button */
.btn-light {
    color: var(--color-mid-blue);
    background-color: var(--bg-white);
    border-color: var(--bg-white);
}

.btn-light:hover {
    color: var(--bg-white);
    background-color: var(--color-gravel);
    border-color: var(--color-gravel);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ================================================
   ANIMATIONS & ACCESSIBILITY
   ================================================ */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Focus & Accessibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--color-havelock-blue);
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================================
   RESPONSIVE STYLES
   ================================================ */

/* Tablet Breakpoint (1024px and below) */
@media (max-width: 1024px) {
    /* Typography */
    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }
}

/* Mobile Breakpoint (768px and below) */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    h4 {
        font-size: 16px;
    }

    /* Center text alignment for sections */
    .about-content,
    .services-header,
    .service-card-content,
    .cta-content,
    .why-us-header,
    .doctor-info,
    .testimonials-header,
    .testimonial-card,
    .contact-bar-inner {
        text-align: center;
    }

    /* Full width buttons */
    .btn,
    .btn-primary,
    .btn-light,
    .btn-outline {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }

    .btn + .btn {
        margin-top: 16px;
    }
}
