/*
Theme Name: RD Group Inc.
Theme URI: https://rddd.ca
Author: RD Group Inc.
Author URI: https://rddd.ca
Description: Innovative Curtainwall Solutions - Custom WordPress theme for RD Group Inc.
Version: 1.0.0
License: All Rights Reserved
Text Domain: rdgroup
*/

/* ============================================
   GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Quattrocento+Sans:wght@400;700&display=swap');

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Quattrocento Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background: #ffffff;
  color: #06283b;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Oswald', sans-serif; text-transform: uppercase; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --deep-steel: #164e87;
  --bright-steel: #147ec1;
  --pale-steel: #dfecf7;
  --bright-cyan: #55dde1;
  --dark-steel: #06283b;
  --mid-gray: #555555;
  --light-gray: #cccccc;
  --nav-glass: rgba(25, 75, 115, 0.85);
  --nav-glass-solid: rgba(25, 75, 115, 0.95);
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  height: 52px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  border: 1px solid rgba(255,255,255,0.4);
  background: var(--nav-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease-in-out;
}
.site-nav.scrolled {
  background: var(--nav-glass-solid);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.nav-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease-in-out;
}
.nav-links a:hover, .nav-links a.active { color: var(--bright-cyan); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--bright-cyan);
}
.nav-brochure {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 9999px;
  padding: 4px 16px;
  transition: all 0.3s ease-in-out;
}
.nav-brochure:hover { background: var(--bright-cyan); border-color: var(--bright-cyan); }

/* Mobile nav */
.mobile-toggle { display: none; flex-direction: column; gap: 6px; padding: 8px; background: none; border: none; cursor: pointer; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: #ffffff; transition: all 0.3s; }
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--dark-steel);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; display: flex; }
.mobile-overlay a {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mobile-overlay a:hover { color: var(--bright-cyan); }

@media (max-width: 768px) {
  .nav-brand { display: block !important; font-size: 16px; }
  .nav-links, .nav-brochure { display: none !important; }
  .mobile-toggle { display: flex !important; }
  .site-nav { gap: 0; justify-content: space-between; width: calc(100% - 32px); }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(6, 40, 59, 0.3) 0%, rgba(6, 40, 59, 0.6) 100%);
  pointer-events: none;
}
.hero-overlay-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(6, 40, 59, 0.4) 100%);
  opacity: 0.3;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 15vh 24px 80px;
}
.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(32px, 8vw, 140px);
  font-weight: 400;
  color: #ffffff;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
  text-transform: none;
  opacity: 0;
  transform: translateY(40px);
  animation: heroFadeIn 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) 0.2s forwards;
}
.hero-subtitle {
  font-family: 'Quattrocento Sans', sans-serif;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-top: 32px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.7s forwards;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 1s forwards;
}
.btn-primary {
  display: inline-block;
  background: var(--bright-steel);
  color: #ffffff;
  padding: 14px 36px;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.3s ease-in-out;
}
.btn-primary:hover { background: var(--bright-cyan); }
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 14px 36px;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease-in-out;
}
.btn-ghost:hover { border-color: var(--bright-cyan); color: var(--bright-cyan); }
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: heroFadeIn 0.6s ease 1.3s forwards;
  pointer-events: none;
}
.scroll-line { width: 1px; height: 40px; background: rgba(255,255,255,0.5); position: relative; }
.scroll-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bright-cyan);
  animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-indicator span {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
}

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(32px); opacity: 0.3; }
}

/* ============================================
   PORTFOLIO SLIDER
   ============================================ */
