/**
 * Oasis Therapy Group Starter - Global Styles
 * Design system based on mockup
 */

/* Hide page title on home page */
.home .entry-title,
.home .page-title,
body.page-id-7 .entry-title,
body.page-id-7 .page-title,
body.page-id-7 h1.entry-title {
    display: none !important;
}

/* Remove default page margins on home */
.home .entry-content,
.home .page-content,
body.page-id-7 .entry-content,
.ogt-file-page .entry-content,
.ogt-file-page .page-content {
    margin: 0;
    padding: 0;
}

/* ========================================
   CSS Custom Properties (Design Tokens)
   ======================================== */

:root {
    /* Primary Colors — Oasis Therapy Group logo */
    --ogt-navy: #085098;
    --ogt-blue: #1C6BA8;
    --ogt-blue-light: #105090;
    --ogt-blue-pale: #FBF3DC;
    --ogt-teal: #60B8C0;
    --ogt-blue-gradient: linear-gradient(120deg, #60B8C0, #085098);
    --ogt-gold-pale: #FBF3DC;
    --ogt-gold-gradient: linear-gradient(135deg, #FFFCF5 0%, #FBF3DC 48%, #F5E4A8 100%);
    
    /* Accent Colors — sand dune + coral heart */
    --ogt-gold: #F0D078;
    --ogt-orange: #F07C64;
    --ogt-coral: #F07C64;
    --ogt-green: #2A9AA3; /* CTA / success → logo teal family */
    
    /* Neutral Colors */
    --ogt-white: #FFFFFF;
    --ogt-gray-50: #F8FAFC;
    --ogt-gray-100: #F1F5F9;
    --ogt-gray-200: #E2E8F0;
    --ogt-gray-300: #CBD5E1;
    --ogt-gray-400: #94A3B8;
    --ogt-gray-500: #64748B;
    --ogt-gray-600: #475569;
    --ogt-gray-700: #334155;
    --ogt-gray-800: #1E293B;
    --ogt-gray-900: #0F172A;
    
    /* Typography */
    --ogt-font-heading: 'Playfair Display', Georgia, serif;
    --ogt-font-body: Lato, system-ui, sans-serif;
    --ogt-font-script: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --ogt-space-xs: 4px;
    --ogt-space-sm: 8px;
    --ogt-space-md: 16px;
    --ogt-space-lg: 24px;
    --ogt-space-xl: 32px;
    --ogt-space-2xl: 48px;
    --ogt-space-3xl: 64px;
    --ogt-space-4xl: 96px;
    
    /* Border Radius */
    --ogt-radius-sm: 4px;
    --ogt-radius-md: 8px;
    --ogt-radius-lg: 12px;
    --ogt-radius-xl: 16px;
    --ogt-radius-full: 9999px;
    
    /* Shadows */
    --ogt-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --ogt-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --ogt-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --ogt-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --ogt-transition-fast: 150ms ease;
    --ogt-transition-normal: 300ms ease;
    --ogt-transition-slow: 500ms ease;
    
    /* Layout */
    --ogt-container-max: 1440px;
    --ogt-content-max: 1200px;
    --ogt-gutter: 40px;
    --ogt-scroll-offset: 160px;
}

@media (max-width: 768px) {
    :root {
        --ogt-gutter: 20px;
        --ogt-scroll-offset: 100px;
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--ogt-scroll-offset);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   Base Styles
   ======================================== */

body {
    font-family: var(--ogt-font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ogt-gray-800);
    background: var(--ogt-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p {
    font-size: 16px;
    line-height: 1.65;
}

/* ========================================
   Typography Utilities
   ======================================== */

.ogt-text-heading {
    font-family: var(--ogt-font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.ogt-text-script {
    font-family: var(--ogt-font-script);
    font-style: italic;
    color: var(--ogt-blue);
}

.ogt-text-navy { color: var(--ogt-navy); }
.ogt-text-blue { color: var(--ogt-blue); }
.ogt-text-gold { color: var(--ogt-gold); }
.ogt-text-green { color: var(--ogt-green); }
.ogt-text-white { color: var(--ogt-white); }
.ogt-text-gray { color: var(--ogt-gray-600); }

.ogt-text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ========================================
   Background Utilities
   ======================================== */

.ogt-bg-white { background-color: var(--ogt-white); }
.ogt-bg-navy { background-color: var(--ogt-navy); }
.ogt-bg-blue { background-color: var(--ogt-blue); }
.ogt-bg-blue-pale { background-color: var(--ogt-blue-pale); }
.ogt-bg-gray-light { background-color: var(--ogt-gray-50); }
.ogt-bg-gold { background-color: var(--ogt-gold); }
.ogt-bg-green { background-color: var(--ogt-green); }
.ogt-bg-gradient-blue { background: var(--ogt-blue-gradient); }

/* ========================================
   Section Styles (Elementor Integration)
   ======================================== */

.ogt-section {
    padding: var(--ogt-space-3xl) 0;
}

.ogt-section--sm {
    padding: var(--ogt-space-2xl) 0;
}

.ogt-section--lg {
    padding: var(--ogt-space-4xl) 0;
}

.ogt-section--hero {
    position: relative;
    min-height: 500px;
    background-color: var(--ogt-blue-pale);
    overflow: hidden;
}

.ogt-section--cta {
    background: var(--ogt-blue-gradient);
    border-radius: var(--ogt-radius-xl);
    margin: 0 var(--ogt-gutter);
    padding: var(--ogt-space-2xl) var(--ogt-space-2xl);
}

/* ========================================
   Card Styles
   ======================================== */

.ogt-card {
    background: var(--ogt-white);
    border-radius: var(--ogt-radius-lg);
    overflow: hidden;
    box-shadow: var(--ogt-shadow-md);
    transition: transform var(--ogt-transition-normal), box-shadow var(--ogt-transition-normal);
}

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

.ogt-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.ogt-card__content {
    padding: var(--ogt-space-md);
}

.ogt-card__title {
    font-family: var(--ogt-font-heading);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: var(--ogt-space-sm);
    color: var(--ogt-gray-800);
}

.ogt-card__text {
    font-size: 15px;
    color: var(--ogt-gray-500);
    line-height: 1.5;
    margin-bottom: var(--ogt-space-md);
}

/* ========================================
   Button Styles
   ======================================== */

.ogt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: var(--ogt-radius-md);
    font-family: var(--ogt-font-body);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--ogt-transition-normal);
}

.ogt-btn:hover {
    transform: translateY(-2px);
}

.ogt-btn--primary {
    background: var(--ogt-blue);
    color: var(--ogt-white);
}

.ogt-btn--primary:hover,
.ogt-btn--primary:focus,
.ogt-btn--primary:visited {
    background: var(--ogt-navy);
    color: #ffffff !important;
}

.ogt-btn--secondary {
    background: var(--ogt-white);
    color: var(--ogt-navy);
    border: 1px solid var(--ogt-gray-300);
}

.ogt-btn--secondary:hover {
    border-color: var(--ogt-blue);
    color: var(--ogt-blue);
}

.ogt-btn--green {
    background: var(--ogt-green);
    color: var(--ogt-white);
}

.ogt-btn--green:hover {
    background: #247F87;
}

.ogt-btn--gold {
    background: var(--ogt-gold);
    color: var(--ogt-navy);
}

.ogt-btn--sm {
    padding: 8px 16px;
    font-size: 14px;
}

.ogt-btn--pill {
    border-radius: var(--ogt-radius-full);
}

/* ========================================
   Icon Box Styles (Therapy Solutions)
   ======================================== */

.ogt-icon-box {
    text-align: center;
    padding: var(--ogt-space-lg);
}

.ogt-icon-box__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ogt-green);
    color: var(--ogt-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--ogt-space-md);
    font-family: var(--ogt-font-heading);
    font-weight: 700;
    font-size: 20px;
}

.ogt-icon-box__title {
    font-family: var(--ogt-font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: var(--ogt-space-sm);
    color: var(--ogt-gray-800);
}

.ogt-icon-box__text {
    font-size: 15px;
    color: var(--ogt-gray-500);
    line-height: 1.6;
    margin-bottom: var(--ogt-space-sm);
}

/* ========================================
   Insurance Logos
   ======================================== */

.ogt-insurance-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--ogt-space-xl);
    flex-wrap: wrap;
}

.ogt-insurance-logos img {
    max-height: 50px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--ogt-transition-normal);
}

.ogt-insurance-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========================================
   Blog Cards
   ======================================== */

.ogt-blog-card {
    position: relative;
}

.ogt-blog-card__image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: var(--ogt-radius-lg);
}

