/* ========================================
   UDHAYAM CONSTRUCTIONS & PROPERTY DEVELOPERS
   Main Stylesheet
   Color Palette: White, Gold, Brown
======================================== */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #A07828;
  --gold-pale: #F5EDD6;
  --brown: #6B3F1F;
  --brown-light: #8B5E3C;
  --brown-dark: #4A2A10;
  --cream: #FAF6EF;
  --white: #FFFFFF;
  --off-white: #F8F4EE;
  --warm-gray: #E8E0D0;
  --text-dark: #3A2510;
  --text-mid: #6B5340;
  --text-light: #9A8070;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
  --shadow-sm: 0 2px 12px rgba(107, 63, 31, 0.08);
  --shadow-md: 0 8px 30px rgba(107, 63, 31, 0.12);
  --shadow-lg: 0 20px 60px rgba(107, 63, 31, 0.18);
  --radius: 6px;
  --radius-lg: 12px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 600;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; }
p { font-size: 1rem; color: var(--text-mid); line-height: 1.8; }

/* ---- Layout Utilities ---- */
.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }
.text-center { text-align: center; }
.flex { display: flex; }
.grid { display: grid; }

/* ---- Section Title ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.section-label::before, .section-label::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--gold);
}
.section-title { margin-bottom: 16px; }
.section-title h2 { color: var(--text-dark); }
.section-title p { max-width: 600px; color: var(--text-mid); }
.section-title.centered { text-align: center; }
.section-title.centered p { margin: 0 auto; }

/* ---- Gold Divider ---- */
.gold-line {
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  margin: 16px 0 28px;
  border-radius: 2px;
}
.section-title.centered .gold-line { margin: 16px auto 28px; }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  color: var(--white);
  padding: 14px 34px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
  transition: var(--transition);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.5);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 13px 32px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: var(--transition);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}
.btn-brown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brown);
  color: var(--white);
  padding: 14px 34px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: var(--transition);
}
.btn-brown:hover { background: var(--brown-dark); transform: translateY(-2px); }

/* ---- NAV ---- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(255, 251, 245, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(107, 63, 31, 0.12);
  padding: 0 40px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1220px;
  margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 52px; width: auto; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-text .brand { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--brown); line-height: 1.2; }
.nav-logo-text .brand-sub { font-size: 0.95rem; font-weight: 600; color: var(--gold-dark); display: block; }
#navbar.scrolled .brand { color: var(--brown); }
#navbar:not(.scrolled) .brand { color: var(--white); }
#navbar:not(.scrolled) .brand-sub { color: var(--gold-light); }
#navbar:not(.scrolled) .tagline { color: var(--gold-light); }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
#navbar.scrolled .nav-links a { color: var(--text-dark); }
.nav-links a:hover { color: var(--gold-dark); }
#navbar.scrolled .nav-links a:hover { color: var(--gold-dark); }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 500;
  color: var(--gold-light);
}
#navbar.scrolled .nav-phone { color: var(--gold-dark); }
.nav-phone svg { width: 14px; height: 14px; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
#navbar.scrolled .hamburger span { background: var(--brown); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px; left: 0; right: 0;
  background: var(--off-white);
  padding: 20px 30px 30px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.mobile-nav.open { display: block; transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-nav a { display: block; padding: 12px 0; font-size: 1rem; font-weight: 500; color: var(--text-dark); border-bottom: 1px solid var(--warm-gray); }
.mobile-nav a:last-child { border: none; }

/* ---- PAGE BANNER ---- */
.page-banner {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.page-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74, 42, 16, 0.82) 0%, rgba(107, 63, 31, 0.75) 50%, rgba(160, 120, 40, 0.6) 100%);
}
.page-banner-content {
  position: relative;
  z-index: 2;
  padding: 100px 24px 60px;
}
.page-banner-content h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.5rem); }
.page-banner-content .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--gold-light);
  letter-spacing: 1px;
}
.page-banner-content .breadcrumb a { color: var(--gold-light); }
.page-banner-content .breadcrumb a:hover { color: var(--white); }
.page-banner-content .breadcrumb .sep { color: var(--gold); }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('hero_bg.png');
  background-size: cover;
  background-position: center;
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(74, 42, 16, 0.88) 0%,
    rgba(107, 63, 31, 0.75) 40%,
    rgba(160, 120, 40, 0.55) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 120px 24px 120px;
  margin: 0 auto;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(6px);
}
.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 8px;
}
.hero-content h1 span { color: var(--gold-light); }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  margin: 20px auto 36px;
  max-width: 540px;
  line-height: 1.7;
}
.hero-sub-tag {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
  display: block;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  background: rgba(255, 251, 245, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(201, 168, 76, 0.25);
}
.hero-stat {
  padding: 22px 20px;
  text-align: center;
  border-right: 1px solid rgba(201, 168, 76, 0.2);
}
.hero-stat:last-child { border: none; }
.hero-stat .num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* ---- FEATURES BAR ---- */
.features-bar { background: var(--brown); padding: 0; }
.features-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.feature-item:last-child { border: none; }
.feature-item:hover { background: rgba(255,255,255,0.06); }
.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(201, 168, 76, 0.2);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}
.feature-item h4 { color: var(--white); font-size: 0.88rem; margin-bottom: 2px; font-family: var(--font-body); font-weight: 600; }
.feature-item p { color: rgba(255,255,255,0.6); font-size: 0.75rem; line-height: 1.4; }

