/*
Theme Name: Amethyst Springs
Theme URI: https://amethystsprings.co.ke
Description: Premium child theme for Amethyst Springs luxury apartments in Westlands, Nairobi. Built on Hello Elementor.
Author: Amethyst Springs Development
Author URI: https://amethystsprings.co.ke
Template: hello-elementor
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: amethyst-springs
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES (Brand Tokens)
   Change these to update colors globally across the entire site.
   ========================================================================== */

:root {
  /* Brand Colors */
  --as-amethyst: #5B2C6F;
  --as-amethyst-light: #7D3C98;
  --as-amethyst-dark: #4A235A;
  --as-gold: #C9A84C;
  --as-gold-light: #D4BA6A;
  --as-gold-dark: #B8973E;

  /* Neutrals */
  --as-charcoal: #2C2C2C;
  --as-dark-grey: #4A4A4A;
  --as-medium-grey: #888888;
  --as-light-grey: #F5F5F5;
  --as-off-white: #FAFAFA;
  --as-white: #FFFFFF;

  /* Typography */
  --as-font-heading: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --as-font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --as-font-accent: 'Libre Baskerville', Georgia, serif;

  /* Spacing Scale */
  --as-space-xs: 8px;
  --as-space-sm: 16px;
  --as-space-md: 24px;
  --as-space-lg: 48px;
  --as-space-xl: 80px;
  --as-space-2xl: 120px;

  /* Layout */
  --as-container-max: 1200px;
  --as-container-narrow: 900px;

  /* Transitions */
  --as-transition-fast: 150ms ease;
  --as-transition-base: 300ms ease;
  --as-transition-slow: 500ms ease;

  /* Shadows */
  --as-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --as-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --as-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);

  /* Border Radius */
  --as-radius-sm: 4px;
  --as-radius-md: 8px;
  --as-radius-lg: 12px;
}


/* ==========================================================================
   BASE / RESET
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--as-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--as-charcoal);
  background-color: var(--as-white);
  margin: 0;
  padding: 0;
}

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

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

a:hover {
  color: var(--as-amethyst-light);
}


/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--as-font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--as-charcoal);
  margin-top: 0;
}

h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
  font-weight: 500;
}

p {
  margin-top: 0;
  margin-bottom: 1em;
}

.as-section-label {
  font-family: var(--as-font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--as-amethyst);
  margin-bottom: var(--as-space-sm);
}

.as-accent-text {
  font-family: var(--as-font-accent);
  font-style: italic;
  color: var(--as-dark-grey);
}

/* Desktop typography scale */
@media (min-width: 768px) {
  body {
    font-size: 17px;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 3rem;
  }
}


/* ==========================================================================
   LAYOUT
   ========================================================================== */

.as-container {
  width: 100%;
  max-width: var(--as-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--as-space-md);
  padding-right: var(--as-space-md);
}

.as-container--narrow {
  max-width: var(--as-container-narrow);
}

.as-section {
  padding-top: var(--as-space-xl);
  padding-bottom: var(--as-space-xl);
}

.as-section--light {
  background-color: var(--as-light-grey);
}

.as-section--dark {
  background-color: var(--as-charcoal);
  color: var(--as-white);
}

.as-section--dark h2,
.as-section--dark h3,
.as-section--dark h4 {
  color: var(--as-white);
}

.as-section--dark .as-section-label {
  color: var(--as-gold);
}

.as-section--amethyst {
  background-color: var(--as-amethyst-dark);
  color: var(--as-white);
}

.as-section--amethyst h2,
.as-section--amethyst h3 {
  color: var(--as-white);
}

@media (min-width: 768px) {
  .as-section {
    padding-top: var(--as-space-2xl);
    padding-bottom: var(--as-space-2xl);
  }
}

/* Two-column layout */
.as-grid {
  display: grid;
  gap: var(--as-space-lg);
}

.as-grid--2col {
  grid-template-columns: 1fr;
}

.as-grid--3col {
  grid-template-columns: 1fr;
}

.as-grid--60-40 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .as-grid--2col {
    grid-template-columns: 1fr 1fr;
  }

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

  .as-grid--60-40 {
    grid-template-columns: 3fr 2fr;
  }
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.as-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--as-font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--as-radius-sm);
  cursor: pointer;
  transition: all var(--as-transition-fast);
  line-height: 1;
}

