/* ============================================
   Guru Gruha Consultants — style.css
   Stack: Bootstrap 5 + Playfair Display + Inter
   ============================================ */

/* ── Variables ────────────────────────────── */
:root {
  --navy:      #1c2b3a;
  --gold:      #c9973a;
  --gold-dark: #a97d2e;
  --off-white: #f7f5f0;
  --light-bg:  #f0ede8;
  --dark-bg:   #111820;
  --text:      #2d2d2d;
  --text-muted:#6b6b6b;
  --radius:    6px;
  --transition: 0.3s ease;
}

/* ── Animations ───────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Tab Layout System ────────────────────── */
body.tab-layout {
  overflow: hidden !important;
  height: 100vh;
  margin: 0;
}

/* ALL panels: hidden, full-viewport, stacked */
.page-panel {
  display: none !important;
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

/* Only the active panel is visible */
.page-panel.active {
  display: block !important;
}

/* Inner panels: offset for fixed navbar */
.panel-scrollable {
  padding-top: 70px;
}

/* Home panel background */
#panel-home {
  background-color: #1c2b3a;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
}

/* Hero overlay sits behind content */
#panel-home > .hero-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 20, 30, 0.62);
  z-index: 0;
  pointer-events: none;
}

/* Full-viewport hero wrapper — founders only visible on scroll */
.hero-viewport {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-viewport .hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Subtle scroll hint */
.hero-scroll-hint {
  display: block;
  text-align: center;
  width: 100%;
  padding: 1rem 0 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  white-space: nowrap;
  animation: bounce 2s infinite;
  position: relative;
  z-index: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}
  
/* Stable scroll hint for projects panel (no animation) */
.scroll-hint-container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1rem;
}

.scroll-hint-container .hero-scroll-hint {
  animation: none;
  white-space: normal;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 1rem 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  line-height: 1.6;
  transform: none;
}

/* Home team strip */
.home-expertise-strip {
  position: relative;
  z-index: 1;
  background: transparent;
  padding: 0;
  min-height: auto;
  display: block;
  width: 100%;
  overflow: hidden;
}

.expertise-header-viewport {
  position: relative;
  z-index: 2;
  padding: 30px 0 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url('images/expertise-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-color: #1c2b3a;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
}

.expertise-header-viewport::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: -1;
}

.expertise-header-viewport .container {
  padding: 0;
}

.home-expertise-strip .section-label {
  color: var(--gold);
}

.expertise-item {
  position: relative;
  margin-bottom: 0;
  width: 100vw;
  min-height: auto;
  padding: 2rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-color: #1c2b3a;
  transition: all 0.6s ease-in-out;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.8s ease-out;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.expertise-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
  pointer-events: none;
}

.expertise-item:last-child {
  margin-bottom: 0;
}

.expertise-item-heritage {
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-color: #1c2b3a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.expertise-item-heritage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
  pointer-events: none;
}

.heritage-title-top {
  text-align: center;
  padding: 3rem 2rem 1rem;
  max-width: 900px;
  min-height: 30vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.heritage-description-bottom {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0;
  position: relative;
  z-index: 1;
}

.expertise-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  padding: 4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expertise-item-bottom-right .expertise-overlay {
  max-width: 100%;
  padding: 4rem 6rem 6rem 4rem;
  align-items: flex-end;
  justify-content: flex-end;
}

.expertise-item-bottom-right .expertise-content {
  max-width: 600px;
  text-align: right;
}

.expertise-item-bottom-right .expertise-heading {
  text-align: right;
}

.expertise-item-bottom-right .expertise-divider {
  margin-left: auto;
  margin-right: 0;
}

.expertise-item-bottom-right .expertise-description {
  text-align: right;
  margin-left: auto;
  margin-right: 0;
}

.expertise-item-top-left .expertise-overlay {
  max-width: 100%;
  padding: 1rem 4rem 4rem 4rem;
  align-items: flex-start;
  justify-content: flex-start;
}

.expertise-item-top-left .expertise-content {
  max-width: 750px;
  text-align: left;
}

.expertise-item-top-left .expertise-heading {
  text-align: left;
}

.expertise-item-top-left .expertise-divider {
  margin-left: 0;
  margin-right: auto;
}

.expertise-item-top-left .expertise-description {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

.expertise-item-split .expertise-overlay {
  max-width: 1400px;
  padding: 0.5rem 1rem;
}

.expertise-item-split .expertise-content {
  text-align: left;
  padding: 0.5rem 0;
}

.expertise-item-split .expertise-heading {
  text-align: left;
  margin-bottom: 0.25rem;
}

.expertise-item-split .expertise-divider {
  margin-left: 0;
  margin-right: auto;
  max-width: 400px;
  margin-bottom: 0.75rem;
}

.expertise-item-split .expertise-description {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  margin-bottom: 0;
}

/* Two-column layout for expertise split items */
.expertise-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.expertise-col-text {
  width: 100%;
}

.expertise-col-image {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expertise-split-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 400px;
  border-radius: var(--radius);
}

.expertise-image-right {
  width: 100%;
  overflow: hidden;
}

.expertise-image-right img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  min-height: 300px;
  max-height: 350px;
}

.expertise-content {
  background: transparent;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 0;
  width: 100%;
}

.expertise-heading {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900;
  color: #ffffff;
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  text-transform: uppercase;
  text-shadow: 0 3px 10px rgba(0,0,0,0.95), 0 6px 20px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.85);
}

.expertise-divider {
  width: 100%;
  max-width: 800px;
  height: 3px;
  background: #ffffff;
  margin: 0 auto 2rem auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.expertise-description {
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.9;
  text-align: center;
  margin: 0 auto;
  font-weight: 700;
  text-shadow: 0 3px 10px rgba(0,0,0,0.95), 0 6px 20px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.85);
  max-width: 900px;
}

