/*
Theme Name: Riwaaq Pro
Author: Riwaaq
Description: A bespoke, plugin-free WordPress theme for Riwaaq Creative Studio. Includes native Customizer settings, structured custom post types, custom meta boxes, secure contact and newsletter forms, and dynamic page templates.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: riwaaq-pro
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, portfolio
*/
/* ==========================================================================
   RIWAAQ - PREMIUM CREATIVE STUDIO DESIGN SYSTEM
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- Root variables --- */
:root {
  --primary: #4B2313;
  --secondary: #6D3E2A;
  --background: #FAF8F6;
  --surface: #FFFFFF;
  --text: #1B1B1B;
  --grey: #666666;
  --accent: #C89D62;
  --accent-rgb: 200, 157, 98;
  --primary-rgb: 75, 35, 19;
  --secondary-rgb: 109, 62, 42;
  --background-rgb: 250, 248, 246;
  --surface-rgb: 255, 255, 255;
  --text-rgb: 27, 27, 27;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 32px;
  --border-radius-xl: 48px;
  
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.03);
  --shadow-medium: 0 20px 60px rgba(0, 0, 0, 0.06);
  --shadow-glass: 0 8px 32px 0 rgba(75, 35, 19, 0.04);
}

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

html {
  font-size: 100%;
  scroll-behavior: auto;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Premium Noise Overlay --- */
.noise-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  opacity: 0.03;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- Global Scrollbar --- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* --- Custom Cursor --- */
.custom-cursor {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.custom-cursor-follower {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(200, 157, 98, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background-color 0.3s ease;
}

.custom-cursor-follower.hovered {
  width: 60px; height: 60px;
  background-color: rgba(200, 157, 98, 0.08);
  border-color: var(--accent);
}

.custom-cursor-follower.video-hover {
  width: 80px; height: 80px;
  background-color: var(--accent);
  border-color: var(--accent);
}

.custom-cursor-follower.video-hover::after {
  content: 'PLAY';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600; font-size: 10px; letter-spacing: 2px;
}

/* --- Selection Styles --- */
::selection { background-color: var(--primary); color: var(--accent); }

/* --- Preloader --- */
.preloader {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: var(--primary);
  z-index: 99999;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 16px;
}

.preloader-logo-img {
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}

.preloader-logo-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: brightness(10);
  opacity: 0.9;
}

.preloader-wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 6rem);
  color: var(--accent);
  letter-spacing: 12px;
  text-transform: uppercase;
  overflow: hidden;
  line-height: 1.1;
  text-align: center;
}

.preloader-wordmark span {
  display: inline-block;
  transform: translateY(100%);
}

.preloader-counter {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.1rem;
  color: rgba(250, 248, 246, 0.5);
  letter-spacing: 4px;
}

.preloader-line {
  width: 60px; height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  margin-top: 8px;
}

/* --- Container Styles --- */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 6rem);
}

/* --- Typography Helpers --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-reveal-wrapper { overflow: hidden; display: inline-block; vertical-align: bottom; }
.text-reveal { display: inline-block; transform: translateY(100%); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--font-heading);
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none;
  border-radius: 50px; cursor: pointer;
  position: relative; overflow: hidden;
  transition: var(--transition-smooth); z-index: 1;
  gap: 8px;
}

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

.btn-primary::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); z-index: -1;
}

.btn-primary:hover { color: var(--primary); border-color: var(--accent); }
.btn-primary:hover::before { transform: scaleX(1); transform-origin: left; }

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid rgba(75, 35, 19, 0.25);
}

.btn-outline::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: var(--primary);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); z-index: -1;
}

.btn-outline:hover { color: var(--background); border-color: var(--primary); }
.btn-outline:hover::before { transform: scaleY(1); transform-origin: top; }

.btn-outline-light {
  background-color: transparent;
  color: var(--background);
  border: 1px solid rgba(250, 248, 246, 0.35);
}

.btn-outline-light::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(250, 248, 246, 0.15);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); z-index: -1;
}

.btn-outline-light:hover { border-color: rgba(250, 248, 246, 0.6); }
.btn-outline-light:hover::before { transform: scaleY(1); transform-origin: top; }

.btn-icon {
  width: 14px; height: 14px;
  stroke: currentColor; stroke-width: 2; fill: none;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.btn:hover .btn-icon { transform: translateX(4px); }

.wa-icon {
  width: 16px; height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* --- Section Layouts --- */
.section {
  padding: clamp(4rem, 8vw, 10rem) 0;
  position: relative;
  background-color: var(--background);
}

.section-white { background-color: var(--surface); }

.section-subtitle {
  font-family: var(--font-heading);
  font-weight: 500; font-size: clamp(0.75rem, 1.1vw, 0.9rem);
  text-transform: uppercase; letter-spacing: 4px;
  color: var(--accent); margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 700; line-height: 1.1;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  max-width: 800px;
}

.text-center { text-align: center; }
.text-center .section-title { margin-left: auto; margin-right: auto; }

/* --- Floating Lights Effect --- */
.floating-light {
  position: absolute;
  width: clamp(200px, 35vw, 500px);
  height: clamp(200px, 35vw, 500px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 157, 98, 0.08) 0%, rgba(200, 157, 98, 0) 70%);
  pointer-events: none; filter: blur(40px); z-index: 0;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
  position: fixed; top: 0; left: 0;
  width: 100%; padding: clamp(0.75rem, 1.8vh, 1.2rem) 0;
  z-index: 1010;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.5s ease, backdrop-filter 0.5s ease;
  background-color: transparent;
}

