/* ============================================
   Orange Beach Alabama Real Estate
   Clean Minimal — Coastal Professional
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --sand:       #f5f0e8;
  --sand-light: #faf7f2;
  --white:      #ffffff;
  --gulf:       #1a6b7c;
  --gulf-dark:  #134f5c;
  --gulf-light: #e8f4f7;
  --coral:      #e07b54;
  --coral-dark: #c4623c;
  --text:       #1c2b2e;
  --text-mid:   #4a5c60;
  --text-light: #7a8e92;
  --border:     #dde6e8;
  --shadow-sm:  0 1px 3px rgba(26,107,124,0.08);
  --shadow-md:  0 4px 16px rgba(26,107,124,0.12);
  --shadow-lg:  0 8px 32px rgba(26,107,124,0.16);
  --radius:     8px;
  --radius-lg:  16px;
  --max-w:      1200px;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gulf); text-decoration: none; }
a:hover { color: var(--gulf-dark); }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--alt { background: var(--sand-light); }
.section--gulf { background: var(--gulf); color: var(--white); }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { font-size: 1rem; line-height: 1.75; color: var(--text-mid); }
.lead { font-size: 1.2rem; line-height: 1.7; color: var(--text-mid); }
.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gulf); margin-bottom: 12px;
  display: block;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease; border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--gulf); color: var(--white) !important; border-color: var(--gulf);
}
.btn-primary:hover {
  background: var(--gulf-dark); border-color: var(--gulf-dark); color: var(--white) !important;
  transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.btn-coral {
  background: var(--coral); color: var(--white) !important; border-color: var(--coral);
}
.btn-coral:hover {
  background: var(--coral-dark); border-color: var(--coral-dark); color: var(--white) !important;
  transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.btn-white {
  background: var(--white); color: var(--gulf) !important; border-color: var(--white);
}
.btn-white:hover {
  background: var(--sand); transform: translateY(-1px);
}
.btn-secondary {
  background: transparent; color: var(--gulf); border-color: var(--gulf);
}
.btn-secondary:hover {
  background: var(--gulf); color: var(--white);
  transform: translateY(-1px);
}

/* ── NAVIGATION ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 700;
  color: var(--gulf-dark); text-decoration: none; line-height: 1.2;
}
.nav-logo span { color: var(--coral); }
.nav-links {
  display: flex; align-items: center; gap: 8px; list-style: none;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-mid);
  padding: 6px 12px; border-radius: 6px; transition: all 0.15s;
}
.nav-links a:hover { color: var(--gulf); background: var(--gulf-light); }
.nav-links a.active { color: var(--gulf); font-weight: 600; }
.nav-cta { margin-left: 8px; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: all 0.3s;
}
.nav-mobile {
  display: none; flex-direction: column; gap: 4px;
  padding: 16px 24px 20px; border-top: 1px solid var(--border);
  background: var(--white);
}
.nav-mobile a {
  font-size: 1rem; font-weight: 500; color: var(--text-mid);
  padding: 10px 12px; border-radius: 6px; transition: all 0.15s;
}
.nav-mobile a:hover { background: var(--gulf-light); color: var(--gulf); }
.nav-mobile.open { display: flex; }

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, var(--gulf-dark) 0%, var(--gulf) 60%, #2a8fa3 100%);
  color: var(--white); padding: 100px 0 80px; position: relative; overflow: hidden;
}
/* When hero-bg image is present it overlays the gradient */
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0.28; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  position: relative; max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 100px;
  padding: 6px 16px; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px;
  color: rgba(255,255,255,0.9);
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero .lead { color: rgba(255,255,255,0.85); margin-bottom: 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px;
}
.hero-stat {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); padding: 16px; text-align: center;
}
.hero-stat strong { display: block; font-size: 1.6rem; font-family: var(--font-head); color: var(--white); }
.hero-stat span { font-size: 0.8rem; color: rgba(255,255,255,0.75); }
.hero-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg); padding: 32px; backdrop-filter: blur(4px);
}
.hero-card h3 { color: var(--white); margin-bottom: 20px; font-size: 1.2rem; }
.hero-form { display: flex; flex-direction: column; gap: 12px; }
.hero-form input, .hero-form select {
  padding: 12px 16px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.12);
  color: var(--white); font-family: var(--font-body); font-size: 0.95rem;
  outline: none; transition: border-color 0.2s;
}
.hero-form input::placeholder { color: rgba(255,255,255,0.6); }
.hero-form input:focus, .hero-form select:focus { border-color: rgba(255,255,255,0.5); }
.hero-form select option { color: var(--text); background: var(--white); }

