/*
Theme Name: CSC Engineering
Theme URI: https://cscengineering.ca
Author: CSC Engineering Inc.
Author URI: https://cscengineering.ca
Description: A modern, professional WordPress theme for CSC Engineering Inc. structural engineering and construction services. Fully customizable with Elementor compatibility and custom styling for engineering portfolios and service showcases.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: csc-engineering
Tags: engineering, construction, portfolio, services, business, corporate, modern, responsive, elementor, one-column, two-columns, custom-logo, custom-menu, featured-images, theme-options

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* CSS Variables */
:root {
  --red: #E63329;
  --navy: #2B3A4A;
  --charcoal: #1E1E1E;
  --mid: #4A5568;
  --light: #F7F7F5;
  --white: #FFFFFF;
  --border: #E2E2DC;
  --accent-light: #FFF0EF;
}

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

html { 
  scroll-behavior: smooth; 
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--charcoal);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--charcoal);
}

h1 { font-size: clamp(32px, 4vw, 48px); }
h2 { font-size: clamp(28px, 3.5vw, 40px); }
h3 { font-size: clamp(24px, 3vw, 32px); }
h4 { font-size: clamp(20px, 2.5vw, 28px); }
h5 { font-size: clamp(18px, 2vw, 24px); }
h6 { font-size: clamp(16px, 1.5vw, 20px); }

p {
  margin-bottom: 1.2rem;
  color: var(--mid);
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #c9281f;
}

/* Navigation */
#navbar {
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  z-index: 100;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 0 60px;
  height: 72px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}

#navbar.scrolled { 
  box-shadow: 0 4px 24px rgba(0,0,0,.08); 
}

.nav-logo {
  display: flex; 
  align-items: center; 
  gap: 10px; 
  text-decoration: none;
}

.logo-mark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px; 
  letter-spacing: 2px; 
  line-height: 1;
  display: flex; 
  gap: 1px;
}

.logo-mark .c { color: var(--red); }
.logo-mark .s { color: var(--navy); }

.logo-divider { 
  width: 1px; 
  height: 28px; 
  background: var(--border); 
  margin: 0 10px; 
}

.logo-text {
  font-size: 11px; 
  font-weight: 600; 
  letter-spacing: 2px;
  text-transform: uppercase; 
  color: var(--charcoal); 
  line-height: 1.3;
}

.nav-links { 
  display: flex; 
  gap: 36px; 
  list-style: none; 
}

.nav-links a {
  text-decoration: none; 
  font-size: 13px; 
  font-weight: 500;
  color: var(--mid); 
  letter-spacing: .5px;
  transition: color .2s;
}

.nav-links a:hover { 
  color: var(--red); 
}

.nav-cta {
  background: var(--red); 
  color: var(--white);
  border: none; 
  padding: 10px 22px;
  font-family: 'DM Sans', sans-serif; 
  font-size: 13px; 
  font-weight: 600;
  letter-spacing: .5px; 
  cursor: pointer;
  transition: background .2s, transform .15s;
  text-decoration: none;
}

.nav-cta:hover { 
  background: #c9281f; 
  transform: translateY(-1px); 
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--charcoal);
  transition: all 0.3s ease;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  margin-top: 72px;
  height: calc(100vh - 72px);
  min-height: 560px;
  overflow: hidden;
  background: var(--navy);
}

.slides-track {
  display: flex;
  height: 100%;
  transition: transform .7s cubic-bezier(.77,0,.175,1);
}

.slide {
  min-width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.slide-left {
  background: var(--navy);
  padding: 80px 60px 80px 80px;
  display: flex; 
  flex-direction: column; 
  justify-content: center;
  position: relative; 
  overflow: hidden;
  z-index: 1;
}

.slide-left::before {
  content: 'CSC';
  position: absolute; 
  bottom: -40px; 
  left: -20px;
  font-family: 'Bebas Neue', sans-serif; 
  font-size: 280px;
  color: rgba(255,255,255,.04); 
  line-height: 1; 
  pointer-events: none;
}

.slide-tag {
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  font-size: 11px; 
  font-weight: 600; 
  letter-spacing: 3px;
  text-transform: uppercase; 
  color: var(--red);
  margin-bottom: 24px;
  opacity: 0; 
  transform: translateY(16px);
  transition: opacity .5s .2s, transform .5s .2s;
}

.slide-tag::before { 
  content: ''; 
  width: 24px; 
  height: 2px; 
  background: var(--red); 
}

.slide-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1.08; 
  color: var(--white);
  margin-bottom: 20px;
  opacity: 0; 
  transform: translateY(20px);
  transition: opacity .5s .32s, transform .5s .32s;
}

