/* 
* CapitalVista - Main Stylesheet
* Version 1.0.0
*/

/* ==================== ROOT VARIABLES ==================== */
:root {
  /* Primary Colors - Tetrad Scheme */
  --primary-color: #1e4b8c;
  --primary-dark: #0a325e;
  --primary-light: #3873c5;

  --secondary-color: #8c1e4b;
  --secondary-dark: #5e0a32;
  --secondary-light: #c53873;

  --tertiary-color: #4b8c1e;
  --tertiary-dark: #325e0a;
  --tertiary-light: #73c538;

  --quaternary-color: #8c4b1e;
  --quaternary-dark: #5e320a;
  --quaternary-light: #c57338;

  /* Neutral Colors */
  --white: #ffffff;
  --offwhite: #f8f9fa;
  --gray-100: #f0f2f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --black: #000000;

  /* Fonts */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
  --space-xxxl: 5rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 15px 25px rgba(0, 0, 0, 0.15), 0 5px 10px rgba(0, 0, 0, 0.05);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-index layers */
  --z-negative: -1;
  --z-low: 10;
  --z-mid: 100;
  --z-high: 1000;
  --z-highest: 10000;
}

/* ==================== GLOBAL STYLES ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--gray-900);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--space-md);
}

ul, ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

blockquote {
  font-style: italic;
  border-left: 4px solid var(--primary-color);
  padding-left: var(--space-md);
  margin-left: 0;
  margin-bottom: var(--space-md);
}

/* ==================== UTILITY CLASSES ==================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

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

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

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

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

.justify-content-between {
  justify-content: space-between;
}

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

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

.mb-1 {
  margin-bottom: var(--space-xs);
}

.mb-2 {
  margin-bottom: var(--space-sm);
}

.mb-3 {
  margin-bottom: var(--space-md);
}

.mb-4 {
  margin-bottom: var(--space-lg);
}

.mb-5 {
  margin-bottom: var(--space-xl);
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: var(--space-xs);
}

.mt-2 {
  margin-top: var(--space-sm);
}

.mt-3 {
  margin-top: var(--space-md);
}

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

.mt-5 {
  margin-top: var(--space-xl);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
  font-weight: 600;
  color: var(--gray-900);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin: var(--space-sm) auto 0;
}

/* ==================== BUTTONS ==================== */
.btn, button, input[type='submit'] {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease-out, height 0.6s ease-out;
}

.btn:hover::before {
  width: 300%;
  height: 300%;
}

.btn:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

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

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
}

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

.btn-tertiary:hover, .btn-tertiary:focus {
  background-color: var(--tertiary-dark);
  border-color: var(--tertiary-dark);
  color: var(--white);
  text-decoration: none;
}

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

.btn-quaternary:hover, .btn-quaternary:focus {
  background-color: var(--quaternary-dark);
  border-color: var(--quaternary-dark);
  color: var(--white);
  text-decoration: none;
}

/* ==================== HEADER & NAVIGATION ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: var(--z-high);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
}

.header.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo h1 {
  margin-bottom: 0;
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

.logo:hover h1 {
  color: var(--primary-dark);
  text-decoration: none;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav li {
  margin-left: var(--space-lg);
}

.desktop-nav a {
  display: block;
  padding: 0.5rem 0;
  color: var(--gray-800);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-medium);
}

.desktop-nav a:hover, .desktop-nav a:focus {
  color: var(--primary-color);
  text-decoration: none;
}

.desktop-nav a:hover::after, .desktop-nav a:focus::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  padding: var(--space-md) 0;
  z-index: var(--z-high);
  transform: translateY(-150%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  margin-bottom: var(--space-sm);
}

.mobile-menu a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  color: var(--gray-800);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.mobile-menu a:hover, .mobile-menu a:focus {
  background-color: var(--gray-100);
  color: var(--primary-color);
  text-decoration: none;
}

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 8rem 0;
  margin-top: 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
  z-index: var(--z-negative);
}

.hero-content {
  max-width: 700px;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
}

/* ==================== ABOUT/HISTORY SECTION ==================== */
.about-section {
  padding: var(--space-xxl) 0;
  background-color: var(--offwhite);
}

