/* Raven Care Group — shared design system */
:root {
    --color-navy: #1B2A41;
    --color-slate-blue: #4A6D8C;
    --color-gold: #D9A477;
    --color-cream: #F9F8F6;
    --color-text: #1B2A41;
    --color-muted: #64748b;
    --radius-xl: 1.5rem;
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --max-width: 80rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background-color: var(--color-cream);
    color: var(--color-navy);
    overflow-x: hidden;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

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

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

.font-logo { font-family: 'Playfair Display', Georgia, serif; }
.font-dancing { font-family: 'Dancing Script', cursive; }
.font-marcellus { font-family: 'Marcellus', serif; }
.font-cormorant { font-family: 'Cormorant Garamond', serif; }
.font-lora { font-family: 'Lora', Georgia, serif; }
.font-jakarta { font-family: 'Plus Jakarta Sans', sans-serif; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--color-navy);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 0.5rem 0;
    font-weight: 700;
}
.skip-link:focus {
    left: 0;
}

/* Dialogs */
dialog {
    opacity: 0;
    transition: all 0.3s allow-discrete;
    padding: 0;
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 48rem;
    width: 95%;
    background: white;
}
dialog::backdrop {
    background: rgba(27, 42, 65, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s allow-discrete;
}
dialog[open] { opacity: 1; }
dialog[open]::backdrop { opacity: 1; }
@starting-style {
    dialog[open] { opacity: 0; }
    dialog[open]::backdrop { opacity: 0; }
}

/* Sticky home showcase */
.sticky-card-container { position: relative; }
.sticky-card {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 100%;
    word-wrap: break-word;
}

.action-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-radius: 1.25rem;
    padding: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.action-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
    color: var(--color-navy);
    font-weight: 700;
}
.action-item:hover {
    background-color: #f8fafc;
    color: var(--color-slate-blue);
}

.help-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
}
.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.help-card-header { height: 6px; width: 100%; }

.location-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    transition: all 0.4s ease;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.location-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.location-card-gradient {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    transition: opacity 0.4s;
}
.location-card:hover .location-card-gradient { opacity: 0.1; }

.reveal-type {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

@media (min-width: 1024px) {
    .hero-title-size { font-size: 5.5rem; }
}

/* Explore / home cards */
.home-card {
    background-color: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.home-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.home-card .image-container {
    position: relative;
    overflow: hidden;
    height: 240px;
    z-index: 1;
}
@media (min-width: 768px) {
    .home-card .image-container { height: 280px; }
}
.home-card img.home-img {
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-card:hover img.home-img { transform: scale(1.08); }
.home-card .country-flag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-navy);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 20;
}

.filter-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%231B2A41' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
}

.btn-visit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--home-brand-color, var(--color-navy));
    color: white;
    font-weight: 700;
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.btn-visit:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--color-navy);
    color: #fff;
    font-weight: 700;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    transition: all 0.25s ease;
}
.btn-primary:hover {
    background: var(--color-slate-blue);
    transform: translateY(-2px);
}
.btn-gold {
    background: var(--color-gold);
    color: var(--color-navy);
}
.btn-gold:hover { filter: brightness(1.05); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-weight: 700;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    transition: all 0.25s ease;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

/* Page shells */
.page-hero {
    position: relative;
    padding: 8rem 1.5rem 4rem;
    background: var(--color-navy);
    color: #fff;
    overflow: hidden;
}
.page-hero .hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.35;
}
.page-hero .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.88));
}
.page-hero .hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
}
.page-hero p {
    max-width: 40rem;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.25rem;
}
.breadcrumb a:hover { color: var(--color-gold); }
.breadcrumb span[aria-hidden="true"] { opacity: 0.5; }

.section {
    padding: 4.5rem 1.5rem;
}
.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: var(--color-navy);
}
.section-lead {
    font-size: 1.125rem;
    color: var(--color-muted);
    font-weight: 500;
    line-height: 1.7;
    max-width: 40rem;
}

/* Care home highlight page */
.home-highlight-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
}
.home-highlight-hero .bg-img {
    position: absolute;
    inset: 0;
}
.home-highlight-hero .bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-highlight-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(27, 42, 65, 0.92) 100%);
}
.home-highlight-hero .content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 7rem 1.5rem 3.5rem;
}
.home-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.home-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin: 0 0 1rem;
    line-height: 1.1;
}
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0 1.75rem;
}
.tag {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.tag-solid {
    background: #fff;
    color: var(--color-navy);
    border-color: transparent;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px) {
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-card);
}
.feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 800;
}
.feature-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
}

.cta-band {
    background: var(--color-navy);
    color: #fff;
    border-radius: 1.5rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}
@media (min-width: 768px) {
    .cta-band {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.cta-band h2 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 800;
}
.cta-band p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.related-homes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px) {
    .related-homes { grid-template-columns: repeat(3, 1fr); }
}
.related-card {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.related-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.related-card .body {
    padding: 1.25rem;
}
.related-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.125rem;
    font-weight: 800;
}
.related-card p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-muted);
    font-weight: 500;
}

/* Local SEO / contact cards */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.info-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-weight: 500;
}
.info-list li:last-child { border-bottom: none; }

.site-footer {
    background: #111827;
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 1.5rem 2rem;
}
.site-footer a:hover { color: #fff; }
.site-footer .footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}
@media (min-width: 768px) {
    .site-footer .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.site-footer h4 {
    color: var(--color-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 1rem;
}
.site-footer nav a {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.site-footer .legal {
    max-width: var(--max-width);
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

/* Form */
.contact-form {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-card);
}
.contact-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
    color: var(--color-navy);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    font: inherit;
    margin-bottom: 1rem;
    background: #f8fafc;
    color: var(--color-navy);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-slate-blue);
    background: #fff;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
