/* ==========================================================================
   BEAVERSTAY.CA - COZY CANADIAN HERITAGE DESIGN SYSTEM
   Custom, Handcrafted Stylesheet by Antigravity
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette (Cozy Canadian Heritage) */
  --primary: #1b4332;         /* Forest Canopy: Deep premium organic green */
  --primary-light: #2d5a45;   /* Lighter Forest Canopy for hover states */
  --primary-dark: #112e22;    /* Darker green for deep contrast elements */
  --primary-rgb: 27, 67, 50;  
  
  --accent: #b89047;          /* Gold Oak: Rich warm gold-oak craftsmanship tone */
  --accent-light: #cfab65;    /* Lighter gold for high-end contrast */
  --accent-dark: #997530;     /* Darker gold for accessibility text contrast */
  --accent-rgb: 184, 144, 71;

  --bg-warm: #faf8f5;         /* Warm Cream: Soft, elegant background */
  --bg-white: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.75); /* Soft glassmorphism backdrop */
  
  --text-dark: #242526;       /* Deep Charcoal: Highly readable primary text */
  --text-light: #5a6065;      /* Slate Grey for supporting paragraphs */
  --text-muted: #889096;      /* Muted text for captions/labels */
  --error-color: #a63a3a;     /* Sophisticated brick red for error messages */
  --success-color: #2b704c;   /* Forest green success tone */

  /* Borders & Elevations */
  --border-color: rgba(27, 67, 50, 0.08);
  --border-focus: rgba(184, 144, 71, 0.5);
  
  --shadow-sm: 0 4px 12px rgba(27, 67, 50, 0.03);
  --shadow-md: 0 10px 30px rgba(27, 67, 50, 0.06);
  --shadow-lg: 0 20px 50px rgba(27, 67, 50, 0.12);
  --shadow-inset: inset 0 2px 4px rgba(27, 67, 50, 0.03);

  /* Layout Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESETS & STYLING FOUNDATION
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-warm);
  color: var(--text-dark);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid {
  display: grid;
  gap: 32px;
}

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

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

/* Typography & Subheadings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.25;
}

.sub-heading {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.75rem;
  }
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
}

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

.text-white {
  color: var(--bg-warm) !important;
}

.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   3. PREMIUM BUTTONS SYSTEM
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 10px 24px rgba(184, 144, 71, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: var(--bg-warm);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--bg-warm);
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.1);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.125rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   4. NAVIGATION HEADER (Glassmorphic Blur)
   -------------------------------------------------------------------------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(250, 248, 245, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: var(--transition-smooth);
}

.main-header.scrolled {
  background-color: rgba(250, 248, 245, 0.95);
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

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

/* Logo Styling */
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: var(--transition-bounce);
}

.logo-area:hover {
  transform: scale(1.02);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-bounce);
}

.logo-area:hover .brand-logo {
  transform: rotate(10deg);
  border-color: var(--primary);
}

.brand-text {
  display: flex;
  align-items: baseline;
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.brand-tld {
  font-family: 'Outfit', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent);
}

/* Desktop Menu Links */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
  background-color: rgba(27, 67, 50, 0.04);
}

.nav-link.active {
  color: var(--primary);
  background-color: rgba(27, 67, 50, 0.06);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 20px;
  right: 20px;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
}

/* Actions Area */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-actions #cta-header-btn {
  display: none;
}

@media (min-width: 992px) {
  .header-actions #cta-header-btn {
    display: inline-flex;
  }
}

/* Mobile Toggle Hamburger */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  padding: 0;
  z-index: 102;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle .bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition-bounce);
}

.mobile-menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.mobile-menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--bg-warm);
  box-shadow: var(--shadow-lg);
  z-index: 99;
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
  border-left: 1px solid var(--border-color);
}

.mobile-menu.active {
  right: 0;
}

.mobile-nav-link {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: left;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background-color: rgba(27, 67, 50, 0.06);
  color: var(--accent-dark);
  padding-left: 24px;
}

