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

:root {
  --primary-teal: #229ea0;
  --secondary-salmon: #ee6d8a;
  --text-main: #434549;
  --text-heading: #212326;
  --text-muted: #777777;
  --body-bg: #f8faff;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
  --footer-bg: #111111;
  --header-height: 90px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--body-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Blobs */
.bg-shape {
  position: fixed; border-radius: 50%; filter: blur(100px); z-index: -1; animation: float 15s infinite alternate;
}
.shape-1 { width: 400px; height: 400px; top: -100px; left: -100px; }
.shape-2 { width: 300px; height: 300px; bottom: 10%; right: -50px; }
.shape-3 { width: 500px; height: 500px; top: 30%; right: 10%; }
@keyframes float { from { transform: translate(0, 0); } to { transform: translate(30px, 50px); } }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.text-center { text-align: center; }

/* Header & Glass Nav */
.header-wrapper {
  position: fixed; width: 100%; top: 0; z-index: 1000;
}

.glass-header {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  height: var(--header-height);
  display: flex; align-items: center;
  transition: all 0.3s ease;
  position: relative; z-index: 1100;
}

.header-inner {
  display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
}

.logo img { 
  filter: invert(15%) sepia(5%) saturate(1000%) hue-rotate(180deg) brightness(20%); 
  transition: transform 0.3s ease; 
  max-width: 140px;
}
.logo:hover img { transform: scale(1.05); }

/* Desktop Navigation */
.desktop-nav ul { display: flex; list-style: none; gap: 2.2rem; align-items: center; }
.nav-link { 
  color: var(--text-heading); text-decoration: none; font-weight: 600; font-size: 0.95rem; 
  transition: all 0.3s ease; position: relative; padding-bottom: 4px;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; 
  background: var(--primary-teal); transition: width 0.3s ease;
}
.nav-link:hover { color: var(--primary-teal); }
.nav-link:hover::after { width: 100%; }

/* Hamburger Button */
.hamburger {
  display: none; width: 30px; height: 20px; position: relative; background: none; border: none; cursor: pointer; z-index: 1200;
}
.hamburger span {
  display: block; width: 100%; height: 2.5px; background: var(--text-heading); position: absolute; border-radius: 2px; transition: all 0.3s ease;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.is-menu-open .hamburger span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.is-menu-open .hamburger span:nth-child(2) { opacity: 0; }
.is-menu-open .hamburger span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  z-index: 1050; display: flex; flex-direction: column; justify-content: center; align-items: center;
  transform: translateY(-100%); transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.is-menu-open .mobile-menu-overlay { transform: translateY(0); }
.mobile-nav ul { list-style: none; text-align: center; }
.mobile-nav li { margin: 1.5rem 0; opacity: 0; transform: translateY(20px); transition: all 0.3s ease; }
.is-menu-open .mobile-nav li { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }

.mobile-nav-link {
  font-size: 1.8rem; font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--text-heading); text-decoration: none;
  transition: color 0.3s ease;
}
.mobile-nav-link:hover { color: var(--primary-teal); }

/* Glass Cards */
.glass-panel, .glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  justify-content: center;
}

@media (max-width: 960px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 2rem 1.5rem;
  min-height: 250px;
  justify-content: space-between;
  border: 1px solid rgba(34, 158, 160, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--text-heading);
}

.service-card p {
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.service-card-action {
  margin-top: auto;
  text-align: center;
}

.service-card-action .btn {
  width: auto;
}

.narrow-container {
  max-width: 900px;
  margin: 0 auto;
}

.business-panel {
  text-align: center;
  padding: 4rem;
}

.business-panel .btn-primary {
  margin-top: 2rem;
}

.business-copy {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-main);
}

.hover-lift:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.9); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }

/* Hero Section */
.hero { padding: 12rem 0 6rem; position: relative; display: flex; align-items: center; gap: 3rem; }
.hero-content { flex: 1.2; }
.hero-badge {
  display: inline-block; padding: 0.5rem 1.2rem; background: rgba(34, 158, 160, 0.1);
  color: var(--primary-teal); border-radius: 30px; font-weight: 700; font-size: 0.8rem; margin-bottom: 1.5rem;
}
.hero h1 { font-size: 3.5rem; font-family: 'Outfit', sans-serif; color: var(--text-heading); line-height: 1.1; margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-main); margin-bottom: 2.5rem; max-width: 600px; opacity: 0.9; }

