/*
Theme Name: Tina Björklund Fotografi
Theme URI: https://bjorklundsfoto.se
Author: Tina Björklund
Author URI: https://bjorklundsfoto.se
Description: Exklusivt, skräddarsytt och responsivt WordPress-tema för fotograf Tina Björklund på Kirseberg i Malmö. Innehåller portfolio-galleri med kategori-filtrering, lightbox, prispaket, kontaktformulär och mörkt glassmorphism-tema.
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: tina-bjorklund-foto
Tags: custom-background, custom-logo, custom-menu, featured-images, theme-options, translation-ready, one-column, portfolio
*/

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* --- Design System & CSS Variables --- */
:root {
  /* Color Palette */
  --bg-primary: #121212;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #242424;
  --accent-color: #d8b26e;      /* Soft sand gold */
  --accent-color-rgb: 216, 178, 110;
  --accent-hover: #e8c68c;
  
  --text-main: #f5f3f0;         /* Soft warm white */
  --text-muted: #b5b2ad;        /* Muted gray */
  --text-dark: #121212;
  
  /* Glassmorphism */
  --glass-bg: rgba(26, 26, 26, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: rgba(0, 0, 0, 0.4);
  
  /* Fonts */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', Helvetica, sans-serif;
  
  /* Layout & Transitions */
  --max-width: 1200px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --border-radius: 12px;
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-main);
}

/* --- Reusable Components & Buttons --- */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--accent-color);
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--text-dark);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--accent-color-rgb), 0.25);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

/* --- Header & Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px var(--glass-shadow);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 8px 0;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.navbar.scrolled .nav-container {
  padding: 10px 24px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-logo span {
  display: flex;
  flex-direction: column;
}

.nav-logo .subtitle {
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links .current-menu-item > a {
  color: var(--text-main);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links .current-menu-item > a::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 10s ease-out;
}

.hero-bg.fixed-bg {
  background-attachment: fixed;
  transform: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(18, 18, 18, 0.4) 0%, rgba(18, 18, 18, 0.85) 80%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}

.hero-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--accent-color);
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Services & Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.pricing-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: transparent;
  transition: var(--transition-fast);
  z-index: 10;
}

.pricing-image-container {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  border-top-left-radius: calc(var(--border-radius) - 1px);
  border-top-right-radius: calc(var(--border-radius) - 1px);
  border-bottom: 1px solid var(--glass-border);
}

.pricing-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover .pricing-image {
  transform: scale(1.06);
}

.pricing-card-content {
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pricing-card:not(.has-image) .pricing-card-content {
  padding: 40px 32px;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(var(--accent-color-rgb), 0.3);
}

.pricing-card:hover::before {
  background-color: var(--accent-color);
}

.pricing-card.featured {
  border-color: rgba(var(--accent-color-rgb), 0.5);
  background-color: var(--bg-tertiary);
}

.pricing-card.featured::before {
  background-color: var(--accent-color);
}

.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--accent-color);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 10;
}

.pricing-card h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.pricing-duration {
  font-size: 0.85rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 20px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  min-height: 50px;
}

.pricing-features {
  margin-bottom: 40px;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  color: var(--text-main);
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent-color);
  margin-right: 12px;
  font-weight: 700;
}

/* --- Extra Services Grid --- */
.extras-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 40px;
}

.extras-container h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.extra-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.extra-item:last-child {
  border-bottom: none;
}

.extra-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.extra-price {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.95rem;
}

/* --- Portfolio Gallery --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--accent-color);
  color: var(--text-dark);
  border-color: var(--accent-color);
}

/* --- Category Cover Cards Grid --- */
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  justify-content: center;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.category-cover-card {
  position: relative;
  height: 220px;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.category-cover-card .category-card-image {
  width: 100%;
  height: 100%;
}

.category-cover-card .category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-cover-card .category-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(18, 18, 18, 0.85) 0%, rgba(18, 18, 18, 0.2) 60%, rgba(18, 18, 18, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 18px;
  transition: var(--transition-smooth);
}

.category-cover-card h3 {
  font-size: 1.35rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.category-cover-card .category-card-badge {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.85rem;
}

.category-cover-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--accent-color-rgb), 0.4);
  box-shadow: 0 12px 28px rgba(0,0,0,0.5);
}

.category-cover-card:hover .category-card-image img {
  transform: scale(1.08);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 280px;
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  opacity: 1;
  transition: var(--transition-smooth), opacity 0.3s ease;
}

.gallery-item.hidden {
  display: none;
}

.gallery-item.landscape {
  grid-column: span 2;
}

.gallery-item.portrait {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 100%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  transition: var(--transition-smooth);
  z-index: 2;
}

.gallery-overlay span {
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  transform: translateY(15px);
  transition: var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}

