/* =================== Global Styles =================== */

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  line-height: 2;
  color: #000;
  background: #fff;
}

h1 {
  margin: 0;
  padding: 0 15%;
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #000;
}

/* =================== Navbar =================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  padding: 10px 0;
  background-color: #161326;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin-right: 20px;
}

.nav-links a {
  position: relative;
  display: inline-block;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
}

.nav-links a:hover {
  color: #ddd;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-icons img {
  width: 20px;
  height: 20px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.social-icons img:hover {
  opacity: 0.7;
}

.logo img {
  height: 40px;
}

/* =================== Mobile Navigation =================== */
/*
 * The following styles add support for a hamburger-based navigation
 * menu on small screens. By default the toggle button is hidden and
 * the full navigation layout is displayed. When the viewport width
 * falls below 600px, the toggle becomes visible and the navigation
 * items collapse into a vertical dropdown that appears below the
 * navbar when activated. The `.open` class on `.nav-right` is used
 * to control visibility via JavaScript.
 */

/* Hamburger toggle button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  background-color: #161326
}

/* Individual bars of the hamburger */
.nav-toggle .bar {
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background-color: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hide the text used for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive navigation styles */
@media (max-width: 600px) {
  /* Show the hamburger button on small screens */
  .nav-toggle {
    display: flex;
  }

  /* Position the dropdown menu relative to the navbar */
  .nav-container {
    position: relative;
  }

  /* Hide the navigation by default on small screens */
  .nav-right {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
    background-color: #161326;
    z-index: 999;
  }

  /* Show the nav when the open class is applied (toggled in JS) */
  .nav-right.open {
    display: flex;
  }

  /* Stack the links vertically */
  .nav-links {
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
  }

  /* Increase the clickable area of each link */
  .nav-links a {
    display: block;
    padding: 10px 0;
  }

  /* Adjust social icon spacing */
  .social-icons {
    gap: 20px;
  }
}


/* =================== Hero Section =================== */

.hero-section {
  position: relative;
  width: 100%;
  height: 700px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: 300;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  background-image: url('images/Splashing_wave_from_within_CROPED.jpg');
  background-size: cover;
  background-position: center;
}

.overlay-image {
  width: 80%;
  max-width: 700px;
  height: auto;
}

.hero-text {
  font-size: clamp(10px, 2.5vw, 24px);
  font-weight: 600;
  text-align: center;
  color: #fff;
}

/* =================== Geometric Sections =================== */

.section-G1,
.section-G2,
.section-G3 {
  color: #000;
}

.section-G1,
.section-G2 {
  position: relative;
  width: 100%;
  height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 0;
  text-align: center;
  padding: 5% 0;
  background-size: cover;
  background-position: top left;
}

.section-G1 {
  background-image: url('images/Geometric_BG_1.png');
}

.section-G2 {
  background-image: url('images/Geometric_BG_2.png');
}

.section-G1-text {
  padding: 0 20%;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 2vw, 28px);
  font-weight: 500;
}

/* =================== Fade & Animation Helpers =================== */

/* Fade from bottom */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 2s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade only */
.fade-stat {
  opacity: 0;
  transition: opacity 3s ease-out;
}

.fade-stat.visible {
  opacity: 1;
}

/* Fade + slide left */
.fade-in-L {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-L.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade + slide right */
.fade-in-R {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-R.visible {
  opacity: 1;
  transform: translateX(0);
}

/* =================== Solution Section =================== */

.solution-section {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 80px 10%;
  box-sizing: border-box;
}

.solution-text {
  position: relative;
  z-index: 5;
  max-width: 760px;
  margin-right: -7vw;
}

.solution-eyebrow {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  color: #79BCD6;
}

.solution-title {
  margin: 0 0 18px;
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 500;
  line-height: 1.25;
  color: #000;
}

.solution-body {
  margin: 0;
  max-width: 700px;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.9;
  color: #000;
}

.solution-image {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  z-index: 1;
}

.solution-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.solution-image .panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: rgb(255, 255, 255);
  pointer-events: none;
}

.solution-image .panel-1 {
  width: 30%;
  opacity: 0.4;
}

.solution-image .panel-2 {
  width: 20%;
  opacity: 0.4;
}

.solution-image .panel-3 {
  width: 10%;
  opacity: 0.4;
}

/* Responsive variants for Solution Section */
@media (max-width: 1024px) {
  .solution-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 56px 8%;
  }
  .solution-text {
    margin-right: 0;
  }
  .solution-image {
    height: 420px;
  }
  .solution-image .panel-1,
  .solution-image .panel-2,
  .solution-image .panel-3 {
    width: 0;
  }
}