/* Dual Images Layout */
.expertise-item-dual-images {
  background: transparent !important;
  min-height: auto;
  padding: 2rem 0;
}

.expertise-overlay-dual {
  width: 100%;
  max-width: 1400px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.expertise-images-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  align-items: stretch;
}

.expertise-image-dual {
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expertise-image-dual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.expertise-content-dual {
  text-align: center;
  width: 100%;
  max-width: 1000px;
}

.expertise-content-dual .expertise-heading {
  text-align: center;
}

.expertise-content-dual .expertise-divider {
  margin-left: auto;
  margin-right: auto;
}

.expertise-content-dual .expertise-description {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.expertise-image {
  display: none;
}

.expertise-image img {
  display: none;
}

/* Project Item */
.project-item {
  position: relative;
  width: 100vw;
  min-height: 80vh;
  background-size: cover;
  background-position: center 35%;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding: 3rem 2rem;
  z-index: 1;
}

.project-title-box {
  text-align: left;
  max-width: 500px;
  color: #ffffff;
  z-index: 2;
}

.project-description-box {
  text-align: right;
  max-width: 600px;
  color: #ffffff;
  z-index: 2;
  align-self: flex-end;
}

.project-content {
  text-align: center;
  max-width: 900px;
  color: #ffffff;
  z-index: 2;
}

.project-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 3px 10px rgba(0,0,0,0.95), 0 6px 20px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.85);
  letter-spacing: 1px;
}

.project-location {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #c9973a;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.project-description {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 500;
  text-shadow: 0 3px 10px rgba(0,0,0,0.95), 0 6px 20px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.85);
}

/* Projects Gallery */
.projects-gallery {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  z-index: 1;
}

.gallery-content {
  text-align: center;
  max-width: 900px;
  color: #ffffff;
  z-index: 2;
}

.gallery-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 3px 10px rgba(0,0,0,0.95), 0 6px 20px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.85);
  letter-spacing: 1px;
}

.gallery-location {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #c9973a;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.gallery-text {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 500;
  text-shadow: 0 3px 10px rgba(0,0,0,0.95), 0 6px 20px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.85);
}

.gallery-image-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Footer inside tab layout */
.panel-footer {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* Panel inner banner (inner pages) */
.panel-page-hero {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1c2b3a 0%, #2c4a6e 100%);
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
}

.panel-page-hero .page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 30, 0.72);
}

.panel-page-hero .page-hero-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1rem;
}

/* Projects panel dark bg */
#panel-projects .container.section-pad {
  background: var(--dark-bg);
  padding: 40px 0;
}

#panel-projects .text-center.mb-5 {
  margin-bottom: 1.5rem !important;
}

#panel-projects .text-white-50 {
  font-size: 0.85rem;
}

/* ── Base ─────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

img { max-width: 100%; height: auto; }

/* ── Navbar ───────────────────────────────── */
#mainNav {
  background: transparent;
  padding: 1.1rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
  z-index: 300;
}

#mainNav.scrolled {
  background: var(--navy);
  padding: 0.65rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

#mainNav .navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.navbar-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

#mainNav .nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 0.4rem 0.9rem;
  transition: color var(--transition);
  text-transform: uppercase;
}

#mainNav .nav-link:not(.active):hover {
  color: var(--gold);
}

#mainNav .nav-link.active,
#mainNav .nav-link.active:hover {
  color: var(--gold);
}

.btn-contact {
  background: var(--gold);
  color: #fff !important;
  border-radius: 3px;
  padding: 0.4rem 1.1rem !important;
  margin-left: 0.5rem;
  transition: background var(--transition), transform var(--transition);
}

