/* 
=========================================
VISION BUILDERS AUSTRALIA (VB AUSTRALIA)
Premium Custom Homes & Developments
Design System & Master Stylesheet
=========================================
*/

/* --- Google Fonts Import --- */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap");

/* --- Design Tokens / Root Variables --- */
:root {
  /* Backgrounds */
  --color-bg-primary: #ffffff; /* Main Background */
  --color-bg-secondary: #f7f8fa; /* Cards & Sections */
  --color-bg-tertiary: #eef2f6; /* Alternate Sections */

  /* Brand Colors */
  --color-accent: #e31b23; /* Logo Red */
  --color-accent-hover: #c4121b; /* Dark Red */
  --color-accent-rgb: 227, 27, 35;

  /* Text */
  --color-text-dark: #1d1d1d; /* Primary Text */
  --color-text-light: #000000;
  --color-text-muted: #6b7280; /* Secondary Text */

  /* Borders */
  --color-border: #e5e7eb;
  --color-border-hover: rgba(227, 27, 35, 0.25);

  /* Typography */
  --font-title: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, -apple-system, sans-serif;

  /* Transitions & Curves */
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.25s ease;
  --ease-editorial: cubic-bezier(0.76, 0, 0.24, 1);

  /* Spacing & Layout */
  --section-padding: 8rem 2rem;
  --container-max-width: 1400px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;

  /* Shadow */
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.3);
  --shadow-accent-glow: 0 0 30px rgba(197, 168, 128, 0.1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-bg-primary);
  color: var(--color-text-light);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-tertiary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-bg-secondary);
  border: 2px solid var(--color-bg-tertiary);
  border-radius: var(--border-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* --- Typography Utilities --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

p {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

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

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

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

.section-accent-tint {
  background: radial-gradient(
    circle at top right,
    rgba(var(--color-accent-rgb), 0.05),
    transparent 60%
  );
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  :root {
    --section-padding: 5rem 1rem;
  }
}

/* --- Decorative / Luxury UI Elements --- */
.accent-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: inline-block;
  font-weight: 500;
}

.serif-italics {
  font-style: italic;
  font-family: var(--font-title);
}

.line-decor {
  width: 60px;
  height: 1px;
  background-color: var(--color-accent);
  margin-bottom: 2rem;
}

.line-decor.center {
  margin: 0 auto 2rem auto;
}

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

/* --- Navigation Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

.header-scrolled {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  transition: var(--transition-smooth);
}

.header-scrolled .nav-container {
  height: 70px;
}

.logo {
  display: flex;
}
.logo-img {
  width: 150px;
  display: flex;
  height: auto;
}

.logo-main {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  line-height: 1.1;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--color-accent);
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text-light);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Mobile Toggle Hamburger */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1100;
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-light);
  position: absolute;
  transition: var(--transition-fast);
}

.mobile-nav-toggle span:nth-child(1) {
  top: 0;
}
.mobile-nav-toggle span:nth-child(2) {
  top: 9px;
}
.mobile-nav-toggle span:nth-child(3) {
  top: 18px;
}

.mobile-nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.mobile-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

@media (max-width: 992px) {
  .mobile-nav-toggle {
    display: block;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-bg-secondary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: 0.6s var(--ease-editorial);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    border-left: 1px solid var(--color-border);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-actions {
    display: none;
  }
}

/* --- Premium Buttons --- */
.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.btn-solid {
  background-color: var(--color-accent);
  color: var(--color-bg-primary);
  border: 1px solid var(--color-accent);
}

.btn-solid:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: var(--shadow-accent-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.btn-text {
  background: none;
  border: none;
  color: var(--color-accent);
  padding: 0.5rem 0;
  letter-spacing: 0.15em;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.btn-text::after {
  content: "→";
  transition: var(--transition-fast);
}

.btn-text:hover {
  color: var(--color-text-light);
}

.btn-text:hover::after {
  transform: translateX(5px);
}

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

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease-editorial);
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.15) 10%,
    rgba(255, 255, 255, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding-top: 100px;
}

.hero-title {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1.2s 0.3s forwards var(--ease-editorial);
}

.hero-desc {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
  color: var(--color-text-dark);
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1.2s 0.6s forwards var(--ease-editorial);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1.2s 0.9s forwards var(--ease-editorial);
}

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

.hero-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 1rem;
}

