/* ==========================================================================
   J S BALHARA BRICK WORK LTD - Master Corporate Stylesheet
   Company Number: 17500099 | Registered in England & Wales
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/* --- CSS Variables & Design System --- */
:root {
  /* Brand Palettes */
  --color-primary-dark: #0B1325;
  --color-navy-900: #0F172A;
  --color-navy-800: #1E293B;
  --color-navy-700: #334155;
  --color-navy-600: #475569;
  
  --color-accent: #D97706;          /* Construction Warm Amber */
  --color-accent-hover: #B45309;    /* Deep Amber Hover */
  --color-accent-light: #F59E0B;    /* Vivid Accent Highlight */
  --color-accent-subtle: #FFFBEB;   /* Soft Amber Tint */
  --color-accent-border: #FDE68A;
  
  --color-slate-50: #F8FAFC;
  --color-slate-100: #F1F5F9;
  --color-slate-200: #E2E8F0;
  --color-slate-300: #CBD5E1;
  --color-slate-400: #94A3B8;
  --color-slate-500: #64748B;
  --color-slate-700: #334155;
  --color-slate-800: #1E293B;
  --color-slate-900: #0F172A;
  
  --color-white: #FFFFFF;
  --color-success: #059669;
  --color-success-bg: #ECFDF5;
  --color-error: #DC2626;
  --color-error-bg: #FEF2F2;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout & Spacing */
  --container-max-width: 1200px;
  --container-padding: 1.5rem;
  --header-height: 84px;
  --topbar-height: 40px;
  
  /* Radii & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 36px rgba(15, 23, 42, 0.16);
  
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
}

/* --- Global Reset & Base Setup --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-slate-700);
  background-color: var(--color-slate-50);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

/* Accessible focus styling */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Images & Media */
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-navy-900);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--color-slate-600);
  font-size: 1.05rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

ul, ol {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--color-slate-600);
}

/* --- Layout Utility Classes --- */
.site-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.site-main {
  flex: 1 0 auto;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-sm {
  padding: 3.5rem 0;
}

.section-alt {
  background-color: var(--color-slate-100);
  border-top: 1px solid var(--color-slate-200);
  border-bottom: 1px solid var(--color-slate-200);
}

.section-dark {
  background-color: var(--color-navy-900);
  color: var(--color-slate-300);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-white);
}

.section-dark p {
  color: var(--color-slate-400);
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  border: 1px solid var(--color-accent-border);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.section-dark .section-tag {
  background: rgba(217, 119, 6, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--color-accent-light);
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--color-slate-500);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-dark .section-subtitle {
  color: var(--color-slate-400);
}

/* --- Buttons & Interactive CTAs --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.95rem 1.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--color-navy-900);
  border-color: var(--color-navy-700);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background-color: var(--color-navy-900);
  color: var(--color-white);
  border-color: var(--color-navy-900);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 1.15rem 2.2rem;
  font-size: 1.05rem;
}

.btn-icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

/* ==========================================================================
   TOP BAR & NAVIGATION HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

/* Top Information Strip */
.header-topbar {
  background-color: var(--color-primary-dark);
  color: var(--color-slate-400);
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-info,
.topbar-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-slate-300);
  text-decoration: none;
}

.topbar-item a {
  color: var(--color-slate-200);
}

.topbar-item a:hover {
  color: var(--color-accent-light);
}

.topbar-icon {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Main Navigation Bar */
.header-navbar {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo {
  height: 62px;
  width: auto;
  transition: transform var(--transition-fast);
}

.header-brand:hover .header-logo {
  transform: scale(1.02);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy-800);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--color-accent);
}

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

.header-navbar > nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 3.25rem; /* ~52px horizontal spacing between SERVICES and Get a Quote */
  flex-shrink: 0;
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--color-navy-900);
}

.hamburger-box {
  width: 26px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  height: 2.5px;
  width: 100%;
  background-color: var(--color-navy-900);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-toggle.is-active .hamburger-line:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.mobile-toggle.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  background-color: var(--color-primary-dark);
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 6rem 0;
  color: var(--color-white);
  border-bottom: 4px solid var(--color-accent);
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(30, 41, 59, 0.8) 0%, transparent 60%);
  opacity: 0.9;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-light);
  margin-bottom: 1.5rem;
}

.hero-title {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
}

.hero-title .text-highlight {
  color: var(--color-accent-light);
}

.hero-lead {
  font-size: 1.22rem;
  line-height: 1.65;
  color: var(--color-slate-300);
  margin-bottom: 2.25rem;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-facts-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-fact-item {
  display: flex;
  flex-direction: column;
}

.hero-fact-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-slate-400);
  margin-bottom: 0.25rem;
}

