/*
Theme Name: Lowcountry Local Living — Coastal
Theme URI: https://lowcountrylocalliving.com
Author: Lowcountry Local Living
Author URI: https://lowcountrylocalliving.com
Description: A modern, Southern-Charm-leaning Charleston, SC locals' guide. Coastal palette — harbor blue, palmetto green, brass gold. Page templates for Restaurants, Events & Venues, Hotels & Inns, and Real Estate (with IDX-ready stub).
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lowcountry-local-living-coastal
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   Lowcountry Local Living — Coastal
   Harbor blues, palmetto greens, brass golds.
   ========================================================= */

:root {
  --terracotta: #1E4A6B;       /* HARBOR — deep Charleston-harbor blue (primary) */
  --terracotta-dark: #143850;
  --peach: #88B8C9;            /* SEAFOAM */
  --peach-light: #DCE9EE;
  --cream: #F5F1E8;            /* LINEN */
  --magnolia: #FBFAF5;         /* SHELL */
  --gold: #C9A961;             /* BRASS */
  --charcoal: #1F2D3D;
  --charcoal-soft: #4A5563;
  --moss: #5C7C56;             /* PALMETTO */
  --shadow-warm: 0 12px 40px rgba(30, 74, 107, 0.14);
  --shadow-soft: 0 4px 16px rgba(31, 45, 61, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lora', Georgia, serif; font-size: 17px; line-height: 1.7;
  color: var(--charcoal-soft); background: var(--magnolia);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  color: var(--charcoal); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.2rem; }

a { color: var(--terracotta); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--terracotta-dark); }
p { margin-bottom: 1rem; }
img { max-width: 100%; display: block; }

.script {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-style: italic; color: var(--terracotta); font-weight: 500; letter-spacing: 0.02em;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }

/* HEADER */
.site-header { background: var(--magnolia); border-bottom: 1px solid rgba(201, 169, 97, 0.25); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(8px); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; max-width: 1300px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--terracotta), var(--moss)); display: grid; place-items: center; color: var(--magnolia); font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.25rem; box-shadow: var(--shadow-warm); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--charcoal); font-weight: 700; }
.brand-tagline { font-family: 'Playfair Display', serif; font-style: italic; color: var(--terracotta); font-size: 0.95rem; margin-top: 3px; letter-spacing: 0.04em; }

.main-nav { display: flex; gap: 2rem; align-items: center; list-style: none; }
.main-nav li { list-style: none; }
.main-nav a { color: var(--charcoal); font-family: 'Lora', serif; font-size: 1rem; font-weight: 500; position: relative; padding: 0.25rem 0; }
.main-nav a:hover { color: var(--terracotta); }
.main-nav .current-menu-item a::after, .main-nav a.active::after, .main-nav a:hover::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--gold); border-radius: 2px;
}
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--charcoal); cursor: pointer; }

/* HERO */
.hero { background: linear-gradient(135deg, var(--cream) 0%, var(--peach-light) 100%); padding: 5rem 1.5rem 6rem; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(136, 184, 201, 0.35), transparent 45%), radial-gradient(circle at 80% 70%, rgba(201, 169, 97, 0.18), transparent 45%);
  pointer-events: none;
}
.hero-inner { max-width: 1100px; margin: 0 auto; position: relative; text-align: center; }
.hero .script { font-size: 1.4rem; display: block; margin-bottom: 0.75rem; }
.hero h1 { margin-bottom: 1.5rem; color: var(--charcoal); }
.hero p { font-size: 1.2rem; max-width: 640px; margin: 0 auto 2rem; color: var(--charcoal-soft); }
.hero-cta { display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.btn { display: inline-block; padding: 0.85rem 2rem; background: var(--terracotta); color: var(--magnolia); font-family: 'Lora', serif; font-weight: 600; border-radius: 999px; border: 2px solid var(--terracotta); cursor: pointer; transition: all 0.25s ease; font-size: 1rem; text-decoration: none; letter-spacing: 0.02em; }
.btn:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); color: var(--magnolia); transform: translateY(-2px); box-shadow: var(--shadow-warm); }
.btn-outline { background: transparent; color: var(--terracotta); }
.btn-outline:hover { background: var(--terracotta); color: var(--magnolia); }

