/* ATS Golf Meadows Lifestyle - CSS */

:root {
  --primary-color: #006336;
  --primary-light: #00874a;
  --primary-dark: #004526;
  --secondary-color: #C49A4A;
  --secondary-light: #d6b26d;
  --accent-color: #1F2933;
  --bg-color: #F7F5EF;
  --text-main: #333333;
  --text-light: #666666;
  --white: #FFFFFF;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  
  --font-primary: 'Sansation', sans-serif;
  --font-heading: 'Bree Serif', serif;
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.15);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--accent-color);
  line-height: 1.2;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

section {
  padding: 5rem 1.5rem;
}

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

/* Utility Classes */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.bg-primary { background-color: var(--primary-color); }
.bg-white { background-color: var(--white); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  font-family: var(--font-primary);
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-full {
  width: 100%;
  font-size: 18px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #FFF;
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.logo-text img {
  width: 60%;
}

/* Mobile Menu Checkbox Hack */
.menu-btn {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  padding: 10px;
}

.navicon {
  background: var(--accent-color);
  display: block;
  height: 2px;
  position: relative;
  transition: background .2s ease-out;
  width: 24px;
}

.navicon:before,
.navicon:after {
  background: var(--accent-color);
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .2s ease-out;
  width: 100%;
}

.navicon:before { top: 8px; }
.navicon:after { top: -8px; }

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--accent-color);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width var(--transition-normal);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--primary-color);
  color: var(--white) !important;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background-color: var(--primary-dark);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  background: url('../images/ats-golf-meadows.jpg') top/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px; /* Offset for fixed header */
  position: relative;
}

.hero-content {
  color: var(--white);
  max-width: 885px;
  padding: 0 1.5rem;
  animation: fadeIn 1s ease-out;
}

.hero-subtitle {
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.hero h1 {
  color: #FFF;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: #006336;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--secondary-color);
  border-radius: 8px;
  z-index: -1;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.stats-container {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.stat-item h4 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Project Highlights */
.bg-gray {
  background-color: #f3f3f3;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.highlight-card {
  background-color: #FFF;
  padding: 2.5rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border-bottom: 3px solid transparent;
}

.highlight-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--secondary-color);
}

.highlight-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.highlight-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Segments */
.segments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.segment-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal);
}

.segment-card:hover {
  box-shadow: var(--shadow-lg);
}

.segment-img {
  height: 250px;
  overflow: hidden;
}

.segment-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.segment-content {
  padding: 2rem;
}

.segment-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.segment-price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.25rem;
}

.segment-features {
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Data Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 700px; /* Ensures scrolling on small screens */
}

.data-table th,
.data-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.data-table th {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr {
  transition: background-color var(--transition-fast);
}

.data-table tbody tr:hover {
  background-color: #fcfcfc;
}

.data-table td {
  color: var(--text-main);
  font-weight: 500;
  white-space: nowrap;
}

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.5px;
}

.status-badge.delivered {
  background-color: #e6f4ea;
  color: #1e8e3e;
}

.status-badge.ready {
  background-color: #e8f0fe;
  color: #1a73e8;
}

.status-badge.upcoming {
  background-color: #fef7e0;
  color: #b06000;
}

.status-badge.construction {
  background-color: #fef7e0;
  color: #333;
}

/* Amenities */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
}

.amenity-item {
  padding: 1.5rem;
  background: var(--white);
  border-radius: 8px;
  transition: all var(--transition-normal);
}

.amenity-item:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-5px);
}

.amenity-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.amenity-item:hover .amenity-icon,
.amenity-item:hover h4 {
  color: var(--white);
}

/* Location */
.location-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.location-map {
  min-height: 400px;
  background: #ddd;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.location-content {
  padding: 3rem;
}

.location-list {
  margin-top: 2rem;
}

.location-list li {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.location-list li:last-child {
  border-bottom: none;
}

.distance {
  font-weight: 600;
  color: var(--primary-color);
}

/* Gallery (Scroll Snapping for Mobile) */
.gallery-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  /* Hide scrollbar */
  scrollbar-width: none; 
  -ms-overflow-style: none;
}

.gallery-container::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 calc(33.333% - 0.66rem);
  scroll-snap-align: start;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--white);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

/* FAQs */
.faqs-container {
  max-width: 800px;
  margin: 0 auto;
}

details {
  background: var(--white);
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

summary {
  padding: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent-color);
  font-size: 20px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-light);
}

