@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --primary-blue: #0056B3;
  --primary-blue-hover: #0069D9;
  --dark-grey: #333333;
  --mid-grey: #808080;
  --off-white: #F8F8F8;
  --white: #FFFFFF;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Roboto', sans-serif;
  --transition-base: 0.2s ease-in-out;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-grey);
  background-color: var(--white);
  background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1em;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

.section {
  padding: 80px 0;
}

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

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

.bg-primary h2,
.bg-primary h3,
.bg-primary p {
  color: var(--white);
}

/* Header Styles */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  padding: 0 20px;
}

.header .logo {
  display: flex;
  align-items: center;
}

.header .logo img {
  height: 60px;
  width: auto;
}

.header .logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-blue);
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  gap: 30px;
}

.nav-desktop a {
  color: var(--dark-grey);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-blue);
  transition: width var(--transition-base);
}

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

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--primary-blue);
}

.header-cta {
  display: none;
}

.header-phone {
  display: none;
}

/* Mobile Navigation */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--dark-grey);
  margin: 3px 0;
  transition: all var(--transition-base);
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--white);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

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

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-nav-close::before,
.mobile-nav-close::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--dark-grey);
}

.mobile-nav-close::before {
  transform: rotate(45deg);
}

.mobile-nav-close::after {
  transform: rotate(-45deg);
}

.mobile-nav ul {
  text-align: center;
}

.mobile-nav li {
  margin: 20px 0;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--dark-grey);
  font-weight: 500;
}

.mobile-nav .mobile-cta {
  margin-top: 30px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out 0.8s forwards;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out 1s forwards;
}

.hero .btn-primary {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out 1.2s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--primary-blue-hover);
  color: var(--white);
  transform: scale(1.02);
}

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

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-blue);
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  border: 2px solid var(--primary-blue);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

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

/* About Section */
.about-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-content {
  padding: 20px 0;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content p {
  color: var(--mid-grey);
  margin-bottom: 20px;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

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

.service-icon {
  width: 60px;
  height: 60px;
  background-color: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform var(--transition-base);
}

.service-card:hover .service-icon {
  transform: translateY(-3px);
}

.service-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--primary-blue);
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  color: var(--mid-grey);
  margin-bottom: 0;
}

/* Featured Listings */
.listings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.listing-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease-out;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

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

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

.listing-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-out;
}

.listing-price {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.1rem;
}

.listing-content {
  padding: 20px;
}

.listing-content h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.listing-details {
  display: flex;
  gap: 20px;
  color: var(--mid-grey);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.listing-location {
  color: var(--mid-grey);
  font-size: 0.9rem;
}

/* Testimonials */
.testimonial-section {
  text-align: center;
}

.testimonials-container {
  max-width: 800px;
  margin: 40px auto 0;
}

.testimonial-card {
  background-color: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.testimonial-card blockquote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--dark-grey);
  margin-bottom: 20px;
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  color: var(--primary-blue);
}

/* CTA Section */
.cta-section {
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 20px;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background-color: var(--dark-grey);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about .logo {
  margin-bottom: 20px;
}

.footer-about .logo img {
  height: 50px;
  width: auto;
}

.footer-about p {
  color: #999;
  font-size: 0.95rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: all var(--transition-base);
}

.social-links a:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--white);
}

.footer ul li {
  margin-bottom: 12px;
}

.footer a {
  color: #999;
  transition: color var(--transition-base);
}

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

.footer-contact p {
  color: #999;
  margin-bottom: 10px;
}

.footer-contact a {
  color: #999;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: #999;
  font-size: 0.9rem;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.trust-badges span {
  font-size: 0.85rem;
  color: #999;
}

/* About Page Specific */
.about-hero {
  height: 50vh;
  min-height: 350px;
}

.bio-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.value-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--transition-base);
}

.value-card:hover {
  transform: rotateZ(2deg);
}

.value-icon {
  width: 70px;
  height: 70px;
  background-color: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.value-icon svg {
  width: 35px;
  height: 35px;
  fill: var(--primary-blue);
}

.value-card h3 {
  margin-bottom: 10px;
}

.value-card p {
  color: var(--mid-grey);
  margin-bottom: 0;
}

/* Services Page Specific */
.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid #eee;
}

.service-detail:last-of-type {
  border-bottom: none;
}

.service-detail:nth-child(even) .service-detail-image {
  order: 0;
}

.service-detail-content h2 {
  margin-bottom: 20px;
}

.service-detail-content p {
  color: var(--mid-grey);
  margin-bottom: 20px;
}

.service-detail-content ul {
  margin-bottom: 25px;
}

.service-detail-content li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: var(--dark-grey);
}

.service-detail-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: bold;
}

.service-detail-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.service-detail-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Properties Page Specific */
.property-filters {
  background-color: var(--off-white);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 40px;
}

.filters-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--dark-grey);
}

.filter-group select,
.filter-group input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.filters-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--white);
  border: 1px solid #ddd;
  color: var(--dark-grey);
  transition: all var(--transition-base);
}

.pagination a:hover {
  background-color: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.pagination a.active {
  background-color: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

/* Contact Page Specific */
.contact-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

.contact-form-container {
  background-color: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.contact-form h2 {
  margin-bottom: 10px;
}

.contact-form > p {
  color: var(--mid-grey);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--dark-grey);
}

.form-group label .required {
  color: #e74c3c;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease-in-out;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

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

.radio-group {
  display: flex;
  gap: 20px;
}

.radio-group label {
  display: flex;
  align-items: center;
  font-weight: 400;
  cursor: pointer;
}

.radio-group input[type="radio"] {
  width: auto;
  margin-right: 8px;
}

.contact-info-container h2 {
  margin-bottom: 30px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-info-item svg {
  width: 24px;
  height: 24px;
  fill: var(--primary-blue);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-info-item h4 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.contact-info-item p,
.contact-info-item a {
  color: var(--mid-grey);
  margin-bottom: 0;
}

.contact-social {
  margin-top: 30px;
}

.contact-social h4 {
  margin-bottom: 15px;
}

.map-section {
  margin-top: 50px;
}

.map-section h2 {
  margin-bottom: 20px;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (min-width: 768px) {
  .header-inner {
    height: 90px;
    padding: 0 40px;
  }
  
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 30px;
  }
  
  .header-cta {
    display: block;
  }
  
  .header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-grey);
    font-weight: 500;
  }
  
  .header-phone svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-blue);
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  .hero-content p {
    font-size: 1.5rem;
  }
  
  .about-section {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .service-detail {
    grid-template-columns: 1fr 1fr;
  }
  
  .service-detail:nth-child(even) .service-detail-content {
    order: 2;
  }
  
  .filters-form {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .filters-row {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .contact-section {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hero-content h1 {
    font-size: 4rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .listings-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }
  
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .filters-form {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-content h1,
  .hero-content p,
  .hero .btn-primary {
    opacity: 1;
    transform: none;
    animation: none;
  }
  
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Custom cursor for interactive elements */
@media (hover: hover) {
  .btn-primary,
  .service-card,
  .listing-card {
    cursor: pointer;
  }
}
