/*
Theme Name: Carnocean
Theme URI: https://carnoceanmanagement.com
Author: Carnocean Team
Author URI: https://carnoceanmanagement.com
Description: A modern, responsive WordPress theme for maritime recruitment and shipyard management services. Features smooth animations, elegant typography with Playfair Display and Manrope fonts, and a sophisticated navy and gold color scheme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carnocean
Tags: business, portfolio, one-column, custom-header, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
*/

/* ===========================
   CSS VARIABLES & BASE STYLES
   =========================== */
:root {
  /* Colors */
  --color-navy-950: #051636;
  --color-navy-900: #0B2E6B;
  --color-navy-800: #030d24;
  --color-gold-500: #C79A3B;
  --color-gold-300: #D4AE5B;
  --color-white: #ffffff;
  --color-white-90: rgba(255, 255, 255, 0.9);
  --color-white-80: rgba(255, 255, 255, 0.8);
  --color-white-75: rgba(255, 255, 255, 0.75);
  --color-white-70: rgba(255, 255, 255, 0.7);
  --color-white-60: rgba(255, 255, 255, 0.6);
  --color-white-50: rgba(255, 255, 255, 0.5);
  --color-white-40: rgba(255, 255, 255, 0.4);
  --color-white-35: rgba(255, 255, 255, 0.35);
  --color-white-25: rgba(255, 255, 255, 0.25);
  --color-white-20: rgba(255, 255, 255, 0.2);
  --color-white-15: rgba(255, 255, 255, 0.15);
  --color-white-10: rgba(255, 255, 255, 0.1);
  --color-white-5: rgba(255, 255, 255, 0.05);
  --color-white-4: rgba(255, 255, 255, 0.04);
  --color-gold-35: rgba(199, 154, 59, 0.35);
  --color-gold-10: rgba(199, 154, 59, 0.1);
  --color-gold-60: rgba(199, 154, 59, 0.6);
  
  /* Typography */
  --font-playfair: 'Playfair Display', serif;
  --font-manrope: 'Manrope', sans-serif;
  
  /* Spacing */
  --container-max: 1400px;
  --container-padding: 1.25rem; /* 20px */
  --container-padding-md: 2.5rem; /* 40px */
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  --ease-out-expo: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out-quart: cubic-bezier(0.6, 0.15, 0.2, 1);
}

/* ===========================
   RESET & BASE
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--color-navy-950);
}

body {
  font-family: var(--font-manrope);
  color: var(--color-white);
  background: var(--color-navy-950);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Selection */
::selection {
  background: var(--color-gold-500);
  color: var(--color-navy-950);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-navy-950);
}

::-webkit-scrollbar-thumb {
  background: var(--color-navy-900);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-500);
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-playfair);
  line-height: 1.1;
  margin: 0;
}

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

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

/* ===========================
   LAYOUT
   =========================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--container-padding-md);
    padding-right: var(--container-padding-md);
  }
}

section {
  position: relative;
  z-index: 2;
}

section[id] {
  scroll-margin-top: 84px;
}

/* ===========================
   FONTS
   =========================== */
.font-playfair {
  font-family: var(--font-playfair);
}

.font-manrope {
  font-family: var(--font-manrope);
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.chapter-num {
  font-family: var(--font-playfair);
  font-style: italic;
  font-weight: 400;
  color: var(--color-gold-500);
  letter-spacing: -0.02em;
}

/* Link Underline Effect */
.link-underline {
  position: relative;
}

.link-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-out-expo);
}

.link-underline:hover::after {
  transform-origin: left;
  transform: scaleX(1);
}

/* Glass Effect */
.glass {
  background: var(--color-white-4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-white-10);
  border-radius: 2px;
}

.glass-gold {
  border-color: var(--color-gold-35);
}

/* Spotlight Image Effect */
.spotlight-img {
  filter: brightness(0.9) contrast(1.05);
  transition: filter 0.6s ease, transform 1.2s var(--ease-out-expo);
}

.spotlight-img:hover {
  filter: brightness(1) contrast(1.1);
}

/* Timeline Dot Glow */
.dot-glow {
  box-shadow: 0 0 0 6px var(--color-gold-10), 0 0 20px var(--color-gold-60);
}

/* Grain Overlay */
.grain::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.78 0 0 0 0 0.6 0 0 0 0 0.23 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.35;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* ===========================
   BUTTONS
   =========================== */
.btn-gold {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-gold-500);
  color: var(--color-navy-950);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: color 0.35s ease;
  border-radius: 2px;
}

.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-navy-950);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-in-out-quart);
  z-index: -1;
}

.btn-gold:hover {
  color: var(--color-gold-500);
  box-shadow: 0 0 0 1px var(--color-gold-500) inset;
}

.btn-gold:hover::before {
  transform: translateY(0);
}

.btn-ghost {
  position: relative;
  color: var(--color-white);
  border: 1px solid var(--color-white-35);
  background: transparent;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: color 0.35s ease, border-color 0.35s ease;
  border-radius: 2px;
}

.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-gold-500);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-in-out-quart);
  z-index: -1;
}

.btn-ghost:hover {
  color: var(--color-navy-950);
  border-color: var(--color-gold-500);
}

.btn-ghost:hover::before {
  transform: translateY(0);
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

.fade-in-up {
  animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* ===========================
   WORDPRESS CORE
   =========================== */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--color-white-60);
  margin-top: 0.5rem;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ===========================
   RESPONSIVE UTILITIES
   =========================== */
@media (max-width: 767px) {
  .hidden-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .hidden-desktop {
    display: none !important;
  }
}

/* ===========================
   LOADER
   =========================== */
#site-loader {
  position: fixed;
  inset: 0;
  background: var(--color-navy-950);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  animation: autoHideLoader 1.5s ease forwards;
}

@keyframes autoHideLoader {
  0%, 80% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

#site-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  width: 80px;
  height: 80px;
  animation: fadeIn 1s ease-in-out infinite alternate;
}