/* Contact CTA */
.cta-section {
  background-color: var(--accent-color);
  color: var(--white);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cta-content h2,
.cta-content .section-title::after {
  color: var(--white);
  margin-left: 0;
  left: 0;
  transform: none;
}
.cta-content .section-title {
  text-align: left;
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-family: var(--font-primary);
  transition: border-color 0.3s ease;
  font-size: 15px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Footer */
footer {
  background-color: #111;
  color: var(--white);
  padding: 4rem 1.5rem 2rem;
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  display: block;
  width: 60%;
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #aaa;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.iconn {
  background-color: #00874a;
  width: 30px;
  display: inline-block;
  text-align: center;
  margin-right: 10px;
  border-radius: 4px;
}

.disclaimer {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

.disclaimer ul {
  margin-bottom: 20px;
}

.disclaimer ul li {
  display: inline;
  padding: 0 10px;
}

.disclaimer ul li a {
  color: #FFF;
}

.disclaimer ul li a:hover {
  text-decoration: underline;
}

/* Mobile Sticky Bottom CTA */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 999;
  padding: 0.5rem;
  gap: 0.5rem;
}

.mobile-sticky-cta .btn {
  flex: 1;
  padding: 0.8rem 0;
  font-size: 0.9rem;
}

/* Internal Pages (Blog, Privacy) */
.internal-hero {
  padding: 140px 1.5rem 60px;
  background-color: var(--accent-color);
  color: var(--white);
  text-align: center;
}

.internal-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.internal-hero p {
  color: var(--secondary-color);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Blog Listing */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.blog-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.blog-card-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.blog-card-img-wrapper {
  overflow: hidden;
}

.blog-card-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.8rem;
  display: flex;
  gap: 1rem;
}

.blog-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-title a {
  color: var(--accent-color);
}

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

.blog-excerpt {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
}

.read-more:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Blog Single / Privacy Policy Content */
.text-page-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.article-header {
  margin-top: 2.5rem;
  text-align: center;
  display: inline-block;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.article-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2.5rem;
}

.text-page-content h2 {
  font-size: 35px;
  margin: 2rem 0 1rem;
}

.text-page-content h3 {
  font-size: 28px;
  margin: 1.5rem 0 1rem;
  color: #006336;
}

.blog-content a {
  text-decoration: dashed;
  font-weight: 600;
  color: #7f30bf;
}

.blog-content a:hover {
  text-decoration: underline;
}

.blog-button {
  margin-top: 3rem;
  margin-bottom: 3rem;
  text-align: center;
}

.blog-button a {
  color: #fff;
}

.blog-button a:hover {
  text-decoration: none;
}

.text-page-content p {
  margin-bottom: 1.2rem;
  color: var(--text-light);
  line-height: 1.8;
  font-size: 18px;
}

.text-page-content ul, .text-page-content ol {
  margin-left: 30px;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-light);
}

.text-page-content li {
  list-style-type: disc;
  margin-bottom: 20px;
  font-size: 18px;  
}

.text-page-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .about-grid,
  .location-wrapper,
  .cta-grid {
    grid-template-columns: 1fr;
  }
  
  .location-wrapper {
    display: flex;
    flex-direction: column-reverse;
  }
  
  .gallery-item {
    flex: 0 0 calc(50% - 0.5rem);
  }
}

@media (max-width: 768px) {
  /* Mobile Menu */
  .menu-icon {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    box-shadow: var(--shadow-md);
  }
  
  .nav-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
  }
  
  .nav-menu a {
    display: block;
    padding: 1rem;
  }
  
  .menu-btn:checked ~ .nav-menu {
    max-height: 400px;
  }
  
  .menu-btn:checked ~ .menu-icon .navicon {
    background: transparent;
  }
  
  .menu-btn:checked ~ .menu-icon .navicon:before {
    transform: rotate(-45deg);
    top: 0;
  }
  
  .menu-btn:checked ~ .menu-icon .navicon:after {
    transform: rotate(45deg);
    top: 0;
  }

  /* Typography & Spacing */
  section {
    padding: 3rem 0px;
  }

  sectionnew {
    padding: 3rem 1.25rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .segments-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .gallery-item {
    flex: 0 0 85%;
  }
  
  /* Show Sticky Mobile CTA */
  .mobile-sticky-cta {
    display: flex;
  }
  
  body {
    padding-bottom: 60px; /* Space for sticky CTA */
  }
  
  .cta-content .section-title {
    text-align: center;
  }
  .cta-content .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}