.portfolio-section { background: var(--dark-steel); }
.portfolio-slide { cursor: pointer; }
.portfolio-image-wrap {
  position: relative;
  width: 100%;
  height: 70vh;
  background: var(--dark-steel);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.portfolio-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,40,59,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  pointer-events: none;
}
.portfolio-slide:hover .portfolio-hover-overlay {
  background: rgba(6,40,59,0.3);
  pointer-events: auto;
}
.portfolio-view-full {
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: opacity 0.3s;
}
.portfolio-slide:hover .portfolio-view-full { opacity: 1; }
.portfolio-view-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
}
.portfolio-view-icon svg { stroke: #ffffff; }
.portfolio-view-full span {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.portfolio-caption {
  background: var(--dark-steel);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.portfolio-caption h3 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(16px, 2vw, 24px);
  color: #ffffff;
  text-transform: uppercase;
}
.portfolio-fraction {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}
.portfolio-nav-btn {
  position: absolute;
  top: 35vh;
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s;
}
.portfolio-nav-btn:hover { background: rgba(255,255,255,0.15); border-color: #ffffff; }
.portfolio-prev-btn { left: 24px; }
.portfolio-next-btn { right: 24px; }

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section { background: var(--pale-steel); }
.section-padding {
  padding: clamp(80px, 10vh, 140px) clamp(24px, 5vw, 80px);
}
.content-max-width {
  max-width: 1280px;
  margin: 0 auto;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: start;
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 55% 45%; }
}
.about-text { order: 2; }
.about-image { order: 1; }
@media (min-width: 1024px) {
  .about-text { order: 1; }
  .about-image { order: 2; margin-top: -40px; margin-bottom: 40px; }
}
.about-image img { box-shadow: 0 20px 60px rgba(6, 40, 59, 0.15); width: 100%; }

/* ============================================
   SECTION LABELS & HEADINGS
   ============================================ */
.section-label {
  font-family: 'Oswald', sans-serif;
  font-size: 60px;
  letter-spacing: 0.1em;
  color: var(--bright-cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.heading-dark {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(28px, 5vw, 80px);
  color: var(--dark-steel);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.heading-light {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(28px, 5vw, 80px);
  color: var(--pale-steel);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.body-text {
  font-family: 'Quattrocento Sans', sans-serif;
  font-size: 16px;
  color: var(--mid-gray);
  line-height: 1.6;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section { background: #ffffff; }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.service-card {
  background: linear-gradient(135deg, rgba(25,75,115,0.03) 0%, rgba(25,75,115,0.08) 100%);
  border: 1px solid var(--light-gray);
  padding: 40px;
  border-radius: 2px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease-in-out;
}
.service-card:hover {
  border-color: var(--bright-steel);
  box-shadow: 0 8px 30px rgba(20, 126, 193, 0.1);
}
.service-index {
  font-family: 'Oswald', sans-serif;
  font-size: 48px;
  color: rgba(20, 126, 193, 0.15);
  font-weight: 400;
}
.service-card:hover .service-index { color: rgba(20, 126, 193, 0.3); }
.service-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(18px, 2vw, 28px);
  color: var(--deep-steel);
  text-transform: uppercase;
  margin-top: 24px;
}
.service-desc {
  font-family: 'Quattrocento Sans', sans-serif;
  font-size: 15px;
  color: var(--mid-gray);
  line-height: 1.6;
  margin-top: 16px;
}
.service-divider { width: 100%; height: 1px; background: var(--light-gray); margin: 24px 0; }
.service-features { list-style: none; }
.service-features li {
  font-family: 'Quattrocento Sans', sans-serif;
  font-size: 14px;
  color: var(--mid-gray);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.service-features li::before {
  content: '+';
  color: var(--bright-cyan);
  font-size: 14px;
  flex-shrink: 0;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-section { background: var(--deep-steel); padding: 50px clamp(24px, 5vw, 80px); }
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
}
.team-photo-wrap {
  width: 320px;
  height: 320px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(85, 221, 225, 0.3);
  transition: border-color 0.3s;
}
.team-photo-wrap:hover { border-color: var(--bright-cyan); }
.team-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.team-name {
  font-family: 'Oswald', sans-serif;
  font-size: 48px;
  color: #ffffff;
  text-transform: uppercase;
  margin-top: 32px;
}
.team-role {
  font-family: 'Quattrocento Sans', sans-serif;
  font-size: 20px;
  color: var(--bright-cyan);
  margin-top: 16px;
}
.team-divider { width: 64px; height: 1px; background: rgba(255,255,255,0.2); margin: 24px auto; }
.team-email, .team-phone {
  font-family: 'Quattrocento Sans', sans-serif;
  font-size: 18px;
  color: rgba(255,255,255,0.7);
}
.team-email:hover { color: #ffffff; text-decoration: underline; }
.team-linkedin {
  display: inline-block;
  margin-top: 24px;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}
.team-linkedin:hover { color: var(--bright-cyan); }

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section { background: var(--deep-steel); padding: 80px 32px; }

/* ============================================
   FOOTER
   ============================================ */
.footer-section { background: var(--dark-steel); }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}
.marquee-text {
  white-space: nowrap;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.08);
  padding-right: 0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.footer-col-title {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  color: var(--bright-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-family: 'Quattrocento Sans', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  transition: color 0.3s;
}
.footer-col a:hover { color: #ffffff; }
.footer-col p {
  font-family: 'Quattrocento Sans', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}
.footer-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  color: #ffffff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-copyright {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
@media (min-width: 640px) {
  .footer-copyright { flex-direction: row; justify-content: space-between; }
}
.footer-copyright p, .footer-copyright a {
  font-family: 'Quattrocento Sans', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.footer-copyright a:hover { color: #ffffff; }

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 40, 59, 0.95);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}
.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 16px 16px;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 210;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 210;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: all 0.3s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-image-wrap { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 1200px; }
.lightbox-image-wrap img { max-width: 100%; max-height: 75vh; object-fit: contain; }
.lightbox-caption { text-align: center; margin-top: 24px; }
.lightbox-caption h3 { font-family: 'Oswald', sans-serif; font-size: 24px; color: #ffffff; text-transform: uppercase; }
.lightbox-counter { font-family: 'Oswald', sans-serif; font-size: 14px; color: rgba(255,255,255,0.5); margin-top: 16px; }
.lightbox-thumbs { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; max-width: 100%; padding: 0 16px; }
.lightbox-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.2s;
}
.lightbox-thumb:hover { opacity: 0.8; }
.lightbox-thumb.active { border-color: var(--bright-cyan); opacity: 1; }
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; }
