/*
Theme Name: Jaypstudios
Theme URI: https://jaypstudios.ca
Author: Jaypstudios
Author URI: https://jaypstudios.ca
Description: A custom WordPress theme for Jaypstudios — Ottawa Personal Branding, Family Portrait and Wedding Photographer. Features a refined editorial aesthetic with Z-pattern service layouts, portfolio filtering, timeline experience section, and Google Reviews integration.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jaypstudios
*/

/* ========== CSS VARIABLES ========== */
:root {
  --pitch-black: #000000;
  --night-owl: #1C1C1E;
  --cool-slate: #636366;
  --silver-mist: #AEAEB2;
  --cloud-white: #F2F2F7;
  --stark-white: #FFFFFF;
  --font-primary: 'Montserrat', sans-serif;
  --font-body: 'Roboto Condensed', sans-serif;
  --max-width: 1280px;
  --section-padding: 100px 0;
  --gold-star: #F5A623;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--pitch-black);
  background: var(--stark-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ========== NAVIGATION ========== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.site-nav.scrolled {
  background: rgba(0, 0, 0, 0.95);
  padding: 12px 0;
  box-shadow: 0 2px 30px rgba(0,0,0,0.3);
  backdrop-filter: blur(12px);
}

/* Non-hero pages: dark nav by default */
.page-portfolio .site-nav,
.page-contact .site-nav,
.page-services .site-nav,
.page-terms-and-conditions .site-nav,
.page-privacy-policy .site-nav {
  background: var(--pitch-black);
  padding: 12px 0;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--stark-white);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--stark-white);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-primary) !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase;
  color: var(--pitch-black) !important;
  background: var(--stark-white);
  padding: 12px 28px !important;
  transition: background 0.3s ease, transform 0.3s ease;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--cloud-white);
  transform: translateY(-1px);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 8px;
}

.menu-toggle span {
  width: 28px;
  height: 2px;
  background: var(--stark-white);
  transition: all 0.3s ease;
  display: block;
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.97);
  z-index: 998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.mobile-nav-overlay.open {
  display: flex;
}

.mobile-nav-overlay a {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--stark-white);
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay a:hover {
  opacity: 0.6;
}

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: var(--stark-white);
  font-size: 2rem;
  cursor: pointer;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.35s ease;
}

.btn .arrow {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--stark-white);
  color: var(--pitch-black);
  border-color: var(--stark-white);
}

.btn-primary:hover {
  background: transparent;
  color: var(--stark-white);
}

.btn-primary-dark {
  background: var(--pitch-black);
  color: var(--stark-white);
  border-color: var(--pitch-black);
}

.btn-primary-dark:hover {
  background: transparent;
  color: var(--pitch-black);
}

.btn-secondary {
  background: transparent;
  color: var(--stark-white);
  border-color: var(--stark-white);
}

.btn-secondary:hover {
  background: var(--stark-white);
  color: var(--pitch-black);
}

.btn-secondary-dark {
  background: transparent;
  color: var(--pitch-black);
  border-color: var(--pitch-black);
}

.btn-secondary-dark:hover {
  background: var(--pitch-black);
  color: var(--stark-white);
}

/* ========== SHARED SECTION STYLES ========== */
.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--silver-mist);
  margin-bottom: 20px;
}

.section-heading {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--pitch-black);
  line-height: 1.15;
  margin-bottom: 24px;
}

.section-desc {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--cool-slate);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto;
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--night-owl);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(100,100,100,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(100,100,100,0.05) 0%, transparent 50%);
  z-index: 0;
}

.hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 40px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--silver-mist);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-tagline {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  color: var(--stark-white);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 48px;
}

.hero-tagline em {
  font-style: italic;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== INTRO SECTION ========== */
.intro {
  padding: var(--section-padding);
  text-align: center;
  background: var(--stark-white);
}

.intro .container {
  max-width: 780px;
}

/* ========== SERVICE SECTIONS ========== */
.service-block {
  padding: var(--section-padding);
}

.service-block:nth-child(even) {
  background: var(--cloud-white);
}

.service-block .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-block:nth-child(even) .service-text {
  order: 2;
}

.service-block:nth-child(even) .service-images,
.service-block:nth-child(even) .fade-up.delay-2 {
  order: 1;
}

.service-text h2 {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  color: var(--pitch-black);
  margin-bottom: 24px;
}

.service-text p {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--cool-slate);
  line-height: 1.75;
  margin-bottom: 28px;
}