.hero-visual { flex: 0.8; display: flex; justify-content: flex-end; }
.floating-img { 
  width: 100%; max-width: 450px; border-radius: 20px; box-shadow: var(--glass-shadow);
  border: 4px solid white; transform: perspective(1000px) rotateY(-5deg); transition: transform 0.6s ease;
}
.floating-img:hover { transform: perspective(1000px) rotateY(0deg); }

/* Buttons */
.btn {
  display: inline-block; padding: 0.9rem 2rem; border-radius: 8px; font-weight: 700;
  text-decoration: none; transition: all 0.3s ease; cursor: pointer; border: none; font-size: 0.95rem;
}
.btn-primary { background: var(--primary-teal); color: white; box-shadow: 0 4px 15px rgba(34, 158, 160, 0.3); }
.btn-primary:hover { transform: scale(1.03); box-shadow: 0 6px 20px rgba(34, 158, 160, 0.4); }

.btn-outline { background: white; border: 1px solid var(--border-light); color: var(--text-heading); }
.btn-outline:hover { background: var(--section-bg-alt); border-color: var(--primary-teal); }

.btn-nav { background: var(--secondary-salmon); color: white; padding: 0.6rem 1.2rem; font-size: 0.85rem; border-radius: 6px; }
.btn-nav:hover { background: #d65d7a; transform: translateY(-2px); }

/* Content Utilities */
.link-arrow { color: var(--primary-teal); text-decoration: none; font-weight: 700; font-size: 0.9rem; }
.link-arrow:hover { text-decoration: underline; }

/* Global Article & FAQ Styling */
.article-content p { color: var(--text-main); font-size: 1.1rem; line-height: 1.7; margin-bottom: 1.2rem; }
.article-content h3 { font-family: 'Outfit', sans-serif; color: var(--text-heading); margin-bottom: 1rem; }
.article-content a { color: var(--primary-teal); font-weight: 600; text-decoration: none; border-bottom: 1px dotted rgba(34, 158, 160, 0.4); }

/* Footer */
.glass-footer { background: var(--footer-bg); color: #fff !important; padding: 2.5rem 0 1.5rem; margin-top: 3rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); margin-top: 1rem; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.footer-links a:hover { color: var(--secondary-salmon); }
.copyright { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 1.5rem; padding-top: 1rem; text-align: center; color: rgba(255, 255, 255, 0.35); font-size: 0.85rem; }

/* Mobile Optimization */
@media (max-width: 991px) {
  .desktop-nav { display: none; }
  .hamburger { display: block; }
  
  .hero { flex-direction: column-reverse; text-align: center; padding: 10rem 1.5rem 4rem; gap: 2rem; }
  .hero-visual { justify-content: center; }
  .floating-img { max-width: 350px; transform: none; }
  .floating-img:hover { transform: scale(1.02); }
  .hero h1 { font-size: 2.8rem; }
  .hero-subtitle { margin: 0 auto 2.5rem; }
  .hero-badge { margin-bottom: 1rem; }
  .grid-2 { grid-template-columns: 1fr; }
  
  .header-inner { padding: 0 1.5rem; }
  .glass-header { height: var(--header-height); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 3rem 0; }
  .logo img { max-width: 120px; }
}

.is-menu-open { overflow: hidden; }

/* Contact Page Utilities */
.copy-success { background: var(--primary-teal) !important; color: white !important; }

/* Specificity fix: Match the desktop nav path and add .active */
.desktop-nav ul li a.nav-link.active {
    color: var(--primary-teal) !important; /* Fixed variable name */
    font-weight: 700 !important;
    opacity: 1 !important;
}

/* Add the underline for the active state */
.desktop-nav ul li a.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-teal); /* Fixed variable name */
    visibility: visible;
    opacity: 1;
}
