:root {
  --primary-color: #0084df;
  /* Google Form Blue (Large text/UI) */
  --primary-dark: #005087;
  /* High contrast blue for normal text links (Ratio 7:1 on white) */
  --secondary-color: #004471;
  /* Even darker blue for AA/AAA buttons */
  --light-blue: #e6f4ff;
  /* Soft light blue/bg */
  --accent-color: #ffc107;
  /* Warm Yellow */
  --text-color: #1a1a1a;
  /* Darker text for extreme contrast */
  --bg-color: #f4f7f9;
  /* Soft Gray/Blue Tint */
  --white: #ffffff;
  --footer-bg: var(--secondary-color);
  --footer-text: #ffffff;
  /* High contrast for AAA */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-speed: 0.3s;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-dark);
  /* AAA Compliant 7.4:1 ratio on white */
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed);
}

/* Links inside cards/paragraphs */
.card-body p a {
  color: var(--primary-dark);
  /* Achieves 7:1 AAA ratio */
  font-weight: 600;
  text-decoration: underline;
}

.card-body p a:hover,
.card-body p a:focus {
  color: var(--white);
  background-color: var(--primary-dark);
  text-decoration: none;
  outline: 3px solid var(--accent-color);
  /* Clear focus indicator */
}

/* Focus states for accessibility */
a:focus,
button:focus,
.btn:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

.text-italic {
  font-style: italic;
}

.mt-1 {
  margin-top: 1rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.my-2 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Navigation */
.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.nav-link:hover,
.nav-link.active,
.nav-link:focus {
  background-color: var(--light-blue);
  color: #000000;
  /* Max contrast on light background */
  font-weight: 600;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6);
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  animation: fadeIn Up 1s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h2 {
  font-size: 1.5rem;
  color: #eee;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--primary-dark);
  /* AAA Compliant contrast */
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  transition: transform var(--transition-speed), background-color var(--transition-speed);
  border: none;
  cursor: pointer;
}

.btn:hover,
.btn:focus {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* Main Layout */
.main-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-speed), transform var(--transition-speed);
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.business-card-img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  background-color: var(--white);
}

.card-body {
  padding: 2rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.logo-showcase {
  text-align: center;
  margin-bottom: 1.5rem;
}

.logo-showcase img {
  max-width: 200px;
  height: auto;
}

/* Sidebar */
.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.quote-card {
  background: var(--primary-color);
  /* Darker background for white text compliance */
  color: var(--white);
  text-align: center;
}

.quote-card .card-body {
  padding: 3rem 2rem;
}

.quote-icon {
  font-size: 4rem;
  line-height: 1;
  opacity: 0.3;
  display: block;
  margin-bottom: 1rem;
}

.social-list li {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  transition: background-color var(--transition-speed);
}

.social-list li:last-child {
  border-bottom: none;
}

.social-list li:hover {
  background-color: #f9f9f9;
}

.social-link {
  display: flex;
  align-items: center;
  width: 100%;
}

.social-icon-img {
  width: 40px;
  height: 40px;
  margin-right: 1rem;
  object-fit: contain;
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0;
  text-align: center;
  margin-top: auto;
}

.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6 {
  color: var(--footer-text);
}

.footer a {
  color: var(--white);
  margin: 0 0.5rem;
  text-decoration: underline;
}

.footer a:hover,
.footer a:focus {
  color: var(--accent-color);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-dark);
  color: white;
  padding: 8px;
  z-index: 1001;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .main-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* Hide for now, can implement mobile menu later if JS is added */
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

/* Optimization Helpers */
.hero-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.custom-list {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.quote-text {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 1rem;
}