/* Augustine Villas - Assisted Living
   Brand Colors:
   - Navy Blue: #1e3a5f
   - Teal: #4a8b8b
   - Light Teal: #6ba3a3
   - White: #ffffff
   - Light Gray: #f5f5f5
*/

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

:root {
  --navy-blue: #1e3a5f;
  --navy-dark: #152a45;
  --teal: #4a8b8b;
  --teal-light: #6ba3a3;
  --teal-lighter: #8bbdbd;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --gray: #666666;
  --dark-gray: #333333;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
}

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

ul {
  list-style: none;
}

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

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

/* Header & Navigation */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

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

.logo {
  flex: 0 0 auto;
}

.logo img {
  height: 70px;
  width: auto;
}

nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

nav ul {
  display: flex;
  gap: 30px;
}

.header-contact {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.header-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy-blue);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.header-contact a:hover {
  color: var(--teal);
}

.header-contact .icon {
  font-size: 1rem;
}

nav ul li a {
  color: var(--navy-blue);
  font-weight: 500;
  font-size: 1rem;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--teal);
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--teal);
  transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background-color: var(--navy-blue);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  background: url("../img/background.jpg") center 80% / cover no-repeat;
  color: var(--white);
  padding: 180px 20px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 58, 95, 0.85) 0%,
    rgba(74, 139, 139, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 300;
  letter-spacing: 1px;
}

.hero h1 strong {
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--teal-lighter);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: var(--teal);
  color: var(--white);
  border: 2px solid var(--teal);
}

.btn-secondary:hover {
  background-color: var(--teal-light);
  border-color: var(--teal-light);
  transform: translateY(-2px);
}

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

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

/* Section Styles */
section {
  padding: 80px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--navy-blue);
  margin-bottom: 15px;
  font-weight: 600;
}

.section-header p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-header .underline {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-blue), var(--teal));
  margin: 20px auto 0;
}

/* Welcome Section */
.welcome {
  background-color: var(--light-gray);
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.welcome-content h3 {
  font-size: 1.8rem;
  color: var(--navy-blue);
  margin-bottom: 20px;
}

.welcome-content p {
  color: var(--gray);
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.welcome-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  text-align: center;
  padding: 20px;
}

/* Features/Services Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-card .icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--navy-blue) 0%, var(--teal) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
  color: var(--white);
}

.feature-card h3 {
  color: var(--navy-blue);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* Services Page Specific */
.services-detailed {
  background-color: var(--white);
}

.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid #eee;
}

.service-item:nth-child(even) {
  direction: rtl;
}

.service-item:nth-child(even) > * {
  direction: ltr;
}

.service-item:last-child {
  border-bottom: none;
}

.service-content h3 {
  font-size: 1.8rem;
  color: var(--navy-blue);
  margin-bottom: 20px;
}

.service-content p {
  color: var(--gray);
  margin-bottom: 15px;
}

.service-content ul {
  margin-top: 20px;
}

.service-content ul li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: var(--gray);
}

.service-content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: bold;
}

/* Amenities Grid */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.amenity-card {
  background-color: var(--white);
  padding: 30px 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.amenity-card:hover {
  border-color: var(--teal);
  transform: translateY(-5px);
}

.amenity-card .icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.amenity-card h4 {
  color: var(--navy-blue);
  font-size: 1rem;
  font-weight: 600;
}

/* Testimonials */
.testimonials {
  background: linear-gradient(135deg, var(--navy-blue) 0%, var(--teal) 100%);
  color: var(--white);
}

.testimonials .section-header h2 {
  color: var(--white);
}

.testimonials .section-header p {
  color: rgba(255, 255, 255, 0.8);
}

.testimonials .underline {
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 35px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author .avatar {
  width: 50px;
  height: 50px;
  background-color: var(--teal-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.testimonial-author .info h4 {
  font-weight: 600;
  margin-bottom: 3px;
}

.testimonial-author .info span {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* CTA Section */
.cta {
  background-color: var(--light-gray);
  text-align: center;
}

.cta h2 {
  font-size: 2.2rem;
  color: var(--navy-blue);
  margin-bottom: 15px;
}

.cta p {
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* About Page */
.about-intro {
  background-color: var(--light-gray);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h3 {
  font-size: 1.8rem;
  color: var(--navy-blue);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--gray);
  margin-bottom: 15px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.value-card {
  text-align: center;
  padding: 30px;
}

.value-card .icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.value-card h4 {
  color: var(--navy-blue);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.value-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.team-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.team-card .photo {
  height: 250px;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--white);
}

.team-card .info {
  padding: 25px;
  text-align: center;
}

.team-card .info h4 {
  color: var(--navy-blue);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.team-card .info span {
  color: var(--teal);
  font-size: 0.9rem;
}

/* Contact Page */
.contact-section {
  background-color: var(--light-gray);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 1.8rem;
  color: var(--navy-blue);
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--gray);
  margin-bottom: 30px;
}

.contact-details {
  margin-bottom: 30px;
}

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

.contact-item .icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--navy-blue) 0%, var(--teal) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  flex-shrink: 0;
}

.contact-item .text h4 {
  color: var(--navy-blue);
  margin-bottom: 5px;
  font-size: 1rem;
}

.contact-item .text p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.contact-form {
  background-color: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
  font-size: 1.5rem;
  color: var(--navy-blue);
  margin-bottom: 25px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Map Placeholder */
.map-section {
  padding: 0;
}

.map-placeholder {
  height: 400px;
  background: linear-gradient(
    135deg,
    var(--navy-dark) 0%,
    var(--navy-blue) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-section.about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.7;
}

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

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-section ul li a:hover {
  color: var(--teal-light);
}

.footer-logo {
  height: 60px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

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

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

.social-links a:hover {
  background-color: var(--teal);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Page Heroes (for inner pages) */
.page-hero {
  background: url("../img/background.jpg") center 80% / cover no-repeat;
  color: var(--white);
  padding: 150px 20px 80px;
  text-align: center;
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 58, 95, 0.85) 0%,
    rgba(74, 139, 139, 0.75) 100%
  );
}

.page-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .features-grid,
  .testimonials-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .amenities-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .header-contact {
    display: none;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: none;
    padding: 20px;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .welcome-grid,
  .about-grid,
  .contact-grid,
  .service-item {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-item:nth-child(even) {
    direction: ltr;
  }

  .features-grid,
  .testimonials-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 150px 15px 80px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .amenities-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 12px 25px;
    font-size: 0.95rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-30 {
  margin-top: 30px;
}

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

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

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