/* ── CARDS ── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.2s ease; box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-body { padding: 24px; }
.card-meta {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.card-tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; background: var(--gulf-light); color: var(--gulf);
  padding: 3px 10px; border-radius: 100px;
}
.card-tag.coral { background: #fdf0eb; color: var(--coral); }
.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--gulf); }
.card p { font-size: 0.92rem; margin-bottom: 16px; }
.card-read-more {
  font-size: 0.88rem; font-weight: 600; color: var(--gulf);
  display: inline-flex; align-items: center; gap: 4px;
}
.card-read-more:hover { color: var(--gulf-dark); }
.card-read-more::after { content: '→'; transition: transform 0.15s; }
.card:hover .card-read-more::after { transform: translateX(3px); }

/* Thumbnail */
.card-thumb {
  height: 200px; overflow: hidden;
  background: linear-gradient(135deg, var(--gulf-light), var(--sand));
}
.card-thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 0.4s ease;
}
.card:hover .card-thumb img { transform: scale(1.04); }

/* ── ARTICLE GRID ── */
.article-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.article-grid.two-col { grid-template-columns: repeat(2, 1fr); }

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 16px 0; border-bottom: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-light);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--gulf); }
.breadcrumb-sep { color: var(--border); }

/* ── ARTICLE BANNER IMAGE ── */
.article-banner {
  width: 100%; height: 420px; object-fit: cover;
  object-position: center; display: block;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}
.article-banner-wrap {
  width: 100%; height: 420px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--gulf-light), var(--sand));
  margin-bottom: 40px; overflow: hidden; position: relative;
}
.article-banner-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
@media (max-width: 768px) {
  .article-banner, .article-banner-wrap { height: 240px; }
}

/* ── ARTICLE HEADER ── */
.article-header { padding: 60px 0 40px; border-bottom: 1px solid var(--border); }
.article-meta {
  display: flex; align-items: center; gap: 16px; margin-top: 20px;
  font-size: 0.88rem; color: var(--text-light); flex-wrap: wrap;
}
.article-meta .tag {
  background: var(--gulf-light); color: var(--gulf); padding: 3px 10px;
  border-radius: 100px; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.05em;
}
.article-body { max-width: 760px; }
.article-body h2 { margin: 48px 0 16px; }
.article-body h3 { margin: 36px 0 12px; }
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body li { margin-bottom: 8px; color: var(--text-mid); line-height: 1.7; }
.article-body a { color: var(--gulf); text-decoration: underline; text-underline-offset: 3px; }