.hero-fact-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
}

.hero-visual-card {
  position: relative;
  background: var(--color-navy-800);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.hero-visual-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0) 100%);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hero-visual-tag {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-visual-location {
  color: var(--color-slate-200);
  font-size: 0.9rem;
  font-weight: 600;
}

/* --- Page Subheader (About, Services, Contact, Legal) --- */
.page-header {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: 4.5rem 0 5rem 0;
  border-bottom: 3px solid var(--color-accent);
  position: relative;
}

.page-header-content {
  max-width: 820px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--color-slate-400);
  margin-bottom: 1.25rem;
  list-style: none;
  padding: 0;
}

.breadcrumb a {
  color: var(--color-slate-300);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-accent-light);
}

.breadcrumb-separator {
  color: var(--color-slate-500);
}

.breadcrumb-current {
  color: var(--color-accent-light);
  font-weight: 600;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--color-slate-300);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==========================================================================
   CARDS & GRID SYSTEMS
   ========================================================================== */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Generic Corporate Card */
.corp-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.corp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-slate-300);
}

/* Service Preview Card */
.service-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-accent);
}

.service-image-wrap {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background-color: var(--color-navy-900);
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.service-card:hover .service-image {
  transform: scale(1.04);
}

.service-body {
  padding: 2.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-code {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.service-title {
  margin-bottom: 1rem;
  font-size: 1.45rem;
}

.service-desc {
  color: var(--color-slate-600);
  margin-bottom: 1.5rem;
  flex: 1;
}

.service-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
  border-top: 1px solid var(--color-slate-100);
  padding-top: 1.25rem;
}

.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--color-slate-700);
}

.feature-check-icon {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-footer {
  margin-top: auto;
}

/* Feature / Value Pillar Card */
.feature-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-top: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon-box {
  width: 54px;
  height: 54px;
  background-color: var(--color-accent-subtle);
  border: 1px solid var(--color-accent-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.feature-icon {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.96rem;
  color: var(--color-slate-600);
  margin-bottom: 0;
}

/* Corporate Verification Box */
.company-registry-box {
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-left: 5px solid var(--color-navy-900);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.registry-item {
  display: flex;
  flex-direction: column;
}

.registry-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-slate-500);
  margin-bottom: 0.35rem;
}

.registry-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-navy-900);
  line-height: 1.4;
}

/* ==========================================================================
   CALL TO ACTION BANNERS
   ========================================================================== */

.cta-banner {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-navy-800) 100%);
  color: var(--color-white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--color-accent);
  border-bottom: 3px solid var(--color-accent);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.cta-text {
  max-width: 650px;
}

.cta-text h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-text p {
  color: var(--color-slate-300);
  font-size: 1.15rem;
  margin-bottom: 0;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 280px;
}

.cta-actions .btn {
  width: 100%;
}

/* ==========================================================================
   FORMS & CONTACT INTERFACE
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
}

.contact-info-card {
  background-color: var(--color-navy-900);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-top: 4px solid var(--color-accent);
}

.contact-info-card h3 {
  color: var(--color-white);
}

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

.contact-detail-row {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-light);
  flex-shrink: 0;
}

.contact-detail-content h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-slate-400);
  margin-bottom: 0.25rem;
}

.contact-detail-content p,
.contact-detail-content a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
  margin-bottom: 0;
}

.contact-detail-content a:hover {
  color: var(--color-accent-light);
}

/* Form Container */
.form-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 2.75rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy-900);
  margin-bottom: 0.5rem;
}

.form-label .required-star {
  color: var(--color-error);
}

.form-control {
  width: 100%;
  font-family: var(--font-main);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  color: var(--color-navy-900);
  background-color: var(--color-slate-50);
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  background-color: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.form-control.is-invalid {
  border-color: var(--color-error);
  background-color: var(--color-error-bg);
}

.form-feedback {
  font-size: 0.82rem;
  color: var(--color-error);
  margin-top: 0.35rem;
  display: none;
}

.form-control.is-invalid ~ .form-feedback {
  display: block;
}

.form-help {
  font-size: 0.82rem;
  color: var(--color-slate-500);
  margin-top: 0.35rem;
}

/* Form Status Alerts */
.form-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: none;
}

.form-alert.alert-success {
  background-color: var(--color-success-bg);
  border: 1px solid var(--color-success);
  color: #065F46;
}

.form-alert.alert-error {
  background-color: var(--color-error-bg);
  border: 1px solid var(--color-error);
  color: #991B1B;
}

/* ==========================================================================
   FORM SUCCESS CONFIRMATION PANEL (FRONTEND UI)
   ========================================================================== */
