/* ==========================================================================
   AWARDS-LEVEL AGENCY STYLESHEET
   ========================================================================== */

/* --- CUSTOM PROPERTIES --- */
:root {
  --primary: #4f46e5;
  --primary-rgb: 79, 70, 229;
  --secondary: #ec4899;
  --secondary-rgb: 236, 72, 153;
  --accent: #f59e0b;
  --accent-rgb: 245, 158, 11;
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-trans: rgba(255, 255, 255, 0.75);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: rgba(226, 232, 240, 0.8);
  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--primary), var(--secondary));
  --grad-subtle: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.05),
    rgba(236, 72, 153, 0.05)
  );
  --grad-glow: radial-gradient(
    circle at top right,
    rgba(236, 72, 153, 0.15),
    transparent 60%
  );
  --grad-glow-alt: radial-gradient(
    circle at bottom left,
    rgba(79, 70, 229, 0.12),
    transparent 50%
  );

  /* Shadows */
  --shadow-sm:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg:
    0 20px 25px -5px rgba(79, 70, 229, 0.08),
    0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 30px 50px -10px rgba(79, 70, 229, 0.15);

  /* Layout */
  --header-height: 85px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & GLOBAL BASE --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1000px;
  background: var(--grad-glow);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: absolute;
  top: 1500px;
  left: 0;
  right: 0;
  height: 1200px;
  background: var(--grad-glow-alt);
  z-index: -2;
  pointer-events: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}

ul {
  list-style: none;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-alt {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- REUSABLE UTILITIES --- */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section {
  padding: 9rem 0;
  position: relative;
}

.section-header {
  max-width: 750px;
  margin: 0 auto 5.5rem auto;
}

.section-header.text-center {
  text-align: center;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  background: rgba(79, 70, 229, 0.08);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(79, 70, 229, 0.12);
}

.section-title {
  font-size: 2.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.1rem 2.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.35);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* --- HEADER / NAVIGATION (STRICT SITE-WIDE CONSISTENCY) --- */
.header {
  padding: 15px 0;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary);
}

/* Dropdown Menu */
.nav-item.dropdown {
  position: relative;
}

.nav-item.dropdown > a i {
  font-size: 0.75rem;
  margin-left: 0.25rem;
  transition: var(--transition);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 220px;
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition);
}

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(5px);
}