.header.scroll-down { transform: translateY(-100%); }

/* Keep header (and its hamburger/close button) visible and on top
   whenever the fullscreen menu is open — fixes the "can't close menu"
   bug caused by the header being covered or auto-hidden while scrolled. */
.header:has(+ .fullscreen-menu.active) {
  transform: translateY(0) !important;
}

.header.scroll-up {
  transform: translateY(0);
  background-color: rgba(250, 248, 246, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(75, 35, 19, 0.06);
  box-shadow: 0 4px 30px rgba(75, 35, 19, 0.04);
}

.header-container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px;
  min-height: auto;
  padding: 0;
}

/* --- Logo --- */
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}

.logo-img {
  width: 170px; height: 40px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800; font-size: 1.5rem;
  letter-spacing: 1px; color: var(--primary);
  text-transform: uppercase;
  display: none;
}

.logo-text em {
  color: var(--accent); font-style: normal;
}

/* On hero (dark bg), make logo white */
.header:not(.scroll-up) .logo-text { color: #fff; }
.header:not(.scroll-up) .logo-img { filter: brightness(10) opacity(0.9); }

.nav-desktop {
  display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem);
  margin-left: auto;
  margin-right: clamp(1rem, 2.2vw, 1.75rem);
}

.nav-link {
  font-family: var(--font-heading); font-size: 0.82rem;
  font-weight: 500; text-decoration: none;
  text-transform: uppercase; letter-spacing: 1.8px;
  position: relative; padding: 5px 0;
  transition: var(--transition-fast);
  color: rgba(255, 255, 255, 0.9);
}

.header.scroll-up .nav-link { color: var(--primary); }

.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--accent); }
.header.scroll-up .nav-link:hover { color: var(--accent); }

/* Header Right Group */
.header-right {
  display: flex; align-items: center; gap: 0.875rem;
  flex-shrink: 0;
}

.nav-cta-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 0.7rem 1.15rem;
  background: rgba(200, 157, 98, 0.15);
  border: 1px solid rgba(200, 157, 98, 0.4);
  border-radius: 50px;
  font-family: var(--font-heading); font-size: 0.78rem;
  font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: #fff; text-decoration: none;
  transition: var(--transition-fast);
  backdrop-filter: blur(10px);
}

.header.scroll-up .nav-cta-btn {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.nav-cta-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}

/* Hamburger */
.hamburger-btn {
  display: flex; flex-direction: column; justify-content: space-between;
  background: none; border: none; cursor: pointer;
  z-index: 1002; width: 28px; height: 18px; position: relative;
}

.hamburger-line {
  display: block; width: 100%; height: 1.5px;
  background-color: #fff;
  position: absolute;
  transition: transform 0.4s ease, top 0.4s ease, background-color 0.4s ease;
}

.header.scroll-up .hamburger-line { background-color: var(--primary); }

.hamburger-line-1 { top: 0; }
.hamburger-line-2 { top: 8px; }
.hamburger-line-3 { top: 16px; }

.hamburger-btn.active .hamburger-line-1 { transform: rotate(45deg); top: 8px; background-color: var(--accent); }
.hamburger-btn.active .hamburger-line-2 { opacity: 0; }
.hamburger-btn.active .hamburger-line-3 { transform: rotate(-45deg); top: 8px; background-color: var(--accent); }

/* --- Fullscreen Menu --- */
.fullscreen-menu {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #2a1208 100%);
  z-index: 1001;
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

.fullscreen-menu.active { transform: translateY(0); }

.fullscreen-menu-container {
  display: grid; grid-template-columns: 1fr 1fr;
  width: 100%; max-width: 1200px; padding: 0 40px;
  gap: 40px;
}

.fullscreen-menu-links {
  display: flex; flex-direction: column; gap: 12px;
}

.fs-link {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 700; color: var(--background);
  text-decoration: none; text-transform: uppercase;
  line-height: 1.1; transition: var(--transition-fast);
  opacity: 0; transform: translateY(40px);
}

.fs-link span {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  color: var(--accent); margin-right: 12px; vertical-align: super;
}

.fs-link:hover { color: var(--accent); padding-left: 16px; }

.fullscreen-menu-info {
  display: flex; flex-direction: column;
  justify-content: center;
  color: rgba(250, 248, 246, 0.6);
  padding-left: clamp(2rem, 5vw, 5rem);
  border-left: 1px solid rgba(250, 248, 246, 0.1);
  gap: 30px;
  opacity: 0; transform: translateY(40px);
}

.fs-info-block h4 {
  color: var(--accent); margin-bottom: 8px;
  font-size: 0.82rem; letter-spacing: 2px; text-transform: uppercase;
}

.fs-info-block p { font-size: 1rem; line-height: 1.6; }

.fs-info-block p a {
  color: #fff;
  text-decoration: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  height: 100vh; min-height: 600px;
  position: relative; display: flex; align-items: center;
  overflow: hidden; background-color: var(--primary);
}

.hero-image-bg {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  opacity: 0.88;
  filter: brightness(0.72) contrast(1.06) saturate(1.08);
  transition: transform 1.2s ease, opacity 0.8s ease;
}

/* Parent Container (Hero Section) */
.video-container {
    height: 100vh; /* Ya jitni height aapko section ki chahiye */
    overflow: hidden;
}

/* Video Styling */
video.herz_vidz {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Direct stretch hone se bachayega aur full fill karega */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
}

/* Keep background focal point centered so banners match across pages */
.hero-image-bg { object-position: center center; }

.hero-image-bg:hover {
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at top left, rgba(200, 157, 98, 0.14), rgba(27, 10, 3, 0.64) 58%);
  z-index: 1;
}

