@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;900&family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap');

/* ==========================================
   DESIGN SYSTEM & VARIABLES
   ========================================== */
:root {
  --primary-color: #0b1528; /* Deep Midnight Navy */
  --primary-light: #162a4a;
  --accent-gold: #c5a059;   /* Matte Champagne Gold */
  --accent-gold-hover: #b38e46;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --bg-light: #fdfdfd;
  --bg-slate: #f8fafc;
  --border-color: #e2e8f0;
  --gold-border: rgba(197, 160, 89, 0.3);
  --card-bg: rgba(255, 255, 255, 0.85);
  
  --font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Noto Sans JP', sans-serif;
  
  --shadow-sm: 0 2px 4px rgba(11, 21, 40, 0.05);
  --shadow-md: 0 10px 20px rgba(11, 21, 40, 0.08);
  --shadow-lg: 0 20px 40px rgba(11, 21, 40, 0.12);
  --shadow-glass: 0 8px 32px 0 rgba(11, 21, 40, 0.08);
  
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 4px;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.8;
  letter-spacing: 0.03em;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary-color);
}

h2 {
  font-size: 2.25rem;
  letter-spacing: 0.04em;
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-gold);
}

.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-gold);
}

p {
  margin-bottom: 1.5rem;
}

.text-gold { color: var(--accent-gold); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }

/* ==========================================
   LAYOUT CONTAINERS
   ========================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

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

/* ==========================================
   BUTTONS & CTAs
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #ab8742 100%);
  color: #1e1b15;
  box-shadow: var(--shadow-sm);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 1px solid var(--accent-gold);
  color: var(--primary-color);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--accent-gold);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.ghead {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  transition: var(--transition-smooth);
}

.ghead.scrolled {
  padding: 14px 0;
  background-color: rgba(11, 21, 40, 0.96);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
  box-shadow: var(--shadow-md);
}

.ghead .inr {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-svg, .logo-img {
  width: 3.3rem;
  height: 3.3rem;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
  width: max-content;
  height: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-character;
  line-height: 1;
  white-space: nowrap;
}

.logo-text span {
  display: block;
  width: 100%;
  font-size: 0.38rem;
  font-weight: 400;
  color: var(--accent-gold);
  letter-spacing: 0;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-character;
  line-height: 1;
}

.gnav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 36px;
}

.nav-link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.85);
  text-decoration: none;
  transition: var(--transition-fast);
  white-space: nowrap;
  padding: 6px 0;
  letter-spacing: 0.03em;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

.nav-link:hover, .nav-list li.current .nav-link {
  color: var(--accent-gold);
}

.nav-link:hover::after, .nav-list li.current .nav-link::after {
  width: 100%;
}

.header-divider {
  width: 1px;
  height: 18px;
  background-color: rgba(248, 250, 252, 0.15);
  margin: 0 4px;
}

.gContact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.gContact .lang-selector {
  margin-top: 0;
}

.gContact .btn-mail {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #ab8742 100%) !important;
  color: #0b1528 !important;
  border: 1px solid var(--accent-gold) !important;
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.gContact .btn-mail:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3) !important;
  color: #0b1528 !important;
}

.globe-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: var(--accent-gold);
}

.globe-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.75;
}

/* Language Selector Dropdown */
.lang-selector {
  position: relative;
  display: inline-block;
  z-index: 1001;
}

.lang-dropdown-btn {
  background: rgba(11, 21, 40, 0.5);
  border: 1px solid rgba(197, 160, 89, 0.3);
  color: rgba(248, 250, 252, 0.9);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-dropdown-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(11, 21, 40, 0.7);
}

.lang-dropdown-btn .chevron-down {
  font-size: 0.55rem;
  color: var(--accent-gold);
  transition: transform 0.3s ease;
}

/* Rotate chevron when open */
.lang-selector.open .lang-dropdown-btn .chevron-down {
  transform: rotate(180deg);
}

.lang-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(11, 21, 40, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-width: 80px;
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 4px;
  padding: 4px 0;
  margin-top: 6px;
  flex-direction: column;
  animation: slideUpFade 0.2s ease forwards;
}

/* Show content when .open or hovered on desktop */
.lang-selector.open .lang-dropdown-content {
  display: flex;
}

/* For desktop, hover works smoothly too */
@media (min-width: 769px) {
  .lang-selector:hover .lang-dropdown-content {
    display: flex;
  }
  .lang-selector:hover .lang-dropdown-btn .chevron-down {
    transform: rotate(180deg);
  }
}

.lang-dropdown-content .lang-btn {
  background: transparent;
  border: none;
  color: rgba(248, 250, 252, 0.7);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 16px;
  width: 100%;
  text-align: center;
  transition: all 0.2s ease;
}