.btn-contact:hover {
  background: var(--gold-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

/* ── Mobile Menu Toggler ──────────────────── */
/* Hide hamburger menu on desktop/laptop (992px and above) */
@media (min-width: 992px) {
  .navbar-toggler {
    display: none !important;
  }
}

/* Show only on mobile/tablet */
.navbar-toggler {
  border: 2px solid var(--gold);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: rgba(201, 151, 58, 0.1);
  transition: all 0.3s ease;
  position: relative;
  margin-left: auto;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(201, 151, 58, 0.3);
  outline: none;
}

.navbar-toggler:hover {
  background: rgba(201, 151, 58, 0.2);
  border-color: var(--gold);
  transform: scale(1.05);
}

.navbar-toggler.enhanced-toggler {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.9rem;
}

@media (min-width: 992px) {
  .navbar-toggler.enhanced-toggler {
    display: none !important;
  }
}

.toggler-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 0.1rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(201, 151, 58, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 24px;
  height: 20px;
}

/* Pulse animation to draw attention */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(201, 151, 58, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(201, 151, 58, 0);
  }
}

.navbar-toggler.enhanced-toggler {
  animation: pulse 2s ease-in-out infinite;
}

.navbar-toggler.enhanced-toggler:hover,
.navbar-toggler.enhanced-toggler:focus,
.navbar-toggler.enhanced-toggler[aria-expanded="true"] {
  animation: none;
}

/* When menu is open, change the appearance */
.navbar-toggler[aria-expanded="true"] {
  background: var(--gold);
  border-color: var(--gold);
}

.navbar-toggler[aria-expanded="true"] .toggler-label {
  color: #fff;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Hero ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Solid fallback until a real image is added:
     Replace the gradient with: background-image: url('images/hero.jpg'); */
  background: linear-gradient(135deg, #1c2b3a 0%, #2c4a6e 50%, #1a3a2e 100%);
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 22, 30, 0.55) 0%, rgba(15, 22, 30, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1rem;
}

.hero-tagline {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-sub {
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.btn-hero {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 0.85rem 2.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 18px rgba(201, 151, 58, 0.4);
}

.btn-hero:hover {
  background: var(--gold-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 151, 58, 0.5);
}

/* ── Section Shared ───────────────────────── */
.section-pad { padding: 90px 0; }

/* Remove padding from section-pad containing full-width image sections */
.section-pad:has(.about-img-block.about-story) {
  padding-top: 0;
  padding-bottom: 0;
}

.about-story-image-section + .container.section-pad {
  padding-top: 0;
}

.about-story-image-section + .principles-image-section {
  margin-top: 0;
}

.principles-image-section + .container.section-pad {
  padding-top: 0;
}

.section-label {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}

.section-label.light {
  color: var(--gold);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.1rem;
}

.section-title.text-white { color: #fff; }

.section-text {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 1rem;
}

/* ── Background Variants ──────────────────── */
.bg-white     { background: #fff !important; }
.bg-light     { background: var(--off-white) !important; }
.bg-dark-custom { background: var(--dark-bg) !important; }
.bg-accent    { background: var(--navy) !important; }

/* ── About ────────────────────────────────── */
.stats-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.1rem;
}

.stat-item p {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.about-img-block {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto;
}

.about-img-block.about-story {
  min-height: 100vh;
  background: url('images/hero2.jpg') center/cover no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  overflow: hidden;
}

@media (min-width: 768px) {
  .about-img-block.about-story {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }
}

.about-img-overlay {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.about-img-label {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 4px 16px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.8);
}

.about-img-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 2rem 0;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 4px 16px rgba(0,0,0,0.7);
}

.about-img-text {
  color: #ffffff;
  font-size: 1.3rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 4px 16px rgba(0,0,0,0.7);
  font-weight: 700;
  max-width: 900px;
}

.stats-row-overlay {
  display: flex;
  gap: 3.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat-item-overlay h3 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 0.2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 4px 16px rgba(0,0,0,0.7);
}

.stat-item-overlay p {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.purpose-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: 0 18px 40px rgba(17, 24, 34, 0.08);
  min-height: 100%;
}

.purpose-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 1rem;
  background: #f7f5f0;
}

.purpose-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.purpose-card p {
  color: var(--text-muted);
  line-height: 1.75;
}

/* Placeholder — remove once you add a real <img> */
.about-img {
  width: 100%;
  height: auto;
  min-height: 300px;
  aspect-ratio: 4 / 3;
  -webkit-appearance: none;
  object-fit: cover;
  -webkit-object-fit: cover;
  border-radius: var(--radius);
  display: block;
  -webkit-font-smoothing: antialiased;
}

/* Gold accent bar next to image */
.about-img-block::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  width: 80px;
  height: 80px;
  border-top: 4px solid var(--gold);
  border-left: 4px solid var(--gold);
  border-radius: 2px;
  z-index: 1;
}

/* ── Founder Cards (two-up layout) ───────── */
.founder-card {
  background: #fff;
  border: 1px solid rgba(201, 151, 58, 0.18);
  border-radius: calc(var(--radius) * 1.1);
  padding: 2rem;
  box-shadow: 0 32px 65px rgba(17, 24, 34, 0.15);
  height: 100%;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.founder-card:hover {
  transform: none;
  box-shadow: 0 22px 48px rgba(17, 24, 34, 0.12);
  border-color: rgba(201, 151, 58, 0.14);
}

.founder-card {
  cursor: default;
}

.founder-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  padding: 1rem;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  text-align: center;
}

.founder-photo-container {
  position: relative;
  display: inline-block;
  padding-right: 45px;
}

.linkedin-icon-btn {
  position: absolute;
  bottom: 20px;
  right: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  background: transparent;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 119, 181, 0.4);
  border: none;
  z-index: 10;
  overflow: hidden;
}

.linkedin-icon-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 28px rgba(0, 119, 181, 0.6);
}

.linkedin-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.founder-card .founder-photo-wrap {
  flex-shrink: 0;
  background: transparent;
  padding: 0;
  border-radius: 50%;
}

.founder-card .founder-photo {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  display: block;
}

.founder-card .founder-photo-wrap::after { display: none; }

.founder-card-intro { 
  flex: 1;
  text-align: center;
}

.founder-card-name {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

/* ── Expertise tags ───────────────────────── */
.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.expertise-tag {
  background: var(--off-white);
  border: 1px solid #ddd;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 30px;
  letter-spacing: 0.3px;
}

/* ── Career Timeline ──────────────────────── */
.timeline-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.career-timeline {
  border-left: 2px solid #e0d8cc;
  padding-left: 1.5rem;
  margin-left: 0.5rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.6rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.93rem;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.timeline-body h6 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.15rem;
}

.timeline-org {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.5rem;
}

.timeline-body ul {
  margin: 0;
  padding-left: 1.1rem;
}

.timeline-body ul li {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

.founder-credentials {
  color: rgba(44, 53, 70, 0.75);
  font-size: 1rem;
  margin: 0;
  letter-spacing: 0.3px;
  font-weight: 600;
}

/* ── Founder (old single layout) ─────────── */
.founder-photo-wrap {
  display: inline-block;
  position: relative;
}

.founder-photo {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  display: block;
  margin: 0 auto;
}

/* Crop Santhosh's photo to show face and shoulders */
.founder-photo-santhosh {
  object-fit: cover;
  object-position: center 10%;
}

.founder-photo-wrap::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0.5;
}

.founder-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  margin-top: 0;
}

.founder-quals {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.qual-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qual-year {
  background: var(--gold);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.qual-text {
  font-size: 0.93rem;
  color: var(--text);
  font-weight: 500;
}

.founder-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.founder-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  background: #fff;
  border: 1px solid #ddd;
  padding: 0.45rem 1rem;
  border-radius: 30px;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.founder-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* ── Purpose Cards ────────────────────────── */
.purpose-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  border-left: 4px solid var(--gold);
  box-shadow: 0 2px 18px rgba(0,0,0,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.purpose-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.purpose-icon {
  font-size: 2rem;
  margin-bottom: 0.9rem;
}

.purpose-card h4 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.7rem;
}

.purpose-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

/* ── About Story Image Section ────────────────────────── */
.about-story-image-section {
  width: 100%;
  min-height: 100vh;
  background: url('images/about-story.jpg') center/cover no-repeat;
  background-attachment: scroll;
  background-color: #1c2b3a;
  background-size: cover;
  background-position: center;
  -webkit-background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem;
  margin-left: 0;
  margin-right: 0;
}

.about-story-overlay {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  padding: 3rem 2.5rem;
  border-radius: 12px;
  backdrop-filter: blur(2px);
}

.about-story-label {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 4px 16px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.8);
  display: block;
}

.about-story-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 4px 16px rgba(0,0,0,0.7);
}

.about-story-intro {
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 4px 16px rgba(0,0,0,0.7);
  font-weight: 600;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.about-story-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 4px 16px rgba(0,0,0,0.7);
}

.about-story-text {
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 4px 16px rgba(0,0,0,0.7);
  font-weight: 600;
}

/* ── Principles Image Section ────────────────────────── */
.principles-image-section {
  width: 100%;
  min-height: 100vh;
  background: url('images/about-story2.jpg') center/cover no-repeat;
  background-attachment: scroll;
  background-color: #1c2b3a;
  background-size: cover;
  background-position: center;
  -webkit-background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem;
  margin-left: 0;
  margin-right: 0;
}

.principles-overlay {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  padding: 3rem 2.5rem;
  border-radius: 12px;
  backdrop-filter: blur(2px);
}

.principles-label {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 4px 16px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.8);
  display: block;
}