.service-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
}

/* FIX: Service images column — flex column, full width children */
.service-images {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100%;
}

.service-img-box {
  background: var(--silver-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.service-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-img-box:hover img {
  transform: scale(1.05);
}

.service-img-box span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cool-slate);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* 2 portraits side by side */
.service-img-portraits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

/* FIX: Portrait 1000×1500 — width 100% ensures it fills parent */
.service-img-portrait {
  aspect-ratio: 1000 / 1500;
  width: 100%;
}

/* FIX: Landscape 1080×566 — width 100% ensures it fills parent */
.service-img-landscape {
  aspect-ratio: 1080 / 566;
  width: 100%;
}

/* Mobile CTA - hidden on desktop */
.service-buttons-mobile {
  display: none;
}

/* Bottom row: 2 square images */
.service-img-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px;
  width: 100%;
}

.service-img-row .service-img-box {
  aspect-ratio: 1 / 1;
}

/* Slideshow replacing the image grid on offer pages */
.service-images--slideshow {
  display: block;
  position: relative;
  width: 100%;
  min-height: 560px;
  background: var(--silver-mist);
  overflow: hidden;
}

.service-images--slideshow .offer-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ========== SERVICE PAGE DETAILS ========== */
.service-pricing {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--cool-slate);
  line-height: 1.75;
  margin-bottom: 32px;
}

.service-pricing strong {
  font-family: var(--font-primary);
  font-weight: 800;
  color: var(--pitch-black);
  font-size: 1.3rem;
}

.service-checklist {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.service-checklist li {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--cool-slate);
  line-height: 1.6;
  padding: 8px 0 8px 36px;
  position: relative;
  list-style: none !important;
  list-style-type: none !important;
}

.service-checklist li::marker {
  content: none;
  display: none;
}

.service-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23636366' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ========== REVIEWS SECTION ========== */
.reviews {
  padding: var(--section-padding);
  background: var(--night-owl);
  text-align: center;
}

.reviews .section-label {
  color: var(--silver-mist);
}

.reviews .section-heading {
  color: var(--stark-white);
  margin-bottom: 16px;
}

.reviews .section-desc {
  color: var(--silver-mist);
  margin-bottom: 60px;
}

.reviews-placeholder {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  border: 1px dashed rgba(255,255,255,0.15);
  color: var(--silver-mist);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
}

.reviews-placeholder code {
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  font-size: 0.85rem;
}

/* ========== TRUST SECTION ========== */
.trust {
  padding: 80px 0;
  background: var(--cloud-white);
}

.trust .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trust-icon {
  width: 80px;
  height: 80px;
  background: var(--silver-mist);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.trust-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--night-owl);
  fill: none;
  stroke-width: 1.8;
}

.trust-item h3 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--pitch-black);
  margin-bottom: 10px;
}

.trust-item p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--cool-slate);
  line-height: 1.6;
  max-width: 280px;
}

/* ========== TIMELINE / EXPERIENCE SECTION ========== */
.experience {
  padding: var(--section-padding);
  background: var(--stark-white);
}

.experience .section-heading {
  text-align: center;
  margin-bottom: 8px;
}

.experience .section-desc {
  text-align: center;
  margin-bottom: 64px;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--silver-mist);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 60px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: 60px;
  padding-left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
  padding-left: 60px;
  padding-right: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--pitch-black);
  border: 3px solid var(--stark-white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--pitch-black);
  z-index: 2;
}

.timeline-item:nth-child(odd)::before {
  right: -8px;
}

.timeline-item:nth-child(even)::before {
  left: -8px;
}

.timeline-step {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--silver-mist);
  margin-bottom: 8px;
}

.timeline-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--pitch-black);
  margin-bottom: 10px;
}

.timeline-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--cool-slate);
  line-height: 1.65;
}

/* ========== ABOUT SECTION ========== */
.about {
  padding: var(--section-padding);
  background: var(--stark-white);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  color: var(--pitch-black);
  margin-bottom: 24px;
}

.about-text p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--cool-slate);
  line-height: 1.75;
  margin-bottom: 32px;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--pitch-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--pitch-black);
}

.social-icons a:hover svg {
  fill: var(--stark-white);
}

.social-icons a svg {
  width: 20px;
  height: 20px;
  fill: var(--pitch-black);
  transition: all 0.3s ease;
}