/* Diagonal accent line */
.hero-diagonal-accent {
  position: absolute; bottom: 0; right: 0;
  width: 40%; height: 100%;
  background: linear-gradient(270deg, rgba(200, 157, 98, 0.08) 0%, transparent 100%);
  z-index: 1;
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-content {
  position: relative; z-index: 2;
  color: var(--background);
  display: flex; flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(200, 157, 98, 0.12);
  border: 1px solid rgba(200, 157, 98, 0.3);
  border-radius: 50px;
  padding: 8px 18px;
  margin-bottom: 28px;
  width: fit-content;
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-badge span:last-child {
  font-family: var(--font-heading);
  font-size: 0.78rem; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(250, 248, 246, 0.8);
}

.hero-headline {
  font-size: clamp(4rem, 8.5vw, 9.5rem);
  font-weight: 800; line-height: 0.95;
  text-transform: uppercase; margin-bottom: clamp(1.2rem, 2.4vw, 1.75rem);
  color: #fff;
}

.hero-headline span { display: block; }

.hero-headline-accent {
  /* Outline / hollow style to match screenshot */
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 3px var(--accent);
  text-stroke: 3px var(--accent);
}

.hero-subheading {
  font-size: clamp(0.9rem, 1.45vw, 1.15rem);
  font-weight: 400; letter-spacing: 1.8px;
  color: rgba(250, 248, 246, 0.82);
  margin-bottom: clamp(1.6rem, 3vw, 2.5rem); max-width: 640px;
  text-transform: uppercase;
  line-height: 1.8;
}

.hero-buttons {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: clamp(1.6rem, 3.2vw, 2.75rem);
  align-items: center;
}

.hero-buttons .btn.magnetic-btn {
    opacity: 1 !important;
}

.hero-buttons .btn-primary {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--primary);
}

.hero-buttons .btn-primary:hover {
  background-color: transparent; color: var(--background);
}

.hero-buttons .btn-outline {
  color: var(--background);
  border-color: rgba(250, 248, 246, 0.35);
}

.hero-buttons .btn-outline:hover {
  background-color: rgba(250, 248, 246, 0.1);
  color: var(--background); border-color: rgba(250, 248, 246, 0.6);
}

/* Hero Stats Row */
.hero-stats-row {
  display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.5rem);
  flex-wrap: wrap;
}

.hero-stat {
  display: flex; flex-direction: column; gap: 2px;
}

.hero-stat strong {
  font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 700;
  color: var(--accent); line-height: 1;
}

.hero-stat span {
  font-size: 0.72rem; letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(250, 248, 246, 0.5);
}

.hero-stat-divider {
  width: 1px; height: 35px;
  background: rgba(200, 157, 98, 0.3);
  flex-shrink: 0;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute; bottom: 4vh; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  color: rgba(250, 248, 246, 0.5);
  font-family: var(--font-heading); font-size: 0.7rem;
  letter-spacing: 3px; text-transform: uppercase; text-decoration: none;
  transition: color 0.3s ease;
}

.scroll-indicator:hover { color: var(--accent); }

.scroll-indicator-mouse {
  width: 22px; height: 36px;
  border: 1px solid rgba(250, 248, 246, 0.3);
  border-radius: 11px; position: relative;
}

.scroll-indicator-wheel {
  width: 3px; height: 7px;
  background-color: var(--accent);
  border-radius: 2px;
  position: absolute; top: 6px; left: 50%;
  transform: translateX(-50%);
  animation: scrollWheelAnim 2s infinite ease-in-out;
}

@keyframes scrollWheelAnim {
  0% { transform: translate(-50%, 0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translate(-50%, 14px); opacity: 0; }
}

/* ==========================================================================
   CLIENTS MARQUEE
   ========================================================================== */
.clients {
  padding: 3rem 0;
  background-color: var(--surface);
  border-bottom: 1px solid rgba(75, 35, 19, 0.05);
  overflow: hidden;
}

.marquee-container {
  display: flex; overflow: hidden;
  width: 100%; user-select: none;
}

.marquee-content {
  display: flex; gap: clamp(2rem, 5vw, 5rem);
  flex-shrink: 0; min-width: 100%;
  animation: marqueeAnim 30s linear infinite;
  align-items: center;
}

.client-logo {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(0.75rem, 1.4vw, 1rem);
  color: rgba(75, 35, 19, 0.2);
  letter-spacing: 4px; transition: var(--transition-fast);
  white-space: nowrap; text-transform: uppercase;
}

.client-divider {
  color: var(--accent); opacity: 0.3; font-size: 0.6rem;
  flex-shrink: 0;
}

.client-logo:hover { color: var(--accent); }

@keyframes marqueeAnim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about { position: relative; overflow: hidden; }


.about-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 6rem); align-items: center;
}

.about-text-content { z-index: 2; }

.about-body {
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  color: var(--grey); margin-bottom: 35px;
}

.about-image-wrapper {
  position: relative;
  width: 100%; height: clamp(350px, 45vw, 580px);
  border-radius: var(--border-radius-lg);
  overflow: hidden; box-shadow: var(--shadow-medium);
	    border: 5px solid #4B2313;
}

