/*
Theme Name: Fabbrimarine WooCommerce Theme
Theme URI: https://fabbrimarine.it
Author: Smart Age Tech
Author URI: https://smartagetech.com
Description: A premium, dynamic, and interactive WooCommerce theme for the Fabbrimarine brand. Features glassmorphism, fluid animations, and a rich dark mode marine aesthetic.
Version: 1.0.0
Text Domain: fabbrimarine
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   CSS Variables & Design System
   ========================================================================== */

:root {
  /* Colors - Premium Marine Aesthetic */
  --fm-navy: #0a1628;
  --fm-teal: #1a6b72;
  --fm-seafoam: #c8e6e8;
  --fm-pearl-replacement: #f4f4f4; /* Replaced pearl with a light clinical gray */
  --fm-bg-dark: var(--fm-navy);
  --fm-bg-surface: #ffffff;
  --fm-bg-surface-glass: rgba(255, 255, 255, 0.85);
  
  --fm-text-main: var(--fm-navy);
  --fm-text-muted: rgba(255, 255, 255, 0.68);
  --fm-text-dark-muted: rgba(10, 22, 40, 0.68);
  --fm-border-color: rgba(10, 22, 40, 0.1);
  
  --fm-primary-cyan: var(--fm-teal);
  --fm-secondary-blue: var(--fm-navy);

  /* Typography */
  --fm-font-primary: 'Cormorant Garamond', serif;
  --fm-font-secondary: 'Jost', sans-serif;

  /* Spacing */
  --fm-spacing-xs: 0.5rem;
  --fm-spacing-sm: 1rem;
  --fm-spacing-md: 2rem;
  --fm-spacing-lg: 4rem;
  --fm-spacing-xl: 6rem;

  /* Transitions */
  --fm-transition-fast: 0.25s ease;
  --fm-transition-normal: 0.4s ease;
  --fm-transition-slow: 0.8s ease;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--fm-font-secondary);
  background-color: #ffffff;
  color: var(--fm-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fm-font-primary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--fm-spacing-sm);
  color: var(--fm-text-main);
}

a {
  color: var(--fm-text-main);
  text-decoration: none;
  transition: color var(--fm-transition-fast);
}

a:hover {
  color: var(--fm-primary-cyan);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* ==========================================================================
   Global Utility Classes
   ========================================================================== */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--fm-spacing-md);
}

.glass-panel {
  background: var(--fm-bg-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--fm-border-color);
  border-radius: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: #000;
  color: #fff;
  border-radius: 30px;
  font-family: var(--fm-font-primary);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all var(--fm-transition-normal);
  z-index: 1;
}

.btn-primary:hover {
  background: #333;
  color: #fff;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: transparent;
  color: var(--fm-text-main);
  border: 1px solid var(--fm-text-main);
  border-radius: 30px;
  font-family: var(--fm-font-primary);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all var(--fm-transition-normal);
}

.btn-outline:hover {
  background: rgba(10, 22, 40, 0.05);
  border-color: #000;
  color: #000;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hide scrollbar for smooth premium feel in some areas */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
