/* ============================================
   CAROLINA CREEK THEME — MAIN STYLESHEET
   ============================================ */

/* --- VARIABLES --- */
:root {
  --navy:       #1a2b3c;
  --navy-deep:  #0f1c2a;
  --teal:       #2a7d7b;
  --teal-lt:    #3a9e9b;
  --gold:       #c8973a;
  --gold-lt:    #e8b86d;
  --off-white:  #f8f6f2;
  --warm-gray:  #f0ede8;
  --txt-dark:   #1a2b3c;
  --txt-mid:    #4a5568;
  --txt-light:  #718096;
  --border:     #e2e0db;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.14);
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--txt-dark);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-lt); }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  line-height: 1.2;
}

/* --- CONTAINER --- */
.cc-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- BUTTONS --- */
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.cc-btn-primary {
  background: var(--teal);
  color: #fff;
}
.cc-btn-primary:hover {
  background: var(--teal-lt);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(42,125,123,.35);
}
.cc-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.cc-btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  color: #fff;
}
.cc-btn-gold {
  background: var(--gold);
  color: #fff;
}
.cc-btn-gold:hover {
  background: var(--gold-lt);
  color: #fff;
}

/* --- TOP BAR --- */
.cc-topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,.8);
  font-size: 13px;
  padding: 8px 0;
  position: relative;
  z-index: 100;
}
.cc-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cc-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cc-topbar-phone {
  color: var(--gold-lt);
  font-weight: 700;
}
.cc-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: rgba(255,255,255,.8);
}
.cc-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100%{opacity:1} 50%{opacity:.5}
}

/* --- NAVIGATION --- */
.cc-nav {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 999;
}
.cc-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 16px;
}
.cc-nav-logo img { height: 48px; width: auto; }
.cc-nav-logo a { display: block; }
.cc-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.cc-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--txt-mid);
  transition: color .2s;
}
.cc-nav-links a:hover { color: var(--teal); }
.cc-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cc-nav-phone {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.cc-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.cc-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s;
}

/* --- MAIN CONTENT AREA --- */
.cc-main { min-height: 60vh; }
.cc-post { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.cc-post h2 { font-size: 22px; margin-bottom: 10px; }
.cc-post h2 a { color: var(--navy); }
.cc-post h2 a:hover { color: var(--teal); }

/* --- FOOTER --- */
.cc-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.75);
  padding: 64px 0 0;
}
.cc-foot-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.cc-foot-logo-img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}
.cc-foot-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
}
.cc-foot-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cc-foot-badges span {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: rgba(255,255,255,.75);
}
.cc-foot-col h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.cc-foot-col ul { list-style: none; }
.cc-foot-col ul li { margin-bottom: 10px; }
.cc-foot-col ul li a {
  color: rgba(255,255,255,.7);
  font-size: 14px;
  transition: color .2s;
}
.cc-foot-col ul li a:hover { color: var(--gold-lt); }
.cc-foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 8px;
}
.cc-foot-bottom a { color: rgba(255,255,255,.4); }
.cc-foot-bottom a:hover { color: rgba(255,255,255,.7); }

/* --- STICKY MOBILE BAR --- */
.cc-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  height: 60px;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(0,0,0,.12);
}
.cc-sticky-call, .cc-sticky-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  height: 100%;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.cc-sticky-call {
  color: var(--navy);
  border-right: 1px solid var(--border);
}
.cc-sticky-quote {
  background: var(--teal);
  color: #fff;
}

/* --- ELEMENTOR OVERRIDES --- */
.elementor-page .cc-main { padding: 0; }
.e-con, .elementor-section { position: relative; }

/* --- SECTION HELPERS (for non-Elementor pages) --- */
.cc-section { padding: 72px 0; }
.cc-section-light { background: var(--off-white); }
.cc-section-warm { background: var(--warm-gray); }
.cc-sec-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.cc-sec-h2 {
  font-size: clamp(26px, 4vw, 42px);
  color: var(--navy);
  margin-bottom: 16px;
}
.cc-sec-sub {
  font-size: 17px;
  color: var(--txt-mid);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .cc-foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cc-nav-links { display: none; }
  .cc-nav-phone { display: none; }
}

@media (max-width: 600px) {
  .cc-topbar-right .cc-badge-pill { display: none; }
  .cc-nav-logo img { height: 36px; }
  .cc-nav-inner { padding: 10px 16px; }
  .cc-hamburger { display: flex; }
  .cc-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    padding: 16px 24px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    z-index: 998;
  }
  .cc-nav-menu.open { display: block; }
  .cc-nav-links { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cc-nav-right { display: none; }
  .cc-foot-grid { grid-template-columns: 1fr; }
  .cc-foot-bottom { flex-direction: column; text-align: center; }
  .cc-sticky-bar { display: flex; }
  body { padding-bottom: 60px; }
}