.about-img {
  width: 100%; height: 100%;
  object-fit: cover; transform: scale(1.15);
}

.about-founder-badge {
  position: absolute; bottom: 28px; left: -36px;
  background-color: var(--primary);
  color: var(--background);
  padding: 18px 36px 18px 56px;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  box-shadow: var(--shadow-medium);
}

.about-founder-badge h4 { color: var(--accent); font-size: 1rem; }
.about-founder-badge p {
  font-size: 0.75rem; letter-spacing: 1px;
  color: rgba(250, 248, 246, 0.7); text-transform: uppercase;
}

/* ==========================================================================
   SERVICES GRID
   ========================================================================== */
.services { position: relative; }

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

.service-card {
  background-color: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 44px 36px;
  box-shadow: var(--shadow-soft);
  position: relative; overflow: hidden;
  transition: transform 0.1s ease-out, box-shadow var(--transition-fast);
  border: 1px solid rgba(75, 35, 19, 0.05);
  transform-style: preserve-3d; perspective: 1000px;
  display: flex; flex-direction: column;
  min-height: 380px; justify-content: space-between;
}

.service-card::after {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--border-radius-lg);
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--primary), var(--accent)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0; transition: opacity var(--transition-fast);
  pointer-events: none;
}

.service-card:hover { box-shadow: var(--shadow-medium); }
.service-card:hover::after { opacity: 1; }

.service-icon-wrapper {
  width: 54px; height: 54px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(75, 35, 19, 0.05);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 32px; color: var(--primary); transition: var(--transition-fast);
}

.service-card:hover .service-icon-wrapper {
  background-color: var(--primary); color: var(--accent);
}

.service-icon {
  width: 26px; height: 26px; stroke: currentColor;
  stroke-width: 1.5; fill: none;
}

.service-card h3 { font-size: 1.6rem; margin-bottom: 12px; transition: var(--transition-fast); }
.service-card:hover h3 { color: var(--secondary); }
.service-card p { color: var(--grey); font-size: 0.9rem; line-height: 1.65; }

.service-image-reveal {
  position: absolute; bottom: 0; right: 0;
  width: 130px; height: 130px;
  border-radius: var(--border-radius-lg) 0 0 0;
  overflow: hidden;
  transform: translate(20px, 20px) scale(0.85);
  opacity: 0; transition: var(--transition-smooth);
}

.service-card:hover .service-image-reveal {
  transform: translate(0, 0) scale(1); opacity: 0.2;
}

.service-reveal-img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   PORTFOLIO & LIGHTBOX
   ========================================================================== */
.portfolio-filters {
  display: flex; gap: 14px; margin-bottom: 44px; flex-wrap: wrap;
}

.filter-btn {
  background-color: transparent;
  border: 1px solid rgba(75, 35, 19, 0.18);
  color: var(--primary); padding: 10px 24px;
  border-radius: 999px; font-family: var(--font-heading);
  font-weight: 600; font-size: 0.9rem; letter-spacing: 1px;
  cursor: pointer; transition: var(--transition-fast);
}

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

.portfolio-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  grid-auto-rows: minmax(240px, auto);
}

.portfolio-item {
  position: relative; border-radius: var(--border-radius-lg);
  overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  cursor: pointer; aspect-ratio: 4/5;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  background-color: var(--surface);
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18);
}

.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s ease;
}

.portfolio-item:hover img { transform: scale(1.05); }

.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27, 10, 3, 0.08) 0%, rgba(27, 10, 3, 0.82) 85%);
  opacity: 0; transition: opacity 0.4s ease;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 32px;
  color: var(--background);
}

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