.ogt-blog-card__category {
    display: inline-block;
    background: var(--ogt-orange);
    color: var(--ogt-white);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--ogt-radius-sm);
    margin-top: var(--ogt-space-md);
    text-transform: uppercase;
}

.ogt-blog-card__title {
    font-family: var(--ogt-font-heading);
    font-weight: 700;
    font-size: 14px;
    margin-top: var(--ogt-space-sm);
    color: var(--ogt-gray-800);
}

/* ========================================
   Service Area Map
   ======================================== */

.ogt-map-container {
    position: relative;
    background: #FBF3DC;
    border-radius: var(--ogt-radius-lg);
    overflow: hidden;
    min-height: 320px;
}

.ogt-map-marker {
    position: absolute;
    text-align: center;
}

.ogt-map-marker__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ogt-blue);
    border: 3px solid var(--ogt-white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.ogt-map-marker__label {
    background: var(--ogt-white);
    font-family: var(--ogt-font-body);
    font-weight: 600;
    font-size: 11px;
    color: var(--ogt-navy);
    padding: 3px 8px;
    border-radius: 6px;
    margin-top: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

/* ========================================
   CTA Banner
   Full layout/button styles live in home-page.css
   (enqueued on home + pages that use the banner).
   ======================================== */

.ogt-cta-banner {
    position: relative;
    overflow: visible;
}

/* ========================================
   Resource Pills
   ======================================== */

.ogt-resource-pills {
    display: flex;
    justify-content: center;
    gap: var(--ogt-space-md);
    flex-wrap: wrap;
}

.ogt-resource-pill {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--ogt-radius-full);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--ogt-white);
    transition: transform var(--ogt-transition-normal);
}