/* PAGE BANNER */
.page-banner { background: linear-gradient(135deg, var(--terracotta) 0%, var(--moss) 100%); color: var(--magnolia); padding: 4rem 1.5rem; text-align: center; position: relative; overflow: hidden; }
.page-banner::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.18), transparent 50%); pointer-events: none; }
.page-banner h1 { color: var(--magnolia); position: relative; }
.page-banner .script { color: var(--peach-light); font-size: 1.3rem; display: block; opacity: 0.95; position: relative; }
.page-banner p { max-width: 600px; margin: 1rem auto 0; font-size: 1.1rem; opacity: 0.95; position: relative; }

/* SECTIONS */
section { padding: 5rem 0; }
.section-heading { text-align: center; margin-bottom: 3rem; }
.section-heading .script { font-size: 1.3rem; display: block; margin-bottom: 0.4rem; }
.section-heading h2 { margin-bottom: 1rem; }
.section-heading p { max-width: 620px; margin: 0 auto; font-size: 1.1rem; }
.section-cream { background: var(--cream); }

/* CARDS */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 2rem; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.card { background: var(--magnolia); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-soft); transition: transform 0.25s, box-shadow 0.25s; display: flex; flex-direction: column; border: 1px solid rgba(201, 169, 97, 0.18); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-warm); }
.card-image { height: 220px; background-size: cover; background-position: center; position: relative; }
.card-tag { position: absolute; top: 1rem; left: 1rem; background: var(--magnolia); color: var(--terracotta); padding: 0.3rem 0.85rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; font-family: 'Lora', serif; letter-spacing: 0.02em; box-shadow: var(--shadow-soft); }
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-meta { font-size: 0.8rem; color: var(--moss); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; }
.card h3 { margin-bottom: 0.5rem; font-size: 1.4rem; }
.card p { font-size: 0.95rem; color: var(--charcoal-soft); margin-bottom: 1rem; flex: 1; }
.card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid rgba(201, 169, 97, 0.22); font-size: 0.9rem; }
.card-address { color: var(--charcoal-soft); display: flex; align-items: center; gap: 0.35rem; }
.card-price { font-family: 'Playfair Display', serif; color: var(--terracotta); font-weight: 700; font-size: 1.15rem; }

/* FEATURE STRIP */
.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: -3rem; position: relative; z-index: 5; padding: 0 1.5rem; max-width: 1200px; margin-left: auto; margin-right: auto; }
.feature-card { background: var(--magnolia); border-radius: 14px; padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow-warm); text-decoration: none; transition: transform 0.25s; border-top: 4px solid var(--gold); }
.feature-card:hover { transform: translateY(-6px); }
.feature-icon { font-size: 2.4rem; margin-bottom: 0.75rem; display: block; }
.feature-card h3 { font-size: 1.35rem; margin-bottom: 0.4rem; color: var(--charcoal); }
.feature-card p { font-size: 0.95rem; margin-bottom: 0; color: var(--charcoal-soft); }

/* SPLIT */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-image { height: 480px; background-size: cover; background-position: center; border-radius: 14px; box-shadow: var(--shadow-warm); }
.split h2 { margin-bottom: 1.25rem; }
.split p { margin-bottom: 1rem; font-size: 1.05rem; }

/* FILTERS */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 3rem; }
.filter-chip { padding: 0.55rem 1.25rem; border: 1.5px solid var(--gold); background: transparent; color: var(--charcoal); border-radius: 999px; cursor: pointer; font-family: 'Lora', serif; font-size: 0.95rem; font-weight: 500; transition: all 0.2s; }
.filter-chip:hover { background: var(--cream); }
.filter-chip.active { background: var(--terracotta); border-color: var(--terracotta); color: var(--magnolia); }

