/*
 * Capital Ledger Advisors - Main Stylesheet
 * Premium, modern, and trustworthy financial firm theme.
 */

/* -------------------------------------------------------------
 * 1. DESIGN SYSTEM & VARIABLES
 * ------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --primary: #0a2540;
  --primary-rgb: 10, 37, 64;
  --primary-dark: #071a2e;
  --primary-light: #f4f8fc;
  --accent: #c5a85c;
  --accent-rgb: 197, 168, 92;
  --accent-dark: #b09146;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-ice: #f1f5f9;
  --border-color: #e2e8f0;
  --success: #10b981;
  --error: #ef4444;

  /* Typography */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-premium: 0 25px 50px -12px rgba(10, 37, 64, 0.08);

  /* Layout & Transitions */
  --max-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------------
 * 2. BASE STYLES & RESET
 * ------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-muted);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

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

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

ul, ol {
  list-style: none;
}

span.highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

span.highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(197, 168, 92, 0.2);
  z-index: -1;
}

/* -------------------------------------------------------------
 * 3. LAYOUT UTILITIES
 * ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

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

.section-bg-dark {
  background-color: var(--primary);
  color: var(--bg-light);
}

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

.text-center {
  text-align: center;
}

.section-header {
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.section-bg-dark .section-header p {
  color: var(--text-light);
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: rgba(197, 168, 92, 0.15);
  color: #a88839;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-bg-dark .badge {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

/* Grids */
.grid {
  display: grid;
  gap: 2rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 37, 64, 0.35);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--primary);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  color: var(--bg-white);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background-color: transparent;
}

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

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

.btn-outline-white:hover {
  background-color: var(--bg-white);
  color: var(--primary);
  border-color: var(--bg-white);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Icon box */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  background-color: rgba(10, 37, 64, 0.05);
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.icon-box svg {
  width: 1.75rem;
  height: 1.75rem;
}

/* -------------------------------------------------------------
 * 4. HEADER & NAVIGATION
 * ------------------------------------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.25rem 0;
  background-color: transparent;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary);
  font-family: var(--font-heading);
}

header.scrolled .logo {
  color: var(--primary);
}

.logo-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
}

.logo-square {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  transform: rotate(45deg);
  transition: var(--transition);
}

.logo-line {
  position: absolute;
  width: 60%;
  height: 3px;
  background-color: var(--accent);
  transform: rotate(-45deg);
}

.logo:hover .logo-square {
  transform: rotate(135deg);
  border-color: var(--accent);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.5rem 0;
}

header:not(.scrolled) .nav-link {
  color: rgba(10, 37, 64, 0.9);
}

header.header-light-text:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.9);
}
header.header-light-text:not(.scrolled) .logo {
  color: var(--bg-white);
}
header.header-light-text:not(.scrolled) .logo-square {
  border-color: var(--bg-white);
}
header.header-light-text:not(.scrolled) .menu-toggle span {
  background-color: var(--bg-white);
}

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

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

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

/* Dropdown Menu */
.has-dropdown {
  cursor: pointer;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 250px;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  padding: 1rem 0;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1001;
}

.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.dropdown-link:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  padding-left: 1.75rem;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 1.5rem;
  height: 1.125rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

/* -------------------------------------------------------------
 * 5. HERO SECTION
 * ------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 10rem 0 7rem 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 600px;
  height: 600px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(197, 168, 92, 0.08) 0%, transparent 70%);
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(10, 37, 64, 0.04) 0%, transparent 70%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  max-width: 650px;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-content p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* Hero graphic - SVG design */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(197, 168, 92, 0.15) 0%, transparent 70%);
  border-radius: var(--radius-lg);
  transform: scale(1.1);
  z-index: -1;
}

.hero-graphic {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-color);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.graphic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.graphic-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.graphic-dots {
  display: flex;
  gap: 6px;
}

