* {

  box-sizing: border-box;

}

 

body {

  margin: 0;

  font-family: 'Inter', sans-serif;

  background-color: #F5F5F5;

  color: #000000;

  line-height: 1.6;

}

 

.container {

  width: 90%;

  max-width: 1200px;

  margin: 0 auto;

  padding: 1rem 0;

}

@media (min-width: 1024px) {
  .container {
    width: 75%; /* Or even 80% if you want more margin */
  }
}

.about-section {
  width: 100%;
}

@media (min-width: 1024px) {
  .about-section {
    max-width: 90%;
  }
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem; 
}





.about-quote {
  font-family: 'Cormorant Garamond', serif;
  /*font-style: italic;*/
  border-left: 4px solid #09B572;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #ccc;
}

.about-quote .quote-lead {
  font-weight: 600;
  font-size: 28px;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.about-quote .subquote-lead {
  font-weight: 400;
  font-size: 24px;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.about-quote .subquote {
  font-weight: 400;
  font-size: 20px;
  font-style: italic;
  margin-bottom: 0.5rem;
}



.about-quote .name {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.site-title {
  flex-shrink: 0;
}

.intro-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.intro-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.intro-text h1,
.intro-text h2 {
  margin: 0;
}

.intro-text h1 {
  display: inline-block;
  box-shadow: inset 0 -0.125em 0 #09B572;
}

.intro-text a {
  color: #000;
   text-decoration: underline 4px #09B572;
}




.intro-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.intro-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.main-nav {
  margin-top: 0.5rem; /* Adjust as needed */
}


.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap; /* optional */
  gap: 1.5rem;
}

.main-nav a {
  text-decoration: underline 2px #09B572;
  color: inherit;
  font-weight: 500;
}

.main-nav a:focus {
  outline: 2px dashed #000;
}
.main-nav a:hover {
  text-decoration: none;
}

.intro-text-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.intro-text h1,
.intro-text h2 {
  margin: 0;
}

.intro-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 600px) {
  .intro-text-block {
    flex-direction: column;
    align-items: flex-start;
  }
}
 

.profile-img {

  width: 150px;

  height: 150px;

  border-radius: 50%;

  object-fit: cover;

}

 

h1, h2, h3 {

  font-weight: 700;

}


.image-wrapper {
  position: relative;
}

.company-logo {
  position: absolute;
  top: 16.5rem;
  left: 0.5rem;
  width: 10px;
  height: auto;
  z-index: 2;
  background: white;
  padding: 4px;
  border-radius: 4px;
}

 


.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  grid-auto-flow: dense; 

}

 

.card {

  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  background: #fff;


}

 

.card img {

  width: 100%;

  height: auto;

}

 

.logo-grid {

  display: flex;

  flex-wrap: wrap;

  gap: 2rem;

  align-items: center;

  justify-content: center;

}

 

.logo-grid img {

  max-height: 50px;

  object-fit: contain;

}

.intro-block a {

  color: #000;

  text-decoration: none;

}

.case-intro-header img {
  width: 100%;       /* Scales to container width */
  height: 100%;      /* Keeps aspect ratio */
  max-width: 700px; /* Optional cap for very large screens */
  max-height:500px;
  display: block;    /* Removes inline spacing */
  margin: 0 auto;    /* Centers the image */
}

/* Example breakpoints for smaller devices */
@media (max-width: 768px) {
  .case-intro-header img {
    max-width: 90%; /* Slight padding on mobile */
  }
}

@media (max-width: 480px) {
  .case-intro-header img {
    max-width: 100%; /* Fill screen on very small devices */
  }
}


 

.contact-list {

  list-style: none;

  padding: 0;

}

 

.contact-list li {

  margin: 0.5rem 0;

}


.contact-list a {

  color: #000;

  text-decoration: underline 2px #09B572;

}

 

.contact-list a:focus {

    outline: 2px dashed #000;
}

.contact-list a:hover {


}


.card a {

  color: #000;

  text-decoration: underline 2px #09B572;

}

 

.card a:focus {

    outline: 2px dashed #000;
}

.card a:hover {

text-decoration: none;
}


.test {

width: 150px;
height:100%;
}

@media (max-width: 600px) {
  .test {
  width: 120px;
height:100%;
  }
}

 

body.dark-mode {

  background-color: #1A1A1A;

  color: #ffffff;

}

body.dark-mode .quote-lead {

  color: #ffffff;

}

body.dark-mode .subquote{

  color: #ccc;

}


body.dark-mode .subquote-lead{

  color: #ffffff;

}

body.dark-mode .name{

  color: #ffffff;

}
 

body.dark-mode .card {

  background-color: #1e1e1e;

  border-color: #444;

}

 

body.dark-mode a {

  color: #fff;

}

 

body.dark-mode a:focus,

body.dark-mode a:hover {

  outline: 2px dashed #aaddff;

}


.light-mode-img {
  display: block;
}
.dark-mode-img {
  display: none;
}

/* When dark mode is active on body */
body.dark-mode .light-mode-img {
  display: none;
}
body.dark-mode .dark-mode-img {
  display: block;
}

 

#modeToggle {

  position: fixed;

  top: 1rem;

  right: 1rem;

  padding: 0.5rem 1rem;

  background: #000;

  color: #fff;

  border: none;

  cursor: pointer;

  font-family: 'Inter', sans-serif;

}

 

body.dark-mode #modeToggle {

  background: #fff;

  color: #000;

}

.toggle-wrapper {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-label {
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: inherit;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #000;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px; width: 26px;
  left: 4px; bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #ccc;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

body:not(.dark-mode) .logo-grid img {
  filter: grayscale(100%);
}

body.dark-mode .logo-grid img {
  filter: invert(100%) grayscale(100%);
}

body:not(.dark-mode) .test img {
  
}

body.dark-mode .test img {
  filter: invert(100%) grayscale(100%);
}

.about-content {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap; /* stacks on smaller screens */
}

.about-quote {
  flex: 1;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  border-left: 4px solid #09B572;
  padding-left: 1rem;
  margin: 0;
  color: #333;
}

.about-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

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

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    align-items:flex-start;
  }
}

.back-link {
  text-decoration: underline 2px #09B572;
  color: inherit;
  font-weight: 500;
}

.back-link:focus {

outline: 2px dashed #000;

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


/*case study*/

.case-section {
  margin-bottom: 3rem;
}



.case-image {
  width: 100%;       /* Scales to container width */
  height: 100%;
  max-width: 800px; /* Optional cap for very large screens */
  max-height:600px;
  display: block;    /* Removes inline spacing */
  /*margin: 1rem 0;*/
  border: 1px solid #ccc;
  margin: 0 auto;  
}

.before-after {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.before-after figure {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.testimonial {
  border-left: 4px solid #ccc;
  padding-left: 1rem;
  font-style: italic;
  color: #333;
}
.intro-text a,
.main-nav a,
.card a,
.contact-list a,
.back-link {
  text-decoration-line: underline;
  text-decoration-color: #09B572;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* Fallback for iOS/WebKit that ignores thickness/color */
@supports not (text-decoration-thickness: 2px) {
  .intro-text a,
  .main-nav a,
  .card a,
  .contact-list a,
  .back-link {
    text-decoration: none;                         /* avoid double line */
    background-image: linear-gradient(#09B572,#09B572);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 2px;                     /* “fake” underline */
  }
}