/* QUOTE */
.quote-block { background: var(--cream); border-radius: 14px; padding: 3rem 2.5rem; text-align: center; position: relative; margin: 3rem auto; max-width: 760px; border: 1px solid rgba(201, 169, 97, 0.3); }
.quote-block::before { content: '"'; font-family: 'Playfair Display', serif; font-size: 6rem; color: var(--gold); position: absolute; top: -1rem; left: 1.5rem; line-height: 1; }
.quote-block p { font-style: italic; font-size: 1.25rem; color: var(--charcoal); margin-bottom: 1rem; }
.quote-attribution { font-family: 'Playfair Display', serif; font-style: italic; color: var(--gold); font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }

/* EVENTS */
.event-row { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; padding: 1.75rem 0; border-bottom: 1px solid rgba(201, 169, 97, 0.25); }
.event-row:last-child { border-bottom: 0; }
.event-date { background: var(--terracotta); color: var(--magnolia); border-radius: 12px; padding: 0.85rem 1.25rem; text-align: center; min-width: 88px; box-shadow: var(--shadow-warm); }
.event-date .month { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; display: block; font-weight: 600; }
.event-date .day { font-family: 'Playfair Display', serif; font-size: 1.85rem; display: block; line-height: 1; font-weight: 700; }
.event-info h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.event-info p { margin-bottom: 0.25rem; font-size: 0.95rem; }
.event-info .event-meta { font-size: 0.8rem; color: var(--moss); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

/* REAL ESTATE */
.listing-stats { display: flex; gap: 1.5rem; margin: 0.75rem 0 1rem; font-size: 0.9rem; color: var(--charcoal-soft); }
.listing-stats span { display: flex; align-items: center; gap: 0.3rem; }
.idx-stub { background: linear-gradient(135deg, var(--cream) 0%, var(--peach-light) 100%); border: 2px dashed var(--moss); border-radius: 14px; padding: 3rem 2rem; text-align: center; margin-top: 3rem; }
.idx-stub h3 { margin-bottom: 0.75rem; color: var(--charcoal); }
.idx-stub p { max-width: 600px; margin: 0 auto 1rem; }
.idx-stub-tag { display: inline-block; background: var(--magnolia); color: var(--moss); padding: 0.3rem 0.85rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1rem; }

/* NEWSLETTER */
.newsletter { background: var(--charcoal); color: var(--magnolia); text-align: center; padding: 4rem 1.5rem; }
.newsletter h2 { color: var(--magnolia); margin-bottom: 0.5rem; }
.newsletter .script { color: var(--gold); font-size: 1.3rem; display: block; margin-bottom: 0.5rem; }
.newsletter p { max-width: 560px; margin: 0 auto 2rem; opacity: 0.9; }
.newsletter-form { display: flex; gap: 0.75rem; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input { flex: 1; min-width: 240px; padding: 0.85rem 1.25rem; border: 0; border-radius: 999px; font-family: 'Lora', serif; font-size: 1rem; background: var(--magnolia); color: var(--charcoal); }
.newsletter-form button { padding: 0.85rem 2rem; background: var(--gold); color: var(--charcoal); border: 0; border-radius: 999px; font-family: 'Lora', serif; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background 0.2s; }
.newsletter-form button:hover { background: var(--peach); color: var(--charcoal); }

/* FOOTER */
.site-footer { background: var(--charcoal); color: var(--cream); padding: 4rem 1.5rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; max-width: 1200px; margin: 0 auto 3rem; }
.footer-brand .brand-name { color: var(--magnolia); }
.footer-brand p { font-size: 0.95rem; opacity: 0.85; max-width: 280px; }
.site-footer h4 { color: var(--magnolia); font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--cream); font-size: 0.95rem; opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.site-footer a:hover { opacity: 1; color: var(--gold); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(248, 241, 229, 0.15); font-size: 0.9rem; opacity: 0.7; }
.footer-bottom .script { color: var(--gold); }

/* WP helpers */
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.9rem; color: var(--charcoal-soft); font-style: italic; text-align: center; }
.screen-reader-text { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.post-content { max-width: 760px; margin: 0 auto; padding: 4rem 1.5rem; }
.post-content h2, .post-content h3 { margin-top: 2rem; }
.post-content img { border-radius: 8px; margin: 1.5rem 0; }
.post-content blockquote { border-left: 4px solid var(--terracotta); padding-left: 1.5rem; margin: 1.5rem 0; font-style: italic; color: var(--charcoal); }

/* RESPONSIVE */
@media (max-width: 880px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--magnolia); padding: 1.5rem; gap: 1rem; box-shadow: var(--shadow-soft); border-bottom: 1px solid rgba(201, 169, 97, 0.25); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); margin-top: -2rem; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split-image { height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .event-row { grid-template-columns: auto 1fr; gap: 1rem; }
  .event-row .btn { grid-column: 1 / -1; justify-self: start; }
  section { padding: 3.5rem 0; }
  .hero { padding: 3.5rem 1.5rem 5rem; }
}
@media (max-width: 480px) {
  .feature-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-tagline { display: none; }
}

/* ============================================================
   Newsletter status message + Kit-gated download modal
   ============================================================ */
.newsletter-status {
  margin: 0.5rem 0 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  font-family: 'Lora', serif;
  font-style: italic;
}

/* Modal */
.lll-gd-backdrop {
  position: fixed; inset: 0;
  background: rgba(31, 45, 61, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.lll-gd-backdrop.is-open { display: flex; opacity: 1; }
.lll-gd-modal {
  background: var(--magnolia);
  color: var(--charcoal);
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  padding: 2.25rem 2rem 1.75rem;
  position: relative;
  box-shadow: 0 30px 80px rgba(20, 56, 80, 0.32);
  border: 1px solid rgba(201, 169, 97, 0.35);
  transform: translateY(8px);
  transition: transform 0.22s ease;
}
.lll-gd-backdrop.is-open .lll-gd-modal { transform: translateY(0); }

.lll-gd-close {
  position: absolute; top: 0.6rem; right: 0.85rem;
  background: transparent; border: 0;
  font-size: 1.6rem; line-height: 1;
  color: var(--charcoal); cursor: pointer;
  padding: 0.35rem 0.5rem;
}
.lll-gd-eyebrow {
  color: var(--gold);
  font-family: 'Lora', serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}
.lll-gd-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.85rem;
  line-height: 1.2;
  color: var(--terracotta);
  margin: 0 0 0.6rem;
}
.lll-gd-body {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--charcoal-soft);
  font-family: 'Lora', serif;
}
.lll-gd-form { display: flex; flex-direction: column; gap: 0.7rem; }
.lll-gd-input {
  width: 100%; box-sizing: border-box;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--terracotta);
  background: #fff;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--charcoal);
  font-family: 'Lora', serif;
}
.lll-gd-input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.lll-gd-submit {
  background: var(--terracotta);
  color: var(--magnolia);
  border: 0;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Lora', serif;
  transition: background 0.18s ease, transform 0.18s ease;
}
.lll-gd-submit:hover { background: var(--terracotta-dark); transform: translateY(-1px); }
.lll-gd-submit[disabled] { opacity: 0.65; cursor: progress; }
.lll-gd-fine {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--charcoal-soft);
  line-height: 1.45;
  font-family: 'Lora', serif;
  font-style: italic;
}
.lll-gd-error {
  color: #a83a3a;
  font-size: 0.88rem;
  margin: 0.25rem 0 0;
  min-height: 1.1rem;
  font-family: 'Lora', serif;
}
.lll-gd-success { text-align: center; padding: 0.25rem 0 0.4rem; }
.lll-gd-success svg {
  width: 56px; height: 56px;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.lll-gd-success a.lll-gd-dl {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Lora', serif;
  font-size: 0.92rem;
}
.lll-gd-success a.lll-gd-dl:hover { background: #b8983f; }

@media (max-width: 480px) {
  .lll-gd-modal { padding: 1.75rem 1.35rem 1.35rem; }
  .lll-gd-title { font-size: 1.55rem; }
}