.graphic-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: var(--border-color);
}
.graphic-dot:nth-child(1) { background-color: #ef4444; }
.graphic-dot:nth-child(2) { background-color: #f59e0b; }
.graphic-dot:nth-child(3) { background-color: #10b981; }

.graphic-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  align-items: center;
}

.graphic-bar-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 80px;
}

.graphic-bar-outer {
  flex-grow: 1;
  height: 8px;
  background-color: var(--bg-ice);
  border-radius: var(--radius-full);
  margin: 0 1rem;
  overflow: hidden;
}

.graphic-bar-inner {
  height: 100%;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  transition: var(--transition-slow);
  width: 0%; /* Animate on load */
}

.graphic-bar-inner.gold { background-color: var(--accent); }
.graphic-bar-inner.success { background-color: var(--success); }

.graphic-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: right;
  width: 60px;
}

/* Floating Card inside Hero Graphic */
.floating-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-badge-icon {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--accent);
}

.floating-badge-text h4 {
  font-size: 1.15rem;
  color: var(--bg-white);
  margin: 0;
}

.floating-badge-text p {
  font-size: 0.75rem;
  color: var(--text-light);
  margin: 0;
}

/* Trust Badges / Logos */
.trust-badges {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(10, 37, 64, 0.1);
}

.trust-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.trust-logos {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.trust-logo {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
  transition: var(--transition);
}

.trust-logo:hover {
  opacity: 1;
  color: var(--primary);
}

.trust-logo svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

/* -------------------------------------------------------------
 * 6. WHY CHOOSE US SECTION
 * ------------------------------------------------------------- */
.why-choose {
  background-color: var(--bg-white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-left h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.why-left p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.why-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.why-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.why-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.why-item p {
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.4;
  color: var(--text-muted);
}

.why-right-graphic {
  position: relative;
  padding: 2rem;
}

.why-right-bg {
  position: absolute;
  width: 80%;
  height: 80%;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  bottom: 0;
  left: 0;
  z-index: -1;
}

.why-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  position: relative;
}

.why-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.why-stat:last-child {
  border-bottom: none;
}

.why-stat-num {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.why-stat-num span {
  color: var(--accent);
}

.why-stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
 * 7. SERVICES GRID & CARDS
 * ------------------------------------------------------------- */
.services-section {
  background-color: var(--bg-light);
}

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

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(10, 37, 64, 0.1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover .icon-box {
  background-color: var(--primary);
  color: var(--bg-white);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card-link svg {
  width: 1rem;
  height: 1rem;
  transition: var(--transition);
}

.service-card:hover .service-card-link {
  color: var(--accent-dark);
}

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

/* -------------------------------------------------------------
 * 8. INDUSTRIES GRID
 * ------------------------------------------------------------- */
.industries-section {
  background-color: var(--bg-white);
}

.industry-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.industry-card:hover {
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(197, 168, 92, 0.3);
}

.industry-card .icon-box {
  margin-bottom: 1rem;
  width: 3rem;
  height: 3rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
}

.industry-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.industry-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
 * 9. CLIENT BENEFITS SECTION
 * ------------------------------------------------------------- */
.benefits-section {
  background-color: var(--bg-light);
}

.benefit-card {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.benefit-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(10, 37, 64, 0.1);
}

.benefit-card .icon-box {
  flex-shrink: 0;
  margin-bottom: 0;
  width: 3rem;
  height: 3rem;
  background-color: var(--primary-light);
}

.benefit-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* -------------------------------------------------------------
 * 10. TESTIMONIALS SECTION
 * ------------------------------------------------------------- */
.testimonials-section {
  background-color: var(--bg-white);
}

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

.testimonial-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: rgba(197, 168, 92, 0.15);
  font-size: 4rem;
  font-family: var(--font-heading);
  line-height: 1;
  font-weight: 800;
  user-select: none;
}

.testimonial-text {
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  color: var(--text-dark);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: var(--bg-white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 2px solid var(--accent);
}

.author-info h5 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
  color: var(--primary);
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* -------------------------------------------------------------
 * 11. FAQ ACCORDION SECTION
 * ------------------------------------------------------------- */
.faq-section {
  background-color: var(--bg-light);
}

.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(10, 37, 64, 0.15);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.faq-trigger h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  color: var(--primary);
  transition: var(--transition);
}

.faq-icon-wrapper {
  color: var(--primary);
  transition: var(--transition);
}

.faq-icon-wrapper svg {
  width: 1.25rem;
  height: 1.25rem;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 2rem;
}

.faq-content p {
  padding-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Active State for FAQ */
.faq-item.active {
  box-shadow: var(--shadow-md);
  border-color: rgba(197, 168, 92, 0.3);
}

.faq-item.active .faq-trigger h4 {
  color: var(--accent-dark);
}

.faq-item.active .faq-icon-wrapper {
  transform: rotate(180deg);
  color: var(--accent);
}

/* -------------------------------------------------------------
 * 12. CALL TO ACTION (CTA) BANNER
 * ------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--bg-white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(197, 168, 92, 0.1) 0%, transparent 60%);
  border-radius: var(--radius-full);
}

.cta-wrapper {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-wrapper h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--bg-white);
}

.cta-wrapper p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* -------------------------------------------------------------
 * 13. INNER PAGE HERO
 * ------------------------------------------------------------- */
.inner-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--bg-white);
  padding: 10rem 0 5rem 0;
  text-align: center;
  position: relative;
}

.inner-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: var(--bg-white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.inner-hero-white-bg::after {
  background: var(--bg-white);
}

.inner-hero-light-bg::after {
  background: var(--bg-light);
}

.inner-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--bg-white);
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.breadcrumbs a {
  color: var(--text-light);
}

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

.breadcrumbs span.separator::after {
  content: '/';
  margin-left: 0.5rem;
}

.breadcrumbs span.current {
  color: var(--accent);
  font-weight: 600;
}

/* -------------------------------------------------------------
 * 14. CONTACT PAGE & FORM
 * ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.contact-info::before {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(197, 168, 92, 0.1) 0%, transparent 60%);
  border-radius: var(--radius-full);
}

.contact-info h3 {
  font-size: 1.75rem;
  color: var(--bg-white);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.contact-detail-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-detail-icon {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-detail-content h5 {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.contact-detail-content p,
.contact-detail-content a {
  color: var(--bg-white);
  font-size: 1rem;
  margin: 0;
}

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

/* Contact Form */
.contact-form-wrapper {
  background-color: var(--bg-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.contact-form-wrapper p {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.08);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

/* Form Message */
.form-message {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.form-message.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: block;
}

.form-message.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: block;
}

/* Map Placeholder */
.map-section {
  height: 400px;
  background-color: var(--bg-ice);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-top: 4rem;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  padding: 2rem;
}

.map-placeholder svg {
  width: 3.5rem;
  height: 3.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* -------------------------------------------------------------
 * 15. ABOUT PAGE SPECIFIC
 * ------------------------------------------------------------- */
.about-history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img-frame {
  position: relative;
  padding: 1.5rem;
}

.about-img-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  height: 80%;
  border: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: 0;
}

.about-img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  background-color: var(--primary-light);
}

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

.value-card {
  background-color: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 168, 92, 0.3);
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

/* Owner Bio */
.owner-section {
  background-color: var(--primary-light);
}

.owner-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.owner-image-wrapper {
  background: var(--bg-white);
  padding: 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.owner-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--primary);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.owner-image svg {
  width: 60%;
  height: 60%;
}

.owner-info-details h3 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.owner-title {
  font-size: 1.1rem;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.owner-bio {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* -------------------------------------------------------------
 * 16. SERVICES & INNER PAGE STYLING
 * ------------------------------------------------------------- */
.service-details-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.service-main-content h2 {
  font-size: 2.25rem;
  margin: 2rem 0 1rem 0;
  color: var(--primary);
}

.service-main-content h2:first-child {
  margin-top: 0;
}

.service-main-content p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.service-features-list {
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-light);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.service-feature-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.service-feature-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.service-feature-item p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-muted);
}

/* Services Sidebar */
.services-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.sidebar-widget-dark {
  background-color: var(--primary);
  color: var(--bg-white);
  border: none;
}

.sidebar-widget-dark h3 {
  color: var(--bg-white);
}

.widget-title {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
  color: var(--primary);
}

.sidebar-widget-dark .widget-title {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: var(--bg-white);
}

.sidebar-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-menu-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--primary);
}

.sidebar-menu-link svg {
  width: 1rem;
  height: 1rem;
  transition: var(--transition);
}

.sidebar-menu-link:hover,
.sidebar-menu-link.active {
  background-color: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
}

.sidebar-menu-link:hover svg,
.sidebar-menu-link.active svg {
  transform: translateX(3px);
  color: var(--accent);
}

.sidebar-widget p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget-dark p {
  color: var(--text-light);
}

/* Packages Box */
.package-box {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.package-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.package-header h4 {
  font-size: 1.15rem;
  color: var(--primary);
}

.package-tag {
  font-size: 0.7rem;
  font-weight: 700;
  background-color: rgba(197, 168, 92, 0.15);
  color: var(--accent-dark);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.package-features {
  margin: 1rem 0;
}

.package-features li {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.package-features li svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--success);
}

/* -------------------------------------------------------------
 * 17. FOOTER SECTION
 * ------------------------------------------------------------- */
footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 5rem 0 2.5rem 0;
  border-top: 4px solid var(--accent);
}

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

.footer-widget h3 {
  color: var(--bg-white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-widget-logo .logo {
  color: var(--bg-white);
  margin-bottom: 1.25rem;
}

.footer-widget-logo .logo-square {
  border-color: var(--bg-white);
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link::before {
  content: '→';
  color: var(--accent);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--bg-white);
  padding-left: 0.25rem;
}

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

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.footer-contact-item a {
  color: inherit;
}

.footer-contact-item a:hover {
  color: var(--bg-white);
}

.footer-newsletter p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
}

.newsletter-input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--bg-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--accent);
}