.slide-headline em { 
  color: var(--red); 
  font-style: italic; 
}

.slide-sub {
  font-size: 15px; 
  font-weight: 300; 
  line-height: 1.75;
  color: rgba(255,255,255,.62);
  max-width: 400px; 
  margin-bottom: 40px;
  opacity: 0; 
  transform: translateY(16px);
  transition: opacity .5s .44s, transform .5s .44s;
}

.slide-btns {
  display: flex; 
  gap: 14px; 
  flex-wrap: wrap;
  opacity: 0; 
  transform: translateY(14px);
  transition: opacity .5s .56s, transform .5s .56s;
}

.slide.active .slide-tag,
.slide.active .slide-headline,
.slide.active .slide-sub,
.slide.active .slide-btns {
  opacity: 1; 
  transform: translateY(0);
}

.btn-primary {
  background: var(--red); 
  color: var(--white);
  padding: 13px 28px; 
  font-size: 13px; 
  font-weight: 600;
  letter-spacing: .5px; 
  text-decoration: none; 
  border: 2px solid var(--red);
  transition: background .2s, transform .15s;
  display: inline-block;
}

.btn-primary:hover { 
  background: #c9281f; 
  border-color: #c9281f; 
  transform: translateY(-2px); 
}

.btn-outline {
  background: transparent; 
  color: var(--white);
  padding: 13px 28px; 
  font-size: 13px; 
  font-weight: 600;
  letter-spacing: .5px; 
  text-decoration: none; 
  border: 2px solid rgba(255,255,255,.3);
  transition: border-color .2s, transform .15s;
  display: inline-block;
}

.btn-outline:hover { 
  border-color: rgba(255,255,255,.7); 
  transform: translateY(-2px); 
}

.slide-right {
  position: relative; 
  overflow: hidden;
}

.slide-right img {
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  filter: grayscale(15%);
  transform: scale(1.06);
  transition: transform 7s ease;
}

.slide.active .slide-right img { 
  transform: scale(1); 
}

.slide-badge {
  position: absolute; 
  bottom: 40px; 
  left: 0;
  background: var(--red); 
  color: var(--white);
  padding: 16px 22px;
  font-size: 11px; 
  font-weight: 700; 
  letter-spacing: 1.5px; 
  text-transform: uppercase;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 40px;
  right: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.slider-arrows {
  display: flex;
  gap: 12px;
}

.arrow-btn {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
}

.arrow-btn:hover {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.2);
  transform: scale(1.05);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dot.active {
  background: var(--white);
  transform: scale(1.2);
}

.slider-counter {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  min-width: 40px;
  text-align: center;
}

.slider-progress {
  width: 60px;
  height: 2px;
  background: rgba(255,255,255,.3);
  border-radius: 1px;
  overflow: hidden;
}

.slider-progress-bar {
  height: 100%;
  background: var(--white);
  width: 0%;
  transition: width 5.5s linear;
}

/* Content Sections */
section {
  padding: 80px 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-tag {
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  font-size: 11px; 
  font-weight: 600; 
  letter-spacing: 3px;
  text-transform: uppercase; 
  color: var(--red);
  margin-bottom: 24px;
}

.section-tag::before { 
  content: ''; 
  width: 24px; 
  height: 2px; 
  background: var(--red); 
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08; 
  color: var(--charcoal);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 18px; 
  font-weight: 300; 
  line-height: 1.75;
  color: var(--mid);
  max-width: 600px; 
  margin-bottom: 40px;
}

/* About Section */
.about-section {
  background: var(--light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: grayscale(15%);
  transition: filter 0.3s ease;
}

.about-image:hover img {
  filter: grayscale(0%);
}

.about-exp-badge {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: var(--red);
  color: var(--white);
  padding: 20px;
  text-align: center;
  border-radius: 8px;
}

.about-exp-badge .num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 5px;
}

.about-exp-badge .lbl {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.about-feature {
  padding: 20px;
  background: var(--white);
  border-radius: 8px;
  border-left: 3px solid var(--red);
}

.about-feature h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--charcoal);
}

.about-feature p {
  font-size: 14px;
  color: var(--mid);
  margin-bottom: 0;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.service-card {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-color: var(--red);
}

.service-number {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: rgba(230, 51, 41, 0.1);
  font-weight: 700;
}

.service-icon {
  font-size: 48px;
  color: var(--red);
  margin-bottom: 20px;
}

.service-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--charcoal);
}

