/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* Style System Variables */
:root {
  --color-walnut: #073B1C;       /* Premium Dark Green */
  --color-walnut-light: #0B5C2B; /* Lighter Green */
  --color-oak: #FF9933;          /* Saffron Orange */
  --color-oak-dark: #E06A00;     /* Darker Saffron */
  --color-mahogany: #212529;     /* Charcoal Dark Grey */
  --color-gold: #D4AF37;         /* Accent Gold */
  --color-gold-hover: #F3C63F;
  --color-bg-light: #F7F9F8;     /* Ivory/Light Green-Grey */
  --color-bg-white: #FFFFFF;
  --color-text-dark: #2C302E;    /* Soft Dark Charcoal */
  --color-text-light: #606663;   /* Soft Light Charcoal */
  --color-footer-bg: #141414;    /* Deep Charcoal */
  --color-footer-text: #EAEAEA;
  --color-border: #E4E7E5;

  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Montserrat', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.08);

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Headings */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-mahogany);
  line-height: 1.25;
}

p {
  color: var(--color-text-light);
  font-weight: 400;
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

/* Explicit alignment overrides for specific layouts */
.hero-subtitle,
.pillar-card p,
.form-status,
.group-logo-badge p {
  text-align: center !important;
}

.footer-tagline,
.footer-bottom p,
.contact-item-text p {
  text-align: left !important;
}

.label, .accent-text {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-walnut-light);
  display: block;
}

.secondary-label{
  color: var(--color-oak-dark);
  display: block;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(250, 249, 246, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(232, 229, 223, 0.5);
  transition: var(--transition-smooth);
}

header.scrolled {
  background-color: rgba(250, 249, 246, 0.95);
  box-shadow: var(--shadow-sm);
  padding: 0.8rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition-smooth);
}

header.scrolled .nav-container {
  height: 65px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition-fast);
}

.logo-img {
  height: 58px;
  width: auto;
  display: block;
  transform: translateY(-5px);
  transition: var(--transition-smooth);
}

header.scrolled .logo-img {
  height: 48px;
}

.logo:hover {
  opacity: 0.85;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-walnut-light);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--color-walnut-light);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-mahogany);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-mahogany);
  transition: var(--transition-smooth);
}

/* Main Layout Offset */
main {
  margin-top: 80px;
}

/* Splash Video Section */
.hero-section {
  position: relative;
  width: 100%;
  height: calc(92vh);
  min-height: 500px;
  background-color: var(--color-mahogany);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(74, 37, 17, 0.2) 0%, rgba(40, 40, 40, 0.45) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--color-bg-light);
  max-width: 850px;
  padding: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--color-bg-white);
  margin-bottom: 1rem;
  line-height: 1.15;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 2rem;
  font-weight: 500;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.hero-btn {
  display: inline-block;
  font-family: var(--font-accent);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 1.1rem 2.5rem;
  background-color: var(--color-walnut-light);
  color: var(--color-bg-white);
  border: none;
  text-decoration: none;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(10, 71, 18, 0.3);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.hero-btn:hover {
  background-color: var(--color-walnut);
  color: var(--color-bg-white);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(36, 46, 37, 0.4);
}

.title-btn {
  background-color: var(--color-oak-dark);
  box-shadow: 0 4px 20px rgba(36, 46, 37, 0.4);
}

.title-btn:hover {
  background-color: var(--color-walnut);
  color: var(--color-bg-light);
}

/* Sections General Styling */
.section {
  padding: 8rem 0;
  position: relative;
}

.section-bg-white {
  background-color: var(--color-bg-white);
}

.section-header {
  margin-bottom: 4rem;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--color-walnut-light);
}

.secondary-section-title::after {
  background-color: var(--color-oak-dark);
}

.section-desc {
  font-size: 1.05rem;
  margin-top: 1rem;
}

