/*
Theme Name: Becher-Larsen RigWork's
Description: Professional rigging services website theme for traditional and modern sailing vessels. Specializing in restoration and maintenance of sailing ships from traditional tall ships to modern vessels.
Author: Becher-Larsen RigWork's
Version: 1.0.0
Tags: maritime, rigging, sailing, ships, restoration, professional-services
Text Domain: rigworks
*/

/* Maritime Design System - All colors, gradients, fonts, etc defined here. 
All colors MUST be HSL.
*/

:root {
  /* Beige and Black Palette */
  --background: 45 25% 92%;  /* Light beige background */  
  --foreground: 0 0% 8%;  /* Black text */

  --card: 42 20% 88%;  /* Light beige for cards */
  --card-foreground: 0 0% 10%;  /* Black text on cards */

  --popover: 42 20% 88%;
  --popover-foreground: 0 0% 10%;

  /* Black Primary */
  --primary: 0 0% 12%;  /* Black */
  --primary-foreground: 45 25% 92%;  /* Beige text on black */
  --primary-light: 0 0% 25%;
  --primary-dark: 0 0% 5%;

  /* Beige Secondary */
  --secondary: 40 30% 75%;  /* Medium beige */
  --secondary-foreground: 0 0% 15%;  /* Dark text */
  --aqua: 38 25% 65%;  /* Beige tone */
  --aqua-light: 42 20% 78%;

  /* Light Beige Muted Tones */
  --muted: 44 18% 85%;  /* Light beige */
  --muted-foreground: 0 0% 20%;  /* Dark text */
  --sand: 42 28% 70%;  /* Sand beige */
  --sand-dark: 40 32% 60%;

  /* Dark Beige Accent */
  --accent: 38 35% 55%;  /* Dark beige accent */
  --accent-foreground: 0 0% 10%;  /* Black text */
  --accent-light: 42 25% 68%;

  /* Warm Beige Coral */
  --coral: 35 40% 60%;  /* Warm beige */
  --coral-light: 38 35% 70%;

  --destructive: 0 65% 50%;
  --destructive-foreground: 45 25% 92%;

  --border: 40 20% 70%;  /* Beige borders */
  --input: 44 18% 85%;
  --ring: 38 35% 55%;

  --radius: 0.75rem;

  /* Beige and Black Gradients */
  --gradient-ocean: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  --gradient-horizon: linear-gradient(180deg, hsl(var(--accent-light)), hsl(var(--primary)));
  --gradient-wave: linear-gradient(45deg, hsl(var(--aqua)), hsl(var(--accent-light)));
  --gradient-sunset: linear-gradient(135deg, hsl(var(--coral)), hsl(var(--coral-light)));
  --gradient-coastal: linear-gradient(90deg, hsl(var(--sand)), hsl(var(--aqua-light)));

  /* Beige Shadows */
  --shadow-ocean: 0 20px 40px -10px hsl(var(--primary) / 0.3);
  --shadow-wave: 0 10px 30px -5px hsl(var(--accent) / 0.25);
  --shadow-coastal: 0 8px 25px -8px hsl(var(--sand-dark) / 0.3);

  /* Animation Variables */
  --transition-wave: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark {
  /* Dark Maritime Theme */
  --background: 220 45% 8%;
  --foreground: 210 40% 95%;

  --card: 220 35% 12%;
  --card-foreground: 210 40% 95%;

  --popover: 220 35% 12%;
  --popover-foreground: 210 40% 95%;

  /* Ocean Deep at Night */
  --primary: 200 80% 60%;
  --primary-foreground: 220 45% 8%;
  --primary-light: 200 70% 70%;
  --primary-dark: 200 90% 45%;

  /* Dark Waters */
  --secondary: 220 30% 18%;
  --secondary-foreground: 210 40% 95%;
  --aqua: 180 50% 50%;
  --aqua-light: 180 40% 65%;

  /* Dark Coast */
  --muted: 220 25% 15%;
  --muted-foreground: 220 15% 65%;
  --sand: 45 25% 25%;
  --sand-dark: 45 30% 20%;

  /* Night Maritime Accent */
  --accent: 200 80% 60%;
  --accent-foreground: 220 45% 8%;
  --accent-light: 200 60% 75%;

  /* Night Coral */
  --coral: 15 70% 55%;
  --coral-light: 15 60% 65%;

  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;

  --border: 220 25% 20%;
  --input: 220 25% 20%;
  --ring: 200 80% 60%;
}

/* Maritime Utility Classes */
.gradient-ocean {
  background: var(--gradient-ocean);
}

.gradient-horizon {
  background: var(--gradient-horizon);
}

.gradient-wave {
  background: var(--gradient-wave);
}

.gradient-sunset {
  background: var(--gradient-sunset);
}

.gradient-coastal {
  background: var(--gradient-coastal);
}

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

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

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

.transition-wave {
  transition: var(--transition-wave);
}

.transition-smooth {
  transition: var(--transition-smooth);
}

/* Wave Animation */
.wave-animation {
  background: linear-gradient(-45deg, transparent 40%, hsl(var(--accent) / 0.1) 50%, transparent 60%);
  background-size: 200% 200%;
  animation: wave 3s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Maritime Button Hover Effects */
.btn-wave-hover {
  position: relative;
  overflow: hidden;
}

.btn-wave-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsl(var(--primary-foreground) / 0.2), transparent);
  transition: left 0.5s;
}

