@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Philosopher:ital,wght@0,400;0,700;1,400;1,700&display=swap");
@import "tailwindcss";

@plugin "tailwindcss-animate";

@custom-variant dark (&:is(.dark *));

@theme {
  --font-title: "Philosopher", Georgia, serif;
  --font-body: "Be Vietnam Pro", sans-serif;
  --font-sans: "Be Vietnam Pro", sans-serif;

  /* Brand Colors */
  --color-brand-ivory: #FAF8F5;
  --color-brand-sand: #F3EFEA;
  --color-brand-gold: #C5A880;
  --color-brand-gold-hover: #B0936C;
  --color-brand-dark: #1C1917;
  --color-brand-muted: #78716C;
  --color-brand-surface: #FFFFFF;
  --color-brand-border: #E7E2DB;

  /* Custom animations */
  --animate-accordion-down: accordion-down 0.2s ease-out;
  --animate-accordion-up: accordion-up 0.2s ease-out;
  --animate-fade-up: fade-up 0.7s ease-out forwards;
  --animate-marquee: marquee 35s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes accordion-down {
  from {
    height: 0;
  }
  to {
    height: var(--radix-accordion-content-height);
  }
}

@keyframes accordion-up {
  from {
    height: var(--radix-accordion-content-height);
  }
  to {
    height: 0;
  }
}

@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-body);
  --font-mono: var(--font-geist-mono);
  --color-sidebar-ring: var(--sidebar-ring);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar: var(--sidebar);
  --color-chart-5: var(--chart-5);
  --color-chart-4: var(--chart-4);
  --color-chart-3: var(--chart-3);
  --color-chart-2: var(--chart-2);
  --color-chart-1: var(--chart-1);
  --color-ring: var(--ring);
  --color-input: var(--input);
  --color-border: var(--border);
  --color-destructive: var(--destructive);
  --color-accent-foreground: var(--accent-foreground);
  --color-accent: var(--accent);
  --color-muted-foreground: var(--muted-foreground);
  --color-muted: var(--muted);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-secondary: var(--secondary);
  --color-primary-foreground: var(--primary-foreground);
  --color-primary: var(--primary);
  --color-popover-foreground: var(--popover-foreground);
  --color-popover: var(--popover);
  --color-card-foreground: var(--card-foreground);
  --color-card: var(--card);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
}

:root {
  --radius: 0.625rem;
  --background: #FAF8F5;
  --foreground: #1C1917;
  --card: #FFFFFF;
  --card-foreground: #1C1917;
  --popover: #FFFFFF;
  --popover-foreground: #1C1917;
  --primary: #C5A880;
  --primary-foreground: #FFFFFF;
  --secondary: #F3EFEA;
  --secondary-foreground: #1C1917;
  --muted: #F3EFEA;
  --muted-foreground: #78716C;
  --accent: #F3EFEA;
  --accent-foreground: #1C1917;
  --destructive: oklch(0.577 0.245 27.325);
  --border: #E7E2DB;
  --input: #E7E2DB;
  --ring: #C5A880;
  --chart-1: #C5A880;
  --chart-2: #B0936C;
  --chart-3: #1C1917;
  --chart-4: #78716C;
  --chart-5: #E7E2DB;
  --sidebar: #FAF8F5;
  --sidebar-foreground: #1C1917;
  --sidebar-primary: #C5A880;
  --sidebar-primary-foreground: #FFFFFF;
  --sidebar-accent: #F3EFEA;
  --sidebar-accent-foreground: #1C1917;
  --sidebar-border: #E7E2DB;
  --sidebar-ring: #C5A880;
}

.dark {
  --background: #1C1917;
  --foreground: #FAF8F5;
  --card: #292524;
  --card-foreground: #FAF8F5;
  --popover: #292524;
  --popover-foreground: #FAF8F5;
  --primary: #C5A880;
  --primary-foreground: #1C1917;
  --secondary: #292524;
  --secondary-foreground: #FAF8F5;
  --muted: #292524;
  --muted-foreground: #A8A29E;
  --accent: #292524;
  --accent-foreground: #FAF8F5;
  --destructive: oklch(0.704 0.191 22.216);
  --border: rgba(231, 226, 219, 0.15);
  --input: rgba(231, 226, 219, 0.2);
  --ring: #C5A880;
  --sidebar: #1C1917;
  --sidebar-foreground: #FAF8F5;
  --sidebar-primary: #C5A880;
  --sidebar-primary-foreground: #1C1917;
  --sidebar-accent: #292524;
  --sidebar-accent-foreground: #FAF8F5;
  --sidebar-border: rgba(231, 226, 219, 0.15);
  --sidebar-ring: #C5A880;
}

::selection {
  background-color: #C5A880;
  color: #FFFFFF;
}

@utility container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  @media (width >= theme(--breakpoint-sm)) {
    max-width: 640px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  @media (width >= theme(--breakpoint-md)) {
    max-width: 768px;
  }
  @media (width >= theme(--breakpoint-lg)) {
    max-width: 1024px;
  }
  @media (width >= theme(--breakpoint-xl)) {
    max-width: 1280px;
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

@utility card-luxury {
  background-color: #FFFFFF;
  border-width: 1px;
  border-style: solid;
  border-color: #E7E2DB;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  transition-duration: 300ms;

  &:hover {
    border-color: #C5A880;
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -12px rgba(28, 25, 23, 0.08);
  }
}

@utility gold-gradient-text {
  background: linear-gradient(135deg, #C5A880 0%, #E8D8C3 50%, #B0936C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@utility badge-gold {
  background: linear-gradient(135deg, rgba(197, 168, 128, 0.15) 0%, rgba(197, 168, 128, 0.05) 100%);
  border: 1px solid rgba(197, 168, 128, 0.35);
}

@utility hero-pattern {
  background-image: radial-gradient(rgba(197, 168, 128, 0.15) 1px, transparent 0);
  background-size: 28px 28px;
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-brand-ivory text-brand-dark;
    font-family: "Be Vietnam Pro", sans-serif;
  }
  h1, h2, h3, h4, h5, h6, .font-title {
    font-family: "Philosopher", Georgia, serif !important;
  }
  h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    @media (width >= theme(--breakpoint-md)) {
      font-size: 3.5rem;
    }
  }

  h2 {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
    @media (width >= theme(--breakpoint-md)) {
      font-size: 2.5rem;
    }
  }

  h3 {
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    @media (width >= theme(--breakpoint-md)) {
      font-size: 2rem;
    }
  }

  h4 {
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 600;
    @media (width >= theme(--breakpoint-md)) {
      font-size: 1.5rem;
    }
  }

  h5 {
    font-size: 1.125rem;
    line-height: 1.4;
    font-weight: 600;
    @media (width >= theme(--breakpoint-md)) {
      font-size: 1.25rem;
    }
  }

  h6 {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 600;
    @media (width >= theme(--breakpoint-md)) {
      font-size: 1rem;
    }
  }
}

