/* 
 * Chelsmore Apartments Website Styles
 */

:root {
  /* Base Colors */
  --color-primary: #1e40af; /* Midnight blue */
  --color-primary-light: #1a365d; /* Darker blue for dark theme */
  --color-secondary: #3b82f6; /* Blue 500 */
  --color-accent: #d0ac5a; /* Gold accent */
  --color-accent-dark: #b99c51; /* Darker gold */
  
  /* Dark Theme Neutral Colors */
  --color-neutral-50: #1a1a1a;
  --color-neutral-100: #232426;
  --color-neutral-200: #333333;
  --color-neutral-300: #444444;
  --color-neutral-400: #666666;
  --color-neutral-500: #888888;
  --color-neutral-600: #aaaaaa;
  --color-neutral-700: #cccccc;
  --color-neutral-800: #e6e6e6;
  --color-neutral-900: #f5f5f5;
  
  /* Font Families */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  
  /* Sizing/Spacing */
  --header-height: 80px;
  --container-padding: 1rem;
  --border-radius: 0.5rem;
  --transition-speed: 0.3s;
  
  /* Dark Theme Colors */
  --dark-bg-primary: #121212;
  --dark-bg-secondary: #1e1e1e;
  --dark-bg-tertiary: #232426;
  --dark-text-primary: #f5f5f5;
  --dark-text-secondary: #aaaaaa;
  --dark-border: #333333;
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--dark-text-primary);
  background-color: var(--dark-bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  line-height: 1.2;
}