.service-description {
  font-size: 14px;
  color: var(--mid);
  margin-bottom: 20px;
}

.service-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s ease;
}

.service-link:hover {
  gap: 10px;
}

/* Portfolio Hero Section */
.portfolio-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2a3a 100%);
  color: var(--white);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.portfolio-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.portfolio-hero .container {
  position: relative;
  z-index: 1;
}

/* Portfolio Filters */
.portfolio-filters {
  background: var(--light);
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.filter-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--light);
}

.filter-header h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0;
}

.filter-count {
  font-size: 16px;
  color: var(--mid);
  font-weight: 500;
}

.filter-count span {
  color: var(--red);
  font-weight: 700;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--mid);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.filter-btn:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(230, 51, 41, 0.2);
}

.filter-btn.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.filter-icon {
  font-size: 18px;
}

.filter-text {
  font-weight: 600;
}

.filter-count-badge {
  background: rgba(0,0,0,0.1);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.filter-btn.active .filter-count-badge {
  background: rgba(255,255,255,0.3);
}

/* Portfolio Grid Section */
.portfolio-grid-section {
  padding: 80px 0;
  background: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.portfolio-item {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.portfolio-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.overlay-content {
  color: var(--white);
}

.portfolio-category {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--red);
}

.portfolio-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.portfolio-link {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s ease;
}

.portfolio-link:hover {
  gap: 10px;
}

.portfolio-info {
  padding: 20px;
}

.portfolio-info .portfolio-category {
  color: var(--red);
  font-size: 11px;
  margin-bottom: 8px;
}

.portfolio-info .portfolio-title {
  color: var(--charcoal);
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.portfolio-brief {
  color: var(--mid);
  font-size: 14px;
  line-height: 1.6;
}

.portfolio-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.portfolio-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-item-inner {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  position: relative;
}

.portfolio-item-inner:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  border-color: var(--red);
}

.portfolio-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.portfolio-item-inner:hover .portfolio-image {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 100%);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 30px;
}

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

.overlay-content {
  width: 100%;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.portfolio-item-inner:hover .overlay-content {
  transform: translateY(0);
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.portfolio-category {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 20px;
}

.project-status {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

.project-status.completed {
  background: rgba(40, 167, 69, 0.8);
}

.project-status.in-progress {
  background: rgba(255, 193, 7, 0.8);
}

.project-status.planning {
  background: rgba(23, 162, 184, 0.8);
}

.portfolio-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 15px;
  line-height: 1.3;
}

.portfolio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.meta-icon {
  font-size: 14px;
}

.portfolio-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.portfolio-link:hover {
  background: #c9281f;
  transform: translateX(5px);
}

.portfolio-link .arrow {
  transition: transform 0.3s ease;
}

.portfolio-link:hover .arrow {
  transform: translateX(3px);
}

.portfolio-favorite {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 18px;
}

.portfolio-favorite:hover {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.1);
}

.portfolio-favorite.favorited .heart-icon {
  color: var(--red);
}

.portfolio-info {
  padding: 25px;
}

.portfolio-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.portfolio-info .portfolio-category {
  color: var(--red);
  background: rgba(230, 51, 41, 0.1);
  font-size: 11px;
}

.project-number {
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
}

.portfolio-info .portfolio-title {
  color: var(--charcoal);
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.portfolio-brief {
  color: var(--mid);
  font-size: 14px;
  line-height: 1.6;
}

/* Load More Button */
.portfolio-load-more {
  text-align: center;
  margin-top: 60px;
}

.portfolio-load-more .btn-outline {
  padding: 15px 35px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.portfolio-load-more .btn-outline:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Contact Section */
.contact-section {
  background: var(--navy);
  color: var(--white);
}

.contact-section .section-tag {
  color: var(--white);
}

.contact-section .section-tag::before {
  background: var(--white);
}

.contact-section .section-title {
  color: var(--white);
}

.contact-section .section-sub {
  color: rgba(255,255,255,0.7);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--white);
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--white);
}

.contact-details p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0;
}

.contact-form {
  background: rgba(255,255,255,0.05);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: var(--white);
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255,255,255,0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.form-submit:hover {
  background: #c9281f;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  margin-bottom: 15px;
  color: var(--white);
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--red);
  transform: translateY(-2px);
}

.footer-column h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-links.active {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  
  .nav-cta {
    display: none;
  }
  
  .slide {
    grid-template-columns: 1fr;
  }
  
  .slide-left {
    padding: 60px 40px;
  }
  
  .slide-right {
    display: none;
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  /* Portfolio Responsive */
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .filter-wrapper {
    padding: 30px;
  }
  
  .filter-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .filter-buttons {
    gap: 10px;
  }
  
  .filter-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .portfolio-image-wrapper {
    height: 240px;
  }
  
  .portfolio-overlay {
    padding: 20px;
  }
  
  .portfolio-title {
    font-size: 18px;
  }
  
  .portfolio-meta {
    gap: 10px;
  }
  
  .meta-item {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  #navbar {
    padding: 0 20px;
  }
  
  section {
    padding: 60px 0;
  }
  
  .slide-left {
    padding: 40px 20px;
  }
  
  .slider-controls {
    bottom: 20px;
    right: 20px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .about-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  /* Portfolio Mobile Responsive */
  .portfolio-hero {
    padding: 100px 0 60px;
  }
  
  .portfolio-filters {
    padding: 40px 0;
  }
  
  .filter-wrapper {
    padding: 25px;
  }
  
  .filter-header h3 {
    font-size: 20px;
  }
  
  .filter-buttons {
    gap: 8px;
  }
  
  .filter-btn {
    padding: 8px 14px;
    font-size: 12px;
    flex: 1;
    min-width: 0;
  }
  
  .filter-icon {
    font-size: 16px;
  }
  
  .filter-text {
    display: none;
  }
  
  .filter-count-badge {
    font-size: 11px;
    padding: 2px 6px;
  }
  
  .portfolio-grid-section {
    padding: 60px 0;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 40px;
  }
  
  .portfolio-image-wrapper {
    height: 200px;
  }
  
  .portfolio-overlay {
    padding: 15px;
  }
  
  .portfolio-title {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .portfolio-meta {
    gap: 8px;
    margin-bottom: 15px;
  }
  
  .meta-item {
    font-size: 11px;
  }
  
  .portfolio-actions {
    gap: 10px;
  }
  
  .portfolio-link {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .portfolio-favorite {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .portfolio-info {
    padding: 20px;
  }
  
  .portfolio-info-header {
    margin-bottom: 10px;
  }
  
  .portfolio-info .portfolio-title {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .portfolio-brief {
    font-size: 13px;
  }
}

/* WordPress Core Styles */
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: left;
  margin-right: 1.5em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
}

.wp-caption-text {
  font-size: 14px;
  color: var(--mid);
  text-align: center;
  margin-top: 10px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Elementor Compatibility */
.elementor-section .elementor-container {
  max-width: 1200px;
  margin: 0 auto;
}

.elementor-widget-heading .elementor-heading-title {
  font-family: 'DM Serif Display', serif;
  color: var(--charcoal);
}

.elementor-button {
  background: var(--red) !important;
  color: var(--white) !important;
  border: none !important;
  padding: 13px 28px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
}

.elementor-button:hover {
  background: #c9281f !important;
}

/* Accessibility */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .nav-toggle,
  .slider-controls,
  .btn-primary,
  .btn-outline,
  .form-submit {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }
  
  .hero-slider {
    height: auto;
    min-height: auto;
  }
  
  .slide-left {
    padding: 20px;
  }
}