/* About Us Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-essence {
  font-size: 1.3rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-walnut);
  line-height: 1.5;
  border-left: 3px solid var(--color-walnut-light);
  padding-left: 1.5rem;
}

.about-voice {
  font-size: 1.05rem;
  color: var(--color-text-light);
}

.brand-traits {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.trait {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.trait-title {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--color-walnut-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trait-desc {
  font-size: 0.85rem;
  color: var(--color-mahogany);
}

.about-image-wrapper {
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-walnut-light);
  z-index: -1;
  transition: var(--transition-smooth);
}

.about-image-wrapper:hover::before {
  top: 25px;
  left: 25px;
}

.about-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-walnut-light);
}

.service-img-wrapper {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.service-card:hover .service-img {
  transform: scale(1.1);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 40%, rgba(74, 45, 17, 0.7) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.service-card:hover .service-overlay {
  opacity: 1;
}

.service-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.8rem;
}

.service-badge {
  align-self: flex-start;
  margin-bottom: 0.3rem;
}

.service-name {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-mahogany);
}

.service-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* Contact Us Section */
.contact-section {
  position: relative;
  background-color: var(--color-bg-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
}

.contact-header {
  text-align: left;
  margin: 0;
}

.contact-header .section-title::after {
  left: 0;
  transform: none;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
  padding: 0.8rem;
  margin: -0.8rem;
  border-radius: 6px;
}

.contact-item:hover {
  background-color: rgba(201, 168, 118, 0.08);
}

.contact-item:hover .contact-icon {
  background-color: var(--color-walnut-light);
  color: var(--color-bg-white);
  border-color: var(--color-walnut);
}

.contact-icon {
  width: 45px;
  height: 45px;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-walnut);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-mahogany);
  flex-shrink: 0;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.contact-item-text h4 {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-mahogany);
  margin-bottom: 0.3rem;
}

.contact-item-text p {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.contact-form-wrapper {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  padding: 3.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-walnut-light);
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-input {
  width: 100%;
  padding: 1rem 0.5rem;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-dark);
  outline: none;
  transition: var(--transition-fast);
}

.form-label {
  position: absolute;
  left: 0.5rem;
  top: 1rem;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  pointer-events: none;
  transition: var(--transition-smooth);
}

/* Floating Label Logic */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -10px;
  font-size: 0.75rem;
  color: var(--color-oak-dark);
  font-weight: 700;
}

.form-input:focus {
  border-bottom-color: var(--color-oak);
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

.form-submit-btn {
  width: 100%;
  padding: 1.2rem;
  font-family: var(--font-accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  background-color: var(--color-walnut-light);
  color: var(--color-bg-light);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(92, 64, 51, 0.2);
}

.form-submit-btn:hover {
  background-color: var(--color-walnut);
  color: var(--color-bg-white);
  box-shadow: 0 6px 20px rgba(74, 37, 17, 0.35);
  transform: translateY(-2px);
}

.form-status {
  margin-top: 1rem;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.form-status.success {
  opacity: 1;
  height: auto;
  color: #2e7d32;
  margin-top: 1.5rem;
}

.form-status.error {
  opacity: 1;
  height: auto;
  color: #c62828;
  margin-top: 1.5rem;
}

/* Footer Section */
footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 6rem 0 2rem 0;
  border-top: 2px solid var(--color-mahogany);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: inline-block;
  text-decoration: none;
}

.footer-logo-img {
  height: 55px;
  width: auto;
  display: block;
}

.footer-logo span {
  color: var(--color-gold);
}

.footer-tagline {
  font-size: 0.95rem;
  color: #999999;
}

.footer-col h3 {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: 1.8rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link {
  color: #999999;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-gold);
  padding-left: 5px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  font-size: 0.9rem;
  color: #999999;
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.footer-contact-item span {
  color: var(--color-oak);
}

.footer-contact-link {
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-contact-link:hover {
  color: var(--color-gold) !important;
}

.footer-contact-link:hover span {
  transform: scale(1.1);
  display: inline-block;
}

.footer-social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-footer-text);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background-color: var(--color-gold);
  color: var(--color-mahogany);
  border-color: var(--color-gold);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #666666;
}

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

.footer-bottom-link {
  color: #666666;
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.footer-bottom-link:hover {
  color: var(--color-gold);
}

/* Group & Gallery Pages Hero */
.page-hero {
  background: linear-gradient(180deg, #0b2615 0%, #041008 100%);
  padding: 6.5rem 0;
  text-align: center;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(201, 168, 70, 0.12) 0%, transparent 80%);
}

.page-title {
  color: var(--color-bg-white);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.page-breadcrumbs {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 500;
}

.page-breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-fast);
}

.page-breadcrumbs a:hover {
  color: var(--color-bg-white);
}

.page-breadcrumbs span {
  color: var(--color-gold);
  font-weight: 600;
}

/* Static Inner Pages Content Layout */
.page-content-wrapper {
  padding: 5rem 0;
  min-height: 400px;
}

.inner-page-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  padding: 4rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
}

.inner-page-card h2 {
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.inner-page-card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--color-gold);
}

.inner-page-card p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Gallery Masonry Layout */
.gallery-page-content-wrapper {
  padding: 40px 20px;
}

.gallery-grid {
  display:grid;
  grid-template-columns:repeat(12,1fr);
  grid-auto-rows:140px;
  gap:18px;
  width:100%;
}

.gallery-card {
  position:relative;
  overflow:hidden;
  border-radius:18px;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  transition:.4s;
}

.gallery-card img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:.5s;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card {
  grid-column:span 3;
  grid-row:span 2;
}

.gallery-card.tall {
  grid-column:span 2;
  grid-row:span 4;
}

.gallery-card.tall-large {
  grid-column:span 2;
  grid-row:span 5;
}

.gallery-card.wide {
  grid-column:span 4;
  grid-row:span 2;
}

.gallery-card.hero {
  grid-column:span 5;
  grid-row:span 3;
}

.gallery-card.square {
  grid-column:span 2;
  grid-row:span 2;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 59, 28, 0.88); /* Premium brand dark green overlay */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem;
  text-align: center;
  z-index: 2;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
  visibility: visible;
}