.history-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  align-items: center;
}

.history-text {
  flex: 1;
  min-width: 300px;
}

.history-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.history-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-medium);
  object-fit: cover;
}

.history-image img:hover {
  transform: scale(1.02);
}

/* About Detailed Page */
.about-detailed {
  padding: var(--space-xxl) 0;
}

.about-section-item {
  margin-bottom: var(--space-xxl);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  align-items: center;
}

.about-content.reverse {
  flex-direction: row-reverse;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.values-list {
  list-style: none;
  padding-left: 0;
}

.values-list li {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-lg);
  position: relative;
}

.values-list li::before {
  content: '•';
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ==================== PROCESS SECTION ==================== */
.process-section {
  padding: var(--space-xxl) 0;
  position: relative;
  overflow: hidden;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto var(--space-xxl);
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 3px;
  background-color: var(--primary-light);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: var(--space-xl);
}

.timeline-marker {
  position: absolute;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white);
  border: 3px solid var(--primary-color);
  z-index: 1;
  transition: transform var(--transition-medium);
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.1);
  background-color: var(--primary-light);
}

.timeline-content {
  padding: var(--space-lg);
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
}

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

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

.process-image {
  text-align: center;
  margin-top: var(--space-xl);
}

.process-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: cover;
}

/* ==================== SUSTAINABILITY SECTION ==================== */
.sustainability-section {
  padding: var(--space-xxl) 0;
  background-color: var(--gray-100);
  position: relative;
  overflow: hidden;
}

.sustainability-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  align-items: center;
}

.sustainability-text {
  flex: 1;
  min-width: 300px;
}

.sustainability-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sustainability-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-medium);
  object-fit: cover;
}

.sustainability-image img:hover {
  transform: scale(1.02);
}

/* ==================== RESOURCES SECTION ==================== */
.resources-section {
  padding: var(--space-xxl) 0;
}

.resources-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.resource-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.resource-title {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.resource-description {
  flex-grow: 1;
  margin-bottom: var(--space-md);
}

.resource-link {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  position: relative;
  padding-right: 1.5rem;
}

.resource-link::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-fast);
}

.resource-link:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.resource-link:hover::after {
  transform: translate(5px, -50%);
}

/* ==================== TEAM SECTION ==================== */
.team-section {
  padding: var(--space-xxl) 0;
  background-color: var(--offwhite);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.team-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

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

.card-content {
  padding: var(--space-lg);
  text-align: center;
}

.card-content h3 {
  margin-bottom: var(--space-xs);
  color: var(--gray-900);
}

.team-role {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.team-description {
  color: var(--gray-700);
}

/* Team Culture */
.team-culture {
  padding: var(--space-xxl) 0;
}

.culture-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  align-items: center;
}

.culture-text {
  flex: 1;
  min-width: 300px;
}

.culture-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.culture-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* Achievements */
.achievements-section {
  padding: var(--space-xxl) 0;
  background-color: var(--gray-100);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.achievement-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.achievement-card:hover {
  transform: translateY(-5px);
}

.achievement-icon {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-md);
  display: flex;
  justify-content: center;
  align-items: center;
}

.achievement-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ==================== STORIES SECTION ==================== */
.stories-section {
  padding: var(--space-xxl) 0;
  background-color: var(--white);
}

.stories-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.story-slide {
  padding: var(--space-md);
}

.story-content {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.story-content::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  font-family: var(--font-heading);
  color: var(--primary-light);
  opacity: 0.2;
  line-height: 1;
}

.story-quote p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.story-author {
  display: flex;
  align-items: center;
}

.story-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: var(--space-md);
  object-fit: cover;
}

