/*
Theme Name: Prime Locksmith SA
Theme URI: https://primelocksmithsa.com/
Author: Antigravity
Description: Custom, E-E-A-T friendly, lightweight WordPress theme optimized for local SEO, fluid vertical segmentation (100vw), and Core Web Vitals.
Version: 1.0.0
Text Domain: prime-locksmith
*/

@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;600;700&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  /* Brand Colors (Art Deco / Geometric) */
  --color-primary: #0B1A30; /* Deep Navy Blue */
  --color-secondary: #D4AF37; /* Champagne Gold */
  --color-accent: #E5C158; /* Lighter Gold Accent */
  --color-dark: #050d1a; /* True Dark Navy */
  --color-light: #FDFBF7; /* Warm Cream / Ivory */
  --color-white: #FFFFFF;
  --color-gray-text: #4a5568;
  --color-gray-border: #e2e8f0;

  /* Fluid Spacing (Vertical Segmentation) */
  --padding-section-desktop: 8vh;
  --padding-section-mobile: 5vh;
  --container-padding: 5vw;
  
  /* Art Deco Typography */
  --font-family-display: 'Josefin Sans', sans-serif;
  --font-family-ui: 'Josefin Sans', sans-serif;
  --font-family-base: 'DM Sans', sans-serif;
  
  --font-size-base: 1.125rem;
  --fluid-h1: clamp(2.5rem, 6vw, 4.5rem);
  --fluid-h2: clamp(2rem, 4vw, 3.25rem);
  --fluid-h3: clamp(1.5rem, 3vw, 2.25rem);
  --fluid-body: clamp(1.05rem, 1.2vw, 1.125rem);
  
  /* Layout constraints */
  --max-width-content: 1400px; /* More controlled geometric width */
  
  /* UI Elements: Strict Geometric Precision */
  --border-radius-btn: 0px;
  --border-radius-card: 0px;
  --shadow-sm: 0 4px 6px -1px rgba(11, 26, 48, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(11, 26, 48, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(11, 26, 48, 0.1), 0 10px 10px -5px rgba(11, 26, 48, 0.04);
  
  /* Transitions */
  --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth elegant ease */
}

/* Base Reset & Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark);
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-white);
  width: 100%;
  overflow-x: hidden;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-display);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: 0.02em;
}

h1 { font-size: var(--fluid-h1); text-transform: uppercase; letter-spacing: 0.05em; }
h2 { font-size: var(--fluid-h2); }
h3 { font-size: var(--fluid-h3); }
p { font-size: var(--fluid-body); margin-bottom: 1.5rem; color: var(--color-gray-text); font-weight: 400; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-secondary); }

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

/* Service Image Figures — Art Deco captioned photography */
figure.service-figure {
  margin: 0 0 2rem 0;
}

figure.service-figure img {
  width: 100%;
  display: block;
}

.service-figcaption {
  font-family: var(--font-family-ui);
  font-size: 0.8rem;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--color-gray-text);
  background: var(--color-light);
  padding: 0.875rem 1.25rem;
  border-top: 3px solid var(--color-secondary);
  text-align: center;
}

.service-figcaption--dark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-light);
  border-top-color: var(--color-secondary);
}

/* 2-column grid for dual service images */
.service-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 640px) {
  .service-image-grid {
    grid-template-columns: 1fr;
  }
}

/* Fluid Vertical Segmentation (Global Layout Structure) */
section.fluid-section {
  width: 100%;
  padding-top: var(--padding-section-desktop);
  padding-bottom: var(--padding-section-desktop);
  position: relative;
}

section.fluid-section.bg-light {
  background-color: var(--color-light);
}

section.fluid-section.bg-dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

section.fluid-section.bg-dark h2,
section.fluid-section.bg-dark p {
  color: var(--color-white);
}

/* Inner Container for reading width constraint inside fluid sections */
.container {
  width: 85%; /* Utilizes majority of any given screen size */
  max-width: var(--max-width-content);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

/* Standard Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

/* Buttons Core Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-family-ui);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  border-radius: var(--border-radius-btn);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--color-secondary); 
  color: var(--color-primary) !important; 
  border-color: var(--color-secondary);
}

.btn-primary:hover {
  background-color: var(--color-accent);
  color: var(--color-dark) !important;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
  background-color: var(--color-primary); 
  color: var(--color-secondary) !important;
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-dark);
  color: var(--color-accent) !important;
  box-shadow: 0 0 15px rgba(11, 26, 48, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-secondary) !important;
}

/* Art Deco Utility Classes */
.deco-border {
  border: 1px solid var(--color-secondary);
  padding: 2px;
  position: relative;
}

.deco-border::before {
  content: '';
  position: absolute;
  top: 4px; left: 4px; right: 4px; bottom: 4px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  pointer-events: none;
}

.gold-shimmer-hover {
  transition: all var(--transition-fast);
}

.gold-shimmer-hover:hover {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
  border-color: var(--color-secondary) !important;
}

/* Grid & Flex Utilities */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

/* Mobile Adaptations */
@media (max-width: 768px) {
  section.fluid-section {
    padding-top: var(--padding-section-mobile);
    padding-bottom: var(--padding-section-mobile);
  }
  
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr; /* Stack into single column */
  }
  
  .container {
    width: 100%; /* Switch back to 100% on phones */
    padding-left: 1.5rem; /* Fixed padding on small mobile */
    padding-right: 1.5rem;
  }
  
  .btn {
    width: 100%; /* Full width buttons on mobile sometimes look better, but typically block level */
    padding: 1rem;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-white { color: var(--color-white) !important; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Hero play-button utilities */
.play-pulse {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-pulse::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid var(--color-secondary);
    animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.play-pulse:hover {
    background-color: var(--color-accent);
}

@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

