/* ========================================
   CATEGORY & CITY POSTS DIRECTORY
   Professional Editorial Design System
   ======================================== */

/* ========== ROOT & VARIABLES ========== */
:root {
  /* Color Palette */
  --primary: #1a3a52;           /* Deep Navy */
  --accent: #d4a574;            /* Warm Gold */
  --secondary: #c8dcc4;         /* Soft Sage */
  --light-bg: #f9f8f6;          /* Off-white */
  --text-dark: #2c2c2c;         /* Charcoal */
  --text-light: #666666;        /* Medium Gray */
  --border-color: #e8e6e1;      /* Light Border */
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 300ms ease-out;
}

/* ========== RESET & BASE STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--primary);
}

h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-md);
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-sm);
}

h4 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary);
}

/* ========== CONTAINER & LAYOUT ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.container-fluid {
  width: 100%;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-xl);
  align-items: center;
}

nav a {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-fast);
}

nav a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  height: 600px;
  background: linear-gradient(135deg, var(--primary) 0%, rgba(26, 58, 82, 0.8) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
  color: white;
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  text-decoration: none;
  text-align: center;
  font-family: var(--font-body);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: #c49563;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

/* ========== SECTIONS ========== */
section {
  padding: var(--spacing-2xl) 0;
}

.section-light {
  background: var(--light-bg);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ========== CATEGORIES SECTION ========== */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

.category-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.category-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.category-content {
  padding: var(--spacing-lg);
}

.category-content h3 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

.category-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-md);
}

.category-badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ========== GALLERY SECTION ========== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 58, 82, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-text {
  color: white;
  text-align: center;
}

/* ========== MODELS SECTION ========== */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.model-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
  border: 1px solid var(--border-color);
  position: relative;
}

.model-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}

.model-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.model-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.model-card:hover .model-image img {
  transform: scale(1.08);
}

.model-category {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  background: var(--accent);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.model-info {
  padding: var(--spacing-lg);
  text-align: center;
}

.model-info h3 {
  font-size: 1.35rem;
  margin-bottom: var(--spacing-xs);
  color: var(--primary);
}

.model-info p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
}

.model-rating {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ========== CITIES SECTION (FOOTER AREA) ========== */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.city-link {
  padding: var(--spacing-md);
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-align: center;
  transition: all var(--transition-base);
  display: block;
  color: var(--primary);
  font-weight: 600;
}

.city-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ========== LOCATIONS PAGE ========== */
.location-search {
  display: flex;
  max-width: 560px;
  margin: 0 auto var(--spacing-xl);
  background: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.location-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 1rem;
  font-family: var(--font-body);
}

.location-search button {
  border: none;
  background: var(--accent);
  color: white;
  padding: 0 var(--spacing-lg);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--transition-base);
}

.location-search button:hover {
  background: #c49563;
}

.location-stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-2xl);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-xl);
}

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

.location-stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.location-stat .label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.locations-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  max-width: 980px;
  margin: 0 auto;
}

.state-block {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.state-block:hover {
  box-shadow: var(--shadow-md);
}

.state-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  transition: background var(--transition-base);
}

.state-header:hover {
  background: var(--light-bg);
}

.state-header .state-name {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.state-header .state-name i {
  color: var(--accent);
}

.state-toggle {
  color: var(--accent);
  transition: transform var(--transition-base);
  font-size: 1.2rem;
}

.state-block.active .state-toggle {
  transform: rotate(45deg);
}

.state-block.active .state-header {
  background: var(--light-bg);
}

.state-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.state-block.active .state-body {
  max-height: 1400px;
}

.state-body .cities-grid {
  padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

.state-block.hidden {
  display: none;
}


/* ========== FOOTER ========== */
footer {
  background: var(--primary);
  color: white;
  padding: var(--spacing-2xl) 0;
  margin-top: var(--spacing-2xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
  color: var(--accent);
  margin-bottom: var(--spacing-md);
}

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

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* ========== CONTENT SECTIONS ========== */
.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-lg);
}

.content-section h2 {
  margin-top: var(--spacing-xl);
}

.content-section p {
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

/* ========== FORM STYLES ========== */
.form-group {
  margin-bottom: var(--spacing-lg);
}

label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--primary);
}

input, textarea, select {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .category-card {
    animation: fadeInUp 0.6s ease-out backwards;
  }
  
  .gallery-item {
    animation: fadeIn 0.6s ease-out backwards;
  }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero {
    height: 400px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  nav ul {
    gap: var(--spacing-md);
  }
  
  nav a {
    font-size: 0.85rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav {
    display: none;
  }
  
  nav.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
  }
  
  nav.active ul {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .categories {
    grid-template-columns: 1fr;
  }
  
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .container {
    padding: 0 var(--spacing-md);
  }
  
  section {
    padding: var(--spacing-xl) 0;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero {
    height: 300px;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ========== UTILITY CLASSES ========== */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.py-xl {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

/* ========== TEAM / TESTIMONIAL SLIDER ========== */
.demo {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px 0;
}

.testimonial {
  background-color: #fff;
  text-align: center;
  padding: 30px 30px 50px;
  margin: 100px 15px 160px;
  position: relative;
}

.testimonial::before,
.testimonial::after {
  content: "";
  border-top: 40px solid #fff;
  border-right: 125px solid transparent;
  position: absolute;
  bottom: -40px;
  left: 0;
}

.testimonial::after {
  border-right: none;
  border-left: 125px solid transparent;
  left: auto;
  right: 0;
}

.testimonial .icon {
  display: inline-block;
  font-size: 80px;
  color: #016d9b;
  margin-bottom: 20px;
  opacity: 0.6;
}

.testimonial .description {
  font-size: 14px;
  color: #777;
  text-align: justify;
  margin-bottom: 30px;
  opacity: 0.9;
}

.testimonial .testimonial-content {
  width: 100%;
  left: 0;
  position: absolute;
}

.testimonial .pic {
  display: inline-block;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 4px 4px #016d9b;
  overflow: hidden;
  z-index: 1;
  position: relative;
}

.testimonial .pic img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  display: block;
}

.testimonial .name {
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  text-transform: capitalize;
  margin: 10px 0 5px 0;
}

.testimonial .title {
  display: block;
  font-size: 14px;
  color: #ffd9b8;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.team-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s ease;
}

.team-social a:hover {
  transform: scale(1.1);
}

.team-social a.whatsapp {
  background: #25D366;
}

.team-social a.call {
  background: #016d9b;
}

.team-social a svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}
