/*
Theme Name: SoundSense Like
Theme URI: https://example.com/soundsense-like
Author: ChatGPT
Author URI: https://openai.com
Description: A clean, modern WordPress theme for acoustic / audio projects, with a scrolling project gallery.
Version: 1.2
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: soundsense-like
*/

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fa;
  color: #111827;
  line-height: 1.6;
}

/* Colors */
:root {
  --ss-primary: #123452;
  --ss-primary-dark: #0a2238;
  --ss-accent: #f4b41a;
  --ss-bg-light: #f3f4f6;
  --ss-bg-white: #ffffff;
  --ss-border-soft: #e5e7eb;
}

/* Layout helpers */
.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: radial-gradient(circle at top left, #ffffff, #eef2ff);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ss-primary-dark);
}

.site-title a {
  text-decoration: none;
  color: inherit;
}

.site-description {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Nav */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 18px;
}

.main-navigation a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #6b7280;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  background: rgba(18, 52, 82, 0.08);
  color: var(--ss-primary-dark);
}

/* Mobile nav */
.menu-toggle {
  display: none;
  border-radius: 999px;
  border: 1px solid var(--ss-border-soft);
  background: #ffffff;
  padding: 6px 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .main-navigation {
    position: absolute;
    inset-inline: 0;
    top: 60px;
    display: none;
    flex-direction: column;
    background: #ffffff;
    border-bottom: 1px solid var(--ss-border-soft);
    padding: 12px 18px 16px;
  }
  .main-navigation.toggled {
    display: flex;
  }
  .main-navigation ul {
    flex-direction: column;
    gap: 8px;
  }
}

/* Hero */
.hero {
  padding: 80px 0 70px;
  background:
    radial-gradient(circle at top left, rgba(244, 180, 26, 0.18), transparent 50%),
    radial-gradient(circle at bottom right, rgba(18, 52, 82, 0.28), transparent 55%),
    linear-gradient(135deg, #0b1623, #1f2937);
  color: #f9fafb;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 3vw, 3rem);
  font-weight: 800;
}

.hero-subtitle {
  margin: 0 0 24px;
  font-size: 1rem;
  color: #e5e7eb;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ss-accent), #ffcc4d);
  color: #111827;
  box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 55px rgba(0,0,0,0.35);
}

.btn-outline {
  background: transparent;
  border-color: rgba(249,250,251,0.4);
  color: #e5e7eb;
}

.btn-outline:hover {
  background: rgba(15,23,42,0.65);
}

/* Hero card */
.hero-card {
  background: radial-gradient(circle at top, rgba(255,255,255,0.12), transparent 52%),
              linear-gradient(145deg, rgba(17,24,39,0.9), rgba(15,23,42,0.98));
  border-radius: 24px;
  padding: 20px 18px 18px;
  border: 1px solid rgba(148,163,184,0.6);
  box-shadow: 0 18px 45px rgba(15,23,42,0.6);
}

/* Section headings */
.section-header {
  margin-bottom: 36px;
}

.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ss-primary);
  margin-bottom: 6px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 1.8rem;
  color: var(--ss-primary-dark);
}

.section-description {
  margin: 0;
  font-size: 0.96rem;
  color: #6b7280;
  max-width: 36rem;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 36px;
  align-items: flex-start;
}

.split-card {
  background: var(--ss-bg-white);
  border-radius: 22px;
  padding: 20px 20px 18px;
  border: 1px solid var(--ss-border-soft);
  box-shadow: 0 14px 40px rgba(15,23,42,0.08);
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--ss-bg-white);
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid var(--ss-border-soft);
  box-shadow: 0 16px 40px rgba(15,23,42,0.06);
}

.product-tag {
  display: inline-flex;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-item {
  background: var(--ss-bg-white);
  border-radius: 18px;
  padding: 18px 16px;
  border: 1px solid var(--ss-border-soft);
}

/* Horizontal scrolling gallery on home page */
.gallery-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-top: 10px;
}

