/* ==========================================================================
   CSS Reset & Base Variables (8-Point Grid System)
   ========================================================================== */





/* Keep browser default: 1rem = 16px */
html {
  font-size: 100%;
  /* Browser default (16px) */
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Remove default margin */
*:not(dialog) {
  margin: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Improve line wrapping */
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

#root,
#__next {
  isolation: isolate;
}

/* ==========================================================================
   8-Point Grid System with REM (1rem = 16px)
   ========================================================================== */

:root {
  /* Color Variables */
  --primary-color: rgb(202, 172, 134);
  --secondary-color: rgb(174, 153, 100);
  --light-bronze: #d4a373;
  --parchment: #edede9;
  --bone: #d6ccc2;
  --linen: #f5ebe0;
  --almond-cream: #e3d5ca;
  --almond-silk: #d5bdaf;

  /* 8-Point Spacing Scale (1rem = 16px, so 8px = 0.5rem) */
  --space-1: 0.5rem;
  /* 8px  */
  --space-2: 1rem;
  /* 16px */
  --space-3: 1.5rem;
  /* 24px */
  --space-4: 2rem;
  /* 32px */
  --space-5: 3rem;
  /* 48px */
  --space-6: 4rem;
  /* 64px */
  --space-8: 8rem;
  /* 128px */

  /* Container widths */
  --container-md: 50rem;
  /* 800px */
  --container-lg: 75rem;
  /* 1200px */

  /* Border radius (8-point scale) */
  --radius-sm: 0.25rem;
  /* 4px */
  --radius-md: 0.5rem;
  /* 8px */
  --radius-lg: 0.75rem;
  /* 12px */

  /* Font sizes */
  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 2rem;
  /* 32px */

  /* Line heights */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;

  /* Shadows */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
  --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 2rem rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 1.5rem 3rem rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Global Styles
   ========================================================================== */

body,
header,
footer {
  background-color: var(--parchment);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

/* ==========================================================================
   Navigation - More Compact
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  list-style-type: none;
  padding: 0;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  height: 3.5rem;
  /* 56px - Reduced from 72px */
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar>li {
  flex-grow: 1;
}

.navbar>li>a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  /* 16px - Reduced from 18px */
  width: 100%;
  height: 100%;
  border: none;
  background-color: transparent;
  font-weight: 400;
  padding: var(--space-1);
  /* 8px - Reduced from 16px 8px */
  color: var(--parchment);
  transition: all 0.2s ease;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.navbar>li>a:hover {
  background-color: var(--almond-silk);
  color: #000;
  font-weight: 500;
}

.navbar>li>a.active {
  font-weight: 500;
  color: var(--light-bronze);
  box-shadow: inset 0 -3px 0 var(--light-bronze);
}


/* ==========================================================================
   Hero Section - Elegant Minimalist (Static with Scroll Indicator)
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  margin-top: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--parchment) 0%, var(--linen) 100%);
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: brightness(0.7) contrast(1.1) saturate(1.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(44, 62, 80, 0.5) 0%,
      rgba(44, 62, 80, 0.25) 50%,
      rgba(44, 62, 80, 0.15) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 48rem;
  padding: var(--space-4);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-greeting {
  font-size: var(--text-xl);
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  opacity: 0.9;
}

.hero-name {
  font-family: "Explora", serif;
  font-size: 6.5rem;
  font-weight: 400;
  line-height: 0.9;
  margin-bottom: var(--space-3);
  letter-spacing: -1px;
}

.hero-title {
  font-size: var(--text-2xl);
  font-weight: 300;
  margin-bottom: var(--space-5);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-divider {
  width: 6rem;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 0 auto var(--space-5);
}

.hero-quote {
  font-size: var(--text-xl);
  font-style: italic;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  font-weight: 300;
  opacity: 0.9;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  quotes: "„" "“";
}

.hero-quote::before {
  content: open-quote;
  font-size: 2em;
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 0.25em;
  opacity: 0.6;
}

.hero-quote::after {
  content: close-quote;
  font-size: 2em;
  line-height: 0;
  vertical-align: -0.4em;
  margin-left: 0.25em;
  opacity: 0.6;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

.cta-button {
  padding: var(--space-2) var(--space-5);
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
}

.cta-button-primary {
  background-color: var(--light-bronze);
  border-color: var(--light-bronze);
}

.cta-button:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-button-primary:hover {
  background-color: #b58352;
  border-color: #b58352;
}

/* Light Background Button Overrides (Carousel and Articles) */
.carousel-content .cta-button,
.article-container .cta-button {
  background-color: var(--light-bronze);
  border-color: var(--light-bronze);
  color: white;
}

.carousel-content .cta-button:hover,
.article-container .cta-button:hover {
  background-color: #b58352;
  border-color: #b58352;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Scroll Indicator - Fixed for visibility */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: -1rem;
  transform: translateX(-25%);
  color: white;
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.9;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: opacity 0.3s ease;
  animation: float 2.5s ease-in-out infinite;
}

.scroll-indicator>a {
  text-decoration: none;
  color: white;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator::after {
  content: '';
  display: block;
  width: 2px;
  height: 3.5rem;
  margin: var(--space-2) auto 0;
  border-radius: 1px;
}



/* ==========================================================================
   Tiles Section
   ========================================================================== */



.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
  padding: var(--space-6) var(--space-4);
  max-width: var(--container-lg);
  margin: 0 auto;
}

.tile {
  background: linear-gradient(145deg, #ffffff, #f5f5f5);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  height: 12rem;
  /* 192px */
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--light-bronze), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tile:hover {
  transform: translateY(-0.1rem);
  box-shadow: var(--shadow-md);
  border-color: var(--almond-silk);
}

.tile:hover::before {
  opacity: 0.1;
}

.tile h2 {
  font-weight: 400;
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
  margin: 0;
  color: #2c3e50;
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 90%;
}

/* ==========================================================================
   Carousel Section
   ========================================================================== */

.carousel {
  padding: var(--space-6) var(--space-4);
  max-width: var(--container-lg);
  margin: 0 auto;
  position: relative;
}

.carousel-box {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  display: none;
  min-height: 28rem;
  /* 448px */
  position: relative;
  animation: fadeIn 0.5s ease-in-out;
}

.carousel-box.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-img {
  flex: 0 0 40%;
  width: 40%;
  height: auto;
  object-fit: cover;
}

.carousel-content {
  flex: 1;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, var(--parchment) 0%, white 100%);
}

.carousel-category {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--light-bronze);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-2);
  font-weight: 500;
}

.carousel-content h3 {
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-3);
  color: #2c3e50;
  font-weight: 400;
}

