/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables */
:root {
    --background: hsl(0, 0%, 100%); /* White */
    --foreground: hsl(0, 0%, 10%); /* Near Black */
    --card: hsl(0, 0%, 98%); /* Light Gray */
    --card-foreground: hsl(0, 0%, 10%); /* Near Black */
    --popover: hsl(0, 0%, 98%);
    --popover-foreground: hsl(0, 0%, 10%);
    --primary: hsl(35, 65%, 45%);
    --primary-foreground: hsl(35, 100%, 98%);
    --secondary: hsl(0, 0%, 96%);
    --secondary-foreground: hsl(0, 0%, 20%);
    --muted: hsl(0, 0%, 96%);
    --muted-foreground: hsl(0, 0%, 40%);
    --accent: hsl(40, 85%, 60%);
    --accent-foreground: hsl(20, 14%, 11%);
    --destructive: hsl(0, 65%, 55%);
    --destructive-foreground: hsl(30, 8%, 97%);
    --border: hsl(0, 0%, 90%);
    --input: hsl(0, 0%, 85%);
    --ring: hsl(35, 65%, 45%);
    --radius: 0.75rem;
    --font-sans: 'Montserrat', system-ui, sans-serif;
    --font-serif: 'Cormorant Garamond', serif;
}

.dark {
    --background: hsl(0, 0%, 4%); /* Near Black */
    --foreground: hsl(0, 0%, 98%); /* Near White */
    --card: hsl(0, 0%, 8%);
    --card-foreground: hsl(0, 0%, 98%);
    --popover: hsl(0, 0%, 8%);
    --popover-foreground: hsl(0, 0%, 98%);
    --primary: hsl(40, 85%, 55%); /* Brighter Gold */
    --primary-foreground: hsl(40, 100%, 10%);
    --secondary: hsl(0, 0%, 12%);
    --secondary-foreground: hsl(0, 0%, 90%);
    --muted: hsl(0, 0%, 15%);
    --muted-foreground: hsl(0, 0%, 60%);
    --accent: hsl(45, 90%, 60%); /* Lighter Gold */
    --accent-foreground: hsl(20, 14%, 11%);
    --destructive: hsl(0, 65%, 55%);
    --destructive-foreground: hsl(30, 8%, 97%);
    --border: hsl(25, 15%, 18%);
    --input: hsl(25, 15%, 18%);
    --ring: hsl(35, 65%, 45%);
}

/* Base Styles */
body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--background);
    color: var(--foreground);
    scroll-behavior: smooth;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover, a:focus {
    color: var(--foreground);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
}

