/* ============================================================
   Project360 — Design System & Custom Styles
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&display=swap");

/* ---- Design Tokens ---- */
:root {
  --radius: 0.875rem;

  /* Brand: Deep emerald teal + warm amber accent */
  --background: oklch(0.99 0.005 160);
  --foreground: oklch(0.18 0.025 180);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.18 0.025 180);
  --primary: oklch(0.42 0.09 175);
  --primary-foreground: oklch(0.99 0.005 160);
  --primary-glow: oklch(0.62 0.13 170);
  --secondary: oklch(0.96 0.015 170);
  --secondary-foreground: oklch(0.25 0.04 180);
  --muted: oklch(0.965 0.01 170);
  --muted-foreground: oklch(0.48 0.02 180);
  --accent: oklch(0.78 0.16 70);
  --accent-foreground: oklch(0.2 0.04 60);
  --destructive: oklch(0.6 0.22 27);
  --destructive-foreground: oklch(0.99 0 0);
  --border: oklch(0.92 0.01 170);
  --input: oklch(0.94 0.01 170);
  --ring: oklch(0.42 0.09 175);

  /* Surfaces & Gradients */
  --gradient-hero: linear-gradient(135deg, oklch(0.42 0.09 175) 0%, oklch(0.32 0.07 185) 60%, oklch(0.25 0.05 195) 100%);
  --gradient-accent: linear-gradient(135deg, oklch(0.78 0.16 70), oklch(0.7 0.18 50));
  --gradient-soft: linear-gradient(180deg, oklch(0.98 0.01 170), oklch(0.94 0.02 175));

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 oklch(0.2 0.04 180 / 0.06);
  --shadow-md: 0 4px 14px -2px oklch(0.2 0.04 180 / 0.08);
  --shadow-lg: 0 20px 40px -12px oklch(0.2 0.04 180 / 0.18);
  --shadow-glow: 0 0 60px -10px oklch(0.62 0.13 170 / 0.45);

  /* Typography */
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;

  /* Animation */
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Base ---- */
*,
*::before,
*::after {
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* ---- Custom Utilities ---- */
.font-display {
  font-family: var(--font-display);
}

.bg-gradient-hero {
  background: var(--gradient-hero);
}

.bg-gradient-accent {
  background: var(--gradient-accent);
}

.bg-gradient-soft {
  background: var(--gradient-soft);
}

.shadow-elegant {
  box-shadow: var(--shadow-lg);
}

.shadow-soft {
  box-shadow: var(--shadow-md);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.transition-smooth {
  transition: all 0.3s var(--transition-smooth);
}

.text-balance {
  text-wrap: balance;
}

/* ---- Color utilities (var-backed) ---- */
.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-primary { background-color: var(--primary); }
.bg-primary\/5 { background-color: oklch(0.42 0.09 175 / 0.05); }
.bg-primary\/10 { background-color: oklch(0.42 0.09 175 / 0.10); }
.bg-primary\/20 { background-color: oklch(0.42 0.09 175 / 0.20); }
.bg-secondary { background-color: var(--secondary); }
.bg-muted { background-color: var(--muted); }
.bg-accent { background-color: var(--accent); }
.bg-accent\/20 { background-color: oklch(0.78 0.16 70 / 0.20); }
.bg-accent\/30 { background-color: oklch(0.78 0.16 70 / 0.30); }
.bg-accent\/50 { background-color: oklch(0.78 0.16 70 / 0.50); }

.text-foreground { color: var(--foreground); }
.text-card-foreground { color: var(--card-foreground); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-secondary-foreground { color: var(--secondary-foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-accent { color: var(--accent); }
.text-accent-foreground { color: var(--accent-foreground); }

.border-border { border-color: var(--border); }
.border-primary\/20 { border-color: oklch(0.42 0.09 175 / 0.20); }
.border-primary\/30 { border-color: oklch(0.42 0.09 175 / 0.30); }
.border-primary\/40 { border-color: oklch(0.42 0.09 175 / 0.40); }

/* ---- Header ---- */
.header-blur {
  background-color: oklch(0.99 0.005 160 / 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* ---- Hero highlight underline ---- */
.hero-highlight {
  position: relative;
  display: inline-block;
}
.hero-highlight .highlight-bar {
  position: absolute;
  bottom: 4px;
  left: 0;
  z-index: 0;
  height: 12px;
  width: 100%;
  border-radius: 4px;
  background-color: oklch(0.78 0.16 70 / 0.50);
}
.hero-highlight .highlight-text {
  position: relative;
  z-index: 1;
  font-style: italic;
  color: var(--primary);
}

/* ---- Search bar ---- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 0.5rem;
  box-shadow: var(--shadow-md);
}
.search-bar input {
  height: 2.75rem;
  width: 100%;
  background: transparent;
  font-size: 0.875rem;
  outline: none;
  border: none;
  color: var(--foreground);
}
.search-bar input::placeholder {
  color: var(--muted-foreground);
}

/* ---- Button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}
.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover {
  opacity: 0.9;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}
.btn-outline:hover {
  background-color: oklch(0.42 0.09 175 / 0.05);
}
.btn-sm {
  height: 2.25rem;
  padding: 0 1rem;
  border-radius: 9999px;
}
.btn-lg {
  height: 3rem;
  padding: 0 1.5rem;
  border-radius: 0.75rem;
}
.btn-xl {
  height: 3.5rem;
  padding: 0 2rem;
  font-size: 1rem;
  border-radius: 1rem;
}

/* ---- Category card hover ---- */
.category-card {
  position: relative;
  transition: all 0.3s var(--transition-smooth);
}
.category-card:hover {
  transform: translateY(-4px);
  border-color: oklch(0.42 0.09 175 / 0.40);
  box-shadow: var(--shadow-lg);
}
.category-card .icon-wrap {
  transition: all 0.3s var(--transition-smooth);
}
.category-card:hover .icon-wrap {
  background: var(--gradient-hero);
  color: var(--primary-foreground);
}
.category-card .chevron {
  opacity: 0;
  transition: all 0.3s var(--transition-smooth);
}
.category-card:hover .chevron {
  opacity: 1;
}

/* ---- Service card ---- */
.service-card {
  transition: all 0.3s var(--transition-smooth);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card-featured {
  background: var(--gradient-hero);
  color: var(--primary-foreground);
  border-color: transparent;
}
.service-card-featured .service-icon {
  background: rgba(255,255,255,0.15);
  color: var(--primary-foreground);
}
.service-card-featured .service-desc {
  color: oklch(0.99 0.005 160 / 0.80);
}

/* ---- Blog card ---- */
.blog-card {
  transition: all 0.3s var(--transition-smooth);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-card:hover .blog-title {
  color: var(--primary);
}

/* ---- Review card ---- */
.review-card {
  transition: all 0.3s var(--transition-smooth);
}
.review-card:hover {
  background: rgba(255,255,255,0.10);
}

/* ---- Social link ---- */
.social-link {
  transition: all 0.3s var(--transition-smooth);
}
.social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ---- Footer link ---- */
.footer-link {
  transition: all 0.3s var(--transition-smooth);
}
.footer-link:hover {
  color: var(--primary);
}

/* ---- Nav link ---- */
.nav-link {
  color: oklch(0.18 0.025 180 / 0.75);
  transition: all 0.3s var(--transition-smooth);
}
.nav-link:hover {
  color: var(--primary);
}

/* ---- Mobile menu ---- */
.mobile-menu {
  display: none;
}
.mobile-menu.open {
  display: block;
}

/* ---- View all link hover ---- */
.view-all-link {
  transition: all 0.3s var(--transition-smooth);
}
.view-all-link:hover {
  gap: 0.5rem;
}

/* ---- Floating card animation ---- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-card {
  animation: float 4s ease-in-out infinite;
}

/* ---- Lucide icon sizing ---- */
.lucide {
  width: 1em;
  height: 1em;
  stroke-width: 2;
}