.carousel-content p {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: #666;
  margin-bottom: var(--space-4);
}



/* Navigation dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: var(--almond-cream);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--light-bronze);
  transform: scale(1.2);
}

.dot:hover {
  background-color: var(--almond-silk);
}

/* ==========================================================================
   Minimal Footer - Two Columns, No Branding, No Icons
   ========================================================================== */

.footer {
  background-color: #2c3e50;
  color: white;
  padding: var(--space-3) var(--space-4);
}

.footer-content {
  max-width: var(--container-md);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  /* align-self: center; */
  gap: var(--space-4);
}

/* Contact Columns */
.contact-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  width: 100%;
}

.contact-column h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-1);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-item {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.contact-item strong {
  display: block;
  color: white;
  font-weight: 500;
  margin-bottom: 0.125rem;
  font-size: var(--text-base);
}

.contact-item span {
  display: block;
}

.contact-item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
}

.contact-item a:hover {
  color: var(--light-bronze);
}

/* Footer Bottom - Now includes copyright */
.footer-bottom {
  max-width: var(--container-md);
  margin: var(--space-3) auto 0;
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}

.footer-copyright {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-legal {
  display: flex;
  gap: var(--space-2);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}


.footer-legal a:hover {
  color: white;
}





/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 62rem) {

  /* 992px */
  .hero-name {
    font-size: 5rem;
  }

  .hero-title {
    font-size: var(--text-xl);
  }

  .hero-quote {
    font-size: var(--text-lg);
    max-width: 28rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
  }

  .cta-button {
    width: 100%;
    max-width: 20rem;
  }

  .tile {
    width: 100%;
    max-width: 25rem;
    /* 400px */
    height: 12.5rem;
    /* 200px */
  }

  .carousel-box {
    flex-direction: column;
    height: auto;
    padding: var(--space-3);
  }

  .carousel-img {
    width: 100%;
    height: 12.5rem;
    /* 200px */
    margin-right: 0;
    margin-bottom: var(--space-3);
    transform: scale(1);
  }
}