.newsletter-btn {
  background-color: var(--accent);
  color: var(--primary);
  border: none;
  padding: 0 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.newsletter-btn:hover {
  background-color: var(--accent-dark);
  color: var(--bg-white);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-link:hover {
  color: var(--bg-white);
}

/* -------------------------------------------------------------
 * 18. POLICY PAGES STYLING
 * ------------------------------------------------------------- */
.policy-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content-wrapper h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem 0;
  color: var(--primary);
}

.policy-content-wrapper p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.policy-content-wrapper ul {
  list-style: disc;
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.policy-content-wrapper li {
  margin-bottom: 0.5rem;
  font-size: 0.975rem;
}

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

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

/* -------------------------------------------------------------
 * 20. RESPONSIVE DESIGN (MEDIA QUERIES)
 * ------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Layout */
  .section {
    padding: 4rem 0;
  }
  .section-header {
    margin-bottom: 2.5rem;
  }
  .section-header h2 {
    font-size: 2rem;
  }

  /* Navigation Mobile */
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2.5rem 3rem 2.5rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    z-index: 1001;
    overflow-y: auto;
  }
  .nav-menu.open {
    right: 0;
  }
  .nav-item {
    width: 100%;
  }
  .nav-dropdown {
    position: static;
    transform: none;
    width: 100%;
    opacity: 1;
    visibility: visible;
    border: none;
    box-shadow: none;
    padding: 0.5rem 0 0 1rem;
    display: none;
  }
  .has-dropdown.active .nav-dropdown {
    display: block;
  }
  .has-dropdown > .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .has-dropdown > .nav-link::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
  }
  .has-dropdown.active > .nav-link::after {
    content: '-';
  }
  .nav-btn {
    width: 100%;
    margin-top: 1.5rem;
  }

  /* Hero Mobile */
  .hero {
    padding: 8rem 0 4rem 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }

  /* Why Choose us Mobile */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .why-list {
    grid-template-columns: 1fr;
  }

  /* Grids Mobile */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Service page */
  .service-details-grid {
    grid-template-columns: 1fr;
  }
  .service-features-list {
    grid-template-columns: 1fr;
  }

  /* Contact page */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-info {
    padding: 2rem;
  }
  .contact-form-wrapper {
    padding: 2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* About Page */
  .about-history-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-values-grid {
    grid-template-columns: 1fr;
  }
  .owner-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-legal-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}