/* FIX: About images grid — ensure boxes fill grid cells */
.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.about-img-box {
  aspect-ratio: 3 / 4;
  width: 100%;
  background: var(--silver-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-box span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cool-slate);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ========== CONTACT / FORM SECTION ========== */
.contact-section {
  padding: var(--section-padding);
  background: var(--cloud-white);
}

.contact-section .container {
  max-width: 800px;
  text-align: center;
}

.contact-section .section-heading {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-style: italic;
  margin-bottom: 16px;
}

.contact-section .section-desc {
  margin-bottom: 48px;
}

.jp-form {
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-row.full {
  grid-template-columns: 1fr;
}

.form-group label {
  display: block;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--pitch-black);
  margin-bottom: 8px;
}

.form-group label .req {
  color: var(--cool-slate);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--pitch-black);
  background: var(--stark-white);
  border: 1.5px solid var(--silver-mist);
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--pitch-black);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--silver-mist);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23636366' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group textarea {
  resize: vertical;
  min-height: 160px;
}

.form-submit {
  text-align: center;
  margin-top: 36px;
}

.form-submit button {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stark-white);
  background: var(--pitch-black);
  border: 2px solid var(--pitch-black);
  padding: 16px 60px;
  cursor: pointer;
  transition: all 0.35s ease;
}

.form-submit button:hover {
  background: transparent;
  color: var(--pitch-black);
}

/* Form success modal */
.form-success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.form-success-overlay.show {
  display: flex;
}

.form-success-box {
  background: var(--stark-white);
  max-width: 520px;
  width: 90%;
  padding: 60px 48px;
  text-align: center;
  position: relative;
  animation: modalIn 0.4s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.form-success-box .success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--pitch-black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.form-success-box .success-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--stark-white);
  fill: none;
  stroke-width: 2.5;
}

.form-success-box h3 {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--pitch-black);
  margin-bottom: 16px;
  line-height: 1.3;
}

.form-success-box p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--cool-slate);
  line-height: 1.7;
  margin-bottom: 32px;
}

.form-success-box button {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stark-white);
  background: var(--pitch-black);
  border: 2px solid var(--pitch-black);
  padding: 14px 40px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-success-box button:hover {
  background: transparent;
  color: var(--pitch-black);
}

/* ========== PAGE HERO (Portfolio / Contact) ========== */
.page-hero {
  padding: 180px 0 80px;
  text-align: center;
  background: var(--stark-white);
}

.page-hero h1 {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-style: italic;
  color: var(--pitch-black);
  margin-bottom: 16px;
}

.page-hero p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--cool-slate);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ========== PORTFOLIO SECTION ========== */
.portfolio-filters {
  padding: 0 0 20px;
  background: var(--stark-white);
}

.portfolio-filters .container {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  padding: 12px 28px;
  border: 2px solid var(--pitch-black);
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: var(--pitch-black);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--pitch-black);
  color: var(--stark-white);
}

.portfolio-description {
  padding: 40px 0;
  text-align: center;
  background: var(--stark-white);
}

.portfolio-description .container {
  max-width: 780px;
}

.portfolio-desc-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--cool-slate);
  line-height: 1.8;
}

/* ========== PORTFOLIO GRID & MASONRY ========== */
/* FIX: Remove the conflicting auto-fill grid. The masonry system uses
   .pf-row children directly, so the container must be a plain block. */
.portfolio-grid {
  padding: 20px 0 80px;
  background: var(--stark-white);
}

.portfolio-grid .container {
  max-width: 1400px;
  padding: 0 24px;
  margin: 0 auto;
  /* No display:grid here — masonry rows handle their own layout */
}

/* Portfolio items — also serve as the aspect-ratio boxes in masonry */
.portfolio-item {
  width: 100%;
  background: var(--silver-mist);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cool-slate);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ========== PORTFOLIO MASONRY ROWS ========== */
/* All masonry grids are hidden by default — JS shows the active category */
.portfolio-masonry {
  display: none;
  flex-direction: column;
  width: 100%;
  align-self: stretch;
  gap: 6px;
  width: 100%;
}

.portfolio-masonry.active {
  display: flex;
}

.pf-row {
  display: grid;
  gap: 6px;
  width: 100%;
}

/* Single landscape fills full row width */
.pf-row-landscape {
  grid-template-columns: 1fr;
}

/* Two portraits share the row equally */
.pf-row-portraits {
  grid-template-columns: 1fr 1fr;
}

