:root {
  --primary: #3F51B5;

  /* Dark theme (default) colors */
  --bg-body: #0A0A14;
  --bg-header: rgba(10, 10, 20, 0.9);
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --bg-card-strong: rgba(255, 255, 255, 0.05);
  --bg-modal: #000;
  --bg-modal-overlay: rgba(0, 0, 0, 0.7);
  --bg-dropdown: rgba(10, 10, 20, 0.95);
  --bg-input: rgba(255, 255, 255, 0.1);
  --bg-primary-faded: rgba(63, 81, 181, 0.1);
  --bg-primary-faded-strong: rgba(63, 81, 181, 0.2);

  --text-primary: #ffffff;
  --text-secondary: rgb(203, 213, 225);
  --text-muted: rgb(148, 163, 184);
  --text-quote: rgb(231, 229, 228);

  --border-color: rgba(255, 255, 255, 0.1);
  --border-color-strong: rgba(255, 255, 255, 0.2);
  --border-color-stronger: rgba(255, 255, 255, 0.3);

  --border-radius: 0.25rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 0.75rem;
  --border-radius-full: 9999px;
}

/* Light theme overrides */
html.light {
  --bg-body: #e7e6e6;
  --bg-header: #e7e6e6;
  --bg-card: rgba(0, 0, 0, 0.02);
  --bg-card-hover: rgba(0, 0, 0, 0.06);
  --bg-card-strong: rgba(0, 0, 0, 0.03);
  --bg-modal: #ffffff;
  --bg-modal-overlay: rgba(0, 0, 0, 0.4);
  --bg-dropdown: #ffffff;
  --bg-input: rgba(0, 0, 0, 0.05);
  --bg-primary-faded: rgba(63, 81, 181, 0.08);
  --bg-primary-faded-strong: rgba(63, 81, 181, 0.15);

  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #6b6b8a;
  --text-quote: #333355;

  --border-color: rgba(0, 0, 0, 0.1);
  --border-color-strong: rgba(0, 0, 0, 0.15);
  --border-color-stronger: rgba(0, 0, 0, 0.2);
}

/* In light mode, keep CTA section text white (dark background), but hero text inherits dark colors */
html.light .cta-section .section-title,
html.light .cta-section .section-text {
  color: #ffffff;
}

/* Light theme hero image override - uses solid semi-opaque white overlay for readability */
html.light .hero {
  background-image: linear-gradient(rgba(221, 220, 220, 0.6) 0%,rgba(173, 173, 173, 0.6) 100%), url('../assets/images/internetfabriclight.jpg');
}

/* Light theme overrides for members hero */
html.light .members-hero {
  background-color: #e7e6e6 !important;
  background-image: url('../assets/images/Weaver.jpg') !important;
  color: #ffffff !important;
}

/* In light mode, make paragraph text bolder for readability */
html.light .section-text,
html.light .step-text,
html.light .hero-subtitle,
html.light .testimonial-quote,
html.light .services-modal-desc,
html.light .services-modal-list li,
html.light .download-desc {
  font-weight: 600;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: max(884px, 100dvh);
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'opsz' 24;
  padding:0.5rem;
  margin-top: 1rem;
}

.main-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (min-width: 1200px) {
  .main-container { 
    max-width: 75rem;
    margin: 0 auto;
  }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-header);
  padding: 0rem 1rem !important;
  backdrop-filter: blur(0.25rem);  
  margin-top: 0rem;
}

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

.header-content h2 {
  padding: 0;
  margin: 0;
  margin-top: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  font-size: 1.125rem;
  font-weight: bold;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
}

.menu-btn {
  display: flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  margin: 0;
  padding: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 0rem;
  font-size: 1rem;
  font-weight: medium;
  color: var(--text-secondary);
  padding-bottom: 1rem;
  margin-top: 0.25rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover {
  color: var(--text-primary);
}

.dropdown {
  position: relative;
}

.dropdown-button {
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: var(--text-secondary);
}

.dropdown-button:hover {
  color: var(--text-primary);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -1rem;
  background-color: var(--bg-dropdown);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  min-width: 10rem;
  z-index: 100;
  margin-top: 0.5rem;
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: var(--bg-card-hover);
}

.dropdown.show .dropdown-menu {
  display: block;
}

#login-modal {
  border: 1px solid var(--border-color-strong);
  border-radius: var(--border-radius-lg);
  background: var(--bg-dropdown);
  backdrop-filter: blur(5px);
  width: 90%;
  max-width: 24rem;
  padding: 0;
}

#login-modal::backdrop {
  background: var(--bg-modal-overlay);
}

.modal-content {
  padding: 2rem;
}

.modal-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
  padding-right: 1.2rem;
}

.form-group label {
  display: block;
  color: var(--text-primary);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color-strong);
  border-radius: var(--border-radius);
  background-color: var(--bg-input);
  color: var(--text-primary);
  font-size: 1rem;
}

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

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.modal-close {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--border-radius);
  padding: 1.5rem 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  background-color: var(--bg-card-hover);
}