/* --- About Me Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-image-wrapper {
  position: relative;
  padding-left: 16px;
  padding-bottom: 16px;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 0;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border: 2px solid var(--accent-color);
  border-radius: var(--border-radius);
  z-index: 1;
}

.about-image {
  position: relative;
  z-index: 2;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.about-image:hover img {
  transform: scale(1.03);
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-icon {
  background-color: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  color: var(--accent-color);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.contact-detail-content h4 {
  font-size: 1.05rem;
  font-family: var(--font-body);
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-detail-content p,
.contact-detail-content a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-detail-content a:hover {
  color: var(--accent-color);
}

/* Form Styles */
.contact-form-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: 0 12px 36px var(--glass-shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 14px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- Accordion (Bra att veta / GDPR) --- */
.accordion-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.accordion-item:hover {
  border-color: rgba(var(--accent-color-rgb), 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.accordion-header {
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: var(--transition-smooth);
}

.accordion-header h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.accordion-item:hover .accordion-header h3 {
  color: var(--accent-color);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.accordion-item.active {
  border-color: rgba(var(--accent-color-rgb), 0.4);
  background-color: var(--bg-tertiary);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--accent-color);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 28px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.accordion-content p {
  margin-bottom: 12px;
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

.accordion-content a {
  color: var(--accent-color);
  text-decoration: underline;
}

.accordion-content a:hover {
  color: var(--accent-hover);
}

/* --- Footer --- */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 40px 24px;
  text-align: center;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-logo span {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 20px;
  margin: 10px 0;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  color: var(--text-muted);
}

.social-links a svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  transition: var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--accent-color);
  color: var(--text-dark);
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.admin-lock-btn {
  margin-top: 10px;
  opacity: 0.3;
  font-size: 0.75rem;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.admin-lock-btn:hover {
  opacity: 1;
  color: var(--accent-color);
}

/* --- Lightbox / Modal --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(12, 12, 12, 0.96);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 86vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-info {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  padding: 0 8px;
}

.lightbox-caption {
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.lightbox-counter {
  color: var(--accent-color);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(30, 30, 30, 0.75);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 2010;
  backdrop-filter: blur(6px);
  padding: 0;
}

.lightbox-close svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-close:hover {
  background-color: var(--accent-color);
  color: var(--text-dark);
  border-color: var(--accent-color);
}

.lightbox-close:hover svg {
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 26, 26, 0.75);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(6px);
  z-index: 2010;
  padding: 0;
}

.lightbox-nav svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.lightbox-nav:hover {
  background-color: var(--accent-color);
  color: var(--text-dark);
  border-color: var(--accent-color);
  box-shadow: 0 0 24px rgba(var(--accent-color-rgb), 0.5);
}

.lightbox-prev {
  left: 28px;
}

.lightbox-prev:hover svg {
  transform: translateX(-3px);
}

.lightbox-next {
  right: 28px;
}

.lightbox-next:hover svg {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 10px;
    width: 44px;
    height: 44px;
  }
  .lightbox-next {
    right: 10px;
    width: 44px;
    height: 44px;
  }
  .lightbox-nav svg {
    width: 22px;
    height: 22px;
  }
  .lightbox-close {
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
  .lightbox-content img {
    max-height: 70vh;
  }
}

/* --- Responsive Adaptations --- */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding-left: 12px;
    padding-bottom: 12px;
  }
  .about-image-wrapper::before {
    display: block;
    top: 12px;
    left: 0;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
  }
  .about-image {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  }
  
  .lightbox-prev {
    left: 20px;
  }
  
  .lightbox-next {
    right: 20px;
  }
  
  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .section-container {
    padding: 60px 20px;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 100px 40px;
    gap: 24px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    grid-auto-rows: 220px;
  }
  
  .gallery-item.landscape {
    grid-column: span 1;
  }
  
  .gallery-item.portrait {
    grid-row: span 1;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .pricing-card {
    padding: 0;
  }
  
  .pricing-card-content {
    padding: 24px 20px;
  }
  
  .pricing-card:not(.has-image) .pricing-card-content {
    padding: 30px 20px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
  }
}

/* --- WooCommerce Integration & Dark Theme Styles --- */
.woocommerce-container {
  color: var(--text-main);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background-color: var(--accent-color);
  color: var(--text-dark);
  border-radius: var(--border-radius);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  transition: var(--transition-smooth);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background-color: var(--accent-hover);
  color: var(--text-dark);
}

.woocommerce ul.products li.product {
  background-color: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 16px;
  transition: var(--transition-smooth);
}

.woocommerce ul.products li.product:hover {
  border-color: rgba(var(--accent-color-rgb), 0.4);
  transform: translateY(-4px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-size: 1.2rem;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--accent-color) !important;
  font-weight: 600;
}

.woocommerce table.shop_table,
.woocommerce-cart .cart-collaterals .cart_totals table {
  background-color: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  color: var(--text-main);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background-color: var(--bg-tertiary) !important;
  border-top-color: var(--accent-color) !important;
  color: var(--text-main) !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  background-color: var(--bg-primary);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  border-radius: 6px;
  padding: 12px;
}

/* --- Global Fixed Site Background Mode --- */
body.global-fixed-bg-active {
  background-color: #121212;
}

body.global-fixed-bg-active .pricing-card,
body.global-fixed-bg-active .extras-container,
body.global-fixed-bg-active .accordion-item,
body.global-fixed-bg-active .contact-form-container,
body.global-fixed-bg-active footer {
  background-color: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}