.btn-wave-hover:hover::before {
  left: 100%;
}

/* Base WordPress styles */
* {
  border-color: hsl(var(--border));
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Crimson Text', serif;
}

/* Tailwind Utilities for WordPress */

/* Enhanced Backdrop Blur with Browser Support */
.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -moz-backdrop-filter: blur(12px);
  -ms-backdrop-filter: blur(12px);
  -o-backdrop-filter: blur(12px);
  /* Fallback for older browsers */
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  -moz-backdrop-filter: blur(4px);
  -ms-backdrop-filter: blur(4px);
  -o-backdrop-filter: blur(4px);
  /* Fallback for older browsers */
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.backdrop-blur-lg {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  -moz-backdrop-filter: blur(16px);
  -ms-backdrop-filter: blur(16px);
  -o-backdrop-filter: blur(16px);
  /* Fallback for older browsers */
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Enhanced header blur specifically */
.header-blur {
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Background Opacity Utilities */
.bg-white\/10 {
  background-color: rgba(255, 255, 255, 0.1);
}

.bg-background\/40 {
  background-color: hsl(var(--background) / 0.4);
}

.bg-background\/30 {
  background-color: hsl(var(--background) / 0.3);
}

.bg-muted\/20 {
  background-color: hsl(var(--muted) / 0.2);
}

.bg-white\/20 {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Gradient Utilities */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-background\/30 {
  --tw-gradient-from: hsl(var(--background) / 0.3);
  --tw-gradient-to: transparent;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-transparent {
  --tw-gradient-to: transparent;
  --tw-gradient-stops: var(--tw-gradient-from), transparent, var(--tw-gradient-to);
}

.to-muted\/20 {
  --tw-gradient-to: hsl(var(--muted) / 0.2);
}

/* Border and Text Opacity */
.border-white\/20 {
  border-color: rgba(255, 255, 255, 0.2);
}

.text-foreground\/90 {
  color: hsl(var(--foreground) / 0.9);
}

.text-foreground\/80 {
  color: hsl(var(--foreground) / 0.8);
}

/* Drop Shadow */
.drop-shadow-lg {
  filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
}

.drop-shadow-sm {
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
}

/* Positioning and Layout */
.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.top-0 {
  top: 0;
}

.z-50 {
  z-index: 50;
}

.z-10 {
  z-index: 10;
}

/* Flexbox */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

/* Width and Height */
.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.min-h-screen {
  min-height: 100vh;
}

.h-20 {
  height: 5rem;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

/* Object Fit */
.object-cover {
  object-fit: cover;
}

/* Font Weight */
.font-bold {
  font-weight: 700;
}

.font-light {
  font-weight: 300;
}

/* Text Size */
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

/* Spacing */
.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mr-8 {
  margin-right: 2rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Colors */
.text-primary {
  color: hsl(var(--primary));
}

.text-foreground {
  color: hsl(var(--foreground));
}

.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

.text-accent {
  color: hsl(var(--accent));
}

/* Hover Effects */
.hover\:text-accent:hover {
  color: hsl(var(--accent));
}

/* Container */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

/* Responsive */
@media (min-width: 768px) {
  .md\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
  
  .md\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
  
  .md\:text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .lg\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }
  
  .lg\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
  
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* WordPress specific styles */
.wp-admin-bar-showing {
  margin-top: 32px;
}

@media (max-width: 782px) {
  .wp-admin-bar-showing {
    margin-top: 46px;
  }
}