/* Backdrop Overlay for mobile drawer */
.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(17, 46, 34, 0.4);
  backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.menu-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   5. PAGE CONTAINER & NAVIGATION SECTIONS
   -------------------------------------------------------------------------- */
.page-container {
  margin-top: 76px; /* Offset for sticky header */
  flex-grow: 1;
}

/* Section State Switcher */
.page-section {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.page-section.active-section {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: slideUpFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   6. HOME SECTION: HERO & STATS
   -------------------------------------------------------------------------- */
.hero-wrapper {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 80px;
  overflow: hidden;
  border-bottom: 2px solid var(--accent);
}

@media (min-width: 992px) {
  .hero-wrapper {
    min-height: 640px;
  }
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 10s ease;
}

.hero-wrapper:hover .hero-bg {
  transform: scale(1.04);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  color: var(--bg-warm);
}

/* Float Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(184, 144, 71, 0.95);
  color: var(--bg-white);
  padding: 8px 18px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(184, 144, 71, 0.4);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: pulseBadge 3s infinite ease-in-out;
}

.badge-icon {
  width: 16px;
  height: 16px;
}

@keyframes pulseBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--bg-white);
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  max-width: 620px;
  margin: 0 auto 36px;
  color: rgba(250, 248, 245, 0.9);
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.35rem;
  }
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

@media (min-width: 576px) {
  .hero-cta-group {
    flex-direction: row;
  }
}

/* --------------------------------------------------------------------------
   7. FEATURES & VALUES SECTION
   -------------------------------------------------------------------------- */
.features-section {
  padding: 80px 0;
  background-color: var(--bg-warm);
  background-image: radial-gradient(rgba(27, 67, 50, 0.02) 1px, transparent 0);
  background-size: 24px 24px;
}

.section-header {
  margin-bottom: 56px;
}

/* Feature Cards Grid */
.feature-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent);
  transform: scaleY(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(27, 67, 50, 0.08);
}

.feature-card:hover::after {
  transform: scaleY(1);
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  background-color: rgba(27, 67, 50, 0.06);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
  transition: var(--transition-bounce);
}

.feature-card:hover .feature-icon-wrapper {
  background-color: var(--primary);
  color: var(--accent);
  transform: rotate(6deg) scale(1.05);
}

.feature-icon {
  width: 32px;
  height: 32px;
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. ABOUT SECTION: SPLIT IMAGE-TEXT SYSTEM
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 80px 0;
  align-items: center;
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 72px;
  }
}

.about-text-content {
  display: flex;
  flex-direction: column;
}

.about-intro {
  font-size: 1.2rem;
  color: var(--primary-dark);
  line-height: 1.7;
  margin-bottom: 28px;
}

.about-intro strong {
  color: var(--accent-dark);
  font-weight: 700;
}

/* Testimonial Quote Card */
.about-card-quote {
  background: var(--bg-white);
  border-left: 4px solid var(--accent);
  padding: 24px 32px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.about-card-quote::before {
  content: '“';
  position: absolute;
  top: -12px;
  left: 12px;
  font-size: 5rem;
  color: rgba(184, 144, 71, 0.12);
  font-family: serif;
  line-height: 1;
}

.about-card-quote p {
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  z-index: 2;
}

.about-block {
  margin-bottom: 28px;
}

.about-block h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.about-block p {
  color: var(--text-light);
  font-size: 0.975rem;
  margin-bottom: 12px;
}

.signature-line {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary) !important;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  margin-top: 18px;
}

/* Layered Photo Card Frame */
.about-image-area {
  display: flex;
  justify-content: center;
}

.about-photo-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 12px;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.about-photo-wrapper::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: -1;
  pointer-events: none;
}