.principles-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 4px 16px rgba(0,0,0,0.7);
}

.principle-text-card h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.principle-text-card p {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 4px 16px rgba(0,0,0,0.7);
  font-weight: 600;
}

/* ── Project Cards (Icon-based for projects.html) ────────────────────────── */
.bg-dark-custom .project-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.8rem 1rem;
  text-align: center;
  color: #fff;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  cursor: default;
}

.bg-dark-custom .project-card:hover {
  background: rgba(201, 151, 58, 0.15);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.project-icon {
  font-size: 2.2rem;
  margin-bottom: 0.7rem;
  display: block;
}

.bg-dark-custom .project-card h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin: 0;
  color: rgba(255,255,255,0.9);
}

/* ── Projects Carousel Grid ───────────────── */
.projects-carousel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
}

.projects-carousel-grid .project-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.projects-carousel-grid .project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.carousel-container {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #f0ede8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card-info {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
}

.carousel-title-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.carousel-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.carousel-location {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ── Project Showcase (Projects Page) ──────────────────────── */
.project-showcase {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: box-shadow var(--transition);
  margin-bottom: 3rem;
}

.project-showcase:hover {
  box-shadow: 0 6px 30px rgba(0,0,0,0.12);
}

.project-showcase-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  margin: 0;
  border-bottom: 2px solid var(--gold);
}

/* Vertical Image Gallery */
.vertical-image-gallery {
  position: relative;
  background: #f0ede8;
  width: 100%;
}

.gallery-viewer {
  position: relative;
  width: 100%;
  background: #f0ede8;
}

.image-display-container {
  position: relative !important;
  width: 100% !important;
  height: 500px !important;
  background: #f0ede8 !important;
  overflow: hidden !important;
  display: block !important;
}

/* ALL IMAGES - COMPLETELY HIDDEN FROM LAYOUT */
.vertical-image-gallery .gallery-viewer .image-display-container img.gallery-img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  display: none !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

/* ONLY ACTIVE IMAGE - FULLY VISIBLE */
.vertical-image-gallery .gallery-viewer .image-display-container img.gallery-img.active {
  display: block !important;
  z-index: 10 !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}


/* Navigation Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(28, 43, 58, 0.8);
  color: #ffffff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  padding: 0;
}

.nav-arrow:hover {
  background: var(--gold);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(201, 151, 58, 0.5);
}

.nav-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.nav-arrow-left {
  left: 15px;
}

.nav-arrow-right {
  right: 15px;
}

/* Navigation Dots */
.image-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
  gap: 12px;
  background: #fff;
}

.image-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(28, 43, 58, 0.3);
  border: 2px solid rgba(28, 43, 58, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.image-dots .dot:hover {
  background-color: rgba(201, 151, 58, 0.5);
  border-color: var(--gold);
}

.image-dots .dot.active {
  background-color: var(--gold);
  border-color: var(--gold);
  transform: scale(1.3);
}

.project-overview {
  padding: 2rem;
  background: #fff;
  border-top: 1px solid #e8e4de;
}

.project-overview p {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}

/* ── Principle Cards ──────────────────────── */
.principle-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 0;
  height: 100%;
  box-shadow: 0 2px 18px rgba(0,0,0,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid transparent;
  overflow: hidden;
  position: relative;
  min-height: 600px;
  background-size: cover;
  background-position: center;
}

.principle-card-commitment {
  background-image: url('images/principle-commitment.jpg');
}

.principle-card-quality {
  background-image: url('images/principle-quality.jpg');
}

.principle-card-value {
  background-image: url('images/principle-value.jpg');
}

.principle-card-sustainability {
  background-image: url('images/principle-sustainability.jpg');
}

.principle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  border-top-color: var(--gold);
}

.principle-card-overlay {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.75) 100%);
}

.principle-card img {
  display: none;
}

