/*
Theme Name: Coral Creek HOA
Theme URI: https://coralcreekhoa.com
Author: BrightSec Corp
Author URI: https://brightsec.com
Description: Custom theme for Coral Creek Homeowners Association. Features document management, financial statements viewer, board member certificates, and meeting announcements.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coral-creek
Tags: one-column, custom-menu, featured-images, threaded-comments

Coral Creek HOA Theme - Converted from static PHP site
*/

/* === CSS Custom Properties === */
:root {
  --brand: #10b981;
  --ink: #0b1220;
  --paper: #f8fafc;
  --muted: #6b7280;
  --border: rgba(2,6,23,0.08);
  --ring: rgba(16,185,129,.22);
}

/* === Reset & Base === */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  color: #0f172a;
  background: radial-gradient(900px 400px at 20% -10%, rgba(16,185,129,.12), transparent 35%),
              radial-gradient(900px 400px at 90% 0%, rgba(4,120,87,.08), transparent 40%),
              linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === Home Page Background === */
body.home {
  background:
    linear-gradient(rgba(255,255,255,0.35), rgba(255,255,255,0.35)),
    url('assets/img/Main-Page.jpeg') center center / cover no-repeat;
  background-position: center center, center 60%;
}

@media (min-width: 1200px) {
  body.home {
    background-size: 90% auto, 90% auto;
    background-position: center center, center 55%;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  body.home { background-position: center center, center 58%; }
}

/* === Layout === */
.container { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: rgba(16,185,129,0.12);
  border-bottom: 1px solid rgba(16,185,129,0.35);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 1rem;
}

.brand {
  display: flex;
  gap: .5rem;
  align-items: center;
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: .02em;
  font-size: 1.6rem;
}

.brand-badge { display: none; }

/* === Navigation === */
.nav { display: none; gap: 1.25rem; font-size: 1.25rem; }
.nav a { color: #0f172a; text-decoration: none; }
.nav a:hover { color: #047857; }

@media (min-width: 768px) {
  .nav { display: flex; }
  .menu-btn { display: none !important; }
}

.mobile-nav {
  display: none;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.mobile-nav a { font-size: 1.25rem; }
.menu-btn { font-size: 1.25rem; }
.mobile-nav.open { display: block; }

.main { flex: 1; }

/* Hide header on home page */
body.home .header { display: none; }

/* === Home Page Mobile Menu === */
body.home .home-menu-btn {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .75rem;
  border: 1px solid rgba(255,255,255,0.7);
  color: #ffffff;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
}

@media (min-width: 768px) { body.home .home-menu-btn { display: none; } }

body.home .home-mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 55;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0 1.25rem;
}

body.home .home-mobile-nav.open { display: block; }
body.home .home-mobile-nav a { font-size: 1.15rem; color: #0f172a; text-decoration: none; }
body.home .home-mobile-nav .grid { grid-template-columns: 1fr; }
body.home .home-menu-close {
  display: block;
  margin: .5rem auto 0;
  padding: .5rem .9rem;
  border-radius: .5rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

@media (min-width: 768px) { body.home .home-mobile-nav { display: none !important; } }

/* === Cards & Buttons === */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(2,6,23,0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1rem;
  border-radius: .75rem;
  border: 1px solid var(--border);
  text-decoration: none;
  color: #0f172a;
  cursor: pointer;
}

.menu-btn { display: inline-flex; }
.btn-primary { background: var(--brand); border-color: transparent; color: #00131a; }
.btn-ghost { background: #fff; }
.btn:hover { box-shadow: 0 0 0 3px var(--ring); }

/* === Grid System === */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* === Utilities === */
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.text-sm { font-size: .9rem; }
.text-xs { font-size: .8rem; }
.fw-600 { font-weight: 600; }
.text-muted { color: #64748b; }

/* === Typography === */
.h1 { font-size: 2.5rem; line-height: 1.2; margin: 0; }
.h2 { font-size: 1.5rem; line-height: 1.3; margin: 0; }
.lead { color: #334155; }

/* === Sections === */
.section { padding: 4rem 0; }
.hero { padding: 5rem 0 3rem; }
.home-hero { padding: 8rem 0 6rem; }

.home-hero-title {
  text-align: center;
  color: #0b1220;
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow:
    0 1px 2px rgba(255,255,255,0.8),
    0 2px 8px rgba(255,255,255,0.6);
}

@media (min-width: 768px) { .home-hero-title { font-size: 5rem; } }
@media (min-width: 1200px) { .home-hero-title { font-size: 6rem; } }

.link { color: #059669; text-decoration: underline; }

/* Hide quick links on mobile */
@media (max-width: 768px) {
  body.home .home-links { display: none; }
}

/* === Footer === */
.footer {
  border-top: 1px solid #e2e8f0;
  background: rgba(255,255,255,0.82);
}

.footer-wrap {
  padding: 1.25rem 1rem;
  display: flex;
  gap: 1rem;
  flex-direction: column;
  color: #475569;
}

body.home .footer-wrap { padding: .1rem .5rem; gap: .2rem; }
body.home .footer, body.home .footer a, body.home .footer p { font-size: .75rem; line-height: 1.0; }

@media (min-width: 768px) {
  .footer-wrap { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* === Forms === */
.input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: .75rem;
  padding: .6rem .8rem;
}

textarea.input { min-height: 120px; }
label small { color: #64748b; }

/* === Contact Form Submit === */
.contact-grid form button[type="submit"] {
  text-transform: uppercase;
  font-size: 1.15rem;
  justify-content: center;
  text-align: center;
}

/* === Map Embed === */
.map-embed { position: relative; }

.map-embed .map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--brand);
  border: 3px solid #ffffff;
  box-shadow: 0 6px 18px rgba(2,6,23,0.25);
  pointer-events: none;
}

/* === Payments Layout === */
.section-tight-bottom { padding-bottom: 0; }
.section-tight-top { padding-top: 0; }
#payments { margin-top: .5rem; }

.pay-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: .75rem 1rem;
  align-items: center;
}

.pay-card.card { padding: .75rem; }
.contact-loc.card { padding: .75rem; }

.pay-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.pay-cta .btn {
  white-space: nowrap;
  padding: 1.1rem 1.5rem;
  font-size: 1.25rem;
  line-height: 1.1;
  font-weight: 700;
}

.pay-copy { line-height: 1.4; }
.pay-copy p { margin: 0; }
.pay-copy ul { margin: 0; padding-left: 2ch; }

@media (max-width: 640px) {
  .pay-row { grid-template-columns: 1fr; }
  .pay-cta { justify-content: flex-start; }
}

/* === Contact Location === */
.contact-loc {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-loc .loc-inner {
  width: 100%;
  margin: 0;
  transform: translateY(-12px);
}

.contact-loc .fw-600 { font-size: 1.35rem; }
.contact-loc .text-sm { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.contact-loc a.link { font-size: 1.05rem; }
.contact-loc iframe { display: block; margin: .5rem auto 0; width: 100%; height: 380px; }
.contact-loc .map-embed { margin-top: 1rem; }
.contact-grid { gap: .75rem; }

/* === About Layout === */
.about-split { align-items: stretch; gap: 1.25rem; }
.about-map-col { display: flex; }
.about-map { flex: 1; position: relative; }
#aboutMap { width: 100%; height: 100%; min-height: 360px; border-radius: .75rem; overflow: hidden; }

/* === Section Label === */
.section-label {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .03em;
  color: #0f172a;
  margin-bottom: .5rem;
}

/* === Meeting Banner === */
.meeting-banner {
  padding: 1.5rem 0;
}

.meeting-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid #3b82f6;
  padding: 1.25rem;
}

.meeting-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.meeting-icon { font-size: 2rem; }

.meeting-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.meeting-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
}

.meeting-datetime {
  color: #475569;
  margin-top: 0.25rem;
}

.meeting-location,
.meeting-details {
  color: #64748b;
  font-size: 0.9rem;
}

.meeting-details { margin-top: 0.5rem; }

/* === WordPress Specific === */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Hide WP admin bar on home page */
body.home.admin-bar .home-menu-btn { top: calc(.75rem + 32px); }
@media screen and (max-width: 782px) {
  body.home.admin-bar .home-menu-btn { top: calc(.75rem + 46px); }
}