.login-submit {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-weight: bold;
}

.login-submit:hover {
  opacity: 0.9;
}

.forgot-password {
  text-align: center;
  margin-top: 1rem;
}

.forgot-password a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
}

.forgot-password a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.container {
  width: 100%;
  overflow-x: hidden;
}

.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: linear-gradient(rgba(10, 10, 20, 0.25) 0%, rgba(10, 10, 20, 0.75) 100%), url('../assets/images/InternetFabric.jpg');
  padding: 5rem 1.5rem 1.5rem;
  min-height: 30rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  position: relative;
  color: var(--text-primary);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.033em;
  margin: 0.5rem 0;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.428;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  background-color: var(--primary);
  color: white;
  border: none;
  font-size: 0.875rem;
  font-weight: bold;
  line-height: 1.428;
  letter-spacing: 0.015em;
  padding: 0.5rem 1rem;
  cursor: pointer;
  max-width: 28rem;
  min-width: 5.25rem;
  overflow: hidden;
}

.section {
  padding: 0rem 0rem;
}

.section-content {
  padding: 0 0rem;
}

.border-section {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  background-color: var(--bg-card);
  width: 75%;
  text-align: center;
  margin: 0 auto;
  padding: 0rem 0rem;
}

.border-section1 {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  background-color: var(--bg-card);
  width: 75%;
  text-align:left;
  margin: 0 auto;
  padding: 0rem 0rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.cta-section {
  background-color: var(--bg-primary-faded);
  position: relative;
}

.cta-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 1;
  overflow: hidden;
}

.cta-video::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 20, 0.6);
  z-index: 1;
}

.cta-section .section-content {
  position: relative;
  z-index: 2;
  padding: 0rem 0rem;
}

.center {
  text-align: center;
}

.section-title {
  font-size: 1.375rem;
  font-weight: bold;
  line-height: 1.272;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-text {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
}

.services {
  max-width: 44.0625rem;
  margin: 0 auto;
}

.testimonials {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  width: 75%;
  margin: 0 auto 2rem auto;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

.testimonial {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.testimonial.active {
  opacity: 1;
}

.testimonial-quote {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-quote);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  padding: 0 1rem;
}

.testimonial-author {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.services-wrapper {
  width: 100%;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.services {
  width: 100%;
  max-width: 44.0625rem;
  flex-shrink: 0;
  padding-left: 1rem;
  padding-right: 1rem;
}

.services .section-title {
  margin-left: 2rem;
  text-align: left;
  margin-bottom: 0.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 1.5rem auto 0;
  justify-items: center;
  text-align: center;
  max-width: 25rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card-strong);
  padding: 1rem;
  text-align: center;
  aspect-ratio: 1;
  flex: 0 1 calc((100% - 1rem) / 2);
  max-width: 12rem;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--border-radius);
  background-color: transparent;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.service-title {
  font-size: 1rem;
  font-weight: bold;
  color: var(--text-primary);
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
}

.step::before {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 2.5rem;
  height: 100%;
  width: 2px;
  border-width: 2px;
  border-style: dashed;
  border-color: var(--primary);
}

.step:last-child::before {
  display: none;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  font-size: 1.125rem;
  font-weight: bold;
  flex-shrink: 0;
  z-index: 10;
}

.step-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: var(--text-primary);
  margin: 0;
}

.step-text {
  margin: 0.25rem 0 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Downloads section */
.downloads-section {
  max-width: 44.0625rem;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.downloads-section .section-title {
  margin-left: 1rem;
  text-align: left;
  margin-bottom: 1rem;
}

.downloads-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card-strong);
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.download-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--primary);
}

.download-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  background-color: var(--bg-primary-faded-strong);
  color: var(--primary);
  font-size: 1.5rem;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.download-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.download-name {
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-desc {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-arrow {
  color: var(--primary);
  font-size: 1.375rem;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.downloads-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
  font-size: 0.875rem;
}

.footer {  
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  text-align: center;
}

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

/* Link dropdown styles */
.link-dropdown-menu {
  min-width: 14rem;
  padding: 0.5rem 0;
  max-height: 30rem;
  overflow-y: auto;
}

.link-section {
  padding: 0.25rem 0;
}

.link-section:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.25rem;
}

.link-category {
  display: block;
  padding: 0.5rem 1rem 0.25rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.link-section .dropdown-item {
  padding: 0.5rem 1rem 0.5rem 1.5rem;
  font-size: 0.875rem;
}

/* Contrast toggle button - fixed floating in top-right corner */
.contrast-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.contrast-btn .material-symbols-outlined {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1.5rem;
}

/* Knowledgebase nav card on members page */
.kb-nav-section {
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: center;
}

.kb-nav-content {
  width: 100%;
  max-width: 44.0625rem;
}

.kb-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-align: center;
}

.kb-nav-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

.kb-nav-card .kb-nav-icon {
  font-size: 2.5rem !important;
  color: var(--primary);
  margin: 0 !important;
  padding: 0 !important;
}

.kb-nav-card .kb-nav-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Members page styles */
.members-hero {
  position: relative;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.members-text {
  position: absolute;
  top: 20px;
  left: 20px;
  text-align: left;
}

.members-actions {
  padding: 2.5rem 0;
}

.members-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Responsive title positioning for small screens */
@media (max-width: 479px) {
  .hero-text {
    padding-top: 2rem;
  }
  .members-hero {
    background-image: url('../assets/images/WeaverSmall.jpg') !important;
  }
}

@media (max-width: 767px) {
  .services .section-title {
    margin-left: 0rem;
    text-align: left;
  }
  .services {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .cta-btn.larger {
    margin: 0 auto 1rem;
  }
  .border-section {
    max-width: 85%;
    padding: 1rem 1rem;
  }
  .border-section1 {
    max-width: 85%;
    padding: 1rem 2rem;
    padding-bottom: 2rem;
  }
}

@media (min-width: 480px) {
  .services .section-title {
    margin-left: 0rem;
    text-align: left;
  }  
  .services {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .container {
    padding: 1rem;
  }
  .hero {
    gap: 2rem;
    border-radius: var(--border-radius);
    padding: 5.5rem 2.5rem 2.5rem;
  }
  .hero-title {
    font-size: 3rem;
  }
  .hero-subtitle {
    font-size: 1.3rem;
  }
  .cta-btn {
    height: 3rem;
    padding: 0 1.25rem;
    font-size: 1rem;
  }
  .cta-btn.larger {
    height: 3rem;
    padding: 0 1.25rem;
    font-size: 1rem;
    max-width: 28rem;
    margin: 0 auto 1rem;
  }
  .testimonial-quote {
    font-size: 1.25rem;
    padding: 0 2rem;
  }
  .border-section {
    max-width: 85%;
    padding: 1rem 1rem;
  }
  .border-section1 {
    max-width: 85%;
    padding: 1rem 2rem;
    padding-bottom: 2rem;
  }
  .testimonials {
    max-width: 85%;
  }
}

/* Contact modal */
#contact-modal {
  border: 1px solid var(--border-color-stronger);
  border-radius: var(--border-radius-lg);
  background: var(--bg-modal);
  background-color: var(--bg-modal);
  width: 90%;
  max-width: 26rem;
  padding: 0;
}

#contact-modal::backdrop {
  background: var(--bg-modal-overlay);
}

.contact-modal-content {
  text-align: center;
  padding: 2rem 2rem 1.5rem;
}

#contact-modal .modal-title {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color-strong);
}

.contact-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

#contact-modal .modal-close {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color-stronger);
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
}

#contact-modal .modal-close:hover {
  background-color: var(--bg-card-hover);
}