.gallery-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.gallery-scroll {
  display: flex;
  gap: 24px;
  padding: 14px 4px 8px;
}

.gallery-item {
  position: relative;
  flex: 0 0 340px;       /* width of each tile */
  height: 220px;         /* height of each tile */
  border-radius: 18px;
  border: 1px solid rgba(75, 85, 99, 0.5);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #f9fafb;
  font-size: 0.9rem;
  text-decoration: none;
}

/* big image fills tile */
.gallery-item-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* gradient overlay for text readability */
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0,0,0,0.15));
  z-index: 0;
}

.gallery-item span {
  position: relative;
  z-index: 1;
  font-weight: 500;
}

/* Contact band */
.contact-band {
  padding: 40px 0 60px;
  background: radial-gradient(circle at top center, #ffffff, #e5e7eb);
}

.contact-band-inner {
  background: linear-gradient(120deg, var(--ss-primary-dark), #020617);
  border-radius: 28px;
  padding: 24px 24px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: #f9fafb;
}

/* Page header + content */
.page-header {
  padding: 60px 0 30px;
  background: linear-gradient(135deg, #0b1623, #1f2937);
  color: #f9fafb;
}

.page-header h1 {
  margin: 0;
  font-size: 1.8rem;
}

.page-content-wrapper {
  padding: 40px 0 80px;
}

.page-content-wrapper .entry-content {
  background: var(--ss-bg-white);
  border-radius: 20px;
  padding: 22px 20px 26px;
  border: 1px solid var(--ss-border-soft);
  box-shadow: 0 16px 40px rgba(15,23,42,0.06);
}

/* Footer */
.site-footer {
  padding: 30px 0 24px;
  background: #020617;
  color: #9ca3af;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .hero-inner,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .products-grid,
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .section {
    padding: 60px 0;
  }
  .products-grid,
  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .gallery-item {
    flex: 0 0 260px;
    height: 190px;
  }
}


/* Horizontal scrolling gallery on home page */
.gallery-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-top: 10px;
}

.gallery-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.gallery-scroll {
  display: flex;
  gap: 24px;
  padding: 14px 4px 8px;
}

.gallery-item {
  position: relative;
  flex: 0 0 340px;
  height: 220px;
  border-radius: 18px;
  border: 1px solid rgba(75, 85, 99, 0.5);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #f9fafb;
  font-size: 0.9rem;
  text-decoration: none;
}

.gallery-item-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0,0,0,0.15));
  z-index: 0;
}

.gallery-item span {
  position: relative;
  z-index: 1;
  font-weight: 500;
}

/* Project detail layout */
.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 28px;
}

.project-meta {
  border-radius: 18px;
  padding: 18px 16px 16px;
  background: #f9fafb;
  border: 1px solid var(--ss-border-soft);
  font-size: 0.9rem;
}

.project-meta h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--ss-primary-dark);
}

.project-meta ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-meta li {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.project-meta strong {
  font-weight: 600;
  color: #374151;
}

.project-meta span {
  color: #4b5563;
}

@media (max-width: 900px) {
  .project-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Project Gallery Grid (3 columns on desktop) */
.project-gallery-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-gallery-item {
  overflow: hidden;
  border-radius: 12px;
}

.project-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

/* Responsive: tablet */
@media (max-width: 900px) {
  .project-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Responsive: mobile */
@media (max-width: 640px) {
  .project-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Simple lightbox overlay for project gallery */
.ssl-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.ssl-lightbox[data-open="true"] {
  display: flex;
}

.ssl-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.ssl-lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  border-radius: 12px;
  overflow: hidden;
}

.ssl-lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
}

.ssl-lightbox-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: rgba(15,23,42,0.7);
  color: #e5e7eb;
  font-size: 1.6rem;
  line-height: 1;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}
/* Services page header like a strong hero */
.page-header--services {
  background: linear-gradient(135deg, #0b1623, #1f2937);
  color: #f9fafb;
}

.page-header-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: #a5b4fc;
  margin: 0 0 4px;
}

.page-header--services h1 {
  margin: 0;
  font-size: 2rem;
}

.page-header--services .page-header-tagline {
  margin-top: 10px;
  max-width: 36rem;
  font-size: 0.95rem;
  color: #e5e7eb;
}

/* Narrow intro text on services */
.services-intro-wrapper .entry-content--narrow {
  max-width: 720px;
  margin: 0 auto;
}

/* Services stack panels */
.services-stack {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.service-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}

.service-panel--alt {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.25fr);
}