.principle-num {
  display: none;
}

.principle-card h4 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.2rem 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
  z-index: 2;
}

.principle-card > div:first-child {
  position: relative;
}

.principle-card > div:first-child::before {
  display: none;
}

.principle-card p {
  font-size: 1.25rem;
  color: #ffffff;
  margin: 0;
  padding: 0;
  line-height: 1.75;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9);
  font-weight: 600;
}

/* ── Contact Form ─────────────────────────── */
.contact-form {
  max-width: 640px;
}

.contact-form .form-control {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.93rem;
  transition: border-color var(--transition), background var(--transition);
}

.contact-form .form-control::placeholder { color: rgba(255,255,255,0.45); }

.contact-form .form-control:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 151, 58, 0.2);
  color: #fff;
  outline: none;
}

.contact-form select.form-control option {
  background: var(--navy);
  color: #fff;
}

.btn-submit {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 0.8rem 2.4rem;
  font-size: 0.93rem;
  font-weight: 600;
  border-radius: var(--radius);
  letter-spacing: 0.4px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 18px rgba(201, 151, 58, 0.35);
}

.btn-submit:hover {
  background: var(--gold-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(201, 151, 58, 0.5);
}

/* ── Contact Success Page ─────────────────── */
.contact-success-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  background: var(--navy);
}

.contact-success-content {
  max-width: 680px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--gold);
  color: #fff;
  font-size: 3rem;
  line-height: 80px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  box-shadow: 0 8px 25px rgba(201, 151, 58, 0.4);
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.success-message {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.success-details {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.8rem;
  margin-bottom: 2rem;
}

.success-detail-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.success-contact {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.8rem;
}

.success-email {
  font-size: 1.05rem;
  color: var(--gold);
  margin: 0;
  font-weight: 600;
}

.success-email strong {
  color: var(--gold);
  font-weight: 600;
}

.contact-success-content .btn {
  min-width: 200px;
  margin: 0 0.5rem;
}

@media (max-width: 576px) {
  .contact-success-content {
    padding: 2.5rem 1.5rem;
  }
  
  .success-title {
    font-size: 1.8rem;
  }
  
  .success-icon {
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
    line-height: 70px;
  }
  
  .contact-success-content .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
}

/* ── Footer ───────────────────────────────── */
.footer {
  background: #0b1017;
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 1rem;
  font-size: 0.9rem;
}

.footer strong { color: #fff; }

.footer-small {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.4rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
  margin-top: 0.6rem;
}

/* ── Page Hero (inner pages) ──────────────── */
.page-hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1c2b3a 0%, #2c4a6e 100%);
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  padding-top: 90px; /* offset fixed navbar - increased for mobile */
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 30, 0.7);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 1rem;
}

.page-hero-content h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* ── Hero logo (home page) ────────────────── */
.hero-logo {
  height: 300px;
  width: auto;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
  margin-bottom: 0;
  display: block;
}

/* ── Logo text beneath logo ───────────────── */
.logo-text {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.logo-text-main {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.1rem;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.logo-text-sub {
  font-size: 1.1rem;
  font-weight: 400;
  color: white;
  letter-spacing: 0.5rem;
  margin-top: 0.25rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ── Hero CTA row ─────────────────────────── */
.hero-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 0.85rem 2.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* ── Home Founder Strip ───────────────────── */
.home-founder-strip {
  padding: 60px 0;
  border-bottom: 1px solid #ede9e2;
}

.founder-strip-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.founder-strip-photo {
  flex-shrink: 0;
}

.founder-strip-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.founder-strip-body {
  flex: 1;
  min-width: 220px;
}

.founder-strip-body h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.1rem;
}

.founder-strip-role {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}

.founder-strip-body p {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.btn-outline-founder {
  display: inline-block;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.btn-outline-founder:hover {
  background: var(--gold);
  color: #fff;
}

.founder-strip-stats {
  display: flex;
  gap: 2rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.fstrip-stat h4 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.1rem;
}

.fstrip-stat p {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* ── Home Nav Cards ───────────────────────── */
.home-nav-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e4de;
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-decoration: none;
  color: var(--text);
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}

.home-nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.1);
  border-color: var(--gold);
  color: var(--text);
}

.home-nav-card.hnc-highlight {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.home-nav-card.hnc-highlight h5,
.home-nav-card.hnc-highlight p { color: rgba(255,255,255,0.88); }

.home-nav-card.hnc-highlight:hover {
  border-color: var(--gold);
  background: #1e3450;
}

.hnc-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.home-nav-card h5 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.home-nav-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1rem;
}

.hnc-arrow {
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 700;
}

/* ── Contact Info (contact page) ─────────── */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.contact-info-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
  color: #fff !important;
  filter: grayscale(100%) brightness(200%);
  font-style: normal;
  font-variant: normal;
}

.contact-info-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.15rem;
}

.contact-info-val {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  text-decoration: none;
  margin: 0;
}

.contact-info-val:hover { color: var(--gold); }