/* Services modal */
#services-modal {
  border: 1px solid var(--border-color-stronger);
  border-radius: var(--border-radius-lg);
  background: var(--bg-modal);
  background-color: var(--bg-modal);
  width: 90%;
  max-width: 42rem;
  padding: 0;
  max-height: 80vh;
}

#services-modal::backdrop {
  background: var(--bg-modal-overlay);
}

.services-modal-content {
  text-align: left;
  padding: 2rem;
  max-height: 80vh;
  overflow-y: auto;
}

#services-modal .modal-title {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.services-modal-body {
  margin-bottom: 1.5rem;
}

.services-modal-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color-strong);
}

.services-modal-heading {
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: bold;
  margin: 0 0 0.5rem 0;
}

.services-modal-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 0.75rem 0;
}

.services-modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-modal-list li {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 0.375rem 0;
  padding-left: 1rem;
  position: relative;
}

.services-modal-list li::before {
  content: '•';
  color: var(--primary);
  position: absolute;
  left: 0;
}

.services-modal-list li strong {
  color: var(--text-primary);
}

.services-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

#services-modal .modal-close {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color-stronger);
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
}

#services-modal .modal-close:hover {
  background-color: var(--bg-card-hover);
}

.services-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 1rem;
  margin-top: 1rem;
}

/* Narrow service cards on small screens */
@media (max-width: 480px) {
  .services-heading-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .services-grid {
    max-width: 20rem;
    gap: 1rem;
  }
  .service-card {
    max-width: 9rem;
    padding: 0.75rem;
  }
  .service-icon {
    width: 2rem;
    height: 2rem;
  }
  .service-title {
    font-size: 0.8rem;
  }

  #services-modal {
    max-width: 95%;
  }
  .services-modal-section {
    padding: 0.75rem;
  }
  .services-modal-heading {
    font-size: 1rem;
  }
  .services-modal-list li {
    font-size: 0.8rem;
  }

  /* Contact modal small screen */
  .contact-modal-content {
    padding: 1.25rem 1.25rem 1rem;
  }
  #contact-modal .modal-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  .contact-item {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }
  .contact-icon {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 1.1rem;
  }
  .contact-link {
    font-size: 0.8rem;
  }
  #contact-modal .modal-close {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  .contact-modal-actions {
    margin-top: 1rem;
  }
}