/*
Theme Name: Trimmaamo D'tails
Theme URI: https://trimmaamodtails.net
Author: D'tails
Description: Custom WordPress theme for Trimmaamo D'tails - a professional dog grooming salon in Vantaa, Finland. Features a modern single-page design with full Customizer support for easy content editing.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dtails
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* === CSS Variables === */
:root {
  --background: 40 30% 96%;
  --foreground: 20 20% 12%;
  --card: 40 25% 93%;
  --card-foreground: 20 20% 12%;
  --popover: 40 25% 93%;
  --popover-foreground: 20 20% 12%;
  --primary: 350 55% 48%;
  --primary-foreground: 40 30% 97%;
  --secondary: 38 30% 90%;
  --secondary-foreground: 20 20% 12%;
  --muted: 38 20% 88%;
  --muted-foreground: 20 10% 40%;
  --accent: 350 55% 48%;
  --accent-foreground: 40 30% 97%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 35 20% 85%;
  --input: 35 20% 85%;
  --ring: 350 55% 48%;
  --radius: 0.75rem;
  --rose-gold: 350 55% 48%;
  --cream: 40 30% 96%;
  --warm-dark: 20 20% 12%;
  --warm-dark-lighter: 38 20% 88%;
  --gold-accent: 35 80% 50%;
  --hero-overlay: 20 30% 8%;
  --glamour-glow: 350 55% 48%;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Outfit', sans-serif;
}

/* === Base Styles === */
* {
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  text-decoration: none;
  color: inherit;
}

/* === Custom Utility Classes === */
.text-gradient {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-image: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--gold-accent)));
}

.glass-card {
  background: hsl(var(--card) / 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsl(var(--border));
  box-shadow: 0 4px 30px hsl(var(--primary) / 0.04);
}

.glamour-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  box-shadow:
    0 4px 20px hsl(var(--primary) / 0.06),
    0 1px 3px hsl(var(--primary) / 0.04);
}

.section-padding {
  padding: 6rem 1.5rem;
}
@media (min-width: 768px) {
  .section-padding {
    padding: 6rem 3rem;
  }
}
@media (min-width: 1024px) {
  .section-padding {
    padding: 6rem 6rem;
  }
}
@media (min-width: 1280px) {
  .section-padding {
    padding: 6rem 8rem;
  }
}

.image-glamour {
  box-shadow:
    0 20px 60px hsl(var(--primary) / 0.12),
    0 8px 24px hsl(var(--warm-dark) / 0.08);
}

.image-frame {
  border: 2px solid hsl(var(--primary) / 0.15);
  padding: 6px;
  background: hsl(var(--card));
}

/* === Scroll Reveal Animations === */
.scroll-reveal {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.reveal-up {
  transform: translateY(40px);
}

.scroll-reveal.reveal-left {
  transform: translateX(-60px);
}

.scroll-reveal.reveal-right {
  transform: translateX(60px);
}

.scroll-reveal.reveal-scale {
  transform: scale(0.95);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* === Navigation Animation === */
.nav-bar {
  transform: translateY(-100%);
  animation: nav-slide-down 0.6s ease forwards;
}

@keyframes nav-slide-down {
  to {
    transform: translateY(0);
  }
}

/* === Hero Animations === */
.hero-logo {
  opacity: 0;
  transform: translateY(-20px);
  animation: hero-fade-in 1s ease 0.3s forwards;
}

.hero-tagline {
  opacity: 0;
  transform: translateY(30px);
  animation: hero-fade-in 0.8s ease 0.8s forwards;
}

.hero-buttons {
  opacity: 0;
  transform: translateY(30px);
  animation: hero-fade-in 0.8s ease 1.1s forwards;
}

.hero-scroll-indicator {
  opacity: 0;
  animation: hero-fade-in 0.5s ease 1.5s forwards;
}

@keyframes hero-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* === Team Image Hover Effects === */
.team-image-wrap {
  position: relative;
}

.team-image-wrap .glamour-glow {
  position: absolute;
  inset: -0.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(to bottom right, hsl(var(--primary) / 0.05), hsl(var(--gold-accent) / 0.05));
  z-index: -1;
  filter: blur(16px);
  opacity: 0;
  transition: opacity 0.7s ease;
}

.team-image-wrap:hover .glamour-glow {
  opacity: 1;
}

.team-image-wrap img {
  transition: transform 0.7s ease;
}

.team-image-wrap:hover img {
  transform: scale(1.05);
}

/* === Product Card Hover === */
.product-card {
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: scale(1.02);
}

.product-card img {
  transition: transform 0.7s ease;
}

.product-card:hover img {
  transform: scale(1.1);
}

.product-card .product-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

/* === Arrival Card Hover === */
.arrival-card {
  transition: all 0.3s ease;
}

.arrival-card:hover {
  box-shadow: 0 10px 40px hsl(var(--primary) / 0.1);
}

/* === Scrollbar Hide for Nav === */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* === WordPress Specific Overrides === */
.wp-admin-bar-fix {
  margin-top: 32px;
}

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

/* Remove default WP image borders/margins */
.wp-caption,
.wp-caption-text,
.gallery-caption,
.bypostauthor {
  /* WP required classes */
}

.alignnone,
.aligncenter,
.alignleft,
.alignright {
  display: block;
  margin: 0 auto;
}