@media (max-width: 48rem) {

  /* 768px */
  .navbar {
    height: 3rem;
    /* 48px - Even more compact */
  }

  .navbar>li>a {
    font-size: var(--text-sm);
    /* 14px */
    padding: var(--space-1);
  }

  .hero {
    min-height: 500px;
  }

  .hero-name {
    font-size: 4rem;
  }

  .hero-greeting {
    font-size: var(--text-lg);
    letter-spacing: 2px;
  }

  .hero-title {
    font-size: var(--text-lg);
  }

  .hero-quote {
    font-size: var(--text-base);
    padding: 0 var(--space-2);
  }

  .hero-content {
    padding: var(--space-3);
  }

  .scroll-indicator {
    bottom: 1.5rem;
    font-size: var(--text-sm);
    letter-spacing: 2px;
  }

  .scroll-indicator::after {
    height: 2.5rem;
  }

  .tiles {
    gap: var(--space-3);
    padding: var(--space-4) var(--space-1);
  }

  .tile>h2 {
    font-size: var(--text-xl);
    /* 20px */
  }

  .carousel-box {
    padding: var(--space-2);
  }


}

@media (max-width: 30rem) {

  /* 480px */
  .navbar {
    height: 2.5rem;
    /* 40px */
  }

  .navbar>li>a {
    font-size: var(--text-xs);
    /* 12px */
  }

  .hero-name {
    font-size: 3rem;
  }

  .hero-greeting {
    font-size: var(--text-base);
    letter-spacing: 1px;
    margin-bottom: var(--space-2);
  }

  .hero-title {
    font-size: var(--text-base);
    margin-bottom: var(--space-3);
  }

  .hero-divider {
    margin-bottom: var(--space-3);
  }

  .hero-quote {
    margin-bottom: var(--space-4);
  }

  .scroll-indicator {
    display: block;
    /* Keep it visible */
    bottom: 1rem;
    font-size: var(--text-xs);
    letter-spacing: 1px;
  }

  .scroll-indicator::after {
    height: 2rem;
  }

  .tile>h2 {
    font-size: var(--text-lg);
    /* 18px */
  }

  .carousel-content h3 {
    font-size: var(--text-xl);
    /* 20px */
  }

  .carousel-content {
    text-align: center;
    /* Center on very small screens */
  }
}

/* ==========================================================================
   Subpages Common Styles
   ========================================================================== */

.subpage-hero {
  position: relative;
  height: 40vh;
  min-height: 300px;
  margin-top: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--parchment) 0%, var(--linen) 100%);
  text-align: center;
}

.subpage-hero-content {
  padding: var(--space-4);
  max-width: var(--container-md);
}

.subpage-subtitle {
  font-size: var(--text-lg);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-top: var(--space-2);
}

.about-container,
.contact-container,
.offer-container {
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 300;
  text-align: center;
  margin-bottom: var(--space-6);
  color: #2c3e50;
}

/* ==========================================================================
   About Page Styles
   ========================================================================== */

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
  margin-bottom: var(--space-8);
}