.service-panel-text h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: var(--ss-primary-dark);
}

.service-panel-text p {
  margin-top: 0;
  margin-bottom: 8px;
  color: #4b5563;
  font-size: 0.96rem;
}

.service-panel-price {
  margin-top: 6px;
  margin-bottom: 12px;
}

.service-panel-cta {
  margin-top: 4px;
  font-size: 0.9rem;
}

.service-panel-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 220px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.35);
}

/* Placeholder backgrounds; later you can replace these with background-image URLs */
.service-panel-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.95);
}

/* Different tints per service – swap to actual images when you have them */
.service-panel-image--calibration {
  background: radial-gradient(circle at top, #111827, #020617);
}

.service-panel-image--installation {
  background: radial-gradient(circle at top, #020617, #111827);
}

.service-panel-image--consultation {
  background: radial-gradient(circle at top, #0b1120, #020617);
}

.service-panel-image--design {
  background: radial-gradient(circle at top, #111827, #1f2937);
}

/* Scroll reveal animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Services video block */
.services-video-block {
  margin-top: 10px;
}

.services-video-inner {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(15,23,42,0.5);
  background: #000;
}

.services-video-inner video {
  display: block;
  width: 100%;
  height: auto;
}

.services-video-caption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Responsive */
@media (max-width: 900px) {
  .service-panel,
  .service-panel--alt {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-panel-media {
    order: -1; /* show image above text on mobile */
  }
}
/* Services panels layout (similar to sense-sound) */
.services-stack {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.service-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.service-panel--alt {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.25fr);
}

.service-panel-text h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.6rem;
  color: var(--ss-primary-dark);
}

.service-panel-text p {
  margin-top: 0;
  margin-bottom: 8px;
  color: #4b5563;
  font-size: 0.97rem;
}

.service-panel-price {
  margin-top: 6px;
  margin-bottom: 14px;
  font-weight: 500;
}

/* Media block: parallax container */
.service-panel-media {
  position: relative;
  min-height: 260px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15,23,42,0.45);
}

/* Parallax items (the actual image layer) */
.parallax-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

/* Placeholder images styled like sense-sound (replace with your real photos later) */
.service-panel-image--calibration {
  background-image: url('https://blockbuilts.com/wp-content/uploads/2025/12/MeharHomeStudio2.png');
}

.service-panel-image--installation {
  background-image: url('https://deeppink-gull-645891.hostingersite.com/wp-content/uploads/2025/12/placeholder4.avif');
}

.service-panel-image--consultation {
  background-image: url('https://deeppink-gull-645891.hostingersite.com/wp-content/uploads/2025/12/placeholder1.avif');
}

.service-panel-image--design {
  background-image: url('https://deeppink-gull-645891.hostingersite.com/wp-content/uploads/2025/12/placeholdr2.avif');
}

/* Reveal effect base */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Services header tweaks to match sense-sound vibe */
.page-header--services {
  background: linear-gradient(135deg, #0b1623, #1f2937);
  color: #f9fafb;
}

.page-header-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: #a5b4fc;
  margin: 0 0 4px;
}

.page-header--services h1 {
  margin: 0;
  font-size: 2rem;
}

.page-header--services .page-header-tagline {
  margin-top: 10px;
  max-width: 36rem;
  font-size: 0.95rem;
  color: #e5e7eb;
}

/* Responsive */
@media (max-width: 900px) {
  .service-panel,
  .service-panel--alt {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-panel-media {
    order: -1; /* image above text on mobile */
  }
}