/* Primary button - amethyst solid */
.as-btn--primary {
  background-color: var(--as-amethyst);
  color: var(--as-white);
  border-color: var(--as-amethyst);
}

.as-btn--primary:hover {
  background-color: var(--as-amethyst-dark);
  border-color: var(--as-amethyst-dark);
  color: var(--as-white);
}

/* Secondary button - outline */
.as-btn--secondary {
  background-color: transparent;
  color: var(--as-amethyst);
  border-color: var(--as-amethyst);
}

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

/* Gold accent button */
.as-btn--gold {
  background-color: var(--as-gold);
  color: var(--as-charcoal);
  border-color: var(--as-gold);
}

.as-btn--gold:hover {
  background-color: var(--as-gold-dark);
  border-color: var(--as-gold-dark);
}

/* Ghost/text link button */
.as-btn--ghost {
  background: none;
  border: none;
  color: var(--as-amethyst);
  padding: 8px 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.as-btn--ghost:hover {
  color: var(--as-amethyst-dark);
}

.as-btn--ghost::after {
  content: '\2192';
  transition: transform var(--as-transition-fast);
}

.as-btn--ghost:hover::after {
  transform: translateX(4px);
}

/* White button for dark sections */
.as-btn--white {
  background-color: var(--as-white);
  color: var(--as-amethyst);
  border-color: var(--as-white);
}

.as-btn--white:hover {
  background-color: var(--as-light-grey);
  border-color: var(--as-light-grey);
  color: var(--as-amethyst);
}

/* Button group */
.as-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--as-space-sm);
}


/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */

.as-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  transition: all var(--as-transition-base);
  border-bottom: 1px solid transparent;
}

.as-header.scrolled {
  box-shadow: var(--as-shadow-sm);
  border-bottom-color: var(--as-light-grey);
}

.as-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--as-container-max);
  margin: 0 auto;
  padding: 16px var(--as-space-md);
  transition: padding var(--as-transition-base);
}

.as-header.scrolled .as-header__inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

.as-header__logo img {
  height: 40px;
  width: auto;
  transition: height var(--as-transition-base);
}

.as-header.scrolled .as-header__logo img {
  height: 32px;
}

/* Desktop navigation */
.as-nav {
  display: none;
}

.as-nav__list {
  display: flex;
  align-items: center;
  gap: var(--as-space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.as-nav__link {
  font-family: var(--as-font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--as-charcoal);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 0;
  position: relative;
  transition: color var(--as-transition-fast);
}

.as-nav__link:hover,
.as-nav__link--active {
  color: var(--as-amethyst);
}

.as-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--as-amethyst);
  transform: scaleX(0);
  transition: transform var(--as-transition-fast);
}

.as-nav__link:hover::after,
.as-nav__link--active::after {
  transform: scaleX(1);
}

/* Dropdown */
.as-nav__item--dropdown {
  position: relative;
}

.as-nav__dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--as-white);
  min-width: 200px;
  padding: 12px 0;
  box-shadow: var(--as-shadow-md);
  border-radius: var(--as-radius-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--as-transition-fast);
  list-style: none;
}

.as-nav__item--dropdown:hover .as-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.as-nav__dropdown a {
  display: block;
  padding: 8px 20px;
  font-size: 0.8125rem;
  color: var(--as-charcoal);
  text-transform: none;
  letter-spacing: 0;
}

.as-nav__dropdown a:hover {
  color: var(--as-amethyst);
  background-color: var(--as-light-grey);
}

/* Header CTA */
.as-header__cta {
  display: none;
}

@media (min-width: 1024px) {
  .as-nav {
    display: block;
  }

  .as-header__cta {
    display: inline-flex;
  }

  .as-mobile-toggle {
    display: none;
  }
}

/* Mobile menu toggle */
.as-mobile-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.as-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--as-charcoal);
  transition: all var(--as-transition-fast);
}

.as-mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.as-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.as-mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile navigation panel */
.as-mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: var(--as-white);
  z-index: 999;
  padding: 80px var(--as-space-md) var(--as-space-lg);
  transition: right var(--as-transition-base);
  overflow-y: auto;
}

.as-mobile-nav.active {
  right: 0;
}