.gallery-overlay h3 {
  color: var(--color-bg-white);
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  transform: translateY(15px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-overlay p {
  color: var(--color-gold);
  font-family: var(--font-accent);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  transform: translateY(15px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.gallery-card:hover .gallery-overlay h3,
.gallery-card:hover .gallery-overlay p {
  transform: translateY(0);
}

/* Responsive Gallery Grid */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 300px !important;
    gap: 20px !important;
  }
  .gallery-card,
  .gallery-card.tall,
  .gallery-card.tall-large,
  .gallery-card.wide,
  .gallery-card.hero,
  .gallery-card.square {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    height: 100% !important;
    width: 100% !important;
  }
}

/* Group Page Layout Details */
.group-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.group-logo-badge {
  background-color: var(--color-mahogany);
  color: var(--color-bg-light);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px solid var(--color-oak);
  box-shadow: var(--shadow-lg);
  min-height: 280px;
}

/* When real group logo is shown, remove padding so image fills the box */
.group-logo-badge.group-logo-image-active {
  padding: 0 !important;
}

.group-logo-badge h3 {
  color: var(--color-gold);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.group-logo-badge p {
  color: var(--color-bg-white);
  font-family: var(--font-accent);
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Scroll Animation Utilities */
.fade-up-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--color-bg-light);
    flex-direction: column;
    padding: 3rem 0;
    gap: 2rem;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Hamburger transform when menu open */
  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .about-grid, .contact-grid, .group-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image-wrapper {
    order: -1;
  }

  .about-img {
    height: 350px;
  }

  .contact-form-wrapper {
    padding: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .section {
    padding: 5rem 0;
  }
}

/* --- Group Page Extensions --- */

/* 1. Logo Marquee */
.logo-marquee-section {
  padding: 4rem 0 4rem 0;
  background-color: var(--color-mahogany);
  overflow: hidden;
}

.logo-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.logo-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
  align-items: center;
}

.logo-marquee-container:hover .logo-marquee-track {
  animation-play-state: paused;
}

.marquee-logo-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(100vw / 7);
  min-width: 200px;
  margin: 0;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.marquee-logo-item img {
  height: 120px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.5);
  transition: all 0.3s ease;
}

.marquee-logo-item:hover img {
  filter: none;
  opacity: 1;
}

.marquee-logo-item:hover {
  transform: scale(1.15);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 2. Industries We Serve */
.industries-section {
  padding: 6rem 0;
  background-color: var(--color-bg-light);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.industry-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border-bottom: 2px solid transparent;
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--color-gold);
}

.industry-icon-wrapper {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  display: inline-block;
}

.industry-card h3 {
  font-size: 1.2rem;
  color: var(--color-mahogany);
  margin-bottom: 0.8rem;
}

.industry-card p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* 3. Number Counter Cards */
.stats-counter-section {
  padding: 6rem 0;
  background-color: var(--color-bg-white);
  color: var(--color-text-dark);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.stats-counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  text-align: center;
}

.stat-counter-card {
  padding: 1.5rem;
}

.stat-number-wrapper {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--color-mahogany);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.stat-number-wrapper span:last-child {
  color: var(--color-gold);
}

.stat-count {
  font-variant-numeric: tabular-nums;
}

.stat-label-text {
  font-family: var(--font-accent);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  font-weight: 500;
  line-height: 1.4;
}

/* 4. Team Cards Section */
.team-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.team-section {
  padding: 6rem 0;
  background-color: var(--color-bg-light);
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  
  margin-top: 4rem;
  justify-content: center;
}

.team-card {
  width: 350px;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-walnut);
}