/* ── AFFILIATE CTA BOX ── */
.affiliate-box {
  border: 2px solid var(--gulf-light); border-radius: var(--radius-lg);
  padding: 28px 32px; margin: 40px 0;
  background: linear-gradient(135deg, var(--gulf-light), #f0f9fb);
  display: flex; gap: 20px; align-items: flex-start;
}
.affiliate-box-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--gulf); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.affiliate-box-icon svg { color: white; }
.affiliate-box h4 { color: var(--gulf-dark); margin-bottom: 6px; font-size: 1rem; }
.affiliate-box p { font-size: 0.9rem; margin-bottom: 14px; }
.affiliate-box.coral {
  border-color: #fde5d9;
  background: linear-gradient(135deg, #fdf0eb, #fff8f5);
}
.affiliate-box.coral .affiliate-box-icon { background: var(--coral); }
.affiliate-box.coral h4 { color: var(--coral-dark); }

/* ── SIDEBAR ── */
.content-with-sidebar {
  display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: start;
}
.sidebar { position: sticky; top: 88px; }
.sidebar-widget {
  background: var(--sand-light); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px;
}
.sidebar-widget h4 { margin-bottom: 16px; font-size: 1rem; color: var(--gulf-dark); }
.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sidebar-links a {
  font-size: 0.9rem; color: var(--text-mid); padding: 6px 0;
  border-bottom: 1px solid var(--border); display: block;
}
.sidebar-links a:hover { color: var(--gulf); }

/* ── HUB PAGE ── */
.hub-header {
  background: linear-gradient(160deg, var(--gulf-dark), var(--gulf));
  color: var(--white); padding: 80px 0 60px;
}
.hub-header h1 { color: var(--white); margin-bottom: 16px; }
.hub-header .lead { color: rgba(255,255,255,0.85); }
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--text); color: rgba(255,255,255,0.75);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { color: var(--white); font-size: 1.1rem; }
.footer-brand p { margin-top: 12px; font-size: 0.88rem; line-height: 1.7; }
.footer-col h5 {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }
.footer-legal { display: flex; gap: 24px; }

/* ── NOTICE / DISCLAIMER ── */
.disclosure-bar {
  background: var(--sand); border-bottom: 1px solid var(--border);
  padding: 10px 0; text-align: center; font-size: 0.8rem; color: var(--text-light);
}
.disclosure-bar a { color: var(--gulf); font-weight: 500; }

/* ── TABLE OF CONTENTS ── */
.toc {
  background: var(--sand-light); border: 1px solid var(--border);
  border-left: 4px solid var(--gulf); border-radius: var(--radius);
  padding: 24px; margin-bottom: 40px;
}
.toc h4 { margin-bottom: 14px; font-size: 0.95rem; color: var(--gulf-dark); }
.toc ol { padding-left: 20px; }
.toc li { margin-bottom: 8px; }
.toc a { font-size: 0.9rem; color: var(--gulf); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ── KEY TAKEAWAY BOX ── */
.key-takeaway {
  background: var(--gulf-light); border-left: 4px solid var(--gulf);
  border-radius: var(--radius); padding: 20px 24px; margin: 32px 0;
}
.key-takeaway p { font-size: 0.95rem; color: var(--gulf-dark); font-weight: 500; margin: 0; }

/* ── COMPARISON TABLE ── */
.compare-table {
  width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 0.92rem;
}
.compare-table th {
  background: var(--gulf); color: var(--white); padding: 14px 18px;
  text-align: left; font-family: var(--font-head); font-size: 1rem; font-weight: 600;
}
.compare-table td {
  padding: 12px 18px; border-bottom: 1px solid var(--border); color: var(--text-mid);
}
.compare-table tr:nth-child(even) td { background: var(--sand-light); }
.compare-table td:first-child { font-weight: 600; color: var(--text); }

/* ── LEGAL PAGES ── */
.legal-content { max-width: 760px; padding: 60px 0 80px; }
.legal-content h1 { margin-bottom: 8px; }
.legal-content .updated { font-size: 0.85rem; color: var(--text-light); margin-bottom: 40px; }
.legal-content h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.legal-content p, .legal-content li { font-size: 0.95rem; margin-bottom: 14px; color: var(--text-mid); }
.legal-content ul { padding-left: 24px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero { padding: 64px 0 48px; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .article-grid { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 48px; }
  .hero-stats { grid-template-columns: repeat(3,1fr); gap: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .sidebar { grid-template-columns: 1fr; }
  .affiliate-box { flex-direction: column; gap: 16px; }
  .compare-table { display: block; overflow-x: auto; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-stats { grid-template-columns: 1fr; }
}
