/* --------------------------------------------------------------------------
   DeepWater Construction & Renovation - Modern Styling Engine
   -------------------------------------------------------------------------- */


/* Google Fonts are loaded via functions.php wp_enqueue_style() */


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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--dw-font-body);
  background-color: var(--dw-dark);
  color: var(--dw-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--dw-font-heading);
  color: #FFFFFF;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--dw-primary);
  text-decoration: none;
  transition: var(--dw-transition);
}

a:hover {
  color: var(--dw-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--dw-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--dw-surface-border);
  border-radius: var(--dw-radius-md);
}

.glass-card {
  background: rgba(15, 25, 45, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--dw-radius-md);
  transition: var(--dw-transition);
}

.glass-card:hover {
  border-color: var(--dw-primary);
  transform: translateY(-5px);
  box-shadow: var(--dw-shadow-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.85rem;
  font-family: var(--dw-font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--dw-radius-sm);
  cursor: pointer;
  transition: var(--dw-transition);
  border: none;
  outline: none;
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(135deg, var(--dw-primary) 0%, #b89528 100%);
  color: #0F172A;
  box-shadow: var(--dw-shadow-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e5be44 0%, var(--dw-primary) 100%);
  color: #000;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid var(--dw-primary);
}

.btn-outline:hover {
  background: var(--dw-primary);
  color: #0F172A;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--dw-primary);
  color: var(--dw-primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--dw-text-muted);
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Header & Top Bar
   -------------------------------------------------------------------------- */
.top-bar {
  background: #050912;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  color: var(--dw-text-muted);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info, .top-bar-social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-info-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar-info-item svg, .top-bar-info-item i {
  color: var(--dw-primary);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 13, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(7, 13, 24, 0.98);
  border-bottom-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img.logo-img {
  height: 68px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(59, 130, 246, 0.35));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.site-logo:hover img.logo-img {
  filter: drop-shadow(0 4px 20px rgba(59, 130, 246, 0.55));
  transform: scale(1.03);
}

/* Legacy fallback – hidden when img logo is present */
.logo-icon { display: none; }
.logo-text { display: none; }

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.main-navigation a {
  color: #E2E8F0;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--dw-primary);
  transition: var(--dw-transition);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #FFF;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #070D18 0%, rgba(7, 13, 24, 0.85) 50%, rgba(7, 13, 24, 0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
}

.hero-title span {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--dw-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--dw-text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1.75rem;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--dw-surface-border);
  border-radius: var(--dw-radius-md);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--dw-font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dw-primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.825rem;
  color: var(--dw-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Single-Line Minimalist Services Section (Icon + Name Only)
   -------------------------------------------------------------------------- */
.services-section {
  padding: 6rem 0;
  background: #0A111F;
}

.services-single-line-wrapper {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--dw-primary) transparent;
}

.services-single-line-wrapper::-webkit-scrollbar {
  height: 6px;
}

.services-single-line-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.services-single-line-wrapper::-webkit-scrollbar-thumb {
  background: var(--dw-primary);
  border-radius: 10px;
}

.service-card-compact {
  flex: 0 0 230px;
  scroll-snap-align: start;
  padding: 2.25rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: rgba(15, 25, 45, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--dw-radius-md);
  transition: var(--dw-transition);
  cursor: pointer;
  text-decoration: none;
}

.service-card-compact:hover {
  border-color: var(--dw-primary);
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-6px);
  box-shadow: var(--dw-shadow-glow);
}

.service-big-icon {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(10, 25, 47, 0.5) 100%);
  border: 1px solid var(--dw-surface-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  color: var(--dw-primary);
  transition: var(--dw-transition);
}

.service-card-compact:hover .service-big-icon {
  background: var(--dw-primary);
  color: #070D18;
  transform: scale(1.1) rotate(4deg);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.service-name {
  font-family: var(--dw-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
  transition: var(--dw-transition);
}

.service-card-compact:hover .service-name {
  color: var(--dw-primary);
}

/* --------------------------------------------------------------------------
   Interactive Renovation Cost Estimator Calculator
   -------------------------------------------------------------------------- */
.calculator-section {
  padding: 6rem 0;
  background: var(--dw-dark);
  position: relative;
}

.calculator-wrapper {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.calc-card {
  padding: 2.5rem;
}

.calc-group {
  margin-bottom: 2rem;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.calc-label-val {
  color: var(--dw-primary);
  font-weight: 700;
}

.calc-range {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #1E293B;
  outline: none;
  accent-color: var(--dw-primary);
  cursor: pointer;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.option-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--dw-radius-sm);
  text-align: center;
  cursor: pointer;
  transition: var(--dw-transition);
}

.option-card input {
  display: none;
}

.option-card:hover, .option-card.active {
  border-color: var(--dw-primary);
  background: rgba(212, 175, 55, 0.1);
}

.option-card.active {
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.option-icon {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
  color: var(--dw-primary);
}

.option-title {
  font-size: 0.875rem;
  font-weight: 600;
}

.calc-summary-card {
  padding: 2.5rem;
  position: sticky;
  top: 105px;
  text-align: center;
  background: linear-gradient(180deg, rgba(15, 25, 45, 0.9) 0%, rgba(10, 17, 31, 0.95) 100%);
  border: 1px solid var(--dw-primary);
}

.estimate-price-badge {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dw-text-muted);
  margin-bottom: 0.5rem;
}

.estimate-price-amount {
  font-family: var(--dw-font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--dw-primary);
  margin-bottom: 1.5rem;
}

.estimate-breakdown-list {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.estimate-breakdown-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--dw-text-muted);
}

.estimate-breakdown-list li span:last-child {
  color: #FFF;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Before / After Renovation Comparison Slider
   -------------------------------------------------------------------------- */
.comparison-section {
  padding: 6rem 0;
  background: #0A111F;
}

.ba-slider-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 520px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--dw-radius-md);
  border: 1px solid var(--dw-surface-border);
  box-shadow: var(--dw-shadow-card);
  user-select: none;
}

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

.ba-image-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  width: 50%;
  z-index: 2;
}

.ba-image-before img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  height: 100%;
  width: 1000px;
  object-fit: cover;
}

.ba-badge {
  position: absolute;
  top: 20px;
  padding: 0.4rem 1rem;
  background: rgba(7, 13, 24, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFF;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  z-index: 10;
}

.ba-badge-before {
  left: 20px;
}

.ba-badge-after {
  right: 20px;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--dw-primary);
  z-index: 20;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
}

.ba-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--dw-primary);
  border: 3px solid #070D18;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #070D18;
  font-weight: bold;
  box-shadow: var(--dw-shadow-glow);
}

