/* ============================================
   Cosmick Areas Served — Frontend Styles
   Colors configured via CSS custom properties
   set by the plugin's enqueue.php
   ============================================ */

/* Hero */
.aws-hero-section {
    background: linear-gradient(135deg, var(--cas-primary) 0%, var(--cas-primary-dark) 100%);
    padding: 80px 0 60px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}
.aws-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat center;
    background-size: cover;
    opacity: .3;
}
.aws-hero-content { position: relative; z-index: 1; }
.aws-page-title {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,.1);
    line-height: 1.2;
}
.aws-location-badge {
    display: inline-block;
    background: rgba(255,255,255,.2);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.3);
    margin-bottom: 20px;
}

/* Breadcrumbs */
.aws-breadcrumb {
    background: rgba(255,255,255,.1);
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 20px;
}
.aws-breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; }
.aws-breadcrumb li { display: inline; color: #fff; font-size: 14px; }
.aws-breadcrumb li:not(:last-child)::after { content: ' \203A '; margin: 0 8px; opacity: .7; }
.aws-breadcrumb a { color: #fff; text-decoration: none; transition: opacity .3s; }
.aws-breadcrumb a:hover { opacity: .8; }

/* Content Section */
.aws-content-section { background: #fff; padding: 60px 0; position: relative; }
.aws-content-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.08);
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.aws-content-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 5px; height: 100%;
    background: var(--cas-primary);
}
.aws-content-body { font-size: 16px; line-height: 1.8; color: #4a5568; }
.aws-content-preview { position: relative; max-height: 150px; overflow: hidden; transition: max-height .5s ease; }
.aws-content-preview.expanded { max-height: none; }
.aws-content-preview.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 60px;
    background: linear-gradient(to bottom, transparent, #fff);
    pointer-events: none;
}

/* Buttons */
.aws-read-more-btn {
    background: var(--cas-primary);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 25px;
    transition: all .3s ease;
    box-shadow: 0 4px 15px rgba(1,140,110,.3);
}
.aws-read-more-btn:hover {
    background: var(--cas-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1,140,110,.4);
}

/* Info Boxes */
.aws-info-boxes-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--cas-primary) #f0f0f0;
    margin: 0 -15px 40px;
    padding: 0 15px;
}
.aws-info-boxes-container::-webkit-scrollbar { height: 8px; }
.aws-info-boxes-container::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 4px; }
.aws-info-boxes-container::-webkit-scrollbar-thumb { background: var(--cas-primary); border-radius: 4px; }
.aws-info-boxes { display: flex; gap: 20px; min-width: fit-content; padding-bottom: 10px; }
.aws-info-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    min-width: 150px;
    flex-shrink: 0;
}
.aws-info-label { font-size: 12px; text-transform: uppercase; color: #a0aec0; letter-spacing: 1px; margin-bottom: 8px; }
.aws-info-value { font-size: 20px; font-weight: 600; color: var(--cas-primary); }

/* Products Section */
.aws-products-section { background: #fff; padding: 60px 0; }
.aws-section-header { text-align: center; margin-bottom: 50px; }
.aws-section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--cas-text);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}
.aws-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 4px;
    background: var(--cas-primary);
    border-radius: 2px;
}
.aws-section-subtitle { font-size: 18px; color: #718096; margin-top: 20px; }
.aws-woo-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
}

