/* Powell Cove Estates HOA — restored from the original WordPress site (Construction theme)
   Colors follow the original: navy #170059, orange #e99236, Open Sans. */
:root {
    --primary-color: #170059;
    --primary-dark: #0f003d;
    --accent-color: #e99236;
    --accent-dark: #c9741c;
    --dark-color: #170059;
    --text-color: #3a3a4a;
    --muted: #6c757d;
    --border: #e3e1ec;
    --bg-soft: #f6f5fa;
    --white: #ffffff;
    --radius: 6px;
    --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    top: 0 !important;
    font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--white);
}

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

a { color: var(--primary-color); }
a:hover { color: var(--accent-color); }

h1, h2, h3 { color: var(--primary-color); line-height: 1.3; margin: 0 0 0.75rem; }

.container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 16px; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--primary-color); color: var(--white); padding: 8px 14px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--white);
    box-shadow: 0 1px 0 var(--border), 0 4px 14px rgba(23, 0, 89, 0.05);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px 24px; min-height: 84px;
}
.logo a { display: inline-block; text-decoration: none; transition: opacity 0.3s; }
.logo a:hover { opacity: 0.8; }
.logo img { width: 200px; height: auto; }

.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.main-nav a {
    font-weight: 600; text-decoration: none; color: var(--primary-color);
    white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--accent-color); border-bottom-color: var(--accent-color); }

/* Google Translate (replaces the original GTranslate dropdown) */
.translate-box { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.translate-box .goog-te-gadget { font-size: 0 !important; color: transparent !important; }
.translate-box .goog-te-gadget > span { display: none !important; }
.translate-box .goog-te-combo {
    font-family: inherit; font-size: 0.9rem; color: var(--primary-color);
    padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--white); margin: 0 !important; max-width: 170px;
}
body > .skiptranslate, .goog-te-banner-frame { display: none !important; }

/* ---------- Hero ---------- */
.hero { background: var(--bg-soft); }
.hero img { width: 100%; height: clamp(220px, 46vw, 560px); object-fit: cover; }

/* ---------- Tabs (original vertical tab layout) ---------- */
.hoa-main { padding: 48px 0 24px; }
.tabs { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }

.tab-nav {
    position: sticky; top: 104px;
    display: flex; flex-direction: column;
    border-radius: var(--radius); overflow: hidden;
    background: var(--primary-color);
}
.tab-nav a {
    display: block; padding: 13px 18px;
    color: var(--white); text-decoration: none; font-weight: 600; font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid transparent;
    transition: var(--transition);
}
.tab-nav a:last-child { border-bottom: 0; }
.tab-nav a:hover { background: var(--primary-dark); border-left-color: var(--accent-color); color: var(--white); }
.tab-nav a[aria-current="true"] { background: var(--accent-color); border-left-color: var(--white); color: var(--white); }

.panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent-color);
    border-radius: var(--radius);
    padding: 32px 36px;
    margin-bottom: 28px;
    scroll-margin-top: 110px;
}
.js .panel { display: none; margin-bottom: 0; }
.js .panel.is-active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.panel h2 { font-size: 1.6rem; }
.panel p { margin: 0 0 1rem; }
.panel .eyebrow {
    display: block; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--accent-color); margin-bottom: 0.25rem;
}
.panel h1 { font-size: 2rem; }
.lead { font-size: 1.08rem; }

.statement { margin-top: 1.5rem; }
.statement h3 {
    font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--accent-dark); margin-bottom: 0.4rem;
}
.statement + .statement { border-top: 1px dashed var(--border); padding-top: 1.25rem; }

/* Document cards */
.doc-card {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    flex-wrap: wrap;
    background: var(--bg-soft); border-radius: var(--radius);
    padding: 22px 24px; margin-top: 1rem;
}
.doc-card + .doc-card { margin-top: 14px; }
.doc-title { margin: 0; font-weight: 700; color: var(--primary-color); line-height: 1.45; }
.doc-title small { display: block; font-weight: 600; color: var(--muted); font-size: 0.9rem; }
.doc-note { margin: 0.4rem 0 0; font-size: 0.88rem; color: var(--muted); }