/* Utility Classes */
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-10 { margin-left: 2.5rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-20 { top: 5rem; }
.right-4 { right: 1rem; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.min-h-screen { min-height: 100vh; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-80 { height: 20rem; }
.h-96 { height: 24rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-32 { width: 8rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.object-cover { object-fit: cover; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.overflow-hidden { overflow: hidden; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.gap-1 { gap: 0.25rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.leading-tight { line-height: 1.25; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.flex-shrink-0 { flex-shrink: 0; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.hover\:translate-x-1:hover { transform: translateX(0.25rem); }
.top-1\/2 { top: 50%; }
.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.italic { font-style: italic; }

/* Text Sizes */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

/* Colors */
.bg-background { background-color: var(--background); }
.bg-muted { background-color: var(--muted); }
.bg-card { background-color: var(--card); }
.bg-primary { background-color: var(--primary); }
.bg-primary\/10 { background-color: hsl(35, 65%, 45%, 0.1); }
.bg-primary\/90 { background-color: hsl(35, 65%, 45%, 0.9); }
.bg-white { background-color: white; }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-accent { color: var(--accent); }
.text-white { color: white; }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.border-border { border-color: var(--border); }
.w-auto { width: auto; }
.max-w-none { max-width: none; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }

/* Hover States */
.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-primary\/80:hover { color: hsl(35, 65%, 45%, 0.8); }
.hover\:bg-primary:hover { background-color: var(--primary); }
.hover\:bg-primary\/90:hover { background-color: hsl(35, 65%, 45%, 0.9); }
.hover\:bg-white:hover { background-color: white; }
.hover\:text-primary-foreground:hover { color: var(--primary-foreground); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* Font Families */
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

/* Grid Layouts */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Responsive Design */
@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
    .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
    .md\:block { display: block; }
    .md\:hidden { display: none; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:mt-0 { margin-top: 0; }
}

@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:p-12 { padding: 3rem; }
    .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:col-span-1 { grid-column: span 1 / span 1; }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:col-span-3 { grid-column: span 3 / span 3; }
}

/* Custom Utilities */
.hero-gradient {
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(139,69,19,0.3) 100%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.youtube-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background-color: var(--foreground); /* Fallback color */
}

.youtube-background-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.77vh; /* 16:9 aspect ratio */
    min-width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    transform: translate(-50%, -50%);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Ensure the video is always larger than its container */
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

.bg-cover { background-size: cover; }
.bg-center { background-position: center; }

/* Navigation */
nav {
    background-color: hsla(0, 0%, 100%, 0.8);
    backdrop-filter: blur(8px);
}

.mobile-menu-toggle {
    border: none;
    background: none;
    cursor: pointer;
}

.mobile-menu {
    transition: all 0.3s ease;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.15s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: hsl(35, 65%, 45%, 0.9);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.15s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary);
}

/* Cards */
.card {
    background-color: var(--card);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.15s ease;
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card .service-icon-wrapper {
    width: 4rem;
    height: 4rem;
    background-color: hsl(35, 65%, 45%, 0.1);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

.card .service-icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}

/* Testimonials */
.testimonial-card {
    background-color: var(--card);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.testimonial-stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.testimonial-stars .star-filled {
    fill: var(--accent);
}

.testimonial-text {
    font-style: italic;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* Badges */
.badge {
    background-color: hsl(35, 65%, 45%, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-primary {
    background-color: hsl(35, 65%, 45%, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-accent {
    background-color: hsl(40, 85%, 60%, 0.1);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-secondary {
    background-color: hsl(25, 15%, 85%, 0.5);
    color: var(--secondary-foreground);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Form Elements */
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background-color: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px hsl(35, 65%, 45%, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 6rem;
}

/* Messages */
.message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.message-success {
    background-color: hsl(142, 76%, 36%, 0.1);
    color: hsl(142, 76%, 36%);
    border: 1px solid hsl(142, 76%, 36%, 0.2);
}

.message-error {
    background-color: var(--destructive);
    color: var(--destructive-foreground);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Custom scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Responsive text sizes */
@media (min-width: 640px) {
    .sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

@media (min-width: 768px) {
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

@media (min-width: 1024px) {
    .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
}

/* Flex and spacing utilities */
.flex-col { flex-direction: column; }
.items-baseline { align-items: baseline; }
.max-w-3xl { max-width: 48rem; }

/* Group hover effects */
.group:hover .group-hover\:translate-x-1 {
    transform: translateX(0.25rem);
}

/* Navigation button styles */
nav button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

/* Ensure proper spacing in navigation */
nav .flex {
    align-items: center;
}

/* Icon styling */
.lucide {
    display: inline-block;
    width: 1em; /* Base size, can be overridden by utility classes */
    height: 1em; /* Base size, can be overridden by utility classes */
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Legal Pages Prose Styling */
.prose-legal {
    color: var(--muted);
}
.prose-legal h2 {
    color: white;
    font-size: 1.75rem;
    font-family: 'Cormorant Garamond', serif;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}
.prose-legal p, .prose-legal ul {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.prose-legal ul {
    list-style-position: inside;
    list-style-type: disc;
    padding-left: 1rem;
}