/*
Theme Name: The Norcia Team
Theme URI: https://norcia.homes
Author: MoFlo
Author URI: https://moflo.ai
Description: Custom luxury real estate theme for The Norcia Team - Coldwell Banker Bay Area
Version: 1.0.0
License: Proprietary
Text Domain: norcia
*/

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

:root {
  --black: #1a1a1a;
  --dark: #2a2a2a;
  --gray-800: #333333;
  --gray-600: #555555;
  --gray-400: #888888;
  --gray-300: #aaaaaa;
  --gray-200: #d0d0d0;
  --gray-100: #f0f0f0;
  --white: #ffffff;
  --off-white: #f8f8f8;
  --accent: #c4a265;
  --accent-hover: #b08e50;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ui: 'Inter', sans-serif;
  --max-width: 1400px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 400; line-height: 1.2; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 2rem;
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.75rem 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
}

.site-logo .logo-tagline {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--gray-400);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav { display: flex; align-items: center; gap: 2.5rem; }

.main-nav a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.3s ease;
}

.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.7) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  padding: 2rem;
}

.hero-subtitle {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.8);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-dre {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn:hover {
  background: var(--white);
  color: var(--black);
}

.btn-primary {
  background: var(--white);
  color: var(--black);
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
}

.btn-dark {
  border-color: var(--black);
  color: var(--black);
}

.btn-dark:hover {
  background: var(--black);
  color: var(--white);
}

.btn-accent {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent);
  color: var(--white);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--white);
  animation: bounce 2s infinite;
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* ============================================
   SECTION LAYOUTS
   ============================================ */
.section { padding: 6rem 0; }
.section-light { background: var(--off-white); }
.section-dark { background: var(--black); color: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 1.5rem auto 0;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  padding: 5rem 0;
  text-align: center;
}

.stats-logo {
  width: 120px;
  margin: 0 auto 2rem;
}

.stats-brokerage {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.stats-credentials {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--gray-400);
  letter-spacing: 0.05em;
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.stat-item { text-align: center; }

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--gray-400);
  letter-spacing: 0.05em;
}

/* ============================================
   ABOUT / MEET THE TEAM
   ============================================ */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content .about-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.about-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.about-content .about-role {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: var(--gray-600);
}

.about-content p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* ============================================
   COMMUNITIES / NEIGHBORHOODS
   ============================================ */
.communities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.community-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}

.community-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.community-card:hover img {
  transform: scale(1.05);
}

.community-card .community-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 60%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.community-card .community-name {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-card {
  position: relative;
  overflow: hidden;
}

.blog-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.03);
}

.blog-card-content {
  padding: 1.5rem 0;
}

.blog-card-date {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--gray-400);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.blog-card-excerpt {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-style: italic;
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--gray-200);
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  font-family: var(--font-heading);
  line-height: 1;
}

.testimonial-author {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gray-800);
}

.testimonial-location {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

/* ============================================
   PROPERTIES GRID
   ============================================ */
.properties-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.property-card {
  position: relative;
  overflow: hidden;
}

.property-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-100);
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .property-card-image img { transform: scale(1.03); }

.property-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
}

.property-card-info { padding: 1rem 0; }

.property-address {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.property-city {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  transition: var(--transition);
  appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--black);
}

.contact-form textarea { min-height: 150px; resize: vertical; }

.contact-info-block { margin-bottom: 2rem; }

.contact-info-block h3 {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--gray-400);
}

.contact-info-block p,
.contact-info-block a {
  font-size: 1.1rem;
  color: var(--gray-800);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--black);
  color: var(--gray-400);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-heading {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--gray-400);
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.footer-dre {
  font-size: 0.7rem;
  color: var(--gray-400);
  letter-spacing: 0.05em;
}

/* ============================================
   STICKY CONTACT WIDGET
   ============================================ */
.sticky-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.sticky-widget-expanded {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
  padding: 1.5rem;
  max-width: 280px;
  display: none;
}

.sticky-widget-expanded.active { display: block; }

.sticky-widget-expanded p {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.sticky-widget-expanded .phone-link {
  display: block;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.sticky-widget-expanded .consent-text {
  font-size: 0.65rem;
  color: var(--gray-400);
  text-align: center;
}

.sticky-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: var(--transition);
  font-size: 1.3rem;
}

.sticky-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(0,0,0,0.3);
}

/* ============================================
   PAGE TEMPLATES
   ============================================ */
.page-hero {
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.4;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.page-content {
  padding: 4rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.page-content h2 {
  font-size: 2rem;
  margin: 3rem 0 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-content p {
  color: var(--gray-600);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */
.mobile-nav {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-section { grid-template-columns: 1fr; gap: 2rem; }
  .about-image { order: -1; }
  .communities-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .hero-title { letter-spacing: 0.05em; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; text-align: center; }
  .communities-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .properties-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .section { padding: 4rem 0; }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* WordPress core styles */
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--gray-400); margin-top: 0.5rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