.ogt-resource-pill:hover {
    transform: translateY(-2px);
}

.ogt-resource-pill--parent { background: #186098; }
.ogt-resource-pill--student { background: #2A7AB0; }
.ogt-resource-pill--clinician { background: #60B8C0; }

/* ========================================
   Hero Sunburst Effect (CSS)
   ======================================== */

.ogt-sunburst-effect {
    position: absolute;
    top: -300px;
    right: -400px;
    width: 1400px;
    height: 1400px;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    background: conic-gradient(
        from 200deg at 95% 5%,
        transparent 0deg,
        rgba(245, 213, 79, 1) 2deg,
        transparent 5deg,
        rgba(245, 213, 79, 0.85) 8deg,
        transparent 11deg,
        rgba(245, 213, 79, 0.7) 14deg,
        transparent 17deg,
        rgba(245, 213, 79, 0.95) 20deg,
        transparent 23deg,
        rgba(245, 213, 79, 0.6) 26deg,
        transparent 29deg,
        rgba(245, 213, 79, 0.9) 32deg,
        transparent 36deg,
        transparent 360deg
    );
    -webkit-mask-image: radial-gradient(circle at 95% 5%, black 0%, black 35%, transparent 75%);
    mask-image: radial-gradient(circle at 95% 5%, black 0%, black 35%, transparent 75%);
}

/* ========================================
   Responsive Grid Helpers
   ======================================== */

.ogt-grid {
    display: grid;
    gap: var(--ogt-space-lg);
}

.ogt-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ogt-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ogt-grid--4 { grid-template-columns: repeat(4, 1fr); }

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

@media (max-width: 768px) {
    .ogt-grid--2,
    .ogt-grid--3,
    .ogt-grid--4 { grid-template-columns: 1fr; }
}

/* ========================================
   Spacing Utilities
   ======================================== */

.ogt-mt-0 { margin-top: 0; }
.ogt-mt-sm { margin-top: var(--ogt-space-sm); }
.ogt-mt-md { margin-top: var(--ogt-space-md); }
.ogt-mt-lg { margin-top: var(--ogt-space-lg); }
.ogt-mt-xl { margin-top: var(--ogt-space-xl); }
.ogt-mt-2xl { margin-top: var(--ogt-space-2xl); }

.ogt-mb-0 { margin-bottom: 0; }
.ogt-mb-sm { margin-bottom: var(--ogt-space-sm); }
.ogt-mb-md { margin-bottom: var(--ogt-space-md); }
.ogt-mb-lg { margin-bottom: var(--ogt-space-lg); }
.ogt-mb-xl { margin-bottom: var(--ogt-space-xl); }
.ogt-mb-2xl { margin-bottom: var(--ogt-space-2xl); }

.ogt-py-sm { padding-top: var(--ogt-space-sm); padding-bottom: var(--ogt-space-sm); }
.ogt-py-md { padding-top: var(--ogt-space-md); padding-bottom: var(--ogt-space-md); }
.ogt-py-lg { padding-top: var(--ogt-space-lg); padding-bottom: var(--ogt-space-lg); }
.ogt-py-xl { padding-top: var(--ogt-space-xl); padding-bottom: var(--ogt-space-xl); }
.ogt-py-2xl { padding-top: var(--ogt-space-2xl); padding-bottom: var(--ogt-space-2xl); }

.ogt-px-sm { padding-left: var(--ogt-space-sm); padding-right: var(--ogt-space-sm); }
.ogt-px-md { padding-left: var(--ogt-space-md); padding-right: var(--ogt-space-md); }
.ogt-px-lg { padding-left: var(--ogt-space-lg); padding-right: var(--ogt-space-lg); }
.ogt-px-xl { padding-left: var(--ogt-space-xl); padding-right: var(--ogt-space-xl); }

.ogt-text-center { text-align: center; }
.ogt-text-left { text-align: left; }
.ogt-text-right { text-align: right; }
