/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #222;
}

/* Header */
.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
  height: 100px;
  width: auto;
}

.circle-img {
  width: 150px;             /* adjust size as needed */
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.logo-text-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  gap: 0.5rem;
}

.site-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-title .line1 {
  font-size: 1.3rem;
  font-weight: bold;
  color: #222;
}

.site-title .line2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: #444;
}         /* Space between logo and text */

.hamburger {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* full screen height */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding-bottom: 80px; /* space for buttons */
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 800px; /* fixed height for hero image */
  display: block;
  object-fit: cover;
  z-index: 0;
}

/* TEXT BELOW IMAGE */
.hero-text {
  text-align: center;
  padding: 1.5rem 1rem;
}

.hero-title {
  text-align: center;
  margin-top: 0.5rem;     /* Reduced space above the title */
  margin-bottom: 1rem;
  font-weight: 700;
  color: #222;
  padding: 0 0.5rem;
  line-height: 1.3;
}

.hero-title .line1 {
  font-size: 2.2rem;
  display: block;
}

.hero-title .line2 {
  font-size: 2rem;
  display: block;
}



.hero-buttons {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-btn {
  background-color: #1e2a8a;
  color: white;
  padding: 1rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
}

.aba-intro {
  padding: 2rem 1rem;
  text-align: center;
}

.aba-intro-heading {
  writing-mode: vertical-lr;       /* text flows vertically */
  transform: rotate(180deg);       /* flips direction bottom to top */
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  max-height: 100px; /* limit height to prevent overflow */
}

.aba-flex {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.aba-text-content {
  text-align: left;
  font-size: 1rem;
  color: #444;
  flex: 2;
  min-width: 0;
}

.aba-text-content h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.aba-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  width: 120px;
}

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


.aba-benefits {
  padding: 1.5rem;
  text-align: left;
}

.aba-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.aba-text h3 {
  font-size: 1.1rem;
  margin-top: 1.2rem;
  font-weight: bold;
}

.aba-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

@media screen and (max-width: 768px) {
  .aba-flex {
    align-items: center;
  }

  .aba-text-content,
  .aba-intro-heading {
    text-align: center;
  }

  .aba-images {
    flex-direction: column;
    width: auto;
  }
}

.contact-section {
  padding: 2rem 1rem;
  background-color: #fff;
}

.contact-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 900px;
  margin: 0 auto;
}

.contact-form h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #1a1a1a;
  font-family: 'Segoe UI', sans-serif;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .form-row {
    flex-direction: row;
    justify-content: space-between;
  }

  .form-group {
    width: 48%;
  }
}

.form-group label {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: #333;
}

input,
textarea {
  border: none;
  border-bottom: 2px solid #ccc;
  padding: 0.5rem 0;
  font-size: 1rem;
  width: 100%;
  background: transparent;
  outline: none;
  transition: border-color 0.3s;
}

input:focus,
textarea:focus {
  border-bottom: 2px solid #4a4de3;
}

.submit-button {
  margin-top: 2rem;
  background-color: #4a4de3;
  color: white;
  font-size: 1rem;
  padding: 1rem;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background 0.3s;
}

.submit-button:hover {
  background-color: #393ab8;
}
.reviews-section {
  background-color: #eae4f9; /* soft purple */
  padding: 3rem 1.5rem;
  text-align: center;
}

.reviews-header h2 {
  font-size: 2rem;
  margin-top: 0.5rem;
  color: #1a1a1a;
  font-family: 'Segoe UI', sans-serif;
}

.reviews-tag {
  display: inline-block;
  background-color: #5c4db1;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
}

.reviews-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2.5rem;
}