.nav-item.dropdown:hover > a i {
  transform: rotate(180deg);
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

.dropdown-menu li a:hover {
  background: rgba(79, 70, 229, 0.05);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-actions .btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.nav-toggle,
.nav-close {
  display: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 4rem);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 4rem;
  align-items: center;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: float 6s ease-in-out infinite;
}

.hero-tagline i {
  color: var(--secondary);
}

.hero-title {
  font-size: 4.25rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Creative 3D Glass Interactive Hero Visual */
.hero-visual-wrapper {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-main {
  width: 80%;
  height: 80%;
  background: var(--grad-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transform: rotateX(15deg) rotateY(-15deg);
  transition: var(--transition);
}

.hero-visual-main:hover {
  transform: rotateX(5deg) rotateY(-5deg) scale(1.02);
}

.hero-visual-main::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  top: -50%;
  left: -50%;
  transform: rotate(45deg);
  animation: shine 8s linear infinite;
}

.glass-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: var(--transition);
}

.glass-badge-1 {
  top: 15%;
  left: -5%;
  animation: float 6s ease-in-out infinite;
}

.glass-badge-2 {
  bottom: 15%;
  right: -5%;
  animation: float 8s ease-in-out infinite alternate;
}

.glass-badge-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.glass-badge-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- CLIENT LOGO TRUST SECTION --- */
.trust {
  padding: 5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.trust-title {
  text-align: center;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.logo-track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-logo-item {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-muted);
  opacity: 0.4;
  transition: var(--transition);
}

.trust-logo-item:hover {
  opacity: 0.9;
  color: var(--primary);
}

/* --- SERVICES SECTION --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad-primary);
  opacity: 0;
  z-index: -1;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.service-icon {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-md);
  background: rgba(79, 70, 229, 0.06);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 2.25rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  transition: var(--transition);
  flex-grow: 1;
}

.service-card:hover h3,
.service-card:hover p {
  color: #ffffff;
}

.service-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .service-link {
  color: #ffffff;
}

/* --- CREATIVE CALCULATOR SECTION --- */
.calc-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.calc-inputs {
  padding: 4.5rem;
  border-right: 1px solid var(--border-color);
}

.calc-results {
  padding: 4.5rem;
  background: var(--grad-subtle);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.calc-group {
  margin-bottom: 2.5rem;
}

.calc-group:last-child {
  margin-bottom: 0;
}

.calc-label-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.calc-label {
  font-weight: 600;
  color: var(--text-main);
}

.calc-val {
  font-weight: 700;
  color: var(--primary);
}

.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 7px;
  border-radius: 5px;
  background: var(--border-color);
  outline: none;
  transition: opacity 0.2s;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-primary);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
  transition: var(--transition);
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-output-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.calc-output-block {
  margin-bottom: 3rem;
}

.calc-output-block:last-of-type {
  margin-bottom: 0;
}

.calc-big-num {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.calc-output-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- MOCK CAMPAIGN REPORTS --- */
.report-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 3.5rem;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

.report-header h3 {
  font-size: 1.4rem;
}

.report-badge {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
}

.report-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.report-stat-item {
  background: var(--bg-canvas);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.report-stat-val {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
}

.report-stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.report-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 180px;
  padding-top: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.chart-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 10%;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar {
  width: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  height: 0; /* Animated dynamically */
  position: relative;
}

.chart-bar-val {
  position: absolute;
  top: -25px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  width: 100%;
  text-align: center;
}

.chart-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-weight: 600;
}

/* --- INDUSTRIES & PROCESS --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.process-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2.25rem;
  position: relative;
  transition: var(--transition);
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.process-step {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1.5rem;
  opacity: 0.15;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.process-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.process-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- TESTIMONIALS --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- CALL TO ACTION --- */
.cta-inner {
  background: var(--grad-primary);
  border-radius: var(--radius-lg);
  padding: 6.5rem 5rem;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.15),
    transparent 70%
  );
}

.cta-title {
  color: #ffffff;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.cta-desc {
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto 3rem auto;
  opacity: 0.9;
}

.cta-inner .btn-secondary {
  background: #ffffff;
  border-color: transparent;
  color: var(--primary);
}

.cta-inner .btn-secondary:hover {
  background: var(--bg-canvas);
  transform: translateY(-3px);
}

/* --- CONTACT SECTION (CONTACT PAGE Specific Styling) --- */
.page-header {
  background: var(--grad-subtle);
  padding: 7rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  margin-top: var(--header-height);
}

.page-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumbs span {
  color: var(--primary);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4.5rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-details h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checkbox-group input {
  width: auto;
  cursor: pointer;
}

/* --- LEGAL PAGES CONTENT STYLES --- */
.legal-content {
  background: var(--bg-canvas);
  padding: 6.5rem 0;
}

.legal-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 4.5rem;
  box-shadow: var(--shadow-md);
  max-width: 900px;
  margin: 0 auto;
}

.legal-wrapper p {
  margin-bottom: 1.75rem;
  color: var(--text-muted);
}

.legal-wrapper h2 {
  font-size: 1.75rem;
  margin: 3rem 0 1.25rem 0;
}

.legal-wrapper h2:first-of-type {
  margin-top: 0;
}

/* --- FOOTER (STRICT SITE-WIDE CONSISTENCY) --- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 6.5rem 0 3.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4.5rem;
}

.footer-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.footer-socials a:hover {
  background: var(--grad-primary);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-3px);
}

.footer-col h3 {
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col ul li a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-col ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-col ul li i {
  color: var(--primary);
  margin-top: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- INTERACTIVE WIDGETS --- */
/* Live Chat Mock */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.chat-trigger {
  width: 60px;
  height: 60px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.chat-trigger:hover {
  transform: scale(1.1) rotate(5deg);
}

.chat-box {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-box.active {
  display: flex;
}

.chat-header {
  background: var(--grad-primary);
  color: #ffffff;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-title h4 {
  color: #ffffff;
  font-size: 1rem;
}

.chat-header-title p {
  font-size: 0.75rem;
  opacity: 0.85;
}

.chat-close {
  cursor: pointer;
}

.chat-body {
  height: 250px;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-msg {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}

.chat-msg.bot {
  background: var(--bg-canvas);
  color: var(--text-main);
  align-self: flex-start;
}

.chat-msg.user {
  background: var(--primary);
  color: #ffffff;
  align-self: flex-end;
}

.chat-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.5rem;
}

.chat-footer input {
  flex-grow: 1;
  background: var(--bg-canvas);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
}

.chat-send-btn {
  background: var(--primary);
  color: #ffffff;
  width: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Success Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(5px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
}

.popup-content {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  text-align: center;
  max-width: 450px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.popup-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.popup-icon {
  font-size: 4rem;
  color: #10b981;
  margin-bottom: 1.5rem;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

/* --- ANIMATIONS --- */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes shine {
  0% {
    transform: translate(-30%, -30%) rotate(45deg);
  }
  100% {
    transform: translate(30%, 30%) rotate(45deg);
  }
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1200px) {
  .container {
    padding: 0 2rem;
  }
  .hero-title {
    font-size: 3.5rem;
  }
  .footer-grid {
    gap: 2rem;
  }
}

@media (max-width: 991px) {
  .section {
    padding: 6.5rem 0;
  }
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 5rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-visual-wrapper {
    height: 420px;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .calc-inputs,
  .calc-results {
    padding: 3rem;
  }
  .calc-results {
    border-top: 1px solid var(--border-color);
  }
  .testimonial-grid,
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  /* Menu Navigation for Mobile */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-surface);
    box-shadow: var(--shadow-lg);
    padding: 5rem 3rem;
    transition: var(--transition);
    flex-direction: column;
    align-items: flex-start;
    z-index: 1001;
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
  }
  .nav-close,
  .nav-toggle {
    display: block;
  }
  .header-actions .btn {
    display: none;
  }
  .hero-title {
    font-size: 2.75rem;
  }
  .section-title {
    font-size: 2.25rem;
  }
  .cta-inner {
    padding: 4.5rem 2rem;
  }
  .cta-title {
    font-size: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}