.about-text h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
  color: var(--primary-color);
}

.about-text p {
  margin-bottom: var(--space-3);
  color: #4a4a4a;
}

.current-roles-box {
  background-color: white;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-4);
  border-left: 4px solid var(--secondary-color);
}

.current-roles-box h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: #2c3e50;
}

.current-roles-box ul {
  list-style-type: none;
  padding: 0;
}

.current-roles-box li {
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--parchment);
}

.current-roles-box li:last-child {
  border-bottom: none;
}

.about-image-wrapper {
  position: relative;
}

.about-portrait {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.image-frame {
  position: absolute;
  top: 2rem;
  left: 2rem;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-lg);
  z-index: 0;
}

/* Timeline - Modern Left-Aligned Editorial (Alternative 1) */
.timeline {
  position: relative;
  max-width: var(--container-md);
  margin: 0 auto var(--space-8);
  padding: var(--space-4) 0 var(--space-4) var(--space-4);
  border-left: 2px solid var(--primary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-6);
  padding-left: var(--space-4);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  /* Centering the 10px dot on the 2px line */
  top: 0.8rem;
  width: 0.625rem;
  /* 10px */
  height: 0.625rem;
  background-color: var(--primary-color);
  border: 3px solid var(--parchment);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(202, 172, 134, 0.2);
  transition: all 0.3s ease;
}

.timeline-item:hover::before {
  background-color: var(--secondary-color);
  transform: scale(1.3);
  box-shadow: 0 0 0 5px rgba(174, 153, 100, 0.4);
}

.timeline-year {
  font-family: 'Explora', cursive;
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--secondary-color);
  line-height: 1;
  margin-bottom: var(--space-1);
  display: block;
}

.timeline-content {
  background: white;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 0 solid var(--secondary-color);
  position: relative;
}

.timeline-content:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--secondary-color);
}

.timeline-content h3 {
  color: #2c3e50;
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.timeline-content p {
  font-size: var(--text-sm);
  color: #666;
  line-height: var(--leading-relaxed);
}

/* Experience Grid */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.exp-card {
  background: white;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.exp-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.exp-card h4 {
  color: var(--secondary-color);
  font-weight: 600;
}

.exp-card h5 {
  color: #2c3e50;
  font-size: var(--text-lg);
  margin: var(--space-1) 0;
}

.subpage-cta {
  text-align: center;
  background: var(--linen);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
}

.subpage-cta p {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
  color: #2c3e50;
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.contact-details h2 {
  margin-bottom: var(--space-4);
  color: #2c3e50;
}

.info-card {
  background: white;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.info-item {
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--parchment);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-1);
}

.info-item p,
.info-item a {
  font-size: var(--text-lg);
  color: #2c3e50;
  text-decoration: none;
}

.contact-form-wrapper {
  background: white;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-3);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: 500;
  color: #2c3e50;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-2);
  border: 1px solid var(--bone);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.full-width {
  width: 100%;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Offer Page Styles
   ========================================================================== */

.offer-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.offer-nav a {
  text-decoration: none;
  color: #666;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}

.offer-nav a.active,
.offer-nav a:hover {
  background: var(--primary-color);
  color: white;
}

.service-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  margin-bottom: var(--space-6);
  border-top: 4px solid var(--primary-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.service-header {
  background: linear-gradient(to right, rgba(202, 172, 134, 0.05), transparent);
  padding: var(--space-5) var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--parchment);
}

.service-category {
  display: block;
  font-size: var(--text-xs);
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.service-header h2 {
  font-size: var(--text-2xl);
  color: #2c3e50;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 0;
}

.quote-wrapper {
  padding: var(--space-4) var(--space-5) 0;
}

.service-quote {
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: #4a4a4a;
  background-color: var(--linen);
  border-left: 4px solid var(--primary-color);
  padding: var(--space-3) var(--space-4);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  line-height: var(--leading-relaxed);
  margin: 0;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.02);
}

.quote-author {
  display: block;
  font-size: var(--text-sm);
  color: var(--secondary-color);
  margin-top: var(--space-2);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  background-color: transparent;
}

.service-content {
  padding: var(--space-5);
}

.service-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-5);
  align-items: start;
}

.service-desc-col p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4a4a4a;
  margin-bottom: var(--space-3);
  text-align: justify;
}

.service-desc-col p:last-child {
  margin-bottom: 0;
}

.service-side-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.target-group {
  background: rgba(202, 172, 134, 0.05);
  border-left: 3px solid var(--secondary-color);
  padding: var(--space-4);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.target-group h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: var(--space-3);
  letter-spacing: 0.5px;
}

.custom-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-list li {
  position: relative;
  padding-left: var(--space-4);
  margin-bottom: var(--space-3);
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
}

.custom-list li:last-child {
  margin-bottom: 0;
}

.custom-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.5rem;
  height: 0.5rem;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  background: white;
}

