/* ===========================
   KARA McCOY · LUXURY REALTOR
   CSS Stylesheet
   =========================== */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1a2639;
  --navy-light: #243447;
  --gold:       #b8975a;
  --gold-light: #d4b07a;
  --cream:      #f8f5f0;
  --white:      #ffffff;
  --gray:       #6b7280;
  --gray-light: #f3f0eb;
  --text:       #2d2d2d;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Montserrat', sans-serif;

  --transition: 0.35s ease;
  --shadow:     0 4px 30px rgba(0,0,0,0.10);
  --shadow-lg:  0 12px 50px rgba(0,0,0,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- TYPOGRAPHY --- */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-eyebrow.center { text-align: center; }

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
}
.section-heading.center { text-align: center; }

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-light {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-light:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-dark {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.btn-full { width: 100%; text-align: center; }

/* ===========================
   NAVIGATION
   =========================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: var(--white);
  padding: 14px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  transition: color var(--transition);
}
.logo-title {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
#navbar.scrolled .logo-name  { color: var(--navy); }
#navbar.scrolled .logo-title { color: var(--gray); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold-light); }
#navbar.scrolled .nav-links a { color: var(--navy); }
#navbar.scrolled .nav-links a:hover { color: var(--gold); }

.nav-cta {
  padding: 10px 24px;
  border: 1.5px solid rgba(255,255,255,0.6) !important;
  color: var(--white) !important;
  transition: all var(--transition) !important;
}
.nav-cta:hover {
  background: var(--white) !important;
  color: var(--navy) !important;
  border-color: var(--white) !important;
}
#navbar.scrolled .nav-cta {
  border-color: var(--navy) !important;
  color: var(--navy) !important;
}
#navbar.scrolled .nav-cta:hover {
  background: var(--navy) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all var(--transition);
}
#navbar.scrolled .nav-toggle span { background: var(--navy); }

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  background: url('images/hero-waterfront.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 30, 48, 0.55) 0%,
    rgba(20, 30, 48, 0.45) 60%,
    rgba(20, 30, 48, 0.70) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 0 24px;
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-sub {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.82);
  margin-bottom: 44px;
  line-height: 1.8;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hero-scroll-hint span {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ===========================
   INTRO STRIP
   =========================== */
.intro-strip {
  background: var(--navy);
  padding: 48px 0;
}
.intro-text {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  text-align: center;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* ===========================
   ABOUT
   =========================== */
.about {
  padding: 110px 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-photo {
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.about-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--navy);
  color: var(--white);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
}
.badge-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
}
.badge-title {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.badge-brokerage {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}
.about-divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 20px 0 24px;
}
.about-content p {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: 14.5px;
  line-height: 1.85;
}
.about-stats {
  display: flex;
  gap: 32px;
  margin: 36px 0 40px;
  padding: 28px 0;
  border-top: 1px solid #e8e3db;
  border-bottom: 1px solid #e8e3db;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ===========================
   COMMUNITIES
   =========================== */
.communities {
  padding: 110px 0;
  background: var(--gray-light);
}
.communities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
}
.community-card {
  position: relative;
  height: 380px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
}
.community-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,30,48,0.85) 0%, rgba(20,30,48,0.2) 60%, transparent 100%);
  transition: background var(--transition);
}
.community-card:hover .community-overlay {
  background: linear-gradient(to top, rgba(20,30,48,0.92) 0%, rgba(20,30,48,0.5) 60%, rgba(20,30,48,0.2) 100%);
}
.community-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 28px 32px;
  z-index: 2;
}
.community-content h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 8px;
}
.community-content p {
  font-size: 12.5px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}
.community-card:hover .community-content p {
  max-height: 80px;
  opacity: 1;
}

/* ===========================
   WHY KARA
   =========================== */
.why-kara {
  padding: 110px 0;
  background: var(--white);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 60px;
}
.pillar {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid #e8e3db;
  transition: box-shadow var(--transition), transform var(--transition);
}
.pillar:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.pillar-icon {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 18px;
}
.pillar h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 12px;
}
.pillar p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.75;
}

/* ===========================
   TESTIMONIALS
   =========================== */
.testimonials {
  padding: 110px 0;
  background: var(--navy);
}
.testimonials .section-eyebrow { color: var(--gold-light); }
.testimonials .section-heading { color: var(--white); }

.testimonials-track {
  display: flex;
  gap: 28px;
  margin-top: 56px;
  overflow: hidden;
}
.testimonial-card {
  flex: 0 0 calc(33.333% - 19px);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 44px 36px 40px;
  transition: background var(--transition);
}
.testimonial-card:hover { background: rgba(255,255,255,0.09); }
.quote-mark {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 0.6;
  color: var(--gold);
  margin-bottom: 24px;
  display: block;
}
.testimonial-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  margin-bottom: 28px;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.author-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.author-location {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
}
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ===========================
   CONTACT
   =========================== */
.contact {
  padding: 110px 0;
  background: var(--cream);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.contact-info p {
  color: var(--gray);
  font-size: 14.5px;
  line-height: 1.85;
  margin-bottom: 32px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}
.contact-icon {
  font-size: 1rem;
  color: var(--gold);
  width: 20px;
  flex-shrink: 0;
}
.contact-item a {
  color: var(--navy);
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--gold); }

/* Form */
.contact-form-wrap {
  background: var(--white);
  padding: 48px 44px;
  box-shadow: var(--shadow);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 1px solid #ddd8d0;
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note {
  font-size: 11px;
  color: var(--gray);
  text-align: center;
  margin-top: -4px;
}
.form-success {
  display: none;
  text-align: center;
  padding: 60px 20px;
}
.form-success.visible { display: block; }
.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.form-success h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.form-success p { color: var(--gray); }

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 48px;
  padding-bottom: 48px;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
}
.footer-tagline {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }
.footer-social a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-social a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 40px;
  text-align: center;
}
.footer-bottom p {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--gold-light); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .about-grid    { grid-template-columns: 1fr; gap: 60px; }
  .about-image-wrap { max-width: 480px; margin: 0 auto; }
  .about-badge   { right: 0; }
  .pillars-grid  { grid-template-columns: repeat(2, 1fr); }
  .communities-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid  { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 14px; color: rgba(255,255,255,0.85) !important; }
  .nav-cta { border-color: rgba(255,255,255,0.4) !important; color: var(--white) !important; }
  .nav-toggle { display: flex; z-index: 1001; }

  .hero-headline { font-size: clamp(2.5rem, 10vw, 4rem); }
  .hero-sub br { display: none; }

  .communities-grid { grid-template-columns: 1fr; }
  .community-card { height: 280px; }
  .community-content p { max-height: 80px; opacity: 1; }

  .testimonials-track { flex-direction: column; }
  .testimonial-card { flex: 0 0 auto; }

  .about-stats { flex-wrap: wrap; gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 32px 24px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .about-photo  { height: 420px; }
}