.btn {
    display: inline-block; padding: 12px 24px;
    background: var(--accent-color); color: var(--white);
    border: 2px solid var(--accent-color); border-radius: var(--radius);
    font-weight: 700; font-size: 0.95rem; text-decoration: none; cursor: pointer;
    transition: var(--transition); white-space: nowrap; font-family: inherit;
}
.btn:hover { background: var(--white); color: var(--accent-color); }
.btn-outline { background: transparent; color: var(--primary-color); border-color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: var(--white); }

/* Map */
.map-figure { margin: 0 0 1.25rem; }
.map-figure img { border-radius: var(--radius); border: 1px solid var(--border); }
.map-figure figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.5rem; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0.25rem 0 1rem; padding: 0; list-style: none; font-size: 0.9rem; }
.map-legend li { display: flex; align-items: center; gap: 6px; }
.map-legend span { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.map-embed { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Form */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-top: 1rem; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: block; font-weight: 600; color: var(--primary-color); font-size: 0.92rem; margin-bottom: 4px; }
.contact-form label .req { color: #d63638; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%; padding: 11px 13px; font: inherit; font-size: 1rem;
    border: 1px solid #c9c6d6; border-radius: var(--radius); background: var(--white); color: var(--text-color);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(233, 146, 54, 0.2);
}
.contact-form textarea { min-height: 150px; resize: vertical; }

/* Contact info */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { background: var(--bg-soft); border-radius: var(--radius); padding: 18px 22px; }
.contact-list strong { display: block; color: var(--primary-color); }

/* Newsletter */
.newsletter { text-align: center; padding: 10px 0; }
.newsletter h2 { font-style: italic; }

/* Calendar */
.calendar-figure { margin: 0 auto; max-width: 617px; }
.calendar-figure img { border: 1px solid var(--border); border-radius: var(--radius); margin: 0 auto; }

/* ---------- Footer ---------- */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}
.footer-logo { text-align: center; margin-bottom: 30px; }
.footer-logo a { display: inline-block; background: var(--white); border-radius: var(--radius); padding: 10px 18px; }
.footer-logo img { width: 220px; height: auto; }

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-section h3 { color: var(--white); margin-bottom: 1rem; font-size: 1.2rem; }
.footer-section p,
.footer-section a { color: rgba(255, 255, 255, 0.8); line-height: 1.8; }
.footer-section p { margin: 0 0 0.6rem; }
.footer-section a { text-decoration: none; }
.footer-section a:hover { color: var(--accent-color); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}
.footer-bottom p { margin: 0 0 0.5rem; }
.footer-partner { margin-top: 1rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.footer-partner a { color: var(--accent-color); text-decoration: none; transition: var(--transition); }
.footer-partner a:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .tabs { grid-template-columns: 1fr; gap: 20px; }
    .tab-nav { position: static; display: grid; grid-template-columns: 1fr 1fr; }
    .tab-nav a { font-size: 0.88rem; padding: 11px 14px; border-right: 1px solid rgba(255, 255, 255, 0.1); }
}

@media (max-width: 600px) {
    .site-header { position: static; }
    .panel { scroll-margin-top: 12px; }
    .header-inner { justify-content: center; padding: 10px 0; min-height: 0; }
    .logo img { width: 170px; }
    .main-nav { justify-content: center; }
    .hoa-main { padding-top: 28px; }
    .tab-nav { grid-template-columns: 1fr; }
    .panel { padding: 24px 18px; }
    .panel h1 { font-size: 1.6rem; }
    .panel h2 { font-size: 1.35rem; }
    .contact-form { grid-template-columns: 1fr; }
    .doc-card { padding: 18px; }
    .doc-card .btn { width: 100%; text-align: center; white-space: normal; }
}