.as-mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--as-transition-base);
}

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

.as-mobile-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.as-mobile-nav__link {
  display: block;
  padding: 14px 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--as-charcoal);
  border-bottom: 1px solid var(--as-light-grey);
}

.as-mobile-nav__link:hover {
  color: var(--as-amethyst);
}

.as-mobile-nav__cta {
  margin-top: var(--as-space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--as-space-sm);
}


/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.as-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--as-white);
  overflow: hidden;
  padding-top: 80px; /* header offset */
}

.as-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.as-hero__bg img,
.as-hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.as-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

.as-hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--as-space-md);
}

.as-hero__title {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--as-white);
  margin-bottom: var(--as-space-md);
  letter-spacing: -0.02em;
}

.as-hero__subtitle {
  font-size: 1.125rem;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: var(--as-space-sm);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.as-hero__description {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: var(--as-space-lg);
}

@media (min-width: 768px) {
  .as-hero__title {
    font-size: 4rem;
  }

  .as-hero__subtitle {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .as-hero__title {
    font-size: 5rem;
  }
}


/* ==========================================================================
   CARDS
   ========================================================================== */

.as-card {
  background: var(--as-white);
  border-radius: var(--as-radius-md);
  overflow: hidden;
  transition: transform var(--as-transition-base), box-shadow var(--as-transition-base);
}

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

.as-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

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

.as-card__body {
  padding: var(--as-space-md);
}

.as-card__title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.as-card__meta {
  font-size: 0.875rem;
  color: var(--as-medium-grey);
  margin-bottom: 12px;
}

.as-card__text {
  font-size: 0.9375rem;
  color: var(--as-dark-grey);
  margin-bottom: 16px;
}

/* Icon feature card */
.as-feature-card {
  text-align: center;
  padding: var(--as-space-lg) var(--as-space-md);
}

.as-feature-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--as-space-sm);
  color: var(--as-amethyst);
}

.as-feature-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.as-feature-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.as-feature-card__text {
  font-size: 0.9375rem;
  color: var(--as-dark-grey);
  line-height: 1.6;
}


/* ==========================================================================
   UNIT/RESIDENCE CARDS
   ========================================================================== */

.as-unit-card {
  background: var(--as-white);
  border: 1px solid var(--as-light-grey);
  border-radius: var(--as-radius-md);
  overflow: hidden;
  transition: border-color var(--as-transition-fast);
}

.as-unit-card:hover {
  border-color: var(--as-amethyst);
}

.as-unit-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.as-unit-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.as-unit-card__body {
  padding: var(--as-space-md);
}

.as-unit-card__name {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.as-unit-card__size {
  font-size: 0.875rem;
  color: var(--as-medium-grey);
  margin-bottom: 12px;
}

.as-unit-card__price {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--as-amethyst);
  margin-bottom: 16px;
}

.as-unit-card__status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 100px;
  background-color: #E8F5E9;
  color: #2E7D32;
}

.as-unit-card__status--limited {
  background-color: #FFF3E0;
  color: #E65100;
}

.as-unit-card__status--sold {
  background-color: var(--as-light-grey);
  color: var(--as-medium-grey);
}


/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.as-faq {
  border-bottom: 1px solid var(--as-light-grey);
}

.as-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--as-font-heading);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--as-charcoal);
  text-align: left;
  transition: color var(--as-transition-fast);
}

.as-faq__question:hover {
  color: var(--as-amethyst);
}

.as-faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-left: 16px;
  transition: transform var(--as-transition-fast);
}

.as-faq.active .as-faq__icon {
  transform: rotate(45deg);
}

.as-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--as-transition-base);
}

.as-faq.active .as-faq__answer {
  max-height: 500px;
}

.as-faq__answer-inner {
  padding-bottom: 20px;
  font-size: 0.9375rem;
  color: var(--as-dark-grey);
  line-height: 1.7;
}


/* ==========================================================================
   FORMS
   ========================================================================== */

.as-form__group {
  margin-bottom: var(--as-space-sm);
}

.as-form__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--as-charcoal);
  margin-bottom: 6px;
}