.story-author h4 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.story-author p {
  margin-bottom: 0;
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* ==================== MEDIA SECTION ==================== */
.media-section {
  padding: var(--space-xxl) 0;
  background-color: var(--gray-100);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.media-item {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.media-item:hover {
  transform: translateY(-5px);
}

.media-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.media-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.media-item:hover .media-image img {
  transform: scale(1.05);
}

.media-content {
  padding: var(--space-lg);
  width: 100%;
}

.media-content h3 {
  margin-bottom: var(--space-xs);
  color: var(--primary-color);
}

.media-content p {
  color: var(--gray-700);
  margin-bottom: var(--space-sm);
}

.media-date {
  display: block;
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* ==================== SCENES SECTION ==================== */
.scenes-section {
  padding: var(--space-xxl) 0;
}

.scenes-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  align-items: center;
}

.scenes-text {
  flex: 1;
  min-width: 300px;
}

.scenes-gallery {
  flex: 1;
  min-width: 300px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-md);
}

.scenes-image {
  height: 150px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
  display: flex;
  justify-content: center;
  align-items: center;
}

.scenes-image:hover {
  transform: scale(1.05);
}

.scenes-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
  padding: var(--space-xxl) 0;
  background-color: var(--offwhite);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.contact-item h3 {
  margin-bottom: var(--space-xs);
  color: var(--primary-color);
  font-size: 1.1rem;
}

.contact-item p {
  margin-bottom: 0;
}

.contact-map {
  margin-top: var(--space-lg);
}

.contact-map img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.contact-form-container {
  background-color: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.contact-form-container h3 {
  margin-bottom: var(--space-lg);
  color: var(--primary-color);
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

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

.form-group label {
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  transition: border-color var(--transition-fast);
}

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

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: var(--space-sm);
}

.checkbox-group input {
  width: auto;
}

/* Contact Page */
.contact-page-section {
  padding: var(--space-xxl) 0;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact-information {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-detail-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium);
}

.contact-detail-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 40px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-icon img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.contact-detail-text {
  flex-grow: 1;
}

.contact-detail-text h3 {
  margin-bottom: var(--space-xs);
  font-size: 1.1rem;
  color: var(--primary-color);
}

.contact-detail-text p {
  margin-bottom: 0;
}

.location-map {
  margin-top: var(--space-lg);
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.directions-text h4 {
  margin-bottom: var(--space-sm);
  color: var(--primary-color);
}

.contact-form-full {
  background-color: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.contact-form-full h2 {
  margin-bottom: var(--space-sm);
  color: var(--primary-color);
}

.form-intro {
  margin-bottom: var(--space-lg);
  color: var(--gray-700);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* ==================== FAQ SECTION ==================== */
.faq-section {
  padding: var(--space-xxl) 0;
  background-color: var(--white);
}

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

.accordion-item {
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--white);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background-color: var(--gray-100);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.accordion-header:hover {
  background-color: var(--gray-200);
}

.accordion-header h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
  flex-grow: 1;
}

.accordion-icon {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium), padding var(--transition-medium);
}

.accordion-item.active .accordion-content {
  padding: var(--space-md);
  max-height: 1000px;
}

/* ==================== TEAM CONTACT SECTION ==================== */
.team-contact {
  padding: var(--space-xxl) 0;
  background-color: var(--gray-100);
}

.team-contact-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
}

.specialist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.specialist-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.specialist-card:hover {
  transform: translateY(-5px);
}

.specialist-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.specialist-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

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

.specialist-content {
  padding: var(--space-lg);
  text-align: center;
  width: 100%;
}

.specialist-content h3 {
  margin-bottom: var(--space-sm);
  color: var(--primary-color);
}

.specialist-content p {
  margin-bottom: var(--space-md);
  color: var(--gray-700);
}

.specialist-content a {
  font-weight: 500;
  color: var(--secondary-color);
}

.specialist-content a:hover {
  color: var(--secondary-dark);
}

/* ==================== CTA SECTION ==================== */
.contact-cta {
  padding: var(--space-xl) 0;
  background-color: var(--primary-color);
  color: var(--white);
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-content p {
  margin-bottom: var(--space-lg);
  font-size: 1.1rem;
}

/* ==================== SUCCESS PAGE ==================== */
.success-section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-xxl) 0;
  margin-top: 80px;
}

.success-content {
  text-align: center;
  max-width: 700px;
  padding: var(--space-xl);
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.success-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-lg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.success-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.success-content h2 {
  color: var(--tertiary-color);
  margin-bottom: var(--space-md);
}

.success-note {
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: var(--space-lg);
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

/* Related Services */
.related-services {
  padding: var(--space-xxl) 0;
  background-color: var(--gray-100);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

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

.service-content {
  padding: var(--space-lg);
  text-align: center;
  width: 100%;
}

.service-content h3 {
  margin-bottom: var(--space-sm);
  color: var(--primary-color);
}

/* FAQ Quick */
.faq-quick {
  padding: var(--space-xxl) 0;
}

/* ==================== LEGAL PAGES ==================== */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6rem 0;
  margin-top: 80px;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
  z-index: var(--z-negative);
}

.page-hero-content {
  max-width: 700px;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.page-hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero-content p {
  font-size: 1.25rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.legal-hero {
  padding: 4rem 0;
}

.legal-content {
  padding: var(--space-xxl) 0;
  padding-top: 100px;
}

.legal-document {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.last-updated {
  text-align: right;
  margin-bottom: var(--space-lg);
  color: var(--gray-600);
  font-style: italic;
  font-size: 0.9rem;
}

.legal-introduction {
  margin-bottom: var(--space-xl);
  font-size: 1.1rem;
  color: var(--gray-800);
  line-height: 1.7;
}

.legal-section {
  margin-bottom: var(--space-xl);
}

.legal-section h3 {
  color: var(--primary-color);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--gray-300);
  padding-bottom: var(--space-sm);
}

.legal-section p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.legal-section ul {
  margin-bottom: var(--space-md);
}

.legal-section li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

/* ==================== FOOTER ==================== */
.footer {
  background-color: var(--gray-900);
  color: var(--white);
  padding: var(--space-xxl) 0 var(--space-lg);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo h2 {
  color: var(--white);
  margin-bottom: var(--space-sm);
  font-size: 1.8rem;
}

.footer-links {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.footer-section {
  flex: 1;
  min-width: 150px;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: var(--space-md);
  font-size: 1.2rem;
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-light);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: var(--space-sm);
}

.footer-section a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
  position: relative;
  display: inline-block;
}

.footer-section a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-section a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--white);
  transition: width var(--transition-medium);
}

.footer-section a:hover::after {
  width: 100%;
}

.social-links {
  display: flex;
  flex-direction: column;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) 0;
}

.social-links a::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: var(--space-sm);
  background-size: contain;
  background-repeat: no-repeat;
}

.social-links li:nth-child(1) a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23adb5bd' d='M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z'/%3E%3C/svg%3E");
}

.social-links li:nth-child(2) a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23adb5bd' d='M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z'/%3E%3C/svg%3E");
}

.social-links li:nth-child(3) a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23adb5bd' d='M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z'/%3E%3C/svg%3E");
}

.social-links li:nth-child(4) a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23adb5bd' d='M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z'/%3E%3C/svg%3E");
}

.social-links a:hover::before {
  filter: brightness(2);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ==================== MEDIA QUERIES ==================== */
@media (max-width: 991px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  html {
    font-size: 14px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .btn {
    width: 100%;
    text-align: center;
  }

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

  .success-actions {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 6rem 0;
  }

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

  .hero-description {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-marker {
    width: 30px;
    height: 30px;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Animation Utility Classes */
.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
  animation: slideUp 1s ease forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}