/* ── Responsive tweaks ────────────────────── */
@media (max-width: 991.98px) {
  .section-pad { padding: 70px 0; }

  /* Ensure navbar is properly positioned on mobile */
  #mainNav {
    padding: 0.8rem 0;
  }

  #mainNav.scrolled {
    padding: 0.6rem 0;
  }

  #mainNav .navbar-collapse {
    background: linear-gradient(135deg, var(--navy) 0%, #1a2d42 100%);
    margin-top: 0.8rem;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(201, 151, 58, 0.2);
  }
  
  #mainNav .navbar-collapse.show,
  #mainNav .navbar-collapse.collapsing {
    animation: slideDown 0.3s ease-out;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Make menu items more visible on mobile */
  #mainNav .nav-link {
    padding: 0.9rem 1rem !important;
    margin: 0.3rem 0;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
  }
  
  #mainNav .nav-link:hover {
    background: rgba(201, 151, 58, 0.15);
    transform: translateX(5px);
  }
  
  #mainNav .nav-link.active {
    background: rgba(201, 151, 58, 0.2);
    border-left: 3px solid var(--gold);
  }

  .btn-contact { 
    margin-left: 0; 
    margin-top: 0.8rem;
    display: block;
    text-align: center;
    padding: 0.8rem 1rem !important;
  }

  .expertise-header-viewport {
    padding: 25px 0 5px;
  }

  .expertise-item {
    min-height: 80vh;
  }

  .expertise-overlay {
    padding: 3rem 2rem;
  }

  .expertise-item-bottom-right .expertise-overlay {
    padding: 3rem 3rem 4rem 2rem;
  }

  .expertise-item-bottom-right .expertise-content {
    max-width: 80%;
  }

  .expertise-item-top-left .expertise-overlay {
    padding: 1rem 2rem 4rem 2rem;
  }

  .expertise-item-top-left .expertise-content {
    max-width: 85%;
  }

  .expertise-item-split .expertise-overlay {
    padding: 0.5rem 1rem;
  }

  .expertise-item-split .expertise-content {
    padding: 0.5rem 0.75rem;
  }

  .expertise-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .expertise-col-image {
    order: 2;
  }

  .expertise-col-text {
    order: 1;
  }

  .expertise-split-img {
    max-height: 350px;
  }

  .expertise-image-right img {
    min-height: 280px;
    max-height: 320px;
  }

  .expertise-item-heritage {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    padding: 0;
  }

  .heritage-title-top {
    padding: 2.5rem 1.5rem 1rem;
    min-height: 28vh;
  }

  .heritage-description-bottom {
    padding: 3rem 1.5rem;
  }

  .expertise-heading {
    font-size: 1.6rem;
  }

  .expertise-description {
    font-size: 1rem;
  }

  .expertise-overlay-dual {
    padding: 2rem;
  }

  .expertise-images-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .expertise-image-dual {
    height: 280px;
  }

  .project-item {
    min-height: 70vh;
  }

  .project-overlay {
    padding: 2rem;
  }

  .project-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .project-location {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }

  .project-description {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .project-title-box {
    max-width: 450px;
  }

  .project-description-box {
    max-width: 500px;
  }

  .projects-gallery {
    min-height: 80vh;
    background-attachment: fixed;
  }

  .gallery-overlay {
    padding: 2rem;
  }

  .gallery-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .gallery-location {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }

  .gallery-text {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .projects-carousel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .carousel-container {
    height: 180px;
  }

  .carousel-title {
    font-size: 0.85rem;
  }

  .carousel-location {
    font-size: 0.7rem;
  }

  .project-card-info {
    padding: 0.9rem;
  }
}

/* ── Tablet (768px and below) ─────────────── */
@media (max-width: 767.98px) {
  .hero-logo { height: 210px; }

  .logo-text-main {
    font-size: 1.5rem;
    letter-spacing: 0.08rem;
  }

  .logo-text-sub {
    font-size: 0.9rem;
    letter-spacing: 0.4rem;
  }

  .about-img-block.about-story {
    background-attachment: scroll !important;
    background-image: url('images/hero2.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }
  
  .about-img-overlay {
    padding: 3rem 1.5rem;
  }

  .about-story-image-section {
    background-attachment: scroll !important;
    background-image: url('images/about-story.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
  }

  .principles-image-section {
    background-attachment: scroll !important;
    background-image: url('images/about-story2.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
  }

  .founder-contact {
    justify-content: center;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta-row .btn-hero,
  .hero-cta-row .btn-hero-outline {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .panel-page-hero { min-height: 150px; }

  .projects-carousel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .carousel-container {
    height: 160px;
  }

  .carousel-title {
    font-size: 0.85rem;
  }

  .carousel-location {
    font-size: 0.7rem;
  }

  .project-card-info {
    padding: 0.9rem;
  }

  .project-showcase-title {
    font-size: 1.4rem;
    padding: 1.5rem 1rem 1rem;
  }

  .image-display-container {
    height: 350px !important;
  }

  .vertical-image-gallery .gallery-viewer .image-display-container img.gallery-img {
    display: none !important;
  }

  .vertical-image-gallery .gallery-viewer .image-display-container img.gallery-img.active {
    display: block !important;
  }

  .nav-arrow {
    width: 45px;
    height: 45px;
    font-size: 2.2rem;
  }

  .nav-arrow-left {
    left: 12px;
  }

  .nav-arrow-right {
    right: 12px;
  }

  .image-dots {
    padding: 1.2rem 0;
    gap: 10px;
  }

  .image-dots .dot {
    width: 11px;
    height: 11px;
  }

  .project-overview {
    padding: 1.5rem;
  }

  .project-overview p {
    font-size: 0.95rem;
  }
}

/* ── Mobile (575px and below) ─────────────── */
@media (max-width: 575.98px) {
  .stats-row { gap: 1.5rem; }
  .section-pad { padding: 55px 0; }
  .hero-content h1 { font-size: 2rem; }

  /* Fix page hero padding for small phones to prevent cropping */
  .page-hero {
    padding-top: 100px !important;
    min-height: 280px;
  }

  .page-hero-content {
    padding: 2rem 1rem;
  }

  .page-hero-content h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .about-img-block.about-story {
    background-attachment: scroll !important;
    background-image: url('images/hero2.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
  }

  .about-story-image-section {
    background-attachment: scroll !important;
    background-image: url('images/about-story.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
  }

  .principles-image-section {
    background-attachment: scroll !important;
    background-image: url('images/about-story2.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
  }

  .hero-logo { height: 165px; }

  .logo-text-main {
    font-size: 1.2rem;
    letter-spacing: 0.05rem;
  }

  .logo-text-sub {
    font-size: 0.75rem;
    letter-spacing: 0.3rem;
  }

  .hero-scroll-hint {
    white-space: normal;
    font-size: 0.7rem;
    padding: 0.75rem 1rem 1.25rem;
  }

  .founder-card { padding: 1.5rem 1rem; }

  .founder-card .founder-photo {
    width: 220px;
    height: 220px;
  }

  .founder-photo-container {
    padding-right: 35px;
  }

  .linkedin-icon-btn {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: -8px;
  }

  .linkedin-icon {
    width: 100%;
    height: 100%;
  }

  .founder-card-name { 
    font-size: 1.35rem;
    margin-top: 0.75rem;
  }

  .home-expertise-strip { padding: 40px 0; }

  .about-img-block.about-story { 
    min-height: 80vh;
    background-attachment: scroll !important;
    background-image: url('images/hero2.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }

  .about-img-overlay {
    padding: 2.5rem 1.5rem;
  }
  
  .about-img-label {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }
  
  .about-img-title {
    font-size: 2rem;
  }
  
  .about-img-text {
    font-size: 1.05rem;
    line-height: 1.6;
  }
  
  .stats-row-overlay {
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .stat-item-overlay h3 {
    font-size: 2.5rem;
  }


  .about-img-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }

  .about-img-text {
    font-size: 1.1rem;
  }

  .stats-row-overlay {
    gap: 1.5rem;
  }

  .stat-item-overlay h3 {
    font-size: 2.8rem;
  }

  .stat-item-overlay p {
    font-size: 1rem;
  }

  .about-story-image-section {
    min-height: 80vh;
    padding: 3rem 1.5rem;
    width: 100% !important;
    margin: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    -webkit-background-size: cover !important;
  }

  .about-story-overlay {
    padding: 2rem 1.5rem;
  }

  .about-story-heading {
    font-size: 1.8rem;
  }

  .about-story-intro {
    font-size: 1.05rem;
  }

  .about-story-title {
    font-size: 1.5rem;
  }

  .about-story-text {
    font-size: 1rem;
  }

  .principles-image-section {
    min-height: 80vh;
    padding: 3rem 1.5rem;
    width: 100% !important;
    margin: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    -webkit-background-size: cover !important;
  }

  .principles-overlay {
    padding: 2rem 1.5rem;
  }

  .principles-heading {
    font-size: 1.8rem;
  }

  .principle-text-card h4 {
    font-size: 1.2rem;
  }

  .principle-text-card p {
    font-size: 0.95rem;
  }

  .principle-card {
    min-height: 450px;
  }

  .principle-card h4 {
    font-size: 1.6rem;
  }

  .principle-card p {
    font-size: 1.1rem;
  }

  .contact-form { max-width: 100%; }

  .expertise-header-viewport {
    padding: 20px 0 5px;
  }

  .expertise-item {
    min-height: 70vh;
  }

  .expertise-overlay {
    padding: 2.5rem 1.5rem;
  }

  .expertise-item-bottom-right .expertise-overlay {
    padding: 2.5rem 2rem 3rem 1.5rem;
  }

  .expertise-item-bottom-right .expertise-content {
    max-width: 90%;
  }

  .expertise-item-top-left .expertise-overlay {
    padding: 1rem 1.5rem 3rem 1.5rem;
  }

  .expertise-item-top-left .expertise-content {
    max-width: 90%;
  }

  .expertise-content {
    padding: 1.5rem 1rem;
  }

  .expertise-heading {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .expertise-divider {
    margin-bottom: 1.5rem;
    height: 2px;
    max-width: 100%;
  }

  .expertise-description {
    font-size: 0.95rem;
    text-align: left;
  }

  .expertise-item-bottom-right .expertise-heading,
  .expertise-item-bottom-right .expertise-description {
    text-align: left;
  }

  .expertise-item-bottom-right .expertise-divider {
    margin-left: 0;
    margin-right: auto;
  }

  .expertise-item-top-left .expertise-heading,
  .expertise-item-top-left .expertise-description {
    text-align: left;
  }

  .expertise-item-top-left .expertise-divider {
    margin-left: 0;
    margin-right: auto;
  }

  .expertise-item-split .expertise-overlay {
    padding: 0.5rem 1rem;
  }

  .expertise-item-split .expertise-content {
    padding: 0.5rem 0.5rem;
  }

  .expertise-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .expertise-col-image {
    order: 2;
  }

  .expertise-col-text {
    order: 1;
  }

  .expertise-split-img {
    max-height: 300px;
  }

  .expertise-image-right img {
    min-height: 220px;
    max-height: 280px;
  }

  .expertise-item-heritage {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    padding: 0;
  }

  .heritage-title-top {
    padding: 2rem 1.5rem 1rem;
    min-height: 25vh;
  }

  .heritage-description-bottom {
    padding: 2.5rem 1.5rem;
  }

  .expertise-overlay-dual {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .expertise-images-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .expertise-image-dual {
    height: 250px;
  }

  .expertise-content-dual {
    max-width: 100%;
  }

  .expertise-content-dual .expertise-heading {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .expertise-content-dual .expertise-description {
    font-size: 0.95rem;
  }

  .project-item {
    min-height: 60vh;
  }

  .project-overlay {
    padding: 1.5rem;
  }

  .project-title {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
  }

  .project-location {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .project-description {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .project-title-box {
    max-width: 100%;
  }

  .project-description-box {
    max-width: 100%;
  }

  .projects-gallery {
    min-height: 60vh;
  }

  .gallery-overlay {
    padding: 1.5rem;
  }

  .gallery-title {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
  }

  .gallery-location {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .gallery-text {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  /* ── About page mobile adjustments ──── */
  .about-img-block {
    margin: 0 !important;
    position: relative;
    height: auto !important;
    min-height: 300px !important;
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .about-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 300px !important;
    max-height: 400px !important;
    aspect-ratio: 4 / 3;
    object-fit: cover !important;
    -webkit-object-fit: cover !important;
    border-radius: var(--radius) !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Mobile About Story and Principles Image Sections */
  .about-story-image-section {
    min-height: 70vh;
    padding: 2rem 1rem;
    width: 100%;
    margin: 0;
  }

  .about-story-overlay {
    padding: 1.5rem 1rem;
  }

  .about-story-heading {
    font-size: 1.5rem;
  }

  .about-story-intro {
    font-size: 0.95rem;
  }

  .about-story-title {
    font-size: 1.3rem;
  }

  .about-story-text {
    font-size: 0.9rem;
  }

  .principles-image-section {
    min-height: 70vh;
    padding: 2rem 1rem;
    width: 100%;
    margin: 0;
  }

  .principles-overlay {
    padding: 1.5rem 1rem;
  }

  .principles-heading {
    font-size: 1.5rem;
  }

  .principle-text-card h4 {
    font-size: 1.1rem;
  }

  .principle-text-card p {
    font-size: 0.85rem;
  }

  .projects-carousel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .carousel-container {
    height: 180px;
  }

  .carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .carousel-title {
    font-size: 0.8rem;
  }

  .carousel-location {
    font-size: 0.65rem;
  }

  .project-card-info {
    padding: 0.8rem;
  }

  .project-showcase {
    margin-bottom: 2rem;
  }

  .project-showcase-title {
    font-size: 1.2rem;
    padding: 1.2rem 0.8rem 0.8rem;
  }

  .image-display-container {
    height: 250px !important;
  }

  .vertical-image-gallery .gallery-viewer .image-display-container img.gallery-img {
    display: none !important;
  }

  .vertical-image-gallery .gallery-viewer .image-display-container img.gallery-img.active {
    display: block !important;
  }

  .nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .nav-arrow-left {
    left: 8px;
  }

  .nav-arrow-right {
    right: 8px;
  }

  .image-dots {
    padding: 1rem 0;
    gap: 8px;
  }

  .image-dots .dot {
    width: 10px;
    height: 10px;
    border-width: 1.5px;
  }

  .project-overview {
    padding: 1.2rem;
  }

  .project-overview p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}


/* ──────────────────────────────────────────────────────
   PROJECT DETAIL CAROUSEL STYLES
   Single-image carousel for project detail pages
   ────────────────────────────────────────────────────── */

.project-detail-carousel {
  width: 100%;
  margin-bottom: 2rem;
}

.detail-carousel-container {
  position: relative;
  width: 100%;
  height: 500px;
  background: #f0ede8;
  overflow: hidden;
  border-radius: 8px;
}

.detail-carousel-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ALL SLIDES - COMPLETELY HIDDEN */
.detail-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none !important;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
}

/* ONLY ACTIVE SLIDE - FULLY VISIBLE */
.detail-carousel-slide.active {
  display: block !important;
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

.detail-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background-color: #f0ede8;
}

/* Navigation Arrows */
.detail-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(28, 43, 58, 0.8);
  color: #f7f5f0;
  border: none;
  padding: 12px 16px;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.detail-carousel-nav:hover {
  background: rgba(28, 43, 58, 0.95);
}

.detail-carousel-prev {
  left: 20px;
}

.detail-carousel-next {
  right: 20px;
}

/* Dot Indicators */
.detail-carousel-dots {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  border-radius: 25px;
  backdrop-filter: blur(4px);
  margin-top: 15px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.detail-carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(201, 151, 58, 0.5);
  border: 2px solid rgba(201, 151, 58, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
}

.detail-carousel-dots .dot.active {
  background: #c9973a;
  border-color: #a97d2e;
  transform: scale(1.2);
}

.detail-carousel-dots .dot:hover {
  background: rgba(201, 151, 58, 0.8);
}

/* ── Tablet Breakpoint: 500px ────────────────── */
@media (max-width: 500px) {
  /* Ensure proper spacing on smaller phones */
  .page-hero {
    padding-top: 110px !important;
    min-height: 300px;
  }

  .navbar-brand {
    font-size: 1.1rem !important;
  }

  .detail-carousel-container {
    height: 350px;
  }

  .detail-carousel-nav {
    padding: 10px 14px;
    font-size: 1.2rem;
  }

  .detail-carousel-prev {
    left: 12px;
  }

  .detail-carousel-next {
    right: 12px;
  }

  .detail-carousel-dots {
    bottom: 15px;
    gap: 10px;
    padding: 10px 16px;
  }

  .detail-carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-width: 1.5px;
  }
}

/* ── Mobile Breakpoint: 350px ────────────────── */
@media (max-width: 350px) {
  /* Ensure proper spacing on very small phones */
  .page-hero {
    padding-top: 120px !important;
    min-height: 320px;
  }

  .page-hero-content h1 {
    font-size: 1.8rem;
  }

  .navbar-brand {
    font-size: 1rem !important;
  }

  .detail-carousel-container {
    height: 250px;
  }

  .detail-carousel-nav {
    padding: 8px 12px;
    font-size: 1rem;
  }

  .detail-carousel-prev {
    left: 8px;
  }

  .detail-carousel-next {
    right: 8px;
  }

  .detail-carousel-dots {
    bottom: 12px;
    gap: 8px;
    padding: 8px 12px;
  }

  .detail-carousel-dots .dot {
    width: 8px;
    height: 8px;
  }
}