.indicator-dot {
  width: 25px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition-fast);
}

.indicator-dot.active {
  background-color: var(--color-accent);
  width: 45px;
}

@media (max-width: 576px) {
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    padding: 0 2rem;
  }
}

/* --- Service Cards / Luxury Grid --- */
.service-card {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  padding: 3rem 2rem;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-premium);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon-box {
  margin-bottom: 2rem;
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(var(--color-accent-rgb), 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--color-accent-rgb), 0.2);
}

.service-icon-box svg {
  width: 30px;
  height: 30px;
  stroke: var(--color-accent);
}

.service-title {
  margin-bottom: 1rem;
}

/* --- Featured Project Panel --- */
.featured-project {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-top: 3rem;
}

.featured-img-container {
  height: 100%;
  min-height: 450px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: var(--transition-smooth);
}

.featured-img-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(220, 220, 220, 0.4), transparent);
}

.featured-project:hover .featured-img-container {
  transform: scale(1.02);
}

.featured-info {
  padding: 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 992px) {
  .featured-info {
    padding: 2.5rem;
  }
  .featured-img-container {
    min-height: 300px;
  }
}

.featured-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.5rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.meta-value {
  font-size: 1.1rem;
  font-family: var(--font-title);
  color: var(--color-accent);
}

/* --- Process Timeline Steps --- */
.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 4rem auto 0 auto;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50px;
  width: 1px;
  background-color: var(--color-border);
}

.process-step {
  position: relative;
  display: flex;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-number {
  width: 100px;
  height: 100px;
  min-width: 100px;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--color-accent);
  z-index: 2;
  transition: var(--transition-smooth);
  box-shadow: 0 0 0 10px var(--color-bg-primary);
}

.process-step:hover .process-number {
  background-color: var(--color-accent);
  color: var(--color-bg-primary);
  box-shadow:
    0 0 0 10px var(--color-bg-primary),
    var(--shadow-accent-glow);
}

.process-detail {
  padding-top: 1rem;
}

.process-detail h3 {
  font-weight: 300;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .process-timeline::before {
    left: 25px;
  }
  .process-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 1.25rem;
    box-shadow: 0 0 0 5px var(--color-bg-primary);
  }
  .process-step {
    gap: 1.5rem;
  }
}

/* --- Portfolio Gallery Filter & Grid --- */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 0.6rem 1.8rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--color-accent);
  color: var(--color-text-light);
  background-color: rgba(var(--color-accent-rgb), 0.05);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(250, 250, 250, 0.95) 0%,
    rgba(250, 250, 250, 0.5) 60%,
    transparent 100%
  );
  opacity: 0;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
}

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

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

.gallery-title {
  font-size: 1.6rem;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
}