.lang-dropdown-content .lang-btn:hover {
  color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.1);
}

.lang-dropdown-content .lang-btn.active {
  color: #0b1528 !important;
  background-color: var(--accent-gold) !important;
}

/* Adjustments for scrolled header and mobile menu */
.ghead.scrolled .lang-dropdown-btn {
  background: rgba(11, 21, 40, 0.75);
}

@media (max-width: 768px) {
  .gnav.mobile-active .lang-selector {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .lang-dropdown-content {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-light);
  margin-bottom: 5px;
  transition: var(--transition-fast);
}

.menu-toggle span:last-child {
  margin-bottom: 0;
}

/* ==========================================
   HERO / SPLASH SECTION
   ========================================== */
#splash {
  position: relative;
  height: 95vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  color: var(--text-light);
  background-color: var(--primary-color);
  background-image: linear-gradient(to right, rgba(11, 21, 40, 0.96) 0%, rgba(11, 21, 40, 0.82) 50%, rgba(11, 21, 40, 0.45) 100%), 
                    url('../images/hero_bg.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding-top: 100px;
  border-bottom: 2px solid var(--accent-gold);
}

.hero-content {
  max-width: 760px;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  box-shadow: none;
  z-index: 2;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media(max-width: 768px) {
  .hero-content {
    padding: 0;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.hero-sub {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: inline-block;
  border-bottom: 1px solid rgba(197, 160, 89, 0.4);
  padding-bottom: 6px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.45;
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-desc {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(248, 250, 252, 0.95);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-actions {
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   SUB-PAGE HERO / COVER
   ========================================== */
.sub-hero {
  position: relative;
  background: linear-gradient(to bottom, rgba(11, 21, 40, 0.9) 0%, rgba(11, 21, 40, 0.98) 100%), 
              url('../images/hero_bg.png') no-repeat center center/cover;
  padding: 160px 0 100px;
  color: var(--text-light);
  text-align: center;
}

.sub-hero h1 {
  font-size: 2.75rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.7);
  list-style: none;
}

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

.breadcrumb li::after {
  content: '>';
  margin-left: 8px;
  color: rgba(248, 250, 252, 0.4);
}

.breadcrumb li:last-child::after {
  content: '';
}

/* ==========================================
   CARDS & FEATURES
   ========================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
  opacity: 0;
  transition: var(--transition-fast);
}

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

.card:hover::before {
  opacity: 1;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-top: 1.5rem;
}

.card-link::after {
  content: '→';
  transition: var(--transition-fast);
}

.card:hover .card-link::after {
  transform: translateX(4px);
}

/* ==========================================
   OFFICE PROFILE & TABS
   ========================================== */
.office-intro {
  margin-bottom: 60px;
}

.office-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

@media(max-width: 768px) {
  .office-info-grid {
    grid-template-columns: 1fr;
  }
}

.office-card {
  background-color: var(--bg-slate);
  border-radius: var(--radius-md);
  padding: 30px;
  border-left: 4px solid var(--accent-gold);
}

.office-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.office-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.office-table th, .office-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.office-table th {
  font-weight: 700;
  color: var(--primary-color);
  width: 30%;
  vertical-align: top;
}

.office-table td {
  color: var(--text-dark);
}

.office-table tr:last-child th, .office-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================
   ACCESS / MAP STYLING
   ========================================== */
.map-block {
  margin-bottom: 60px;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin-top: 20px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================
   CONTACT FORM / INQ
   ========================================== */
.form-card {
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-color);
  font-size: 0.95rem;
}

.form-group label small {
  background-color: #ef4444;
  color: white;
  padding: 2px 6px;
  font-size: 0.75rem;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
  background-color: var(--bg-slate);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Form field validation states */
.form-control.field-error {
  border-color: #ef4444;
  background-color: #fef2f2;
}
.form-control.field-error:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.form-control.field-valid {
  border-color: #22c55e;
}
.form-control.field-valid:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}
.field-error-msg {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 5px;
  animation: slideUpFade 0.3s ease;
}

/* Submit button spinner */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-gold);
}

/* ==========================================
   ARTICLES & NEWS
   ========================================== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.article-item:last-child {
  border-bottom: none;
}

.article-date {
  display: none !important;
}

.article-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.article-title a:hover {
  color: var(--accent-gold);
}

/* Article detail styles */
.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-dark);
}

.article-body h2 {
  font-size: 1.75rem;
  margin: 3rem 0 1.5rem;
}

.article-body h3 {
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
}

.article-body p {
  margin-bottom: 1.75rem;
}

.article-body ul {
  margin-bottom: 1.75rem;
  padding-left: 20px;
}

.article-body li {
  margin-bottom: 8px;
}

/* ==========================================
   FOOTER
   ========================================== */
.gFoot {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0 30px;
  border-top: 2px solid var(--accent-gold);
}

.gFoot .inr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.fnav {
  display: flex;
  list-style: none;
  gap: 30px;
}

.fnav a {
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.7);
}

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

.copyright {
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.4);
  text-align: center;
  max-width: 800px;
  line-height: 1.6;
}