/* Features Section */
.aws-features-section { background: #f8f9fa; padding: 60px 0; margin-top: 60px; }
.aws-features-header { text-align: center; margin-bottom: 50px; }
.aws-features-title {
    font-size: 36px; font-weight: 700; color: var(--cas-text);
    margin-bottom: 15px; position: relative; display: inline-block;
}
.aws-features-title::after {
    content: '';
    position: absolute; bottom: -10px; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 4px;
    background: var(--cas-primary);
    border-radius: 2px;
}
.aws-features-subtitle { font-size: 18px; color: #718096; margin-top: 20px; }
.aws-features-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--cas-primary) #f0f0f0;
}
.aws-features-container::-webkit-scrollbar { height: 8px; }
.aws-features-container::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 4px; }
.aws-features-container::-webkit-scrollbar-thumb { background: var(--cas-primary); border-radius: 4px; }
.aws-features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(280px, 1fr));
    gap: 1rem;
    padding-bottom: 10px;
}
.aws-feature-card {
    background: #fff;
    border-radius: .5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all .3s ease;
    border: 1px solid #e9ecef;
    min-height: 200px;
}
.aws-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(1,140,110,.15);
}
.aws-feature-title {
    font-size: 1.25rem; font-weight: 700; color: var(--cas-text);
    margin-bottom: .75rem; display: flex; align-items: center;
}
.aws-feature-icon { width: 2rem; height: 2rem; margin-right: .75rem; color: var(--cas-primary); }
.aws-feature-desc { font-size: .95rem; color: #6c757d; line-height: 1.6; flex-grow: 1; }
.aws-feature-btn {
    background: var(--cas-primary);
    color: #fff;
    padding: .625rem 1.5rem;
    border-radius: 50px;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    transition: all .3s ease;
    border: none;
    cursor: pointer;
    align-self: flex-start;
}
.aws-feature-btn:hover { background: var(--cas-primary-dark); color: #fff; transform: translateX(3px); }

/* CTA Section */
.aws-cta-section {
    background: linear-gradient(135deg, var(--cas-primary) 0%, var(--cas-primary-dark) 100%);
    padding: 60px 0;
    margin-top: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.aws-cta-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
    animation: casPulse 3s ease-in-out infinite;
}
@keyframes casPulse {
    0%, 100% { transform: scale(1); opacity: .5; }
    50% { transform: scale(1.1); opacity: .3; }
}
.aws-cta-content { position: relative; z-index: 1; }
.aws-cta-title { color: #fff; font-size: 32px; font-weight: 700; margin-bottom: 20px; }
.aws-cta-text { color: rgba(255,255,255,.9); font-size: 18px; margin-bottom: 30px; }
.aws-cta-button {
    display: inline-block;
    background: #fff;
    color: var(--cas-primary);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
}
.aws-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,.3);
    background: #f8f9fa;
    color: var(--cas-primary-dark);
}

/* Breed-in-Area Page */
.aws-breed-hero {
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    padding: 60px 0;
}
.aws-breed-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
}
.aws-breed-hero .aws-hero-content { position: relative; z-index: 1; }

/* Location Intro */
.aws-location-intro {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-left: 5px solid var(--cas-primary);
    border-radius: 0 12px 12px 0;
    padding: 30px 35px;
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--cas-text);
}

/* Custom Content */
.aws-custom-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
    padding: 40px;
    margin-bottom: 40px;
}
.aws-custom-content h2 { color: var(--cas-primary); margin-bottom: 20px; }

/* Map */
.aws-map-section { padding: 60px 0; }
#service-area-map {
    height: 400px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
}

/* Responsive */
@media (max-width: 768px) {
    .aws-features-grid {
        grid-auto-flow: column;
        grid-template-columns: repeat(auto-fit, 280px);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        padding: 0 15px 10px;
    }
    .aws-feature-card { scroll-snap-align: start; }
    .aws-info-boxes { scroll-snap-type: x mandatory; scroll-behavior: smooth; }
    .aws-info-box { scroll-snap-align: start; }
    .aws-page-title { font-size: 32px; }
    .aws-content-wrapper { padding: 25px; }
    .aws-section-title,
    .aws-features-title { font-size: 28px; }
    .aws-cta-title { font-size: 24px; }
    .aws-breed-hero { min-height: 300px; }
    #service-area-map { height: 300px; }
}

/* Other Items — horizontal scroll */
.aws-breeds-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    cursor: grab;
}
.aws-breeds-scroll::-webkit-scrollbar { height: 6px; }
.aws-breeds-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.aws-breeds-scroll > .col { flex: 0 0 auto; width: 220px; scroll-snap-align: start; }

/* Screen Reader Only */
.aws-map-description.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; border:0; }

@media (max-width: 480px) {
    .aws-hero-section { padding: 50px 0 40px; }
    .aws-page-title { font-size: 26px; }
    .aws-location-badge { font-size: 14px; padding: 8px 20px; }
}