/* --------------------------------------------------------------------------
   Filterable Portfolio Showcase
   -------------------------------------------------------------------------- */
.portfolio-section {
  padding: 6rem 0;
  background: var(--dw-dark);
}

.portfolio-filter-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--dw-text-muted);
  border-radius: 50px;
  font-family: var(--dw-font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--dw-transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--dw-primary);
  color: #070D18;
  border-color: var(--dw-primary);
  box-shadow: var(--dw-shadow-glow);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-item {
  border-radius: var(--dw-radius-md);
  overflow: hidden;
  position: relative;
}

.project-thumb-wrapper {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.project-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-item:hover .project-thumb-wrapper img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 13, 24, 0.2) 0%, rgba(7, 13, 24, 0.95) 100%);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0.9;
  transition: var(--dw-transition);
}

.project-category {
  color: var(--dw-primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.project-meta-pills {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--dw-text-muted);
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Blueprint & Architecture Timeline Process
   -------------------------------------------------------------------------- */
.process-section {
  padding: 6rem 0;
  background: #0A111F;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  position: relative;
}

.timeline-card {
  padding: 2rem;
  position: relative;
}

.timeline-step {
  font-family: var(--dw-font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(212, 175, 55, 0.25);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.timeline-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonials-section {
  padding: 6rem 0;
  background: var(--dw-dark);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  padding: 2.25rem;
}

.rating-stars {
  color: var(--dw-primary);
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.2rem;
}

.testimonial-quote {
  font-style: italic;
  color: var(--dw-text-main);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dw-primary);
  color: #070D18;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.author-role {
  font-size: 0.8rem;
  color: var(--dw-text-muted);
}

/* --------------------------------------------------------------------------
   Quote Request Modal
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--dw-transition);
}

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

.modal-box {
  width: 90%;
  max-width: 600px;
  background: #0A111F;
  border: 1px solid var(--dw-primary);
  border-radius: var(--dw-radius-md);
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  transform: translateY(20px);
  transition: var(--dw-transition);
}

.modal-backdrop.active .modal-box {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--dw-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #FFF;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--dw-radius-sm);
  color: #FFF;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--dw-transition);
}

.form-control:focus {
  border-color: var(--dw-primary);
  background: rgba(212, 175, 55, 0.05);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #040810;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5rem 0 2rem 0;
  color: var(--dw-text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-widget-title {
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-widget-title::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--dw-primary);
  margin-top: 0.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--dw-text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--dw-primary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--dw-primary);
  color: #070D18;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--dw-shadow-glow);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: var(--dw-transition);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   RESPONSIVE — Full Coverage
   Breakpoints: 1100 | 992 | 768 | 480
   ========================================================================== */

/* ---- Tablet Large (1100px) -------------------------------------------- */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 2rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .calculator-wrapper {
    grid-template-columns: 1fr;
  }

  .calc-summary-card {
    position: static;
  }
}

/* ---- Tablet (992px) ---------------------------------------------------- */
@media (max-width: 992px) {

  /* Top Bar */
  .top-bar { display: none; }

  /* Header */
  .header-inner { height: 70px; }

  .main-navigation { display: none; }

  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--dw-radius-sm);
    color: var(--dw-primary);
    font-size: 1.15rem;
    cursor: pointer;
    transition: var(--dw-transition);
  }

  .mobile-menu-toggle:hover {
    background: rgba(212, 175, 55, 0.2);
  }

  /* Mobile Nav Drawer — rendered as body-level overlay via JS */
  .mobile-nav-overlay {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 13, 24, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9998;
    padding: 100px 2rem 2rem;
    overflow-y: auto;
    animation: slideDown 0.35s ease;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .mobile-nav-overlay ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
  }

  .mobile-nav-overlay ul li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.15rem 0;
    font-size: 1.3rem;
    font-family: var(--dw-font-heading);
    font-weight: 600;
    color: #E2E8F0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
  }

  .mobile-nav-overlay ul li a:hover,
  .mobile-nav-overlay ul li.current-menu-item a,
  .mobile-nav-overlay ul li a:active {
    color: var(--dw-primary);
    padding-left: 0.75rem;
  }

  /* Ensure header stays above the overlay */
  .site-header { z-index: 9999; }

  /* Logo */
  .site-logo img.logo-img { height: 52px; }

  /* Hero */
  .hero-section { min-height: 85vh; }

  .hero-title { font-size: 2.6rem; }

  .hero-subtitle { font-size: 1.05rem; }

  .hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.25rem;
  }

  /* Services */
  .service-card-compact { flex: 0 0 180px; }

  /* Calculator */
  .calculator-wrapper { grid-template-columns: 1fr; }

  .calc-summary-card { position: static; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

  /* Timeline */
  .timeline-grid { grid-template-columns: repeat(2, 1fr); }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand { grid-column: 1 / -1; }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ---- Mobile Large (768px) ---------------------------------------------- */
@media (max-width: 768px) {

  /* Typography */
  .section-title { font-size: 2rem; }
  .section-subtitle { font-size: 1rem; }
  .section-header { margin-bottom: 2.5rem; }

  /* Hero */
  .hero-section {
    min-height: auto;
    padding: 7rem 0 4rem;
  }

  .hero-title { font-size: 2.1rem; line-height: 1.25; }
  .hero-subtitle { font-size: 0.98rem; margin-bottom: 1.75rem; }

  .hero-content { max-width: 100%; }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(7, 13, 24, 0.92) 0%, rgba(7, 13, 24, 0.8) 100%);
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.85rem;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    padding: 1rem;
  }

  .stat-number { font-size: 1.75rem; }

  /* Services */
  .services-section { padding: 4rem 0; }

  .service-card-compact {
    flex: 0 0 155px;
    padding: 1.5rem 1rem;
    gap: 0.9rem;
  }

  .service-big-icon {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
  }

  .service-name { font-size: 0.95rem; }

  /* Calculator */
  .calculator-section { padding: 4rem 0; }

  .calc-card { padding: 1.5rem; }

  .calc-summary-card { padding: 1.5rem; }

  .estimate-price-amount { font-size: 2.25rem; }

  .option-grid { grid-template-columns: 1fr 1fr 1fr; }

  /* Before/After */
  .comparison-section { padding: 4rem 0; }

  .ba-slider-container {
    height: 320px;
    border-radius: var(--dw-radius-sm);
  }

  /* Portfolio */
  .portfolio-section { padding: 4rem 0; }

  .portfolio-grid { grid-template-columns: 1fr; gap: 1.25rem; }

  .project-thumb-wrapper { height: 240px; }

  .portfolio-filter-bar { gap: 0.6rem; }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  /* Timeline */
  .process-section { padding: 4rem 0; }

  .timeline-grid { grid-template-columns: 1fr; gap: 1.25rem; }

  .timeline-card { padding: 1.5rem; }

  /* Testimonials */
  .testimonials-section { padding: 4rem 0; }

  .testimonials-grid { grid-template-columns: 1fr; gap: 1.25rem; }

  /* Modal */
  .modal-box {
    width: 95%;
    padding: 1.75rem 1.25rem;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-box > div:first-of-type h3 { font-size: 1.4rem; }

  /* Forms */
  div[style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand { grid-column: auto; }

  .site-footer { padding: 3rem 0 1.5rem; }

  /* Scroll Top */
  .scroll-top-btn {
    width: 40px;
    height: 40px;
    bottom: 1.25rem;
    right: 1.25rem;
  }
}

/* ---- Mobile Small (480px) ---------------------------------------------- */
@media (max-width: 480px) {

  /* Base spacing */
  .container { padding: 0 1rem; }

  /* Logo */
  .site-logo img.logo-img { height: 44px; }

  /* Hero */
  .hero-title { font-size: 1.75rem; }

  .hero-stats-bar {
    grid-template-columns: 1fr 1fr;
    padding: 0.85rem;
    gap: 0.6rem;
  }

  .stat-number { font-size: 1.5rem; }
  .stat-label { font-size: 0.72rem; }

  /* Section titles */
  .section-title { font-size: 1.65rem; }

  /* Services row — smaller cards, still scroll horizontally */
  .service-card-compact {
    flex: 0 0 135px;
    padding: 1.25rem 0.75rem;
    gap: 0.75rem;
  }

  .service-big-icon {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  .service-name { font-size: 0.85rem; }

  /* Calculator options */
  .option-grid { grid-template-columns: 1fr; }

  /* Before/After */
  .ba-slider-container { height: 240px; }

  .ba-badge { font-size: 0.7rem; padding: 0.3rem 0.6rem; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: 1fr; }

  .project-thumb-wrapper { height: 200px; }

  /* Testimonials */
  .testimonial-card { padding: 1.5rem; }

  /* Modal */
  .modal-box { padding: 1.25rem 1rem; }

  /* Header Get Quote button - hide text, show icon only */
  .header-actions .btn-primary span { display: none; }

  .header-actions .btn-primary {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    gap: 0;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.78rem;
  }
}

/* ---- Landscape phone safe zone --------------------------------------- */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 5rem 0 3rem;
  }

  .hero-title { font-size: 1.85rem; }

  .ba-slider-container { height: 260px; }
}