/* =================== Desalination Section =================== */

.desalination-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 60px 10%;
  box-sizing: border-box;
}

.desalination-image {
  position: relative;
  height: 380px;
  overflow: hidden;
}

.desalination-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.desalination-image .d-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgb(255, 255, 255);
  pointer-events: none;
}

.desalination-image .d1 {
  left: 70%;
  width: 30%;
  opacity: 0.4;
}

.desalination-image .d2 {
  left: 80%;
  width: 20%;
  opacity: 0.4;
}

.desalination-image .d3 {
  left: 90%;
  width: 10%;
  opacity: 0.4;
}

.desalination-copy {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  margin-left: -6vw;
  margin-right: 6vw;
  max-width: 560px;
}

.d-eyebrow {
  margin: 0 0 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  line-height: 1.05;
  color: #79BCD6;
  font-size: clamp(28px, 5vw, 64px);
  text-align: right;
}

.d-body {
  margin: 0;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.9;
  color: #000;
  text-align: right;
}

/* Responsive variants for Desalination Section */
@media (max-width: 1024px) {
  .desalination-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 8%;
  }
  .desalination-image {
    height: 320px;
  }
  .desalination-copy {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
  .desalination-image .d1,
  .desalination-image .d2,
  .desalination-image .d3 {
    width: 0;
  }
  .d-eyebrow,
  .d-body {
    text-align: left;
    width: 430px;
  }
}
@media (max-width: 480px){
  .desalination-image{
    width: 336px;
  }
  .desalination-copy{
    padding: 0;
    width: 336px:
  }
}

/* =================== Our Technology Section =================== */

.tech-section {
  position: relative;
  padding: 100px 15% 120px;
  overflow: hidden;
  background-image: url('images/Geometric_BG_2.png');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 70%;
}

.tech-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.tech-title {
  margin: 0 0 60px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.2;
  color: #000;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 72px;
  align-items: start;
}

.tech-card {
  max-width: 380px;
}

.tech-icon {
  width: clamp(150px, 14vw, 200px);
  height: auto;
  display: block;
  margin: 0 auto 28px;
}

.tech-card-title {
  margin: 0 0 12px;
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 28px);
  color: #000;
}

.tech-card-body {
  margin: 0 auto;
  max-width: 34ch;
  font-size: clamp(14px, 1.2vw, 14px);
  line-height: 1.8;
  color: #000;
}

.tech-card-body strong {
  font-weight: 800;
}

/* Responsive variants for Our Technology Section */
@media (max-width: 1280px) {
  .tech-section {
    background-size: 44%, 34%;
    background-position: right 22%, right -10px bottom -6px;
  }
}

@media (max-width: 1024px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 40px;
  }
  .tech-section {
    padding: 72px 8% 96px;
  }
}

@media (max-width: 768px) {
  .tech-section {
    background: none;
    padding: 60px 8% 80px;
    background-size: 70%, 60%;
    background-position: right 8%, right -12px bottom -10px;
  }
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    justify-items: center;
  }
  .tech-card {
    text-align: center;
    max-width: 90%;
  }
  .tech-card-title {
    text-align: center;
    margin-top: 12px;
  }
  .tech-card-body {
    text-align: left;
    margin: 0 auto;
  }
  .tech-icon {
    margin: 0 auto 20px;
    width: 200px;
  }
}

/* =================== Testimonials Section =================== */