/* ---- WELCOME / ABOUT SECTION ---- */
.welcome-section { background: var(--cream); }
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.welcome-image-wrap { position: relative; }
.welcome-image-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--brown);
  color: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.image-badge .num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
  line-height: 1;
}
.image-badge .label { font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.8); margin-top: 4px; }
.welcome-content { padding: 20px 0; }
.values-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.value-item:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.value-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.value-item h4 { font-size: 0.9rem; color: var(--brown); margin-bottom: 2px; }
.value-item p { font-size: 0.82rem; color: var(--text-light); line-height: 1.5; }

/* ---- STATS COUNTER ---- */
.stats-section {
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 50%, var(--brown-light) 100%);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}
.stat-card {
  text-align: center;
  padding: 54px 30px;
  border-right: 1px solid rgba(201, 168, 76, 0.2);
  transition: var(--transition);
}
.stat-card:last-child { border: none; }
.stat-card:hover { background: rgba(201, 168, 76, 0.05); }
.stat-icon { font-size: 2.2rem; margin-bottom: 14px; }
.stat-num {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 0.78rem; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,0.75); }

/* ---- SERVICES PAGE ---- */
.services-intro { background: var(--cream); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-gray);
  border-top: 4px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-num {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: var(--gold-pale);
  line-height: 1;
  margin-bottom: 16px;
}
.service-icon-wrap {
  width: 62px; height: 62px;
  background: var(--gold-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon-wrap { background: var(--gold); }
.service-card h3 { font-size: 1.3rem; color: var(--brown); margin-bottom: 12px; }
.service-card p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.7; }
.service-list { margin-top: 14px; }
.service-list li {
  font-size: 0.85rem;
  color: var(--text-mid);
  padding: 5px 0;
  border-bottom: 1px solid var(--warm-gray);
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-list li::before { content: '◆'; color: var(--gold); font-size: 0.5rem; flex-shrink: 0; }
.service-list li:last-child { border: none; }

/* ---- VALUES STRIP ---- */
.values-strip {
  background: var(--brown);
  padding: 50px 0;
}
.values-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.value-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-right: 1px solid rgba(201, 168, 76, 0.3);
}
.value-pill:last-child { border: none; }
.value-pill .dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
.value-pill span { font-size: 0.85rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--white); }