/* FIX: Explicit width:100% so aspect-ratio boxes stretch to fill grid cell */
.pf-landscape {
  aspect-ratio: 1080 / 566;
  width: 100%;
  overflow: hidden;
  background: var(--silver-mist);
}

.pf-portrait {
  aspect-ratio: 1000 / 1500;
  width: 100%;
  overflow: hidden;
  background: var(--silver-mist);
}

/* Ensure images inside masonry cells cover properly */
.pf-landscape img,
.pf-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.pf-landscape:hover img,
.pf-portrait:hover img {
  transform: scale(1.04);
}

/* ========== CONTACT PAGE ========== */
.contact-page-form {
  padding: 0 0 80px;
  background: var(--stark-white);
}

.contact-page-form .container {
  max-width: 800px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--pitch-black);
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
}

.footer-brand p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--cool-slate);
  line-height: 1.7;
  max-width: 340px;
}

.footer-col h4 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stark-white);
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 14px;
}

.footer-col ul li a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--cool-slate);
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a:hover {
  color: var(--stark-white);
}

.footer-connect-icons {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.footer-connect-icons a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--cool-slate);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-connect-icons a:hover {
  border-color: var(--stark-white);
  background: var(--stark-white);
}

.footer-connect-icons a svg {
  width: 16px;
  height: 16px;
  fill: var(--cool-slate);
  transition: fill 0.3s ease;
}

.footer-connect-icons a:hover svg {
  fill: var(--pitch-black);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--cool-slate);
  margin-bottom: 0;
}

.footer-bottom .footer-legal {
  margin-top: 16px;
  text-align: center;
}

.footer-bottom .footer-legal a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--cool-slate);
  transition: color 0.3s ease;
}

.footer-bottom .footer-legal a:hover {
  color: var(--stark-white);
}

.footer-bottom .footer-legal span {
  color: var(--cool-slate);
  margin: 0 10px;
  font-size: 0.75rem;
}


/* ========== OFFER PAGE STYLES ========== */
.offer-hero {
  padding: 180px 0 60px;
  text-align: center;
  background: var(--pitch-black);
}

.offer-hero .offer-badge {
  display: inline-block;
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--pitch-black);
  background: var(--stark-white);
  padding: 8px 24px;
  margin-bottom: 28px;
}

.offer-hero h1 {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--stark-white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.offer-hero .offer-hero-desc {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--silver-mist);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 36px;
}

.offer-price-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.offer-price-original {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--cool-slate);
  text-decoration: line-through;
}

.offer-price-new {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 2.4rem;
  color: var(--stark-white);
}

.offer-price-save {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pitch-black);
  background: var(--stark-white);
  padding: 6px 16px;
}

/* Offer details section */
.offer-details {
  padding: var(--section-padding);
  background: var(--stark-white);
}

.offer-details:nth-child(even) {
  background: var(--cloud-white);
}

.offer-details .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.offer-details:nth-child(even) .offer-text { order: 2; }
.offer-details:nth-child(even) .offer-visual { order: 1; }

.offer-text h2 {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  color: var(--pitch-black);
  margin-bottom: 20px;
}

.offer-text > p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--cool-slate);
  line-height: 1.75;
  margin-bottom: 28px;
}

/* ========== SLIDESHOW ========== */
.offer-slideshow {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  background: var(--silver-mist);
  touch-action: pan-y;
  cursor: grab;
}

.offer-slideshow:active {
  cursor: grabbing;
}

.slideshow-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
  will-change: transform;
}

.slideshow-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--silver-mist);
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow-slide span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cool-slate);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Slideshow arrows */
.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,0.5);
  border: none;
  color: var(--stark-white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.3s ease;
}

.slideshow-arrow:hover {
  background: rgba(0,0,0,0.8);
}

.slideshow-arrow.prev { left: 12px; }
.slideshow-arrow.next { right: 12px; }

/* Slideshow dots */
.slideshow-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slideshow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.slideshow-dot.active {
  background: var(--stark-white);
}

/* Swipe callout */
.slideshow-swipe-hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stark-white);
  background: rgba(0,0,0,0.5);
  padding: 6px 18px;
  z-index: 5;
  pointer-events: none;
  animation: swipeHintFade 3s ease forwards;
}

@keyframes swipeHintFade {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; }
}