.as-form__input,
.as-form__select,
.as-form__textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--as-font-body);
  font-size: 1rem;
  color: var(--as-charcoal);
  background-color: var(--as-white);
  border: 1px solid #D0D0D0;
  border-radius: var(--as-radius-sm);
  transition: border-color var(--as-transition-fast), box-shadow var(--as-transition-fast);
  appearance: none;
}

.as-form__input:focus,
.as-form__select:focus,
.as-form__textarea:focus {
  outline: none;
  border-color: var(--as-amethyst);
  box-shadow: 0 0 0 3px rgba(91, 44, 111, 0.1);
}

.as-form__textarea {
  min-height: 120px;
  resize: vertical;
}

.as-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--as-dark-grey);
}

.as-form__checkbox input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--as-amethyst);
}

.as-form__hint {
  font-size: 0.75rem;
  color: var(--as-medium-grey);
  margin-top: 4px;
}

.as-form__error {
  font-size: 0.75rem;
  color: #D32F2F;
  margin-top: 4px;
}


/* ==========================================================================
   GALLERY
   ========================================================================== */

.as-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 768px) {
  .as-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (min-width: 1024px) {
  .as-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.as-gallery__item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--as-radius-sm);
  cursor: pointer;
}

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

.as-gallery__item:hover img {
  transform: scale(1.08);
}


/* ==========================================================================
   PRICING TABLE
   ========================================================================== */

.as-pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.as-pricing-table thead {
  background-color: var(--as-amethyst);
  color: var(--as-white);
}

.as-pricing-table th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.as-pricing-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--as-light-grey);
}

.as-pricing-table tbody tr:hover {
  background-color: var(--as-light-grey);
}

.as-pricing-table .price {
  font-weight: 600;
  color: var(--as-amethyst);
}


/* ==========================================================================
   PAYMENT PLAN TIMELINE
   ========================================================================== */

.as-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 32px;
}

.as-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--as-amethyst);
}

.as-timeline__step {
  position: relative;
  padding-bottom: var(--as-space-md);
}

.as-timeline__step::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--as-amethyst);
  border: 3px solid var(--as-white);
  box-shadow: 0 0 0 2px var(--as-amethyst);
}

.as-timeline__title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.as-timeline__detail {
  font-size: 0.875rem;
  color: var(--as-dark-grey);
}


/* ==========================================================================
   PROXIMITY / DISTANCE MATRIX
   ========================================================================== */

.as-proximity {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--as-space-sm);
}

@media (min-width: 768px) {
  .as-proximity {
    grid-template-columns: 1fr 1fr;
  }
}

.as-proximity__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--as-light-grey);
}

.as-proximity__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--as-light-grey);
  color: var(--as-amethyst);
}

.as-proximity__name {
  flex: 1;
  font-weight: 500;
}

.as-proximity__time {
  font-size: 0.875rem;
  color: var(--as-medium-grey);
  white-space: nowrap;
}


/* ==========================================================================
   STATS / COUNTER ROW
   ========================================================================== */

.as-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--as-space-md);
  text-align: center;
}

@media (min-width: 768px) {
  .as-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.as-stat__number {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--as-gold);
  line-height: 1;
  margin-bottom: 8px;
}

.as-stat__label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--as-medium-grey);
}


/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.as-testimonial {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: var(--as-space-lg) var(--as-space-md);
}

.as-testimonial__quote {
  font-family: var(--as-font-accent);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--as-charcoal);
  margin-bottom: var(--as-space-md);
}

.as-testimonial__quote::before {
  content: '\201C';
  font-size: 3rem;
  line-height: 0;
  vertical-align: -0.5em;
  color: var(--as-amethyst);
  margin-right: 4px;
}

.as-testimonial__author {
  font-weight: 600;
  font-size: 0.9375rem;
}

.as-testimonial__title {
  font-size: 0.8125rem;
  color: var(--as-medium-grey);
}


/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */

.as-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background-color: #25D366;
  color: var(--as-white);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all var(--as-transition-fast);
}