.about-photo {
  border-radius: calc(var(--radius-lg) - 6px);
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.about-photo-wrapper:hover .about-photo {
  transform: scale(1.015);
}

/* Floating overlay caption card */
.photo-caption-card {
  position: absolute;
  bottom: -24px;
  left: 24px;
  right: 24px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(27, 67, 50, 0.08);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.photo-caption-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.photo-caption-card p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   9. CONTACT SECTION: SPLIT FORMS & INFO CARDS
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 60px 0 100px;
  border: 1px solid var(--border-color);
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

/* Green Side Info Panel */
.contact-info-card {
  background-color: var(--primary);
  background-image: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  background-color: rgba(184, 144, 71, 0.08);
  border-radius: 50%;
  top: -80px;
  right: -80px;
  z-index: 1;
}

.contact-card-desc {
  color: rgba(250, 248, 245, 0.8);
  margin-bottom: 36px;
  font-size: 0.975rem;
}

.info-details-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 2;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

.info-title {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.info-text {
  color: var(--bg-warm);
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-logo-watermark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  color: rgba(255, 255, 255, 0.25);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

.watermark-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  filter: grayscale(1) opacity(0.3);
}

/* Light Side Input Form */
.contact-form-container {
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--bg-white);
}

@media (min-width: 576px) {
  .contact-form-container {
    padding: 56px 48px;
  }
}

.form-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.form-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

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

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(27, 67, 50, 0.12);
  background-color: var(--bg-warm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: rgba(27, 67, 50, 0.25);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background-color: var(--bg-white);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--border-focus);
}

/* Input Fields Validation Rendering */
.form-group.error input,
.form-group.error textarea {
  border-color: var(--error-color);
  background-color: rgba(166, 58, 58, 0.02);
}

.form-group.error input:focus,
.form-group.error textarea:focus {
  box-shadow: 0 0 0 4px rgba(166, 58, 58, 0.15);
}

.error-msg {
  display: none;
  font-size: 0.775rem;
  color: var(--error-color);
  font-weight: 600;
  margin-top: 4px;
}

.form-group.error .error-msg {
  display: block;
  animation: fieldFadeIn 0.3s ease-out forwards;
}

@keyframes fieldFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Submit Button Loading Spinner */
.submit-spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Success Modal/Panel design */
.success-banner {
  background-color: rgba(43, 112, 76, 0.05);
  border: 1.5px solid var(--success-color);
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 24px;
  animation: cardZoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes cardZoomIn {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

.success-icon-wrapper {
  background-color: var(--success-color);
  color: var(--bg-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(43, 112, 76, 0.3);
}

.success-text h4 {
  font-size: 1.05rem;
  color: var(--success-color);
  font-weight: 800;
  margin-bottom: 4px;
}

.success-text p {
  font-size: 0.875rem;
  color: var(--text-dark);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. MAIN FOOTER
   -------------------------------------------------------------------------- */
.main-footer {
  background-color: var(--primary-dark);
  color: rgba(250, 248, 245, 0.8);
  padding: 60px 0 30px;
  border-top: 3px solid var(--accent);
}

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

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-logo .brand-logo {
  width: 38px;
  height: 38px;
}

.footer-logo .brand-name {
  color: var(--bg-warm);
  font-size: 1.35rem;
}

.footer-moto {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(250, 248, 245, 0.65);
  max-width: 320px;
}

.footer-title {
  font-size: 1.05rem;
  color: var(--accent-light);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-link {
  font-family: inherit;
  font-size: 0.95rem;
  color: rgba(250, 248, 245, 0.7);
  text-align: left;
  transition: var(--transition-smooth);
  padding: 0;
}

.footer-nav-link:hover {
  color: var(--bg-white);
  padding-left: 6px;
}

.footer-address {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
  color: rgba(250, 248, 245, 0.7);
}

.footer-email {
  font-size: 0.95rem;
  color: rgba(250, 248, 245, 0.7);
}

.footer-email strong {
  color: var(--accent-light);
}

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

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(250, 248, 245, 0.45);
}