.team-photo-container {
  width: 150px;
  height: 180px; /* passport proportion */
  margin: 0 auto 1.5rem auto;
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.team-photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-photo-container img {
  transform: scale(1.08);
}

.team-card h3 {
  font-size: 1.4rem;
  color: var(--color-mahogany);
  margin-bottom: 0.4rem;
}

.team-role {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.team-social-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.team-social-icon {
  color: var(--color-text-light);
  transition: var(--transition-fast);
}

.team-social-icon:hover {
  color: var(--color-gold);
  transform: translateY(-2px);
}

/* Responsiveness for new sections */
@media (max-width: 992px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-counter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

body, p, h1, h2, h3, h4, li, td, a {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  .industries-grid {
    grid-template-columns: 1fr;
  }
  .stats-counter-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Prevent table overflow by enabling horizontal scrolling on mobile */
  .tech-table,
  .policy-data-table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Padding adjustments for standard mobile screens */
  .inner-page-card,
  .services-intro-card {
    padding: 2.5rem !important;
  }

  /* Mobile Text Adjustments */
  p,
  .inner-page-card p,
  .policy-block p,
  .timeline-content p,
  .pillar-card p,
  .about-voice,
  .section-desc,
  .intro-text p,
  .rd-content p {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
  }

  .about-essence {
    font-size: 1.15rem !important;
  }

  .policy-block ul li,
  .tech-table td,
  .policy-data-table td {
    font-size: 0.88rem !important;
  }
}

/* Specific overrides for very small mobile screens (width < 491px) */
@media (max-width: 491px) {
  .container {
    padding: 0 1rem !important;
  }
  
  .inner-page-card,
  .policy-card,
  .services-intro-card,
  .tech-card,
  .contact-form-wrapper {
    padding: 1.5rem 1.2rem !important;
  }
  
  .team-card {
    padding: 2rem 1.2rem !important;
  }
  
  h1, .inner-page-card h1, .policy-card h2, .tech-details h3, .rd-content h2 {
    font-size: 1.6rem !important;
  }
  
  h2, .section-title {
    font-size: 1.35rem !important;
  }
  
  h3 {
    font-size: 1.15rem !important;
  }
  
  /* Additional text size reduction for readability */
  p,
  .inner-page-card p,
  .policy-block p,
  .timeline-content p,
  .pillar-card p,
  .about-voice,
  .section-desc,
  .intro-text p,
  .rd-content p {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
  }
  
  .about-essence {
    font-size: 1.05rem !important;
  }
}

/* intl-tel-input overrides to match theme */
.iti {
  width: 100%;
}
.iti__country-list {
  background-color: var(--color-bg-white) !important;
  color: var(--color-text-dark) !important;
  border: 1px solid var(--color-border) !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  z-index: 100 !important;
}
.iti__selected-country {
  background-color: transparent !important;
}
.iti__selected-dial-code {
  color: var(--color-text-dark) !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
}
.iti__selected-flag {
  padding-left: 0.5rem !important;
}
/* Phone label always floated to prevent overlap with flag dropdown */
.form-group:has(#phone) .form-label {
  top: -10px !important;
  font-size: 0.75rem !important;
  color: var(--color-oak-dark) !important;
  font-weight: 700 !important;
}

/* Floating Label Logic with intl-tel-input wrapper */
.form-group.focused .form-label,
.form-group.has-value .form-label {
  top: -10px;
  font-size: 0.75rem;
  color: var(--color-oak-dark);
  font-weight: 700;
}

/* Form Validation Field Error Messages */
.field-error-msg {
  color: #c62828;
  font-size: 0.75rem;
  margin-top: 0.35rem;
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  animation: fadeInError 0.2s ease-in-out;
}

.input-error {
  border-bottom-color: #c62828 !important;
}

@keyframes fadeInError {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