.as-whatsapp:hover {
  background-color: #1EBE5A;
  color: var(--as-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.as-whatsapp__icon {
  width: 24px;
  height: 24px;
}

.as-whatsapp__text {
  display: none;
}

@media (min-width: 768px) {
  .as-whatsapp__text {
    display: inline;
  }
}

/* Offset WhatsApp button when sticky bar is visible */
.as-sticky-bar-visible .as-whatsapp {
  bottom: 88px;
}


/* ==========================================================================
   STICKY CTA BAR
   ========================================================================== */

.as-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background-color: var(--as-white);
  border-top: 1px solid var(--as-light-grey);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(100%);
  transition: transform var(--as-transition-base);
  padding: 12px var(--as-space-md);
}

.as-sticky-bar.visible {
  transform: translateY(0);
}

.as-sticky-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--as-container-max);
  margin: 0 auto;
  gap: var(--as-space-sm);
}

.as-sticky-bar__text {
  display: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--as-charcoal);
}

.as-sticky-bar__actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.as-sticky-bar__actions .as-btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 0.75rem;
}

.as-sticky-bar__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--as-medium-grey);
  font-size: 1.25rem;
  line-height: 1;
}

@media (min-width: 768px) {
  .as-sticky-bar__text {
    display: block;
  }

  .as-sticky-bar__actions {
    width: auto;
  }

  .as-sticky-bar__actions .as-btn {
    flex: none;
  }
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.as-footer {
  background-color: var(--as-charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--as-space-xl);
  padding-bottom: var(--as-space-lg);
}

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

.as-footer a:hover {
  color: var(--as-white);
}

.as-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--as-space-lg);
  margin-bottom: var(--as-space-xl);
}

@media (min-width: 768px) {
  .as-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .as-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.as-footer__heading {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--as-white);
  margin-bottom: var(--as-space-sm);
}

.as-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.as-footer__list li {
  margin-bottom: 10px;
}

.as-footer__list a {
  font-size: 0.9375rem;
}

.as-footer__brand p {
  font-size: 0.9375rem;
  margin-bottom: var(--as-space-sm);
}

.as-footer__social {
  display: flex;
  gap: 12px;
}

.as-footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--as-transition-fast);
}

.as-footer__social a:hover {
  background-color: var(--as-amethyst);
  border-color: var(--as-amethyst);
}

.as-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--as-space-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
}


/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */

.as-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--as-transition-slow), transform var(--as-transition-slow);
}

.as-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.as-animate--delay-1 { transition-delay: 100ms; }
.as-animate--delay-2 { transition-delay: 200ms; }
.as-animate--delay-3 { transition-delay: 300ms; }
.as-animate--delay-4 { transition-delay: 400ms; }


/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.as-breadcrumbs {
  padding: 12px 0;
  font-size: 0.8125rem;
  color: var(--as-medium-grey);
}

.as-breadcrumbs a {
  color: var(--as-medium-grey);
}

.as-breadcrumbs a:hover {
  color: var(--as-amethyst);
}

.as-breadcrumbs__separator {
  margin: 0 8px;
  color: var(--as-medium-grey);
}


/* ==========================================================================
   404 PAGE
   ========================================================================== */

.as-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--as-space-xl) var(--as-space-md);
}

.as-404__code {
  font-size: 6rem;
  font-weight: 300;
  color: var(--as-amethyst);
  line-height: 1;
  margin-bottom: var(--as-space-sm);
}

.as-404__title {
  font-size: 1.5rem;
  margin-bottom: var(--as-space-sm);
}

.as-404__text {
  color: var(--as-dark-grey);
  margin-bottom: var(--as-space-lg);
}


/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.as-text-center { text-align: center; }
.as-text-left { text-align: left; }
.as-text-right { text-align: right; }

.as-mb-0 { margin-bottom: 0; }
.as-mb-sm { margin-bottom: var(--as-space-sm); }
.as-mb-md { margin-bottom: var(--as-space-md); }
.as-mb-lg { margin-bottom: var(--as-space-lg); }
.as-mb-xl { margin-bottom: var(--as-space-xl); }

.as-mt-0 { margin-top: 0; }
.as-mt-lg { margin-top: var(--as-space-lg); }

.as-hidden-mobile { display: none; }

@media (min-width: 768px) {
  .as-hidden-mobile { display: block; }
  .as-hidden-desktop { display: none; }
}

.as-gold-line {
  width: 48px;
  height: 2px;
  background-color: var(--as-gold);
  margin-bottom: var(--as-space-sm);
}

.as-gold-line--center {
  margin-left: auto;
  margin-right: auto;
}

/* Screen reader only */
.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;
}
