/* ============================================
   Becker Texas Properties - Main Stylesheet
   Texas Patriotic Theme: Red, White, Blue on Black
   ============================================ */

/* CSS Variables for Texas Theme Colors */
:root {
  /* Texas Flag Colors */
  --texas-red: #BF0A30;
  --texas-blue: #002868;
  --texas-white: #FFFFFF;
  
  /* Background Colors */
  --bg-black: #000000;
  --bg-dark: #0a0a0a;
  --bg-darker: #050505;
  
  /* Accent Colors */
  --accent-red: #DC143C;
  --accent-blue: #0047AB;
  --accent-gold: #FFD700;
  
  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #E0E0E0;
  --text-muted: #B0B0B0;
  
  /* Border Colors */
  --border-light: rgba(255, 255, 255, 0.2);
  --border-red: rgba(191, 10, 48, 0.5);
  --border-blue: rgba(0, 40, 104, 0.5);
}

/* ============================================
   Reset and Base Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--bg-black);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--texas-red), var(--texas-white), var(--texas-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-primary);
}

p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

a {
  color: var(--texas-red);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-red);
  text-shadow: 0 0 10px rgba(191, 10, 48, 0.5);
}

/* ============================================
   Header and Navigation
   ============================================ */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border-red);
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(0,0,0,0.98);
  border-bottom-color: var(--border-blue);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  width: 50px;
  height: 50px;
  position: relative;
}

/* Texas Star SVG Styling */
.texas-star {
  fill: var(--texas-white);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  transition: all 0.3s ease;
}

.logo:hover .texas-star {
  fill: var(--accent-gold);
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

.logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Main Navigation */
.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-item {
  position: relative;
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-item:hover {
  color: var(--texas-red);
  text-shadow: 0 0 10px rgba(191, 10, 48, 0.3);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--texas-red), var(--texas-white), var(--texas-blue));
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 80%;
}

/* Dropdown Submenu */
.nav-item.has-dropdown {
  position: relative;
}

.dropdown-arrow {
  margin-left: 0.5rem;
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.nav-item.has-dropdown:hover .dropdown-arrow,
.nav-item.has-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 1rem;
  background: linear-gradient(135deg, rgba(0,0,0,0.95), rgba(10,10,10,0.95));
  border: 1px solid var(--border-red);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.nav-item.has-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dropdown-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(180deg, var(--texas-red), var(--texas-blue));
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

/* Color-coded dropdown items */
.dropdown-item[onclick*="Office"]::before {
  background: #BF0A30;
}

.dropdown-item[onclick*="Retail"]::before {
  background: #FFFFFF;
}

.dropdown-item[onclick*="Flex"]::before {
  background: #002868;
}

.dropdown-item:hover {
  color: var(--text-primary);
  background: rgba(191, 10, 48, 0.1);
  padding-left: 2rem;
}

.dropdown-item:hover::before {
  transform: translateX(0);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: none;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px;
  background: radial-gradient(circle at center, rgba(0, 40, 104, 0.2) 0%, transparent 70%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(191, 10, 48, 0.03) 2px,
      rgba(191, 10, 48, 0.03) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(0, 40, 104, 0.03) 2px,
      rgba(0, 40, 104, 0.03) 4px
    );
  pointer-events: none;
}

.hero-content {
  text-align: center;
  z-index: 1;
  max-width: 1200px;
  padding: 2rem;
}

.hero-title {
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-cta {
  display: inline-flex;
  gap: 1.5rem;
  animation: fadeInUp 1s ease 0.4s both;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid transparent;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--texas-red), var(--accent-red));
  color: var(--text-primary);
  border-color: var(--texas-red);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(191, 10, 48, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--texas-blue);
}

.btn-secondary:hover {
  background: var(--texas-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 40, 104, 0.3);
}

/* ============================================
   Content Sections
   ============================================ */
.section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '★';
  display: block;
  font-size: 2rem;
  color: var(--accent-gold);
  margin-top: 1rem;
  animation: pulse 2s infinite;
}

/* ============================================
   Cards and Grid
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.9), rgba(5, 5, 5, 0.9));
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--texas-red), var(--texas-white), var(--texas-blue));
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--texas-red);
  box-shadow: 0 15px 40px rgba(191, 10, 48, 0.2);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
footer {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-black) 100%);
  border-top: 2px solid var(--border-red);
  padding: 3rem 2rem 1rem;
  margin-top: 5rem;
  margin-bottom: 0;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--texas-red);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--text-primary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================
   Loading Spinner (for future data loading)
   ============================================ */
.loader {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-light);
  border-top-color: var(--texas-red);
  border-right-color: var(--texas-white);
  border-bottom-color: var(--texas-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   Hero Heritage Statement
   ============================================ */
.hero-heritage {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(191, 10, 48, 0.2);
  border-radius: 0.5rem;
  position: relative;
}

.hero-heritage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--texas-red), var(--texas-white), var(--texas-blue), transparent);
}

.hero-heritage p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
  text-align: center;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* Adjust hero section for new content */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 100px 2rem 2rem;
  background: radial-gradient(circle at center, rgba(0, 40, 104, 0.2) 0%, transparent 70%);
}