.portfolio-category {
  font-family: var(--font-heading); color: rgba(200, 157, 98, 0.95);
  text-transform: uppercase; font-size: 0.75rem; letter-spacing: 2px;
  margin-bottom: 10px; transform: translateY(16px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.portfolio-item:hover .portfolio-category { transform: translateY(0); }

.portfolio-item h3 {
  color: var(--background); font-size: clamp(1.3rem, 2vw, 1.85rem);
  line-height: 1.05; font-weight: 700;
  transform: translateY(24px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.portfolio-item:hover h3 { transform: translateY(0); }

/* Grid Size Variations */
.size-large { grid-column: span 8; aspect-ratio: 16/10; }
.size-medium { grid-column: span 4; aspect-ratio: 4/5; }
.size-wide { grid-column: span 6; aspect-ratio: 16/9; }

/* --- Lightbox Modal --- */
.lightbox {
  position: fixed; inset: 0;
  background-color: rgba(27, 27, 27, 0.97);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 11000; display: flex;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active { opacity: 1; pointer-events: auto; }

.lightbox-content {
  max-width: 90%; max-height: 80%; position: relative;
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-content { transform: scale(1); }
.lightbox-content img { max-width: 100%; max-height: 80vh; border-radius: var(--border-radius-md); }
.lightbox-caption { color: var(--background); font-family: var(--font-heading); text-align: center; margin-top: 16px; font-size: 1.2rem; }
.lightbox-close {
  position: absolute; top: 30px; right: 30px;
  color: var(--background); background: none; border: none;
  font-size: 2.2rem; cursor: pointer; transition: var(--transition-fast); z-index: 1;
}
.lightbox-close:hover { color: var(--accent); }

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */
.why-us-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 6rem); }

.why-us-image-container { position: relative; display: flex; align-items: center; justify-content: center; }

.why-us-circle {
  position: absolute; width: 80%; aspect-ratio: 1;
  border: 1px dashed rgba(75, 35, 19, 0.15);
  border-radius: 50%; animation: rotationLoop 40s linear infinite;
}

@keyframes rotationLoop { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.why-us-img { width: 90%; height: 450px; object-fit: cover; border-radius: var(--border-radius-lg); box-shadow: var(--shadow-medium); z-index: 1; }

.why-us-list { display: flex; flex-direction: column; gap: 35px; }

.why-us-item { display: flex; gap: 20px; }

.why-us-num { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--accent); line-height: 1; flex-shrink: 0; }

.why-us-info h3 { font-size: 1.3rem; margin-bottom: 8px; }
.why-us-info p { color: var(--grey); font-size: 0.9rem; }

/* ==========================================================================
   PROCESS TIMELINE
   ========================================================================== */
.process { position: relative; }

.timeline-container { position: relative; max-width: 850px; margin: 0 auto; }

.timeline-line {
  position: absolute; left: 50%; top: 0;
  width: 1px; height: 100%;
  background-color: rgba(75, 35, 19, 0.08);
  transform: translateX(-50%);
}

.timeline-progress {
  position: absolute; left: 50%; top: 0;
  width: 1px; height: 0%;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  transform: translateX(-50%);
}

.timeline-item { display: flex; margin-bottom: 80px; position: relative; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-node {
  position: absolute; left: 50%; top: 0;
  width: 16px; height: 16px;
  background-color: var(--background);
  border: 3px solid var(--accent); border-radius: 50%;
  transform: translate(-50%, 0); z-index: 2;
  transition: background-color 0.3s ease;
}

.timeline-item.active .timeline-node { background-color: var(--primary); box-shadow: 0 0 12px rgba(200, 157, 98, 0.4); }

.timeline-content { width: 45%; padding: 0 24px; }

.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-item:nth-child(odd) .timeline-content { text-align: right; margin-left: 5%; }
.timeline-item:nth-child(even) .timeline-content { text-align: left; margin-right: 5%; }

.timeline-item h3 { font-size: 1.5rem; margin-bottom: 12px; }
.timeline-item p { color: var(--grey); line-height: 1.65; font-size: 0.9rem; }

/* ==========================================================================
   EQUIPMENT HORIZONTAL SCROLL — REDUCED PADDING
   ========================================================================== */
.equipment {
  overflow: hidden;
  background-color: var(--primary);
  color: var(--background);
  padding: 0; /* override .section's clamp(4rem,8vw,10rem) — this section's height is controlled by the pinned viewport, not padding */
}

.horizontal-scroll-container {
  display: flex; width: 300vw; height: 100vh;
}

.horizontal-slide {
  width: 100vw; height: 100%;
  display: flex; align-items: center;
  padding: 0 clamp(2rem, 5vw, 6rem);
  box-sizing: border-box;
}

.slide-content-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 6rem);
  width: 100%; align-items: center;
}

.slide-info-panel h2 { font-size: clamp(2.5rem, 5.5vw, 5.5rem); color: var(--accent); line-height: 1; margin-bottom: 16px; }
.slide-info-panel h3 { font-size: 1.8rem; color: var(--background); margin-bottom: 20px; }
.slide-info-panel p { font-size: 1rem; color: rgba(250, 248, 246, 0.7); margin-bottom: 32px; max-width: 480px; }

.equipment-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.spec-item h5 { font-family: var(--font-heading); font-size: 0.8rem; text-transform: uppercase; color: var(--accent); letter-spacing: 2px; margin-bottom: 4px; }
.spec-item p { font-size: 1rem; color: var(--background); }

.slide-visual-panel { height: clamp(300px, 42vh, 560px); border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.slide-visual-panel img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   PODCAST SPOTLIGHT — REDUCED PADDING
   ========================================================================== */
.podcast-spotlight {
  position: relative;
  padding: clamp(3.5rem, 7vw, 8rem) 0;
}

.podcast-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 6rem); align-items: center;
}

.podcast-visual-deck { position: relative; width: 100%; height: 520px; }

.pod-card-main { position: absolute; width: 78%; height: 78%; top: 0; left: 0; border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--shadow-medium); z-index: 2; }
.pod-card-main img { width: 100%; height: 100%; object-fit: cover; }

.pod-card-sub { position: absolute; width: 58%; height: 58%; bottom: 0; right: 0; border-radius: var(--border-radius-lg); border: 8px solid var(--background); overflow: hidden; box-shadow: var(--shadow-medium); z-index: 3; }
.pod-card-sub img { width: 100%; height: 100%; object-fit: cover; }

.pod-glow-overlay {
  position: absolute; width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(200, 157, 98, 0.15) 0%, rgba(200, 157, 98, 0) 75%);
  bottom: -40px; right: -40px; z-index: 1;
}

.podcast-info-deck h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); margin-bottom: 20px; }
.podcast-description { color: var(--grey); font-size: 1rem; margin-bottom: 30px; line-height: 1.7; }

.podcast-audio-waveform {
  display: flex; align-items: center; gap: 5px; height: 50px; margin-bottom: 32px;
}

.waveform-bar {
  width: 4px; background-color: var(--accent);
  border-radius: 2px; animation: bounceBars 1s infinite alternate ease-in-out;
}

@keyframes bounceBars { 0% { height: 8px; } 100% { height: 42px; } }