blockquote {
  font-style: italic;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.author {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  font-style: normal;
}
/* General styling */
.aba-info-image {
  padding: 1rem;
  text-align: center;
}

.aba-info-image .info-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Optional: fine-tune for small screens */
@media screen and (max-width: 600px) {
  .aba-info-image {
    padding: 1.5rem 1rem;
  }

  .aba-info-image .info-img {
    width: 100%;
    height: auto;
  }
}
.footer {
  background-color: #e4dffd; /* soft purple */
  color: #1a1a1a;
  padding: 2rem 1rem;
  font-family: 'Arial', sans-serif;
}

.footer-top {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-logo {
  max-width: 120px;
  margin-bottom: 1rem;
}

.footer-contact-title {
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}

.footer-contact-info {
  margin: 0;
  font-size: 0.95rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.footer-column h4 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin: 0.3rem 0;
}

.footer-column ul li a {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 0.95rem;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}
/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 100vh;
  background-color: white;
  box-shadow: -2px 0 5px rgba(0,0,0,0.2);
  transition: right 0.3s ease-in-out;
  z-index: 1000;
  padding: 1.5rem;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  justify-content: flex-end;
}

.close-btn {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

.appointment-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  padding-top: 1.5rem;
  width: 100%;
}

.appointments-btn {
  background-color: #8A6DD2;
  color: white;
  font-weight: bold;
  padding: 12px 18px;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  width: 100%;
  max-width: 220px;
  margin: 1rem auto;
  box-sizing: border-box;
}
.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem; /* More space between links */
}

.mobile-nav-links a {
  text-decoration: none;
  font-size: 1.3rem; /* Slightly bigger font */
  font-weight: 500;
  color: #333;
}
.mobile-instagram {
  text-align: center;
  margin-bottom: 1.2rem;
}

.instagram-icon {
  width: 28px;
  height: 28px;
}

/* Hamburger Button */
.hamburger {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

/* Hide hamburger on desktop */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}

/*about section */
.about {
  padding: 2rem 1rem;
}

.about-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
}

.about-text {
  flex: 1;
  font-size: 1rem;
  max-width: 55%;
  color: #333;
}

.about-text h2 {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 1rem;
}

.about-images {
  flex: 1;
  display: flex;
  max-width: 40%;
  flex-direction: column;
  gap: 1rem;
}

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

@media screen and (max-width: 600px) {
  .about-container {
    flex-direction: row;
    align-items: flex-start;
  }

  .about-text {
    font-size: 0.95rem;
  }

  .about-images img {
    width: 200px;
    height: 200px;
  }
}

/* About Section */
.about-section {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: left;
}

.about-section.alt {
  flex-direction: column-reverse;
}
.about-text {
  max-width: 500px;
  margin-bottom: 1rem;
  color: #333;
}

.about-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.6;
}

.about-image img {
  width: 80%;
  max-width: 220px;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

/* section 4 About Mission */
.about-mission {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1.5rem 1rem;
  background-color: #f5f5f5;
  color: #333;
}

/* section 5 */

.about-trust {
  padding: 1.5rem;
  font-size: 1rem;
  color: #444;
}

.about-trust h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.about-trust ul {
  list-style-type: none;
  padding-left: 0;
}

.about-trust li {
  margin-bottom: 0.75rem;
}


/* section 6 */

.about-cta {
  text-align: center;
  padding: 2rem 1rem;
}

.cta-button {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 1rem;
}

/* service section */
/* Services Section */
.services-section {
  background-color: #f5f0ff; /* light purple */
  padding: 2rem 1rem;
  color: #333;
  text-align: left;
}

.services-title {
  text-align: center;
  color: #6b3fa0;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.service-item {
  margin-bottom: 2rem;
}

.service-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.service-item p {
  font-size: 1rem;
  line-height: 1.6;
}

.consult-cta {
  text-align: center;
  margin-top: 3rem;
}

.consult-cta h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.consult-cta p {
  margin-bottom: 1rem;
}

.consult-link {
  color: #6b3fa0;
  font-weight: bold;
  text-decoration: underline;
}
/* Career Page - Section 1 */
.career-section {
  padding: 2rem 1rem;
  background-color: #f9f9ff; /* soft background */
  text-align: center;
}

.career-section h2 {
  font-size: 1.8rem;
  color: #3d3d3d;
  margin-bottom: 1rem;
  font-weight: 700;
}

.career-section p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}
/* Career Page - Benefits Section */
.career-benefits {
  padding: 2rem 1rem;
  background-color: #fff;
  text-align: center;
}