.form-success-panel {
  text-align: center;
  padding: 1.5rem 0.5rem;
  animation: fadeInScale 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-success-bg);
  box-shadow: 0 0 0 8px rgba(5, 150, 105, 0.1);
}

.success-icon {
  width: 80px;
  height: 80px;
}

.success-title {
  color: var(--color-navy-900);
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.success-message {
  color: var(--color-slate-600);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 460px;
  margin: 0 auto 1.5rem auto;
}

.success-response-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: var(--color-slate-100);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-navy-800);
  margin-bottom: 2rem;
  max-width: 100%;
}

.success-response-badge svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.success-actions {
  display: flex;
  justify-content: center;
}

.success-actions .btn {
  min-width: 220px;
}

/* ==========================================================================
   LEGAL, PRIVACY & TERMS CONTENT PAGES
   ========================================================================== */

.legal-content-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.legal-notice-box {
  background-color: var(--color-slate-100);
  border-left: 4px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.legal-notice-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.legal-section {
  margin-bottom: 2.75rem;
}

.legal-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-slate-200);
}

.legal-section h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem 0;
}

.legal-section p,
.legal-section li {
  font-size: 1rem;
  line-height: 1.7;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.legal-table th,
.legal-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-slate-200);
  text-align: left;
}

.legal-table th {
  background-color: var(--color-slate-100);
  color: var(--color-navy-900);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--color-primary-dark);
  color: var(--color-slate-400);
  border-top: 4px solid var(--color-accent);
  padding: 4.5rem 0 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

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

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

.footer-desc {
  font-size: 0.95rem;
  color: var(--color-slate-400);
  line-height: 1.6;
}

.footer-reg-box {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  color: var(--color-slate-400);
  line-height: 1.5;
}