.podcast-audio-waveform .waveform-bar:nth-child(2) { animation-delay: 0.1s; }
.podcast-audio-waveform .waveform-bar:nth-child(3) { animation-delay: 0.3s; }
.podcast-audio-waveform .waveform-bar:nth-child(4) { animation-delay: 0.2s; }
.podcast-audio-waveform .waveform-bar:nth-child(5) { animation-delay: 0.5s; }
.podcast-audio-waveform .waveform-bar:nth-child(6) { animation-delay: 0.4s; }
.podcast-audio-waveform .waveform-bar:nth-child(7) { animation-delay: 0.7s; }
.podcast-audio-waveform .waveform-bar:nth-child(8) { animation-delay: 0.6s; }

/* ==========================================================================
   STATISTICS
   ========================================================================== */
.stats {
  padding: 6rem 0;
  background-color: var(--primary); color: var(--background);
}

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }

.stat-card h2 { font-size: clamp(2.5rem, 5vw, 5.5rem); font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.stat-card p { font-family: var(--font-heading); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 3px; color: rgba(250, 248, 246, 0.5); }

/* ==========================================================================
   TESTIMONIALS SLIDER
   ========================================================================== */
.testimonials { position: relative; overflow: hidden; }

.slider-container { position: relative; width: 100%; overflow: hidden; padding: 16px 0; }

.slider-track {
  display: flex; gap: 24px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: max-content;
}

.testimonial-card {
  width: clamp(280px, 42vw, 560px);
  background-color: var(--surface);
  border: 1px solid rgba(75, 35, 19, 0.05);
  border-radius: var(--border-radius-lg);
  padding: clamp(1.8rem, 3.5vw, 3.5rem);
  box-shadow: var(--shadow-soft); flex-shrink: 0;
  display: flex; flex-direction: column; justify-content: space-between;
}

.testimonial-text { font-size: clamp(0.95rem, 1.3vw, 1.2rem); color: var(--primary); font-style: italic; margin-bottom: 32px; line-height: 1.65; }

.testimonial-profile { display: flex; align-items: center; gap: 16px; }
.testimonial-avatar { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; border: 2px solid var(--accent); flex-shrink: 0; }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-identity h4 { font-size: 1rem; color: var(--primary); }
.testimonial-identity p { font-size: 0.78rem; color: var(--grey); text-transform: uppercase; letter-spacing: 1px; }

.slider-controls { display: flex; justify-content: flex-end; gap: 16px; margin-top: 32px; }

.slider-btn {
  background-color: var(--surface); border: 1px solid rgba(75, 35, 19, 0.1);
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); cursor: pointer; box-shadow: var(--shadow-soft); transition: var(--transition-fast);
}

.slider-btn:hover { background-color: var(--primary); color: var(--background); border-color: var(--primary); }
.slider-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 6rem); }

.faq-list { display: flex; flex-direction: column; gap: 16px; }

.faq-item { border-bottom: 1px solid rgba(75, 35, 19, 0.08); padding-bottom: 16px; }

.faq-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 10px 0; }

.faq-header h3 { font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 600; transition: var(--transition-fast); padding-right: 16px; }

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

.faq-icon { width: 18px; height: 18px; position: relative; transition: transform 0.4s ease; flex-shrink: 0; }

.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute;
  background-color: var(--primary); transition: transform 0.4s ease, background-color 0.4s ease;
}

.faq-icon::before { top: 8px; left: 0; width: 100%; height: 1.5px; }
.faq-icon::after { top: 0; left: 8px; width: 1.5px; height: 100%; }

.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-item.active .faq-icon::before, .faq-item.active .faq-icon::after { background-color: var(--accent); }

.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-body p { color: var(--grey); font-size: 0.9rem; line-height: 1.7; padding-top: 12px; }
.faq-item.active .faq-body { max-height: 200px; }

/* ==========================================================================
   INSTAGRAM FEED
   ========================================================================== */
section#insta h2.section-title.text-center {
    width: 100%;
    max-width: inherit;
}
.insta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.insta-item { position: relative; aspect-ratio: 1; border-radius: var(--border-radius-md); overflow: hidden; box-shadow: var(--shadow-soft); cursor: pointer; }
.insta-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-smooth); }
.insta-item:hover img { transform: scale(1.07); }

.insta-overlay {
  position: absolute; inset: 0;
  background-color: rgba(75, 35, 19, 0.8);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); opacity: 0; transition: var(--transition-fast);
}

.insta-item:hover .insta-overlay { opacity: 1; }
.insta-overlay svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* ==========================================================================
   CTA — REDUCED PADDING
   ========================================================================== */
.cta {
  padding: 6rem 0;
  background-color: var(--primary); color: var(--background);
  text-align: center; position: relative; overflow: hidden;
}

.cta-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(109, 62, 42, 0.35) 0%, rgba(75, 35, 19, 0.95) 70%);
  z-index: 1;
}

.cta-content {
  position: relative; z-index: 2;
  max-width: 820px; margin: 0 auto;
}

.cta h2 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1; margin-bottom: 20px; color: var(--background);
}

.cta p {
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  color: rgba(250, 248, 246, 0.8); margin-bottom: 36px; font-weight: 300;
}

.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

a.btn.btn-primary.magnetic-btn.animate-on-scroll {
    opacity: 1 !important;
}

.cta .btn-primary { background-color: var(--accent); border-color: var(--accent); color: var(--primary); }
.cta .btn-primary:hover { background-color: transparent; color: var(--background); border-color: var(--background); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--surface);
  padding: 5rem 0 2.5rem 0;
  border-top: 1px solid rgba(75, 35, 19, 0.05);
}

