/*
Theme Name: Registered Agents Classic
Theme URI: https://registeredagentservice.com
Author: Registered Agent Service
Description: GeneratePress child theme for the classic registered agent directory-style marketing site.
Version: 1.0.0
Template: generatepress
Text Domain: registered-agents-classic
*/

:root {
    --ras-navy: #163b5b;
    --ras-navy-deep: #102d46;
    --ras-navy-soft: #214a70;
    --ras-gold: #cbb07a;
    --ras-border: #d7dfe6;
    --ras-text: #18314c;
    --ras-text-soft: #4f6174;
    --ras-surface: #ffffff;
    --ras-surface-alt: #f5f7fa;
    --ras-shadow: 0 14px 34px rgba(14, 40, 67, 0.08);
    --ras-content-width: 1140px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ras-surface-alt);
    color: var(--ras-text);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    line-height: 1.65;
}

a {
    color: var(--ras-navy-soft);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.ras-container {
    width: min(100% - 32px, var(--ras-content-width));
    margin: 0 auto;
}

.site.grid-container,
.inside-article,
.site-main,
.content-area,
.site-content {
    max-width: none;
}

.site {
    background: transparent;
}

.ras-site-header {
    background: var(--ras-navy);
    color: #fff;
    box-shadow: 0 4px 12px rgba(9, 22, 37, 0.12);
}

.ras-brand-band {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.ras-brand-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 0 24px;
}

.ras-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
    text-decoration: none;
}

.ras-brand:hover {
    text-decoration: none;
}

.ras-brand-mark {
    flex: 0 0 auto;
}

.ras-brand-mark img,
.ras-brand-mark .ras-custom-logo {
    display: block;
    width: 88px !important;
    max-width: 88px !important;
    height: 88px !important;
    object-fit: cover;
    border-radius: 999px;
}