.testimonials-section {
  position: relative;
  padding: 100px 14% 120px;
  background-image: url('images/Geometric_BG_3.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 70%;
}

.testimonials-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.testimonial-author {
  margin: 0 0 12px;
  font-size: 15px;
  color: #111;
}

blockquote {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
  font-weight: 400;
  color: #111;
}

blockquote strong {
  font-weight: 700;
}

/* Right-align the second quote */
.testimonial:nth-child(2) {
  margin-left: auto;
  max-width: 980px;
}

.testimonial:nth-child(2) .testimonial-author {
  text-align: right;
}

.testimonial:nth-child(2) blockquote {
  text-align: right;
}

/* Tighten first quote width */
.testimonial:nth-child(1) {
  max-width: 980px;
}

/* Responsive variants for Testimonials Section */
@media (max-width: 1024px) {
  .testimonials-section {
    background: none;
    padding: 60px 8% 80px;
  }
  .testimonials-inner {
    gap: 60px;
  }
  blockquote {
    font-size: 18px;
    text-align: center;
  }
  .testimonial-author {
    font-size: 14px;
    text-align: center;
  }
  .testimonial:nth-child(2),
  .testimonial:nth-child(1) {
    max-width: none;
    margin-left: 0;
  }
  .testimonial:nth-child(2) .testimonial-author,
  .testimonial:nth-child(2) blockquote {
    text-align: center;
  }
}

/* =================== Contact Us Section =================== */

.talk-to-us {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 40px;
  font-weight: 400;
  text-transform: uppercase;
  color: #fff;
}

.have-any-questions {
  position: relative;
  width: auto;
  max-width: 600px;
  margin-bottom: 10px;
  padding: 0 15%;
  display: inline-block;
  text-align: center;
  font-size: 20px;
  color: #fff;
}

button,
.btn,
.clickhere-button {
  width: 151px;
  height: 60px;
  display: inline-block;
  border: none;
  border-radius: 8px;
  line-height: 60px;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  background-color: #79BCD6;
  color: #000;
}

button:hover,
.btn:hover,
.clickhere-button:hover {
  background-color: #3aa0b3;
  color: #fff;
}

.contact-us-section {
  position: relative;
  width: 100%;
  height: 633px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 0;
  text-align: center;
  background-image: url('images/Contact_Us.png');
  background-size: cover;
  background-position: center;
}

/* =================== Partners Section =================== */

.partners-section {
  padding: 0 15%;
  text-align: center;
  background: #fff;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1px 20px;
  align-items: center;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.partners-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.partners-grid img {
  max-width: 100%;
  max-height: 150px;
  height: auto;
  object-fit: contain;
}

.partners-grid a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Responsive variants for Partners Section */
@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px 20px;
  }
  .partners-section h2 {
    font-size: 22px;
    margin-bottom: 24px;
  }
}

/* =================== Footer =================== */

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 40px;
  font-size: 14px;
  background-color: #000;
  color: #fff;
}

.footer-left,
.footer-center,
.footer-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-left {
  justify-self: start;
}

.footer-center {
  justify-self: center;
  flex-direction: column;
  text-align: center;
}

.footer-right {
  justify-self: end;
  white-space: nowrap;
}

.footer-left img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
}

.footer-left img:hover {
  opacity: 0.7;
}

.footer-logo {
  width: 150px;
  height: auto;
}

@media (max-width: 768px) {
  .footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
  }
  .footer-right {
    white-space: normal;
    justify-self: center;
  }
}

/* =================== Utility: Spacer =================== */

.spacer {
  width: 100%;
  height: var(--h, 80px);
}

@media (max-width: 768px) {
  .spacer[data-mobile="shrink"] {
    height: calc(var(--h, 80px) * 0.5);
  }
  .spacer[data-mobile="hide"] {
    display: none;
  }
}

/* =================== Intro / About Section =================== */

.intro {
  background-image: url('images/Geometric_BG_4.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 60px 15%;
  margin-top: 70px;
}

.intro__wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "text"
    "photo";
  gap: 40px;
  align-items: start;
  padding: 0;
}

.wrapper {
  padding: 60px 0 0;
}

.intro__content {
  grid-area: text;
  max-width: 100%;
  text-align: left;
}

.intro__title {
  margin: 0 0 20px;
  font-size: 45px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

.intro__lead {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}

.intro__content p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}

.intro__photo {
  grid-area: photo;
}

.intro__photo img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Two-column layout on larger screens */
@media (min-width: 850px) {
  .intro__wrap {
    grid-template-columns: 50% 55%;
    grid-template-areas: "photo text";
    justify-content: space-between;
  }
  .intro__photo{
    width: 100%;
    padding: 0;
  }
  .wrapper{
    padding: 0;
  }
}

