/*
 Theme Name:   ADSC Blocksy Child
 Theme URI:    https://alohadentalspecialtycenter.com
 Description:  High-performance child theme for Aloha Dental Specialty Center
 Author:       Aloha Dental Specialty Center
 Author URI:   https://alohadentalspecialtycenter.com
 Template:     blocksy
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  blocksy-child-adsc
*/

/* ==========================================================
   ADSC Global Design System
   Color Palette | Typography | Layout | Components
   ========================================================== */

/* ==================== CSS CUSTOM PROPERTIES ==================== */
:root {
    /* Primary Colors */
    --navy: #172852;
    --navy-dark: #0f1c3d;
    --navy-light: #1e3568;
    --gold: #b79f6f;
    --gold-light: #c9b48a;
    --gold-dark: #a08a5b;
    --teal: #8bb7ad;

    /* Neutrals */
    --white: #ffffff;
    --off-white: #f9f9f9;
    --gray-light: #f5f5f5;
    --gray: #e8e8e8;
    --gray-mid: #cccccc;
    --text: #222222;
    --text-light: #555555;
    --text-muted: #888888;

    /* Typography */
    --font-body: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;

    /* Spacing & Layout */
    --container-max: 1280px;
    --section-padding: 80px;
    --section-padding-mobile: 60px;

    /* Effects */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 6px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-full: 50px;
}

/* ==================== GLOBAL RESET & BASE ==================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy);
    margin: 0 0 1rem;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); color: var(--gold); }
h4 { font-size: 1.1rem; }

p {
    margin: 0 0 1rem;
    font-weight: 300;
}

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

a:hover {
    color: var(--navy);
}

/* ==================== LAYOUT ==================== */
.adsc-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

@media (max-width: 768px) {
    .adsc-section {
        padding: var(--section-padding-mobile) 0;
    }
}

/* ==================== BUTTONS ==================== */
.adsc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.adsc-btn-primary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.adsc-btn-primary:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

.adsc-btn-gold {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.adsc-btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--white);
    transform: translateY(-2px);
}

.adsc-btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.adsc-btn-outline:hover {
    background: var(--white);
    color: var(--navy);
}

/* ==================== ACCESSIBILITY ==================== */
/* Skip to content link */
.adsc-skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 0 0 var(--radius) var(--radius);
    font-weight: 600;
    z-index: 10000;
    text-decoration: none;
    transition: top 0.3s ease;
}

.adsc-skip-link:focus {
    top: 0;
    color: var(--white);
}

/* Focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================== BREADCRUMB ==================== */
.adsc-breadcrumb {
    background: var(--off-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--gray);
}

.adsc-breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.adsc-breadcrumb-list a {
    color: var(--gold);
    text-decoration: none;
}

.adsc-breadcrumb-list a:hover {
    color: var(--navy);
}

.adsc-breadcrumb-list span {
    color: var(--text-light);
}

/* ==================== CARDS ==================== */
.adsc-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.adsc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* ==================== FOOTER ==================== */
.adsc-footer {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 60px;
}

.adsc-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 40px;
}

.adsc-footer h4 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.adsc-footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.adsc-footer p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.adsc-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}

.adsc-footer a:hover {
    color: var(--gold);
}

.adsc-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.adsc-footer-links li {
    margin-bottom: 0.6rem;
}

.adsc-footer-links a {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.adsc-footer-links a::before {
    content: '→';
    color: var(--gold);
    font-size: 0.75rem;
}

.adsc-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.adsc-footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}

.adsc-footer-bottom a:hover {
    color: var(--gold);
}

@media (max-width: 1024px) {
    .adsc-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .adsc-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .adsc-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================== FLOATING CTA (MOBILE) ==================== */
@media (max-width: 768px) {
    .adsc-mobile-cta-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        display: flex;
        background: var(--navy);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    }

    .adsc-mobile-cta-bar a {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 14px 0;
        color: var(--white);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
        transition: var(--transition-fast);
    }

    .adsc-mobile-cta-bar a:first-child {
        background: var(--gold);
    }

    .adsc-mobile-cta-bar a:first-child:hover {
        background: var(--gold-light);
    }

    /* Pad body bottom so content isn't hidden behind fixed CTA */
    body {
        padding-bottom: 52px;
    }
}

@media (min-width: 769px) {
    .adsc-mobile-cta-bar {
        display: none;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.adsc-animate-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* Staggered delays for grid items */
.adsc-animate-in:nth-child(1) { animation-delay: 0.1s; }
.adsc-animate-in:nth-child(2) { animation-delay: 0.2s; }
.adsc-animate-in:nth-child(3) { animation-delay: 0.3s; }
.adsc-animate-in:nth-child(4) { animation-delay: 0.4s; }
.adsc-animate-in:nth-child(5) { animation-delay: 0.5s; }
.adsc-animate-in:nth-child(6) { animation-delay: 0.6s; }

/* ==================== PRINT STYLES ==================== */
@media print {
    .adsc-top-bar,
    .adsc-mobile-cta-bar,
    .adsc-sidebar-cta,
    .adsc-global-cta,
    .adsc-post-cta {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #555;
    }
}