.ras-brand-seal {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border: 3px solid var(--ras-gold);
    border-radius: 999px;
    background:
        radial-gradient(circle at center, rgba(203, 176, 122, 0.2) 0 35%, transparent 36%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    color: var(--ras-gold);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    box-shadow: inset 0 0 0 4px rgba(203, 176, 122, 0.25);
}

.ras-brand-copy {
    display: grid;
    gap: 6px;
}

.ras-brand-title {
    font-family: "Merriweather Sans", "Source Sans 3", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.02;
}

.ras-brand-tagline {
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.ras-utility {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ras-utility-link {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    font-weight: 700;
}

.ras-utility-link:hover {
    color: #fff;
}

.ras-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.ras-menu-toggle span,
.ras-menu-toggle::before,
.ras-menu-toggle::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 180ms ease, opacity 180ms ease;
}

.ras-menu-toggle {
    position: relative;
}

.ras-menu-toggle span {
    position: relative;
}

.ras-menu-toggle::before {
    position: absolute;
    top: 14px;
}

.ras-menu-toggle::after {
    position: absolute;
    bottom: 14px;
}

.ras-menu-toggle[aria-expanded="true"] span {
    opacity: 0;
}

.ras-menu-toggle[aria-expanded="true"]::before {
    transform: translateY(10px) rotate(45deg);
}

.ras-menu-toggle[aria-expanded="true"]::after {
    transform: translateY(-10px) rotate(-45deg);
}

.ras-top-nav {
    background: var(--ras-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ras-top-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0;
}

.ras-nav-list {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ras-nav-list > li > a {
    display: block;
    padding: 18px 28px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.ras-nav-list > li > a:hover {
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.ras-main {
    padding: 34px 0 72px;
}

.ras-page-shell,
.ras-classic-home {
    padding: 0;
}

.ras-panel {
    background: var(--ras-surface);
    border: 1px solid var(--ras-border);
    box-shadow: var(--ras-shadow);
}

.ras-classic-home .ras-panel {
    padding: 34px 34px 42px;
}

.ras-page-header {
    margin-bottom: 28px;
}

.ras-page-header h1,
.ras-page h1 {
    margin: 0 0 4px;
    color: #102843;
    font-family: "Merriweather Sans", "Source Sans 3", sans-serif;
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.ras-page-kicker {
    color: #0f243c;
    font-size: 1rem;
    font-style: italic;
    font-weight: 700;
}

.ras-section + .ras-section {
    margin-top: 38px;
}

.ras-section h2 {
    margin: 0 0 18px;
    color: #102843;
    font-family: "Merriweather Sans", "Source Sans 3", sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.ras-faq-list {
    display: grid;
    gap: 10px;
}

.ras-faq-item {
    border-bottom: 1px solid var(--ras-border);
}

.ras-faq-item summary {
    position: relative;
    padding: 10px 0 10px 28px;
    list-style: none;
    color: var(--ras-navy-soft);
    font-size: clamp(1.08rem, 1.5vw, 1.28rem);
    font-weight: 700;
    cursor: pointer;
}

.ras-faq-item summary::-webkit-details-marker {
    display: none;
}

.ras-faq-item summary::before {
    content: "›";
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--ras-navy-soft);
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 180ms ease;
}

.ras-faq-item[open] summary::before {
    transform: rotate(90deg);
}

.ras-faq-answer {
    padding: 0 0 16px 28px;
    max-width: 860px;
    color: var(--ras-text-soft);
    font-size: 1.02rem;
}

.ras-directory-intro {
    max-width: 980px;
}

.ras-directory-intro p {
    margin: 0 0 16px;
    color: var(--ras-text-soft);
    font-size: 1.02rem;
}

.ras-directory-note {
    padding: 18px 20px;
    border-left: 4px solid var(--ras-gold);
    background: #fbf8f1;
    color: #30485f;
}

.ras-directory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.ras-agent-card {
    padding: 20px 22px;
    border: 1px solid var(--ras-border);
    background: #fff;
}

.ras-agent-card h3 {
    margin: 0 0 10px;
    color: #142f49;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.ras-agent-card p {
    margin: 0;
    color: var(--ras-text-soft);
    font-size: 1.02rem;
}

.ras-agent-card p + p {
    margin-top: 4px;
}

.ras-resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ras-resource-card {
    padding: 22px 22px 24px;
    border: 1px solid var(--ras-border);
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.ras-resource-card h3 {
    margin: 0 0 10px;
    color: #142f49;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.15;
}

.ras-resource-card p {
    margin: 0 0 14px;
    color: var(--ras-text-soft);
}

.ras-resource-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--ras-text);
}

.ras-resource-card li + li {
    margin-top: 6px;
}

.ras-footer {
    padding: 28px 0 34px;
    background: var(--ras-navy-deep);
    color: rgba(255, 255, 255, 0.78);
}

.ras-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.ras-footer p {
    margin: 0;
}

.ras-footer a {
    color: rgba(255, 255, 255, 0.88);
}

.ras-page .ras-page-content {
    max-width: 860px;
    color: var(--ras-text-soft);
    font-size: 1.04rem;
}

.ras-page .ras-page-content h2,
.ras-page .ras-page-content h3,
.ras-page .ras-page-content h4 {
    color: #102843;
    font-family: "Merriweather Sans", "Source Sans 3", sans-serif;
    font-weight: 800;
    line-height: 1.15;
}

.ras-page .ras-page-content h2 {
    margin: 30px 0 14px;
    font-size: 2rem;
}

.ras-page .ras-page-content h3 {
    margin: 22px 0 12px;
    font-size: 1.45rem;
}

.ras-page .ras-page-content p,
.ras-page .ras-page-content ul,
.ras-page .ras-page-content ol {
    margin: 0 0 16px;
}

.ras-page .ras-page-content ul,
.ras-page .ras-page-content ol {
    padding-left: 22px;
}

@media (max-width: 980px) {
    .ras-brand-inner {
        align-items: flex-start;
    }

    .ras-brand-mark img,
    .ras-brand-mark .ras-custom-logo,
    .ras-brand-seal {
        width: 76px !important;
        max-width: 76px !important;
        height: 76px !important;
    }

    .ras-directory-grid,
    .ras-resource-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .ras-brand-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 14px;
        padding: 18px 0 16px;
    }

    .ras-utility {
        display: none;
    }

    .ras-brand {
        min-width: 0;
        gap: 12px;
        align-items: flex-start;
    }

    .ras-brand-copy {
        min-width: 0;
        padding-top: 2px;
    }

    .ras-menu-toggle {
        display: inline-flex;
        align-self: start;
        justify-self: end;
        margin: 2px 0 0;
    }

    .ras-top-nav {
        display: none;
    }

    .ras-top-nav.is-open {
        display: block;
    }

    .ras-top-nav-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .ras-nav-list {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .ras-nav-list > li > a {
        padding: 14px 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 640px) {
    .ras-container {
        width: min(100% - 20px, var(--ras-content-width));
    }

    .ras-brand-mark img,
    .ras-brand-mark .ras-custom-logo,
    .ras-brand-seal {
        width: 64px !important;
        max-width: 64px !important;
        height: 64px !important;
    }

    .ras-brand {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
    }

    .ras-brand-copy {
        gap: 8px;
    }

    .ras-brand-title {
        font-size: 1.48rem;
        line-height: 1;
    }

    .ras-brand-tagline {
        font-size: 0.95rem;
        line-height: 1.35;
        padding-right: 8px;
    }

    .ras-menu-toggle {
        width: 44px;
        height: 44px;
        margin-top: 6px;
    }

    .ras-classic-home .ras-panel,
    .ras-page-shell .ras-panel {
        padding: 24px 20px 28px;
    }

    .ras-faq-item summary,
    .ras-faq-answer {
        padding-left: 22px;
    }

    .ras-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