/* =================== Team Section =================== */

.team-section {
  background-image: url('images/Wave_darkG.png');
  background-color: #161326;
  background-size: cover;
  background-position: center;
  padding: 80px 15%;
  color: #fff;
}

.team-title {
  margin: 30px 0;
  font-weight: 500;
  font-size: 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 50px 40px;
}

.team-card {
  background-color: #161326;
  border: 0;
  padding: 0;
}

.team-photo img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 14px;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.team-toggle {
  border: 0;
  padding: 0;
  background: transparent;
}

.team-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  padding: 8px 0;
  font-size: 22px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.team-toggle summary::-webkit-details-marker {
  display: none;
}

.team-name::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.team-toggle[open] .team-name::after {
  transform: rotate(-135deg);
}

.team-bio {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.9;
  color: #e9eef2;
}

.linky {
  color: #79BCD6;
}

/* Responsive variants for Team Section */
@media (max-width: 768px) {
  .team-title {
    font-size: 32px;
  }
  .team-bio {
    font-size: 15px;
  }
}

/* =================== Board of Advisors Section =================== */

.advisors-section {
  background-image: url('images/Geometric_BG_5.png');
  background-size: cover;
  background-position: center;
  padding: 80px 15%;
  color: #000;
}

.advisors-title {
  margin: 0 0 40px;
  font-weight: 500;
  font-size: 38px;
  line-height: 1.2;
}

.advisors-title span {
  color: #79BCD6;
  font-weight: 600;
}

.advisors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 60px 130px;
  align-items: start;
}

.advisor {
  text-align: left;
}

.advisor-photo {
  width: 150px;
  height: 150px;
  margin: 0 0 16px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.advisor-name {
  margin: 0 0 8px;
  font-weight: 500;
  font-size: 24px;
}

.advisor-role {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1.8;
  text-transform: uppercase;
  color: #333;
}

/* Responsive variants for Advisors Section */
@media (max-width: 768px) {
  .advisors-section {
    background-size: 0;
    padding: 60px 8% 80px;
  }
  .advisors-title {
    font-size: 34px;
  }
  .advisor-photo {
    width: 170px;
    height: 170px;
  }
}

/* =================== Contact Front Section =================== */

.contact-front {
  position: relative;
  width: 100%;
  height: 700px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 45px;
  font-weight: 600;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  background-image: url('images/bubbles_dark.jpg');
  background-size: cover;
  background-position: center;
}

/* =================== Contact CTA Section =================== */

.cta-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 80px 10%;
  background: #fff;
}

.cta-photo {
  margin: 0 0 0 100px;
}

.cta-photo img {
  width: 80%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.cta-copy {
  color: #000;
}

.cta-title {
  margin: 0 0 20px;
  font-weight: 600;
  line-height: 1.2;
  font-size: 44px;
  color: #000;
}

.cta-title br {
  display: block;
}

.cta-title span {
  color: #79BCD6;
}

.cta-phone,
.cta-email {
  margin: 10px 0 0;
  font-size: 20px;
  font-weight: 300;
}

.cta-phone a,
.cta-email a {
  color: #000;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cta-phone a:hover,
.cta-email a:hover {
  color: #3aa0b3;
  border-color: #79BCD6;
}

/* Responsive variants for Contact CTA Section */
@media (max-width: 1024px) {
  .cta-contact {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 60px 8%;
  }
  .cta-copy {
    order: -1;
  }
  .cta-title {
    font-size: 34px;
  }
  .cta-phone,
  .cta-email {
    font-size: 18px;
  }
}

/* =================== Mobile Overflow Fixes =================== */
/*
 * These overrides fix elements that caused horizontal scrolling
 * on narrow screens. They only apply on mobile breakpoints and
 * preserve larger layouts.
 */

/* Center and scale the contact photo on small screens */
@media (max-width: 600px) {
  .cta-photo {
    margin: 0 auto;
  }
  .cta-photo img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}

/* Force the team grid into a single column on very narrow viewports */
@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px 20px;
  }
}

/* Reduce gaps in the advisors grid on the smallest screens */
@media (max-width: 480px) {
  .advisors-grid {
    gap: 40px 20px;
  }
}

/* Hide any residual horizontal overflow on body */
html,
body {
  overflow-x: hidden;
}