.font-heading {
  font-family: var(--font-heading);
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.pt-8 {
  padding-top: 2rem;
}

.pt-16 {
  padding-top: 4rem;
}

.pb-8 {
  padding-bottom: 2rem;
}

.pt-20 {
  padding-top: 5rem;
}

.pb-20 {
  padding-bottom: 5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-x-6 > * + * {
  margin-left: 1.5rem;
}

.space-x-8 > * + * {
  margin-left: 2rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.w-full {
  width: 100%;
}

.w-12 {
  width: 3rem;
}

.h-12 {
  height: 3rem;
}

.h-20 {
  height: 5rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-l-md {
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}

.rounded-r-md {
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}

.border-t {
  border-top-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-none {
  border-style: none;
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.text-left {
  text-align: left;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.text-5xl {
  font-size: 3rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

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

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

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

.text-white {
  color: white;
}

.text-neutral-200 {
  color: var(--color-neutral-200);
}

.text-neutral-500 {
  color: var(--color-neutral-500);
}

.text-neutral-600 {
  color: var(--dark-text-secondary);
}

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

.text-red-500 {
  color: #ef4444;
}

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

.text-dark-text-secondary {
  color: var(--dark-text-secondary);
}

.bg-white {
  background-color: white;
}

.bg-neutral-50 {
  background-color: var(--dark-bg-primary);
}

.bg-neutral-100 {
  background-color: var(--dark-bg-secondary);
}

.bg-neutral-200 {
  background-color: var(--dark-bg-tertiary);
}

.bg-neutral-400 {
  background-color: var(--dark-bg-secondary);
}

.bg-neutral-500 {
  background-color: var(--dark-bg-tertiary);
}

.bg-dark-primary {
  background-color: var(--dark-bg-primary);
}

.bg-dark-secondary {
  background-color: var(--dark-bg-secondary);
}

.bg-dark-tertiary {
  background-color: var(--dark-bg-tertiary);
}

.bg-primary {
  background-color: var(--color-primary);
}

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

.bg-secondary {
  background-color: var(--color-secondary);
}

.bg-accent {
  background-color: var(--color-accent);
}

.hover\:bg-accent-dark:hover {
  background-color: var(--color-accent-dark);
}

.hover\:bg-neutral-100:hover {
  background-color: var(--color-neutral-100);
}

.hover\:text-white:hover {
  color: white;
}

.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-neutral-50 {
  --tw-gradient-stops: var(--color-neutral-50), var(--tw-gradient-to, rgba(249, 250, 251, 0));
}

.from-primary {
  --tw-gradient-stops: var(--color-primary), var(--tw-gradient-to, rgba(37, 99, 235, 0));
}

.to-white {
  --tw-gradient-to: white;
}

.to-secondary {
  --tw-gradient-to: var(--color-secondary);
}

.transition {
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.underline {
  text-decoration: underline;
}

.overflow-hidden {
  overflow: hidden;
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.z-50 {
  z-index: 50;
}

/* Grid */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

/* Components */
.card {
  background-color: var(--dark-bg-tertiary);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  border: 1px solid var(--dark-border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

.separator {
  height: 1px;
  background-color: var(--color-neutral-200);
  margin: 0;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #232426; /* New background color */
  color: #d0ac5a; /* New text color */
  font-weight: 600;
  border-radius: var(--border-radius);
  text-align: center;
  transition: background-color var(--transition-speed), transform var(--transition-speed), color var(--transition-speed);
  cursor: pointer;
}

.button:hover {
  background-color: #2b2c2e; /* Slightly lighter on hover */
  color: #d9b96b; /* Slightly lighter gold on hover */
  transform: translateY(-2px);
}

/* Navigation */
.nav-link {
  color: var(--color-neutral-600);
  font-weight: 500;
  transition: color var(--transition-speed);
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #d0ac5a; /* Gold underline color */
  transition: width var(--transition-speed);
}

.nav-link:hover, .nav-link.active {
  color: #d0ac5a; /* Gold active color */
}

.nav-link:hover:after, .nav-link.active:after {
  width: 100%;
}

.nav-cta {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: #232426; /* New background color */
  color: #d0ac5a; /* New text color */
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: background-color var(--transition-speed), transform var(--transition-speed), color var(--transition-speed);
}

.nav-cta:hover {
  background-color: #2b2c2e; /* Slightly lighter on hover */
  color: #d9b96b; /* Slightly lighter gold on hover */
  transform: translateY(-2px);
}

/* Mobile Navigation */
.mobile-menu-toggle {
  background: transparent;
  border: none;
  color: var(--dark-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  background-color: var(--dark-bg-tertiary);
  border-top: 1px solid var(--dark-border);
}

.mobile-menu.is-active {
  display: block;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/apartments/IMG_3422.JPG');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 8rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto;
  opacity: 0.9;
}

/* Testimonials Section */
.testimonials-bg {
  position: relative;
}

.testimonials-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(30, 30, 30, 0.75), rgba(30, 30, 30, 0.75)), url('../images/apartments/IMG_8228.JPG');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -1;
}

/* Contact Section */
.contact-bg {
  position: relative;
}

.contact-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(30, 30, 30, 0.6), rgba(30, 30, 30, 0.6)), url('../images/apartments/IMG_7266.JPG');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -1;
}

/* Services Section */
.services-bg {
  position: relative;
}

.services-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(30, 30, 30, 0.65), rgba(30, 30, 30, 0.65)), url('../images/apartments/IMG_8228.JPG');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -1;
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  transition: transform 0.5s ease;
}

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

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  background-color: var(--dark-bg-tertiary);
  color: var(--dark-text-primary);
  font-family: var(--font-sans);
  transition: border-color var(--transition-speed);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: #d0ac5a; /* Gold focus border color */
}

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

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--dark-border);
}

th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid var(--dark-border);
}

th {
  background-color: var(--dark-bg-tertiary);
  color: var(--dark-text-primary);
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: var(--dark-bg-secondary);
}

tr:nth-child(odd) {
  background-color: var(--dark-bg-primary);
}

/* Layout classes */
.hidden-mobile {
  display: none;
}

/* Responsive */
@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
  
  .sm\:space-x-4 > * + * {
    margin-left: 1rem;
  }
  
  .sm\:space-y-0 > * + * {
    margin-top: 0;
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .md\:p-8 {
    padding: 2rem;
  }
  
  .md\:text-3xl {
    font-size: 1.875rem;
  }
  
  .md\:text-5xl {
    font-size: 3rem;
  }
  
  .md\:block {
    display: block;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  
  .lg\:flex {
    display: flex;
  }
  
  .lg\:hidden {
    display: none;
  }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}