.gallery-loc {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

/* --- Stats & Counters --- */
.stats-section {
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 5rem 0;
}

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

.stat-num {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-family: var(--font-title);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.stat-desc {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
}

/* --- Testimonials Section --- */
.testimonial-slider {
  max-width: 800px;
  margin: 3rem auto 0 auto;
  position: relative;
  text-align: center;
}

.testimonial-slide {
  display: none;
  animation: fadeIn 0.8s ease forwards;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-quote {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.4;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  font-weight: 300;
}

.testimonial-author {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  font-weight: 600;
}

.testimonial-loc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial-nav-btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.testimonial-nav-btn:hover {
  border-color: var(--color-accent);
  background-color: rgba(var(--color-accent-rgb), 0.05);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- FAQ Accordion --- */
.faq-container {
  max-width: 900px;
  margin: 4rem auto 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.5rem;
  background-color: var(--color-bg-secondary);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-header {
  padding: 1.5rem 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.faq-header:hover {
  background-color: rgba(var(--color-accent-rgb), 0.02);
}

.faq-question {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--color-text-light);
}

.faq-toggle {
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.25rem;
  transition: var(--transition-smooth);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-editorial);
}

.faq-content {
  padding: 0 2rem 2.5rem 2rem;
  border-top: 1px solid transparent;
}

.faq-item.active {
  border-color: var(--color-border-hover);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-item.active .faq-body {
  max-height: 350px;
}

/* --- Elegant Form Fields --- */
.contact-form-card {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 4rem 3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  transition: var(--transition-fast);
}

.form-control {
  width: 100%;
  box-sizing: border-box;
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  padding: 1rem 1.2rem;
  color: var(--color-text-light);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
  .contact-form-card {
    padding: 2.5rem 1.5rem;
  }
}

/* Custom Checkbox/Radio grid for budget selector */
.budget-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.budget-option {
  position: relative;
}

.budget-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.budget-label {
  display: block;
  padding: 0.75rem 1rem;
  text-align: center;
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-fast);
  color: var(--color-text-muted);
}

.budget-option input:checked + .budget-label {
  border-color: var(--color-accent);
  background-color: rgba(var(--color-accent-rgb), 0.05);
  color: var(--color-accent);
}

.budget-option:hover .budget-label {
  border-color: rgba(var(--color-accent-rgb), 0.5);
  color: var(--color-text-light);
}

/* Toast Message */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-accent);
  border-radius: var(--border-radius-sm);
  padding: 1rem 2rem;
  box-shadow: var(--shadow-premium);
  z-index: 10000;
  transform: translateY(150%);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toast.show {
  transform: translateY(0);
}

.toast-icon {
  color: var(--color-accent);
}

/* --- Map Simulation --- */
.map-simulation {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 100%;
  min-height: 450px;
  background-color: var(--color-bg-secondary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, #fff 10%, #fff 90%);
  opacity: 0.85;
}

.map-line {
  position: absolute;
  border: 1px dashed rgba(71, 68, 65, 0.15);
  border-radius: 50%;
}

.map-line-1 {
  width: 300px;
  height: 300px;
}
.map-line-2 {
  width: 500px;
  height: 500px;
}

.map-pin {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.map-pin-pulse {
  width: 20px;
  height: 20px;
  background-color: var(--color-accent);
  border-radius: 50%;
  position: absolute;
  top: 0;
  animation: pinPulse 2s infinite ease-out;
}

.map-pin-dot {
  width: 20px;
  height: 20px;
  background-color: var(--color-accent);
  border: 3px solid var(--color-text-light);
  border-radius: 50%;
  z-index: 3;
}

.map-pin-label {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  padding: 0.75rem 1.2rem;
  border-radius: var(--border-radius-sm);
  margin-top: 1rem;
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--color-text-light);
  text-align: center;
  z-index: 3;
  box-shadow: var(--shadow-premium);
}

.map-pin-label span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-top: 2px;
}

@keyframes pinPulse {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(3.5);
    opacity: 0;
  }
}

/* --- Building Cost Estimator Component (Services Page) --- */
.estimator-card {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 3rem;
  margin-top: 3rem;
}
.estimator-control-row {
  margin-bottom: 2.5rem;
}
.range-slider-wrapper {
  position: relative;
  padding-top: 1.5rem;
}
.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--color-border);
  outline: none;
  margin: 1.5rem 0;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  border: 3px solid var(--color-bg-secondary);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: var(--transition-fast);
}
.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--color-accent-hover);
}
.range-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.estimator-result {
  border-top: 1px solid var(--color-border);
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.result-calc {
  display: flex;
  flex-direction: column;
}
.result-val {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-family: var(--font-title);
  color: var(--color-accent);
  line-height: 1;
  font-weight: 300;
}
@media (max-width: 576px) {
  .estimator-card {
    padding: 1.5rem;
  }
  .estimator-result {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Premium Footer --- */
.footer {
  background-color: var(--color-bg-tertiary);
  border-top: 1px solid var(--color-border);
  padding: 6rem 0 3rem 0;
}

.footer-top {
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-accent);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-legal {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-compliance {
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