.hero-content {
  text-align: center;
  z-index: 1;
  max-width: 1200px;
  padding: 2rem;
  width: 100%;
}

.hero-cta {
  display: inline-flex;
  gap: 1.5rem;
  animation: fadeInUp 1s ease 0.6s both;
  margin-top: 2rem;
}

/* Remove old heritage section styles */
.heritage-section {
  display: none;
}

/* ============================================
   Media Queries for Hero Heritage
   ============================================ */
@media (max-width: 768px) {
  .hero-heritage {
    margin: 1.5rem auto;
    padding: 1rem;
  }
  
  .hero-heritage p {
    font-size: 0.95rem;
    text-align: left;
  }
  
  .hero {
    padding: 80px 1rem 2rem;
  }
}

@media (max-width: 480px) {
  .hero-heritage p {
    font-size: 0.9rem;
    line-height: 1.7;
  }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }
  
  /* Header adjustments */
  .header-container {
    padding: 0.75rem 1rem;
  }
  
  /* Logo adjustments for mobile */
  .logo-icon {
    width: 40px;
    height: 40px;
  }
  
  .logo-text {
    font-size: 1.3rem;
  }
  
  /* Show mobile menu toggle - Simple 3 lines, no animation */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-toggle span {
    /* Just keep as 3 lines - no fancy animations */
  }
  
  /* Hide desktop navigation */
  .main-nav {
    display: none;
  }
  
  /* Mobile Menu Dialog - Simple centered box */
  .main-nav.active {
    display: block;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    max-height: calc(100vh - 20px);
    background: #0a0a0a;
    border: 2px solid var(--texas-red);
    border-radius: 0.5rem;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Dark overlay behind dialog */
  .main-nav.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: -1;
  }
  
  /* Menu items - simple vertical list */
  .nav-item {
    width: 100%;
    padding: 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-item:last-child {
    border-bottom: none;
  }
  
  .nav-item a {
    display: block;
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
  }
  
  .nav-item::after {
    display: none;
  }
  
  /* Space dropdown - show items below when active */
  .nav-item.has-dropdown {
    border-bottom: none;
  }
  
  .dropdown-arrow {
    float: right;
  }
  
  /* Dropdown menu - simple show/hide below parent */
  .dropdown-menu {
    position: static;
    display: none;
    background: rgba(20, 20, 20, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
    margin: 0.5rem 0 1rem 0;
    padding: 0;
    width: 100%;
  }
  
  .nav-item.has-dropdown.active .dropdown-menu {
    display: block;
  }
  
  /* Dropdown items */
  .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    box-sizing: border-box;
  }
  
  .dropdown-item:hover,
  .dropdown-item:active {
    background: rgba(191, 10, 48, 0.2);
    color: var(--text-primary);
  }
  
  /* Close button for mobile menu */
  .main-nav.active::after {
    content: '✕';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }
  
  /* Hero adjustments */
  .hero {
    padding: 90px 1rem 2rem;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }
  
  .hero-heritage {
    margin: 1.5rem auto;
    padding: 1rem;
  }
  
  .hero-heritage p {
    font-size: 0.95rem;
    text-align: left;
  }
  
  /* Button adjustments */
  .btn {
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    white-space: normal;
  }
  
  /* Card grid adjustments */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Section adjustments */
  .section {
    padding: 3rem 1rem;
  }
  
  /* Footer adjustments */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .header-container {
    padding: 0.75rem;
  }
  
  .logo-icon {
    width: 36px;
    height: 36px;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }
  
  .mobile-menu-toggle {
    padding: 0.25rem;
  }
  
  .mobile-menu-toggle span {
    width: 22px;
    height: 2.5px;
  }
  
  .main-nav {
    padding: 1.5rem 1rem;
  }
  
  .nav-item {
    padding: 0.875rem 0.75rem;
    font-size: 0.9rem;
  }
  
  .dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
  
  .section {
    padding: 2rem 0.75rem;
  }
  
  .hero-heritage {
    padding: 0.875rem;
  }
  
  .hero-heritage p {
    font-size: 0.9rem;
    line-height: 1.7;
  }
  
  .card-grid {
    gap: 1.25rem;
  }
  
  .footer-content {
    gap: 1.5rem;
  }
}

/* Very small screens (iPhone SE, etc) */
@media (max-width: 375px) {
  .header-container {
    padding: 0.625rem 0.75rem;
  }
  
  .logo-text {
    font-size: 1.1rem;
  }
  
  .main-nav {
    padding: 1.25rem 0.875rem;
  }
  
  .nav-item {
    padding: 0.75rem 0.625rem;
  }
}

/* Landscape orientation for phones */
@media (max-width: 896px) and (max-height: 414px) and (orientation: landscape) {
  .main-nav {
    max-height: calc(100vh - 60px);
    padding: 1rem;
  }
  
  .nav-item {
    padding: 0.75rem;
  }
  
  .dropdown-item {
    padding: 0.625rem 1rem;
  }
}