.footer-title {
  color: var(--color-white);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link-item a {
  color: var(--color-slate-400);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link-item a:hover {
  color: var(--color-accent-light);
  transform: translateX(3px);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-slate-300);
}

.footer-contact-icon {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: var(--color-slate-200);
  text-decoration: none;
}

.footer-contact-item a:hover {
  color: var(--color-accent-light);
}

.footer-bottom {
  background-color: #060B15;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--color-slate-500);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom-links a {
  color: var(--color-slate-400);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: var(--color-accent-light);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS & MOBILE OPTIMIZATIONS
   Tested across 320px, 360px, 375px, 390px, 414px, 430px, 768px, 1024px, 1440px
   ========================================================================== */

/* Desktop-only alternating grid flow */
@media (min-width: 769px) {
  .grid-reverse-desktop {
    direction: rtl;
  }
  .grid-reverse-desktop > * {
    direction: ltr;
  }
}

/* Tablet Breakpoint (<= 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual-card {
    max-width: 580px;
    margin: 0 auto;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

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

/* Mobile & Small Tablet Breakpoint (<= 768px) */
@media (max-width: 768px) {
  :root {
    --container-padding: 18px;
    --header-height: 74px;
  }

  /* Page base & container centering */
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-container {
    padding-left: 18px;
    padding-right: 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-sm {
    padding: 2.5rem 0;
  }

  .section-header {
    text-align: center;
    max-width: 540px;
    margin: 0 auto 2.5rem auto;
    padding: 0 0.5rem;
  }

  .section-title {
    font-size: clamp(1.65rem, 5vw, 2.15rem);
  }

  .section-subtitle {
    font-size: 1.05rem;
    margin-left: auto;
    margin-right: auto;
  }

  /* Header & Mobile Navigation */
  .header-topbar {
    display: none;
  }

  .header-navbar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .header-brand {
    flex-shrink: 1;
    min-width: 0;
  }

  .header-logo {
    height: 48px;
    max-width: 190px;
    width: auto;
  }

  .header-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 0.5rem;
    flex-shrink: 0;
  }

  .header-actions .btn {
    padding: 0.5rem 0.95rem;
    font-size: 0.82rem;
    min-height: 40px;
    white-space: nowrap;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
    flex-shrink: 0;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-bottom: 3px solid var(--color-accent);
    box-shadow: var(--shadow-xl);
    flex-direction: column;
    padding: 1.5rem var(--container-padding) 2rem var(--container-padding);
    gap: 0.75rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.05rem;
    width: 100%;
    border-bottom: 1px solid var(--color-slate-100);
    padding: 0.85rem 0.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Mobile Hero Section */
  .hero {
    padding: 3.5rem 0 4rem 0;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
  }

  .hero-badge {
    margin: 0 auto 1.25rem auto;
  }

  .hero-title {
    font-size: clamp(2rem, 6.5vw, 2.65rem);
    line-height: 1.2;
    margin-bottom: 1.25rem;
  }

  .hero-lead {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 auto 2rem auto;
  }

  .hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 2.25rem auto;
    gap: 0.85rem;
  }

  .hero-ctas .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-facts-row {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    text-align: center;
  }

  .hero-visual-card {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .hero-image {
    height: auto;
    max-height: 320px;
  }

  /* Page Subheaders */
  .page-header {
    padding: 3rem 0 3.25rem 0;
    text-align: center;
  }

  .page-header-content {
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
  }

  .breadcrumb {
    justify-content: center;
  }

  .page-header h1 {
    font-size: clamp(1.85rem, 6vw, 2.35rem);
  }

  .page-header p {
    font-size: 1.05rem;
  }

  /* 1. ALL CARDS & GRIDS MUST BE PERFECTLY CENTERED ON MOBILE */
  .grid-2,
  .grid-3,
  .grid-4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    width: 100%;
  }

  .grid-2 > *,
  .grid-3 > *,
  .grid-4 > * {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .corp-card,
  .service-card,
  .feature-card,
  .company-registry-box {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  /* Service Card Details on Mobile */
  .service-image-wrap {
    width: 100%;
    height: auto;
    max-height: 220px;
  }

  .service-image {
    width: 100%;
    height: auto;
    max-height: 220px;
  }

  .service-body {
    padding: 1.75rem 1.35rem;
    text-align: left;
  }

  .service-footer {
    margin-top: 1rem;
  }

  .service-footer .btn {
    width: 100%;
    min-height: 44px;
  }

  /* Corporate Registry Box Mobile Centering */
  .registry-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    text-align: left;
  }

  /* Call To Action Banners */
  .cta-banner {
    padding: 3.5rem 0;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.75rem;
  }

  .cta-text {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
  }

  .cta-actions {
    width: 100%;
    min-width: 0;
    max-width: 340px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .cta-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  /* Contact Page Layout & Form on Mobile */
  .contact-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
  }

  .contact-info-card,
  .form-card {
    width: 100%;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 1.35rem;
    box-sizing: border-box;
  }

  .form-control {
    font-size: 16px; /* Prevents auto-zooming on mobile iOS */
    min-height: 46px;
    padding: 0.75rem 0.85rem;
  }

  .form-card .btn {
    width: 100%;
    min-height: 48px;
  }

  .form-success-panel {
    padding: 1rem 0;
  }

  .success-title {
    font-size: 1.45rem;
  }

  .success-message {
    font-size: 1rem;
  }

  .success-response-badge {
    width: 100%;
    font-size: 0.88rem;
    padding: 0.75rem 1rem;
  }

  .success-actions .btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  /* Footer on Mobile */
  .site-footer {
    padding: 3.5rem 0 0 0;
  }

  .footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.25rem;
  }

  .footer-brand-col {
    align-items: center;
    max-width: 480px;
    margin: 0 auto;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links,
  .footer-contact-list {
    align-items: center;
  }

  .footer-contact-item {
    justify-content: center;
    text-align: center;
    min-height: 44px;
  }

  .footer-link-item a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
  }

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

  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* Legal Tables Mobile Formatting (<= 640px) */
@media (max-width: 640px) {
  .legal-table,
  .legal-table thead,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  .legal-table thead {
    display: none;
  }

  .legal-table tr {
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-slate-200);
    background-color: var(--color-white);
  }

  .legal-table th {
    background-color: var(--color-slate-100);
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    border-bottom: none;
  }

  .legal-table td {
    padding: 0.65rem 0.85rem 0.85rem 0.85rem;
    border-bottom: none;
    word-break: break-word;
  }
}

/* Small Smartphone Breakpoint (<= 480px) */
@media (max-width: 480px) {
  :root {
    --container-padding: 16px;
  }

  .site-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-logo {
    height: 40px;
    max-width: 155px;
  }

  .header-actions {
    margin-right: 0.35rem;
  }

  .header-actions .btn {
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
    min-height: 38px;
  }

  .hero-facts-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .feature-card {
    padding: 1.65rem 1.25rem;
  }

  .corp-card {
    padding: 1.75rem 1.25rem;
  }

  .contact-info-card,
  .form-card {
    padding: 1.5rem 1.15rem;
  }

  .company-registry-box {
    padding: 1.65rem 1.25rem;
  }
}

/* Ultra-Compact Screens (320px - 360px) */
@media (max-width: 360px) {
  :root {
    --container-padding: 14px;
  }

  .site-container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-logo {
    height: 36px;
    max-width: 135px;
  }

  .header-actions .btn {
    padding: 0.4rem 0.55rem;
    font-size: 0.72rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }
}