/* ==========================================
   MOBILE RESPONSIVENESS
   ========================================== */
@media(max-width: 1200px) {
  h2 {
    font-size: 2rem;
  }
  
  .gnav {
    display: none; /* Turned into mobile drawer via JS */
  }
  
  .menu-toggle {
    display: block;
  }
  
  /* Mobile Menu Open State */
  .gnav.mobile-active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--primary-color);
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    padding: 80px 40px 40px;
    z-index: 1050;
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  @keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }
  
  .gnav.mobile-active .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 16px;
    margin-bottom: 40px;
  }

  .gnav.mobile-active .nav-link {
    display: block;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
  }
  
  .gnav.mobile-active .nav-link::after {
    display: none;
  }
  
  .header-divider {
    display: none;
  }

  .gnav.mobile-active .gContact {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 20px;
  }

  .gnav.mobile-active .gContact .btn-mail {
    width: 100%;
  }
  
  /* Menu Hamburger Animation */
  .menu-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

@media(max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  #splash {
    height: auto;
    padding: 120px 0 80px;
  }
  
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 1.25rem;
  }

  .hero-desc {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .fnav {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  /* Prevent large inline paddings from squeezing content on mobile screens */
  div[style*="padding: 50px"], 
  div[style*="padding: 45px"], 
  div[style*="padding: 40px"], 
  div[style*="padding: 35px"],
  div[style*="padding: 30px"] {
    padding: 24px 16px !important;
  }

  /* Make office information tables responsive (stack columns on mobile) */
  .office-table, 
  .office-table tbody, 
  .office-table tr, 
  .office-table th, 
  .office-table td {
    display: block !important;
    width: 100% !important;
  }
  
  .office-table th {
    border-bottom: none !important;
    padding: 20px 20px 5px 20px !important;
    font-size: 1.05rem !important;
    color: var(--accent-gold) !important;
  }
  
  .office-table td {
    padding: 5px 20px 20px 20px !important;
    border-bottom: 1px dashed var(--border-color) !important;
  }
  
  .office-table tr:last-child td {
    border-bottom: none !important;
  }
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reason-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg) !important;
  border-color: var(--accent-gold) !important;
}

.stats-banner {
  background: rgba(11, 21, 40, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(197, 160, 89, 0.3);
  outline: 1px solid rgba(197, 160, 89, 0.1);
  outline-offset: -6px;
  padding: 40px 0;
  color: var(--text-light);
  margin: 50px auto 0;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-glass), 0 10px 40px rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-lg);
  max-width: 1120px;
  width: calc(100% - 48px);
}

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

.stats-item {
  position: relative;
}

.stats-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 0;
  width: 1px;
  height: 80%;
  background-color: rgba(197, 160, 89, 0.3);
}

@media (max-width: 768px) {
  .stats-banner {
    margin-top: 0;
    margin-left: 12px;
    margin-right: 12px;
    padding: 30px 0;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .stats-item:not(:last-child)::after {
    display: none;
  }
}

.stats-number {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1.2;
  margin-bottom: 5px;
}

.stats-label {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: rgba(248, 250, 252, 0.8);
}

/* Service Grid Overhaul */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-gold), #ab8742);
  opacity: 0;
  transition: var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(197, 160, 89, 0.4);
}

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

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(197, 160, 89, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-bottom: 25px;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: var(--accent-gold);
  color: var(--primary-color);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-gold);
  stroke-width: 1.5;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon svg {
  stroke: var(--primary-color);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 25px;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-top: auto;
}

.service-link::after {
  content: '→';
  transition: var(--transition-fast);
}

.service-card:hover .service-link::after {
  transform: translateX(4px);
}

/* Reason Card Styling */
.reason-card {
  background: white;
  padding: 45px 35px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.reason-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gold);
  opacity: 0;
  transition: var(--transition-fast);
}

.reason-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md) !important;
  border-color: rgba(197, 160, 89, 0.4) !important;
}

.reason-card:hover::before {
  opacity: 1;
}

.reason-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}
/* ==========================================
   FAQ / Q&A SECTION
   ========================================== */
.faq-section {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-q-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  align-self: flex-start;
  max-width: 85%;
}