/* ---- ABOUT PAGE ---- */
.about-story { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image-wrap { position: relative; }
.about-image-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-year-badge {
  position: absolute;
  top: -20px;
  left: -20px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-year-badge .year { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; display: block; line-height: 1; }
.about-year-badge .est { font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; opacity: 0.9; }
.timeline { margin-top: 32px; display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: flex;
  gap: 20px;
  padding-bottom: 28px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 19px; top: 40px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.timeline-item:last-child::before { display: none; }
.tl-dot {
  width: 40px; height: 40px;
  background: var(--gold-pale);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--gold-dark);
  font-weight: 700;
}
.tl-content h4 { color: var(--brown); font-size: 0.95rem; margin-bottom: 4px; }
.tl-content p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

/* ---- CAPABILITIES ---- */
.capabilities-section { background: var(--cream); }
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 50px;
}
.cap-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-gray);
  transition: var(--transition);
}
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); background: var(--brown); }
.cap-card:hover .cap-icon { background: rgba(201, 168, 76, 0.2); }
.cap-card:hover h4 { color: var(--white); }
.cap-icon { font-size: 2rem; margin-bottom: 14px; }
.cap-card h4 { font-size: 0.82rem; font-weight: 600; color: var(--brown); letter-spacing: 0.5px; line-height: 1.4; }

/* ---- LEGAL TEAM PAGE ---- */
.legal-team-section { background: var(--cream); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-gray);
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-photo {
  height: 280px;
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.team-photo .avatar {
  width: 100px; height: 100px;
  background: rgba(201, 168, 76, 0.2);
  border: 3px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
  color: var(--gold-light);
}
.team-photo-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(74, 42, 16, 0.8), transparent);
  padding: 20px;
}
.team-info { padding: 24px 28px 30px; }
.team-info h3 { font-size: 1.3rem; color: var(--brown); margin-bottom: 4px; }
.team-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.team-divider { width: 40px; height: 2px; background: var(--gold); margin-bottom: 14px; }
.team-info p { font-size: 0.87rem; color: var(--text-mid); line-height: 1.7; }
.team-placeholder {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--warm-gray);
  padding: 60px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.team-placeholder .ph-icon { font-size: 3rem; color: var(--warm-gray); }
.team-placeholder h3 { color: var(--text-light); font-size: 1.1rem; }
.team-placeholder p { font-size: 0.85rem; color: var(--text-light); }

/* ---- CONTACT PAGE ---- */
.contact-section { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-info-wrap { padding-top: 8px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 30px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--gold);
}
.ci-icon {
  width: 52px; height: 52px;
  background: var(--gold-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.ci-text h4 { color: var(--brown); font-size: 0.9rem; margin-bottom: 6px; font-family: var(--font-body); font-weight: 600; }
.ci-text p, .ci-text a { font-size: 0.9rem; color: var(--text-mid); }
.ci-text a:hover { color: var(--gold-dark); }
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 42px 44px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--warm-gray);
}
.contact-form-wrap h3 { font-size: 1.8rem; color: var(--brown); margin-bottom: 6px; }
.contact-form-wrap .sub { font-size: 0.9rem; color: var(--text-light); margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--off-white);
  border: 1.5px solid var(--warm-gray);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.form-group textarea { min-height: 120px; }
.form-submit { width: 100%; padding: 16px; font-size: 0.9rem; }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 60%, var(--brown-light) 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23C9A84C' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-inner h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 8px; }
.cta-inner p { color: rgba(255,255,255,0.75); font-size: 1rem; max-width: 480px; }
.cta-buttons { display: flex; gap: 16px; flex-shrink: 0; flex-wrap: wrap; }