.career-benefits h3 {
  font-size: 1.6rem;
  color: #333;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

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

.benefits-list li {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
}
/* Career Roles Section */
.career-roles {
  padding: 2rem 1rem;
  text-align: center;
  background-color: #f5f5f5;
}

.career-roles h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
}

.roles-list {
  list-style: none; /* remove default bullets */
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center; /* centers the list items */
  gap: 0.75rem;
}

.roles-list li {
  position: relative;
  padding-left: 1.5rem; /* space for diamond */
  font-size: 1.1rem;
  color: #444;
  text-align: left;
}

.roles-list li::before {
  content: "◆";
  color: #8A6DD2; /* same purple as button */
  position: absolute;
  left: 0;
  top: 0;
}


.apply-link {
  display: inline-block;
  margin-top: 1.5rem;
  background-color: #8A6DD2;
  color: white;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
}

.meet-team {
  padding: 2rem 1rem;
  background-color: #f8f6ff;
  text-align: center;
}

.meet-team h3 {
  font-size: 1.6rem;
  color: #3c3c3c;
  margin-bottom: 0.5rem;
}

.team-intro {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.team-members {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-member img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}

.team-member p {
  font-weight: 500;
  font-size: 1rem;
  color: #444;
}
.fun-section {
  padding: 2rem 1rem;
  background-color: #fff5fc;
  text-align: center;
}

.fun-section h3 {
  font-size: 1.6rem;
  color: #3c3c3c;
  margin-bottom: 0.5rem;
}

.fun-intro {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.fun-image img {
  width: 90%;
  max-width: 320px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.career-questions {
  background-color: #f7f5fc;
  padding: 2rem 1rem;
  text-align: center;
}

.career-questions h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
}

.question-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.question-list li {
  font-size: 1rem;
  margin: 0.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.question-footer {
  font-size: 1rem;
}

.question-footer a {
  color: #6c3cc6;
  text-decoration: underline;
}

/* Request Header */
.request-header {
  padding: 2rem 1rem;
  text-align: center;
  background-color: #f9f5ff; /* soft purple background */
  color: #333;
}

.request-header h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #8A6DD2;
}

.request-header p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Request Form */
.request-form-section {
  padding: 2rem 1rem;
  background-color: #fff;
}

.request-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 500px;
  margin: 0 auto;
}

.request-form label {
  font-weight: 600;
  color: #333;
}

.request-form input,
.request-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.submit-button {
  background-color: #8A6DD2;
  color: white;
  border: none;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-button:hover {
  background-color: #7a5cc5;
}

/* What Next Section */
.what-next {
  padding: 2rem 1rem;
  background-color: #f9f5ff;
  text-align: left;
}

.what-next h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.next-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-number {
  background-color: #8A6DD2;
  color: white;
  font-weight: bold;
  padding: 0.5rem 0.9rem;
  border-radius: 50%;
  font-size: 1rem;
  min-width: 2rem;
  text-align: center;
}

.step p {
  margin: 0;
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
}

@media (min-width: 769px) {
  .desktop-header {
    background-color: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid #ddd;
    position: relative;
  }

  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }
  .header-left,
  .header-center,
  .desktop-info {
  display: flex;
  align-items: center;
}
.desktop-info {
  justify-content: flex-end;
  gap: 1rem;
  white-space: nowrap;
}


  
  .logo-text-container {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .site-title {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.2;
  }

  .nav-links {
    display: flex;
    gap: 2rem;
  }

  .nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
  }

  .desktop-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 2rem;
  }

  .request-button {
    background-color: #5a67ba;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    text-decoration: none;
    font-weight: bold;
  }

  .social-icons img {
    height: 24px;
  }

  .email-link {
    text-decoration: none;
    color: #555;
    font-weight: bold;
  }

  .hamburger {
    display: none;
  }
}
@media (max-width: 768px) {
  .header-center,
  .desktop-info {
    display: none;
  }
}