/* ========== LEGAL PAGES ========== */
.legal-page {
  padding: 180px 0 100px;
  background: var(--stark-white);
}

.legal-page .container {
  max-width: 800px;
}

.legal-page h1 {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--pitch-black);
  margin-bottom: 12px;
}

.legal-page .legal-updated {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--silver-mist);
  margin-bottom: 48px;
}

.legal-content h2 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--pitch-black);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--cloud-white);
}

.legal-content p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--cool-slate);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 20px 24px;
}

.legal-content li {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--cool-slate);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--pitch-black);
  border-bottom: 1px solid var(--silver-mist);
  transition: border-color 0.3s ease;
}

.legal-content a:hover {
  border-color: var(--pitch-black);
}

/* ========== CURSOR SPOTLIGHT ========== */
.cursor-spotlight {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none !important;
  z-index: 99999;
  opacity: 0;
  filter: blur(60px);
  -webkit-filter: blur(60px);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease, background 1.8s ease;
  will-change: left, top, background, opacity;
  left: -300px;
  top: -300px;
  background: radial-gradient(circle, rgba(174,174,178,0.9) 0%, transparent 60%);
}

.cursor-spotlight.active {
  opacity: 0.55;
}

/* Disable on touch devices and reduced motion */
@media (hover: none) {
  .cursor-spotlight { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-spotlight { display: none !important; }
}

/* ========== ANIMATIONS ========== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }

  .service-block .container,
  .about .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-block:nth-child(even) .service-text { order: 1; }
  .service-block:nth-child(even) .service-images,
  .service-block:nth-child(even) .fade-up.delay-2 { order: 2; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .timeline::before { left: 20px; }

  .timeline-item {
    width: 100%;
    padding: 0 0 50px 60px !important;
    left: 0 !important;
    text-align: left !important;
  }

  .timeline-item::before {
    left: 12px !important;
    right: auto !important;
  }

  .service-block .container {
    display: flex !important;
    flex-direction: column !important;
  }

  .service-block .service-text {
    order: 1 !important;
  }

  .service-block .service-text .service-buttons {
    display: none !important;
  }

  .service-block .fade-up.delay-2 {
    order: 2 !important;
  }

  .service-buttons-mobile {
    display: flex !important;
    order: 3 !important;
    margin-top: 24px;
    gap: 16px;
    flex-wrap: wrap;
  }

  /* Stack portrait rows on tablet */
  .pf-row-portraits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root { --section-padding: 70px 0; }

  .nav-links { display: none; }
  .menu-toggle { display: flex; }

  .form-row { grid-template-columns: 1fr; }

  .trust .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .service-images,
  .about-images {
    max-width: 500px;
  }

  /* Stack portrait rows on mobile */
  .pf-row-portraits {
    grid-template-columns: 1fr;
  }

  .offer-slideshow { height: 400px; }

  .offer-details .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .offer-details:nth-child(even) .offer-text { order: 1; }
  .offer-details:nth-child(even) .offer-visual { order: 2; }
}

/* ========== WPFORMS BRANDING ========== */
.wpforms-container { max-width: 760px; margin: 0 auto; }
#wpforms-233-field_7-container,
#wpforms-233-field_8-container { display: none !important; }
.wpforms-form .wpforms-field { margin-bottom: 20px !important; padding: 0 !important; }
.wpforms-form .wpforms-field-label { text-align: left !important; font-family: 'Montserrat', sans-serif !important; font-weight: 700 !important; font-size: 0.75rem !important; letter-spacing: 0.08em !important; text-transform: uppercase !important; }
.jp-half-left { float: left !important; width: calc(50% - 8px) !important; clear: left !important; display: block !important; }
.jp-half-right { float: right !important; width: calc(50% - 8px) !important; display: block !important; }
.wpforms-form .wpforms-field-date-time,
.wpforms-form .wpforms-field-textarea,
.wpforms-form .wpforms-submit-container { clear: both !important; width: 100% !important; float: none !important; }
.wpforms-form .wpforms-submit-container { text-align: center !important; padding-top: 8px !important; }
.wpforms-form .iti { width: 100% !important; display: block !important; }
.wpforms-form label.wpforms-error { font-family: 'Roboto Condensed', sans-serif; font-size: 0.8rem; color: #e53e3e; margin-top: 4px; display: block; }
@media (max-width: 640px) { .jp-half-left, .jp-half-right { float: none !important; width: 100% !important; } }