.footer-top {
  display: grid; grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: clamp(2rem, 5vw, 5rem); margin-bottom: 4rem;
}

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; width: 100%; max-width: 250px; }
.footer-logo img {
	width: 100%;
}

@media (max-width: 767px) {
	.footer-logo img {
	width: 100%;
		max-width: 220px;
}
}

.footer-logo-img { width: 36px; height: 36px; object-fit: contain; }

.footer-brand h2 { font-size: 1.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.footer-brand h2 span { color: var(--accent); }
.footer-brand p { color: var(--grey); max-width: 300px; margin-bottom: 28px; font-size: 0.9rem; }

.footer-socials { display: flex; gap: 12px; }

.social-circle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(75, 35, 19, 0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); text-decoration: none; transition: var(--transition-fast);
}

.social-circle:hover { background-color: var(--primary); color: var(--accent); border-color: var(--primary); transform: translateY(-3px); }

.social-circle svg { width: 16px; height: 16px; fill: currentColor; }

.footer-links h3, .footer-contact h3 {
  font-size: 0.95rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 24px;
}

.footer-links-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.footer-links-list a { color: var(--grey); text-decoration: none; font-size: 0.9rem; transition: var(--transition-fast); }
.footer-links-list a:hover { color: var(--accent); padding-left: 5px; }

.footer-contact-item { margin-bottom: 20px; }
.footer-contact-item h5 { font-size: 0.78rem; text-transform: uppercase; color: var(--accent); letter-spacing: 1px; margin-bottom: 4px; }
.footer-contact-item p { color: var(--primary); font-size: 0.88rem; line-height: 1.6; }

.footer-contact-item p a{ color: var(--primary); text-decoration: none; transition: var(--transition-fast); }

.newsletter-form {
  display: flex; margin-top: 16px;
  border-bottom: 1.5px solid rgba(75, 35, 19, 0.12);
}

.newsletter-input {
  background: none; border: none; padding: 12px 0;
  width: 100%; font-family: var(--font-body); font-size: 0.9rem; color: var(--primary);
}
.newsletter-input:focus { outline: none; }
.newsletter-input::placeholder { color: rgba(75, 35, 19, 0.4); }

.newsletter-btn {
  background: none; border: none; cursor: pointer;
  color: var(--primary); padding: 0 12px; transition: var(--transition-fast);
}
.newsletter-btn:hover { color: var(--accent); }
.newsletter-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; border-top: 1px solid rgba(75, 35, 19, 0.05);
  color: var(--grey); font-size: 0.8rem; flex-wrap: wrap; gap: 10px;
}

.footer-credit a { color: var(--primary); text-decoration: none; font-weight: 500; }
.footer-credit a:hover { color: var(--accent); }

/* ==========================================================================
   SCROLL PROGRESS BAR
   ========================================================================== */
.scroll-progress-container {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 2px; z-index: 1001;
  background-color: rgba(250, 248, 246, 0.08);
  pointer-events: none;
}

.scroll-progress-bar {
  width: 0%; height: 100%;
  background: linear-gradient(to right, var(--primary), var(--accent));
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   ANIMATE ON SCROLL (CSS fallback)
   ========================================================================== */
.animate-on-scroll {
  opacity: 1;
  transform: none;
}


/* Page-specific styles migrated from the source site */
/* Utility class used across the template (was missing without the full stylesheet,
       which is why "THE COLLECTIVE" / "Meet the Visionaries" were showing left-aligned) */
    .text-center {
      text-align: center;
    }

    /* Force the Team Grid to be uniform and clean */
    .team .portfolio-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
      gap: 30px;
      margin-top: 60px;
    }

    /* Override Portfolio Masonry sizes to make all Team Cards equal */
    .team .portfolio-item {
      position: relative;
      aspect-ratio: 3 / 4; /* Elegant portrait proportion */
      width: 100% !important;
      height: auto !important;
      grid-column: auto !important;
      grid-row: auto !important;
      overflow: hidden;
      border-radius: 4px;
      background-color: #2a221c;
      opacity: 1 !important;
      transform: none !important;
    }

    .team .portfolio-item img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.5s ease;
    }

    .team .portfolio-item:hover img {
      transform: scale(1.05);
    }

    /* Overlay with permanent gradient + bottom-anchored text so names/roles are always readable */
    .team .portfolio-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 24px;
      background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0) 75%);
    }

    .team .portfolio-category {
      font-size: 0.75rem;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--color-accent, #D4AF37);
      margin-bottom: 8px;
      display: inline-block;
    }

    /* Team Detail Text Styling */
    .team .portfolio-overlay h3 {
      font-size: 1.5rem;
      margin-bottom: 5px;
      color: #fff;
    }

    .team-role {
      font-size: 0.9rem;
      color: rgba(255, 255, 255, 0.8);
      font-weight: 400;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    /* Failsafe: if scroll-reveal JS (animations.js/GSAP) hasn't run yet or isn't loaded,
       don't leave the section's headings/cards permanently invisible */
    .team .animate-on-scroll {
      opacity: 1;
      transform: none;
    }

    /* Active Navigation Link Accent */
    .nav-link.active {
      color: var(--color-accent, #D4AF37); /* Matches your gold accent */
    }

    /* Responsive Team Grid */
    @media (max-width: 1024px) {
      .team .portfolio-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
      }
    }
    @media (max-width: 600px) {
      .team .portfolio-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
      }
    }
