/* =========================================================
   Dallas Chapter No. 1, Order of the Eastern Star
   Color palette derived from the OES five-pointed star logo,
   muted toward a warm, traditional fraternal feel.
   ========================================================= */

:root {
    /* Brand palette */
    --color-bg:        #f5f1e8;   /* warm parchment */
    --color-surface:   #ffffff;
    --color-surface-2: #ece6d6;   /* aged paper */
    --color-border:    #d9d2c2;

    --color-text:      #2b2b2b;
    --color-text-muted:#5a5a5a;

    --color-primary:   #2c3e5d;   /* muted navy from logo blue */
    --color-primary-d: #1f2d44;
    --color-accent:    #b89968;   /* muted gold from logo yellow */
    --color-accent-d:  #8f7349;

    /* Star-point accents (muted) */
    --star-blue:   #3a5680;
    --star-red:    #7a2e2e;
    --star-yellow: #b89968;
    --star-green:  #3d5a45;
    --star-white:  #e8e1cf;

    /* Typography */
    --font-serif: "Cormorant Garamond", "Garamond", "Georgia", "Times New Roman", serif;
    --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Layout */
    --container: 1120px;
    --radius: 4px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow:    0 4px 14px rgba(30, 40, 60, 0.08);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}
a:hover, a:focus { color: var(--color-accent-d); }

h1, h2, h3 {
    font-family: var(--font-serif);
    color: var(--color-primary-d);
    line-height: 1.2;
    margin: 0 0 0.6em;
    font-weight: 600;
    letter-spacing: 0.01em;
}
h1 { font-size: clamp(2rem, 4vw + 0.5rem, 3.1rem); }
h2 { font-size: clamp(1.6rem, 2vw + 0.7rem, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---- Skip link / focus ---- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-primary);
    color: #fff;
    padding: 0.5rem 0.75rem;
    z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ---- Header ---- */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
}
.brand-mark { width: 48px; height: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary-d);
}
.brand-sub {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-text-muted);
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.25rem;
}
.site-nav a {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    text-decoration: none;
    color: var(--color-primary-d);
    font-weight: 500;
    border-radius: var(--radius);
    border-bottom: 2px solid transparent;
}
.site-nav a:hover { background: var(--color-surface-2); }
.site-nav a[aria-current="page"] {
    border-bottom-color: var(--color-accent);
    color: var(--color-accent-d);
}

/* ---- Hero ---- */
.hero {
    background:
        linear-gradient(180deg, rgba(245,241,232,0) 0%, var(--color-bg) 100%),
        radial-gradient(ellipse at 70% 20%, rgba(184,153,104,0.18), transparent 60%),
        linear-gradient(135deg, #efe9d9 0%, #e6dec8 100%);
    border-bottom: 1px solid var(--color-border);
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 1.25rem 4.5rem;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: var(--color-accent-d);
    margin: 0 0 0.75rem;
    font-weight: 600;
}
.hero-copy h1 {
    margin-bottom: 1rem;
}
.lede {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 38rem;
}
.hero-actions {
    margin-top: 1.75rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.hero-art {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-star {
    width: 100%;
    max-width: 320px;
    filter: drop-shadow(0 8px 20px rgba(30,40,60,0.18));
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--color-primary-d);
    color: #fff;
}
.btn-ghost {
    background: transparent;
    color: var(--color-primary-d);
    border-color: var(--color-primary);
}
.btn-ghost:hover, .btn-ghost:focus {
    background: var(--color-primary);
    color: #fff;
}

/* ---- Sections ---- */
.section { padding: 4rem 0; }
.section-alt { background: var(--color-surface-2); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}
.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    margin: 0.85rem auto 0;
    background: var(--color-accent);
}
.section-intro {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    color: var(--color-text-muted);
}

.grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

/* ---- Heroines ---- */
.heroines {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.heroine {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
    text-align: center;
    border-top: 4px solid var(--color-accent);
    box-shadow: var(--shadow-sm);
}
.heroine h3 { margin-bottom: 0.25rem; }
.heroine .virtue {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    color: var(--color-accent-d);
    margin: 0 0 0.6rem;
    font-weight: 600;
}
.heroine p:last-child {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin: 0;
}
.heroine--blue   { border-top-color: var(--star-blue); }
.heroine--yellow { border-top-color: var(--star-yellow); }
.heroine--white  { border-top-color: #b8a979; background: #fbf8ef; }
.heroine--green  { border-top-color: var(--star-green); }
.heroine--red    { border-top-color: var(--star-red); }

/* ---- Lists / callout ---- */
.checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 1em;
}
.checklist li {
    padding-left: 1.6rem;
    position: relative;
    margin-bottom: 0.5rem;
}
.checklist li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 1rem;
    line-height: 1.5;
}

.callout {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}
.callout h3 { margin-top: 0; }

/* ---- Address / map ---- */
.address {
    font-style: normal;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: inline-block;
    margin-bottom: 1rem;
}
.map-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-surface-2);
}
.map-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.map-wrap--full { aspect-ratio: 16 / 7; }

/* ---- Page header (contact) ---- */
.page-header {
    background: linear-gradient(135deg, #efe9d9 0%, #e6dec8 100%);
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--color-border);
}
.page-header h1 { margin-bottom: 0.5rem; }
.page-header .lede { max-width: 40rem; }

/* ---- Cards / contact list ---- */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}
.card h2 { margin-top: 0; }

.contact-list { margin: 0; }
.contact-list dt {
    font-weight: 600;
    color: var(--color-primary-d);
    margin-top: 0.85rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.contact-list dt:first-child { margin-top: 0; }
.contact-list dd { margin: 0.15rem 0 0; padding: 0; }

/* ---- Form ---- */
.contact-form {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    max-width: 720px;
    margin: 0 auto;
}
.form-row { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.form-row label {
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--color-primary-d);
    font-size: 0.95rem;
}
.req { color: var(--star-red); }

.form-row input,
.form-row select,
.form-row textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--color-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(44, 62, 93, 0.15);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.muted { color: var(--color-text-muted); }
.small { font-size: 0.88rem; margin: 0; }

/* ---- Footer ---- */
.site-footer {
    background: var(--color-primary-d);
    color: #d9dde6;
    padding: 2.5rem 0 2rem;
    margin-top: 3rem;
}
.site-footer a { color: #e8d5a8; }
.site-footer a:hover { color: #fff; }
.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
}
.footer-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
}
.footer-sub {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #b8b0a0;
}
.site-footer nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.25rem;
    justify-content: center;
}
.site-footer nav a {
    text-decoration: none;
    font-weight: 500;
}
.copyright {
    text-align: right;
    font-size: 0.85rem;
    margin: 0;
    color: #b8b0a0;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.25rem; }
    .hero-art { order: -1; }
    .hero-star { max-width: 220px; }
    .grid-two { grid-template-columns: 1fr; gap: 1.75rem; }
    .heroines { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .copyright { text-align: center; }
    .site-footer nav ul { justify-content: center; }
}

@media (max-width: 520px) {
    body { font-size: 16px; }
    .section { padding: 2.75rem 0; }
    .heroines { grid-template-columns: 1fr; }
    .brand-title { font-size: 1.1rem; }
    .brand-sub { font-size: 0.7rem; }
    .header-inner { padding: 0.75rem 1rem; }
    .site-nav a { padding: 0.4rem 0.7rem; }
    .contact-form { padding: 1.25rem; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

/* ---- Print ---- */
@media print {
    .site-header, .site-footer, .hero-actions, .map-wrap, .contact-form { display: none; }
    body { background: #fff; color: #000; }
    a { color: #000; text-decoration: underline; }
}