/* ---- FOOTER ---- */
footer {
  background: var(--brown-dark);
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
}
.footer-top {
  padding: 60px 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
}
.footer-brand .logo-text { font-family: var(--font-heading); font-size: 1.4rem; color: var(--gold-light); font-weight: 700; margin-bottom: 4px; }
.footer-brand .tagline { font-size: 0.7rem; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.footer-brand p { font-size: 0.87rem; color: rgba(255,255,255,0.55); line-height: 1.8; max-width: 280px; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.87rem; color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.55);
}
.footer-contact li .fi-icon { color: var(--gold); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.footer-contact li a { color: rgba(255,255,255,0.55); }
.footer-contact li a:hover { color: var(--gold-light); }
.footer-bottom {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-bottom p a { color: var(--gold-light); }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: var(--transition);
}
.social-link:hover { background: var(--gold); border-color: var(--gold); color: var(--white); transform: translateY(-2px); }

/* ---- SCROLL TO TOP ---- */
#scroll-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 999;
}
#scroll-top.visible { opacity: 1; pointer-events: all; }
#scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(201, 168, 76, 0.5); }

/* ---- ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ---- WHY CHOOSE US ---- */
.why-section { background: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}
.why-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--warm-gray);
  text-align: center;
  transition: var(--transition);
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.why-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: linear-gradient(to top, rgba(107, 63, 31, 0.04), transparent);
  transition: var(--transition);
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold-pale); }
.why-card:hover::after { height: 100%; }
.why-icon {
  width: 72px; height: 72px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  transition: var(--transition);
}
.why-card:hover .why-icon { background: var(--gold); }
.why-card h3 { font-size: 1.15rem; color: var(--brown); margin-bottom: 12px; }
.why-card p { font-size: 0.87rem; color: var(--text-mid); line-height: 1.7; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .capabilities-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .welcome-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr !important; max-width: 500px !important; margin: 0 auto !important; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-inner p { margin: 0 auto; }
  /* About page grids */
  div[style*="grid-template-columns: 1fr 1.6fr"],
  div[style*="grid-template-columns: 1fr 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  /* Legal team grid */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    max-width: 500px !important;
    margin: 0 auto !important;
  }
}
@media (max-width: 768px) {
  #navbar { padding: 0 20px; }
  .nav-inner { height: 70px; }
  .nav-logo img { height: 38px; }
  .nav-logo-text .brand { font-size: 0.9rem; }
  .nav-logo-text .tagline { font-size: 0.5rem; letter-spacing: 1px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-stats { grid-template-columns: 1fr; position: relative; }
  .hero-stat { border: none; border-top: 1px solid rgba(201,168,76,0.2); }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr !important; max-width: 500px !important; margin: 0 auto !important; }
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .values-strip-inner { flex-direction: column; gap: 0; }
  .value-pill { border-right: none; border-bottom: 1px solid rgba(201, 168, 76, 0.3); width: 100%; justify-content: center; }
  .value-pill:last-child { border: none; }
  .contact-form-wrap { padding: 28px 24px; }
  /* Stack all inline grid layouts */
  div[style*="grid-template-columns: 1fr 1.6fr"],
  div[style*="grid-template-columns: 1fr 1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    max-width: 100% !important;
  }
  /* About story image */
  .about-image-wrap { max-height: 320px; overflow: hidden; }
  /* Founder section photo centering */
  .about-image-wrap img { border-radius: var(--radius-lg); }
}
@media (max-width: 480px) {
  .section-pad { padding: 60px 0; }
  .hero-content { padding: 100px 20px 80px; }
  .features-bar-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 36px 18px; }
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .image-badge { right: 0; bottom: -16px; }
  div[style*="grid-template-columns: 1fr 1.6fr"],
  div[style*="grid-template-columns: 1fr 1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    max-width: 100% !important;
  }
  .hero-buttons, .cta-buttons {
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    justify-content: center;
  }
  .hero-buttons > a, .cta-buttons > a {
    padding: 12px 10px;
    font-size: 0.72rem;
    width: 50%;
    justify-content: center;
    text-align: center;
    letter-spacing: 1px;
  }
}