/* Force White Background for the Section */
    #contact {
      background-color: #ffffff !important; 
    }

    /* Brown/Gold Theme Text */
    #contact .section-subtitle { color: #8A6E2E !important; } /* Rich Brown/Gold */
    #contact .section-title { color: #1a1a1a !important; } /* Dark sophisticated text */
    #contact .about-body { color: #555555 !important; }

    /* Luxury Form Styling */
    .contact-form .form-group {
      margin-bottom: 24px;
    }

    .contact-form label {
      display: block;
      font-size: 0.9rem;
      color: #8A6E2E; /* Brown labels */
      margin-bottom: 8px;
      letter-spacing: 1px;
      text-transform: uppercase;
      font-weight: 600;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
      width: 100%;
      padding: 16px 20px;
      background: #f9f9f9; /* Very subtle off-white */
      border: 1px solid #e0dcd4; /* Light brownish border */
      color: #1a1a1a; /* Dark text */
      font-family: inherit;
      font-size: 1rem;
      border-radius: 4px;
      transition: all 0.3s ease;
    }

    .contact-form input::placeholder,
    .contact-form textarea::placeholder {
      color: rgba(0, 0, 0, 0.35); 
    }

    /* Gold Focus Effect */
    .contact-form input:focus,
    .contact-form select:focus,
    .contact-form textarea:focus {
      outline: none;
      border-color: #D4AF37; /* Gold border on focus */
      background: #ffffff; /* Pure white on focus */
    }

    .contact-form select option {
      background: #ffffff; 
      color: #1a1a1a;
    }

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

    /* Light Info Box */
    .contact-info-box {
      border: 1px solid rgba(138, 110, 46, 0.2);
      padding: 35px;
      border-radius: 8px;
      background: rgba(138, 110, 46, 0.03); /* Very subtle gold tint */
    }
    .contact-info-box h4 { color: #8A6E2E; margin-bottom: 20px; } /* Brown headings */
    .contact-info-box p { color: #555555; margin-bottom: 15px; line-height: 1.8; }
    .contact-info-box strong { color: #D4AF37; } /* Gold highlights */

    /* Social Links Grid */
    .contact-socials-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 15px;
      margin-top: 30px;
    }

    .contact-social-link {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 15px;
      background: #ffffff; 
      border: 1px solid rgba(138, 110, 46, 0.2);
      text-decoration: none;
      color: #1a1a1a;
      border-radius: 4px;
      transition: all 0.3s ease;
    }

    .contact-social-link:hover {
      border-color: #D4AF37; /* Gold hover */
      background: rgba(212, 175, 55, 0.05); /* Subtle gold background */
      transform: translateY(-3px);
    }

    .contact-social-link svg {
      width: 22px;
      height: 22px;
      fill: #D4AF37; /* Gold icons */
      flex-shrink: 0;
    }

    .contact-social-link span {
      font-size: 0.9rem;
      font-weight: 500;
      color: #1a1a1a;
    }
    
    /* Active Nav Link */
    .nav-link.active {
      color: #D4AF37;
    }
.nav-link.active {
      color: var(--color-accent, #D4AF37); /* Matches your gold accent */
    }
/* Reversing the grid for alternating layout */
    .about-grid.reversed {
      direction: rtl;
    }
    .about-grid.reversed > * {
      direction: ltr;
    }
    /* Active Nav Link Accent */
    .nav-link.active {
      color: var(--color-accent, #D4AF37); /* Matches your gold accent */
    }


/* WordPress integration */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
.custom-logo { max-height: 64px; width: auto; }
.logo .custom-logo-link { display: inline-flex; align-items: center; }
.screen-reader-text { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.riwaaq-notice { padding: 16px 20px; margin: 0 0 24px; border-radius: 8px; background: rgba(var(--accent-rgb),.16); color: var(--primary); }
.riwaaq-notice.is-error { background: #fbe9e7; color: #8a1c10; }
.contact-form .form-status { margin-top: 18px; }
.contact-form input[type=checkbox] { width:auto; }
.pagination, .nav-links { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin:50px 0; }
.page-numbers { padding:10px 15px; border:1px solid rgba(var(--primary-rgb),.2); border-radius:999px; }
.page-numbers.current { background:var(--primary); color:var(--background); }
.blog-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px; }
.blog-card { background:var(--surface); border-radius:var(--border-radius-md); overflow:hidden; box-shadow:var(--shadow-soft); }
.blog-card img { width:100%; aspect-ratio:16/10; object-fit:cover; }
.blog-card-content { padding:28px; }
.blog-card h2 { font-size:1.55rem; margin-bottom:12px; }
.blog-meta { color:var(--grey); font-size:.86rem; margin-bottom:12px; }
.entry-content { max-width:900px; margin:0 auto; }
.entry-content > * + * { margin-top:1.25em; }
.entry-content img { height:auto; }
.riwaaq-honeypot { position:absolute!important; left:-9999px!important; opacity:0!important; pointer-events:none!important; }
@media(max-width:900px){.blog-grid{grid-template-columns:1fr 1fr}} @media(max-width:620px){.blog-grid{grid-template-columns:1fr}}
.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  display: block;
  height: auto;
  width: auto;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  z-index: 100000;
  background: var(--surface);
  color: var(--primary);
  border-radius: 6px;
  box-shadow: var(--shadow-medium);
}