@media screen and (min-width: 769px) {
  .mobile-header {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .desktop-header {
    display: none;
  }

  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .logo-text-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .site-title {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    line-height: 1.2;
  }

  .hamburger {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
  }
}
@media (min-width: 769px) {
  .aba-img {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}
@media (min-width: 769px) {
  .contact-image img {
    max-width: 40%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-intro {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgb(255, 255, 255);
    font-size: 1.3rem;
    font-weight: 600;
    z-index: 2;
    padding: 0 1rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  }
}


@media (min-width: 769px) {
  .hero-intro {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    z-index: 2;
    padding: 0 1.5rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  }
}

/* ===== GALLERY: MOBILE BASE (2 columns + slide L/R) ===== */
#office-gallery {
  padding: 1rem 1rem 2rem;
}

#office-gallery h2 {
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 per row on mobile */
  gap: 10px;
}

/* Each tile */
.gallery-item {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;                    /* start hidden */
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Alternate directions */
.gallery-item:nth-child(odd) {
  animation: slideInLeft 650ms ease-out forwards;
}
.gallery-item:nth-child(even) {
  animation: slideInRight 650ms ease-out forwards;
}

/* Staggered delays (first 12 items) */
.gallery-item:nth-child(1)  { animation-delay: 80ms; }
.gallery-item:nth-child(2)  { animation-delay: 140ms; }
.gallery-item:nth-child(3)  { animation-delay: 200ms; }
.gallery-item:nth-child(4)  { animation-delay: 260ms; }
.gallery-item:nth-child(5)  { animation-delay: 320ms; }
.gallery-item:nth-child(6)  { animation-delay: 380ms; }
.gallery-item:nth-child(7)  { animation-delay: 440ms; }
.gallery-item:nth-child(8)  { animation-delay: 500ms; }
.gallery-item:nth-child(9)  { animation-delay: 560ms; }
.gallery-item:nth-child(10) { animation-delay: 620ms; }
.gallery-item:nth-child(11) { animation-delay: 680ms; }
.gallery-item:nth-child(12) { animation-delay: 740ms; }

@keyframes slideInLeft {
  from { transform: translateX(-18px); opacity: 0; }
  to   { transform: translateX(0);      opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(18px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

.gallery figure { margin: 0; }

.gallery img {
  width: 100%;
  display: block;
  height: auto;
  aspect-ratio: 4 / 3;  /* keeps rows even if some photos are taller */
  object-fit: cover;
}

/* Optional caption */
.gallery figcaption {
  display: block;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.4rem 0 0;
  color: #333;
  line-height: 1.2;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gallery-item {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== GALLERY: DESKTOP (4 columns + hover zoom) ===== */
@media (min-width: 900px) {
  #office-gallery {
    padding: 2rem 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  #office-gallery h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .gallery {
    grid-template-columns: repeat(4, 1fr); /* 4 per row on desktop */
    gap: 14px;
  }

  /* Hover zoom only on devices with a real cursor */
  @media (hover: hover) and (pointer: fine) {
    .gallery img {
      transition: transform 260ms ease, filter 260ms ease;
      will-change: transform;
    }
    .gallery-item:hover img,
    .gallery-item:focus-visible img {
      transform: scale(1.06);
    }

    /* Optional: subtle shadow on hover */
    .gallery-item {
      transition: box-shadow 200ms ease;
    }
    .gallery-item:hover,
    .gallery-item:focus-visible {
      box-shadow: 0 6px 20px rgba(0,0,0,0.12);
      outline: none;
    }
  }
}

/* ===== GALLERY PAGE BACKGROUND ===== */
main {
  background-color: #f0f8ff; /* Pastel blue background for the gallery section */
  padding: 2rem; /* Adds space around the gallery items so they don't touch the edges */
}


/* Fullscreen overlay for video intro */
#video-intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 9999;
  overflow: hidden;
}

#video-intro video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* default for mobile */
  background-color: black;
}

/* On desktop, show the entire video without cropping */
@media (min-width: 1024px) {
  #video-intro video {
    object-fit: contain;
  }
}