.faq-a-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  align-self: flex-end;
  max-width: 85%;
}

.faq-icon-q, .faq-icon-a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.faq-icon-q {
  background-color: var(--primary-light);
  color: var(--accent-gold);
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.faq-icon-a {
  background-color: var(--accent-gold);
  color: var(--primary-color);
}

.faq-bubble-q {
  background-color: var(--bg-slate);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 16px 22px;
  position: relative;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
}

.faq-bubble-a {
  background-color: var(--primary-color);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: 4px;
  padding: 16px 22px;
  position: relative;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  box-shadow: var(--shadow-sm);
}

/* Speech bubble indicator arrows */
.faq-bubble-q::before {
  content: '';
  position: absolute;
  top: 15px;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid var(--border-color);
}
.faq-bubble-q::after {
  content: '';
  position: absolute;
  top: 15px;
  left: -7px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid var(--bg-slate);
}

.faq-bubble-a::before {
  content: '';
  position: absolute;
  top: 15px;
  right: -8px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid rgba(197, 160, 89, 0.25);
}
.faq-bubble-a::after {
  content: '';
  position: absolute;
  top: 15px;
  right: -7px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--primary-color);
}

@media(max-width: 768px) {
  .faq-q-block, .faq-a-block {
    max-width: 100%;
  }
}

/* ==========================================
   PREMIUM WEB DESIGN UPGRADES (Glassmorphism & Ambient Glow)
   ========================================== */

/* Ambient Glow background blobs */
.ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.08) 0%, rgba(197, 160, 89, 0) 70%);
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
  animation: pulseGlow 12s ease-in-out infinite alternate;
}

.glow-1 {
  top: -10%;
  left: -150px;
}

.glow-2 {
  bottom: -10%;
  right: -150px;
  background: radial-gradient(circle, rgba(22, 42, 74, 0.35) 0%, rgba(22, 42, 74, 0) 70%);
}

@keyframes pulseGlow {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.15) translate(30px, -20px);
    opacity: 1;
  }
}

/* Glassmorphism card utilities */
.glass-panel {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(197, 160, 89, 0.18) !important;
  box-shadow: 0 8px 32px 0 rgba(11, 21, 40, 0.04), 0 1px 2px rgba(197, 160, 89, 0.05) !important;
  transition: var(--transition-smooth) !important;
}

.glass-panel:hover {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(197, 160, 89, 0.5) !important;
  transform: translateY(-6px) scale(1.01) !important;
  box-shadow: 0 20px 40px rgba(197, 160, 89, 0.16) !important;
}

/* Dark Glassmorphism card utilities */
.dark-glass-panel {
  background: rgba(11, 21, 40, 0.68) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(197, 160, 89, 0.28) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.24) !important;
  transition: var(--transition-smooth) !important;
}

.dark-glass-panel:hover {
  background: rgba(11, 21, 40, 0.85) !important;
  border-color: rgba(197, 160, 89, 0.6) !important;
  transform: translateY(-6px) scale(1.01) !important;
  box-shadow: 0 20px 40px rgba(197, 160, 89, 0.28) !important;
}

.dark-glass-panel h3 {
  color: var(--accent-gold) !important;
}

.dark-glass-panel p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Cache compatibility: Override legacy .glass-panel background inside the dark gradient section */
section[style*="radial-gradient"] .glass-panel {
  background: rgba(11, 21, 40, 0.68) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(197, 160, 89, 0.28) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.24) !important;
  transition: var(--transition-smooth) !important;
}

section[style*="radial-gradient"] .glass-panel:hover {
  background: rgba(11, 21, 40, 0.85) !important;
  border-color: rgba(197, 160, 89, 0.6) !important;
  transform: translateY(-6px) scale(1.01) !important;
  box-shadow: 0 20px 40px rgba(197, 160, 89, 0.28) !important;
}

section[style*="radial-gradient"] .glass-panel h3 {
  color: var(--accent-gold) !important;
}

section[style*="radial-gradient"] .glass-panel p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Upgraded hover physics for existing cards */
.service-card {
  transition: var(--transition-smooth) !important;
}

.service-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  border-color: var(--accent-gold) !important;
  box-shadow: 0 20px 40px rgba(197, 160, 89, 0.16) !important;
}

.reason-card {
  transition: var(--transition-smooth) !important;
}

.reason-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  border-color: var(--accent-gold) !important;
  box-shadow: 0 20px 40px rgba(197, 160, 89, 0.16) !important;
}

/* Form focus and input glow refinements */
.form-control:focus {
  border-color: var(--accent-gold) !important;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.18) !important;
  outline: none;
}
/* Cloudflare Pages Auto-Build Trigger */