.service-action-box {
  background: #fdfcfb;
  border: 1px solid var(--parchment);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.action-note {
  font-size: var(--text-sm);
  color: #777;
  line-height: 1.4;
  margin-bottom: var(--space-3);
}

.full-width-btn {
  display: block;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.placeholder {
  opacity: 0.75;
  border-top: 4px solid var(--bone);
}

.placeholder .service-header {
  background: transparent;
}

/* Responsive adjustments for subpages */
@media (max-width: 48rem) {
  .about-intro {
    grid-template-columns: 1fr;
  }

  .timeline {
    margin-left: var(--space-3);
    /* Add spacing on very small screens to fit nodes */
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-grid-layout {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ==========================================================================
   Article Pages Styles
   ========================================================================== */

.article-hero {
  height: 40vh;
  min-height: 300px;
  background-image: url('omnie.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.article-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.article-title {
  font-family: 'Explora', cursive;
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--parchment);
}

.article-container {
  max-width: var(--container-md);
  margin: var(--space-6) auto;
  padding: 0 var(--space-4);
  font-family: 'Times New Roman', Times, serif;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: #333;
}

.article-container h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  color: #2c3e50;
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: var(--space-1);
  display: inline-block;
  font-weight: 400;
}

.article-content p {
  margin-bottom: var(--space-4);
  text-align: justify;
}

.article-quote {
  font-style: italic;
  border-left: 4px solid var(--primary-color);
  padding-left: var(--space-3);
  margin: var(--space-6) 0;
  color: #555;
  font-size: var(--text-xl);
}

.article-meta {
  font-size: var(--text-sm);
  color: #777;
  margin-bottom: var(--space-6);
  text-align: center;
}

/* ==========================================================================
   Accessibility Widget (a11y)
   ========================================================================== */

.a11y-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.a11y-trigger-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: 2px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.a11y-trigger-btn:hover {
  transform: scale(1.08) rotate(15deg);
  background: var(--secondary-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.a11y-trigger-btn svg {
  stroke: white;
  width: 1.5rem;
  height: 1.5rem;
}

.a11y-panel {
  position: absolute;
  bottom: 4.5rem;
  right: 0;
  width: 18rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--bone);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.a11y-panel.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.a11y-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--parchment);
  padding-bottom: var(--space-2);
}

.a11y-panel-header h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.a11y-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #777;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.a11y-close-btn:hover {
  color: #333;
}

.a11y-panel-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.a11y-option {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.a11y-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--secondary-color);
}

.a11y-buttons {
  display: flex;
  gap: var(--space-1);
}

.a11y-btn {
  flex: 1;
  padding: 0.35rem 0.5rem;
  font-size: var(--text-xs);
  font-weight: 500;
  background: white;
  border: 1px solid var(--bone);
  border-radius: var(--radius-sm);
  color: #4a4a4a;
  cursor: pointer;
  transition: all 0.2s;
}

.a11y-btn:hover {
  background: var(--linen);
  border-color: var(--primary-color);
}

.a11y-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.a11y-panel-footer {
  border-top: 1px solid var(--parchment);
  padding-top: var(--space-2);
}

.a11y-reset-btn {
  width: 100%;
  padding: var(--space-2);
  background: #fcf8f2;
  border: 1px dashed var(--primary-color);
  color: var(--primary-color);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.a11y-reset-btn:hover {
  background: var(--linen);
  border-style: solid;
}

/* Accessibility Scaling Classes */
html.a11y-size-large {
  font-size: 115% !important;
}

html.a11y-size-xlarge {
  font-size: 130% !important;
}

/* Accessibility Readable Font */
html.a11y-font-readable,
html.a11y-font-readable * {
  font-family: Arial, Helvetica, sans-serif !important;
}

/* Accessibility High Contrast Mode */
html.a11y-contrast-high {
  --primary-color: #f1c40f !important;
  --secondary-color: #f1c40f !important;
  --light-bronze: #f1c40f !important;
  --parchment: #000000 !important;
  --linen: #111111 !important;
  --bone: #333333 !important;
}

html.a11y-contrast-high body {
  background-color: #000000 !important;
  color: #ffffff !important;
}

html.a11y-contrast-high h1,
html.a11y-contrast-high h2,
html.a11y-contrast-high h3,
html.a11y-contrast-high h4,
html.a11y-contrast-high h5,
html.a11y-contrast-high h6 {
  color: #ffffff !important;
}

html.a11y-contrast-high p,
html.a11y-contrast-high span,
html.a11y-contrast-high li,
html.a11y-contrast-high blockquote,
html.a11y-contrast-high div,
html.a11y-contrast-high strong,
html.a11y-contrast-high time {
  color: #ffffff !important;
}

html.a11y-contrast-high a {
  color: #f1c40f !important;
  text-decoration: underline !important;
}

/* Clear Visual Interference from background images on Heros */
html.a11y-contrast-high .hero,
html.a11y-contrast-high .subpage-hero,
html.a11y-contrast-high .article-hero {
  background: #000000 !important;
  background-image: none !important;
  border-bottom: 2px solid #ffffff !important;
}

html.a11y-contrast-high .hero-image,
html.a11y-contrast-high .hero-overlay,
html.a11y-contrast-high .article-hero-overlay {
  display: none !important;
}

/* Nav & Footer high contrast styling */
html.a11y-contrast-high .navbar {
  background-color: #000000 !important;
  border-bottom: 2px solid #ffffff !important;
}

html.a11y-contrast-high .navbar>li>a:hover,
html.a11y-contrast-high .navbar>li>a.active {
  background-color: #f1c40f !important;
  color: #000000 !important;
  text-decoration: none !important;
}

html.a11y-contrast-high .footer {
  background-color: #000000 !important;
  border-top: 2px solid #ffffff !important;
}

html.a11y-contrast-high .footer-bottom {
  border-top: 1px solid #ffffff !important;
}

html.a11y-contrast-high .footer-legal a {
  color: #f1c40f !important;
}

/* Box structures, cards and grids */
html.a11y-contrast-high .service-card,
html.a11y-contrast-high .timeline-content,
html.a11y-contrast-high .info-card,
html.a11y-contrast-high .current-roles-box,
html.a11y-contrast-high .carousel-box,
html.a11y-contrast-high .tile,
html.a11y-contrast-high .about-intro,
html.a11y-contrast-high .service-action-box,
html.a11y-contrast-high .target-group,
html.a11y-contrast-high .exp-card,
html.a11y-contrast-high .contact-form-wrapper {
  background: #111111 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: none !important;
}

html.a11y-contrast-high .service-card:hover,
html.a11y-contrast-high .tile:hover,
html.a11y-contrast-high .exp-card:hover {
  transform: none !important;
  border-color: #f1c40f !important;
}

html.a11y-contrast-high .service-header {
  background: #000000 !important;
  border-bottom: 2px solid #ffffff !important;
}

html.a11y-contrast-high .service-category {
  color: #f1c40f !important;
}

html.a11y-contrast-high blockquote {
  border-left-color: #f1c40f !important;
  background-color: #111111 !important;
  box-shadow: none !important;
}

html.a11y-contrast-high .quote-author {
  color: #f1c40f !important;
  background-color: transparent !important;
}

/* Buttons & Forms high contrast styling */
html.a11y-contrast-high .cta-button {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  text-decoration: none !important;
}

html.a11y-contrast-high .cta-button:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
}

html.a11y-contrast-high input,
html.a11y-contrast-high textarea,
html.a11y-contrast-high select {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  border-radius: 0 !important;
}

html.a11y-contrast-high input:focus,
html.a11y-contrast-high textarea:focus {
  outline: 3px solid #f1c40f !important;
  border-color: #f1c40f !important;
}

/* Custom list items markers */
html.a11y-contrast-high .custom-list li::before {
  background: #f1c40f !important;
  border-color: #f1c40f !important;
}

/* Timeline High Contrast Adjustments */
html.a11y-contrast-high .timeline {
  border-left: 3px solid #ffffff !important;
}

html.a11y-contrast-high .timeline-item::before {
  background-color: #000000 !important;
  border: 3px solid #ffffff !important;
  box-shadow: none !important;
}

html.a11y-contrast-high .timeline-item:hover::before {
  background-color: #f1c40f !important;
  border-color: #f1c40f !important;
}

html.a11y-contrast-high .timeline-year {
  color: #f1c40f !important;
  font-family: Arial, sans-serif !important;
  font-weight: bold !important;
}

html.a11y-contrast-high .exp-card h4 {
  color: #f1c40f !important;
}

/* Carousel Adjustments */
html.a11y-contrast-high .carousel-content {
  background: #000000 !important;
}

html.a11y-contrast-high .carousel-category {
  color: #f1c40f !important;
}

html.a11y-contrast-high .dot {
  background-color: #333333 !important;
  border: 1px solid #ffffff !important;
}

html.a11y-contrast-high .dot.active {
  background-color: #f1c40f !important;
}

/* Accessibility Control Panel itself (Styled for High Contrast) */
html.a11y-contrast-high .a11y-panel {
  background: #000000 !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
}

html.a11y-contrast-high .a11y-panel h3,
html.a11y-contrast-high .a11y-close-btn,
html.a11y-contrast-high .a11y-label {
  color: #ffffff !important;
}

html.a11y-contrast-high .a11y-btn {
  background: #000000 !important;
  border: 1px solid #ffffff !important;
  color: #ffffff !important;
}

html.a11y-contrast-high .a11y-btn.active {
  background: #f1c40f !important;
  border-color: #f1c40f !important;
  color: #000000 !important;
  font-weight: bold !important;
}

html.a11y-contrast-high .a11y-btn:hover {
  background: #333333 !important;
}

html.a11y-contrast-high .a11y-reset-btn {
  background: #000000 !important;
  border: 2px dashed #f1c40f !important;
  color: #f1c40f !important;
}

html.a11y-contrast-high .a11y-reset-btn:hover {
  background: #f1c40f !important;
  color: #000000 !important;
}

html.a11y-contrast-high .a11y-trigger-btn {
  background: #000000 !important;
  border: 2px solid #ffffff !important;
}

html.a11y-contrast-high .a11y-trigger-btn svg {
  stroke: #f1c40f !important;
}

@media (max-width: 30rem) {
  .a11y-widget {
    bottom: 1rem;
    right: 1rem;
  }
  .a11y-panel {
    bottom: 4rem;
    right: 0;
    width: calc(100vw - 2rem);
    max-width: 18rem;
  }
}