/* DubaiDB Home Improvements — theme aligned with Fllopi / roofing reference */
:root {
  --primary: #ff4d4d;
  --primary-dark: #e63939;
  --primary-light: #ff7070;
  --dark: #1c1c1c;
  --dark-2: #252525;
  --dark-3: #111;
  --text: #666666;
  --text-dark: #333333;
  --heading: #1a1a1a;
  --white: #ffffff;
  --off-white: #f7f7f5;
  --gray-bg: #f0f0f0;
  --border: #e8e8e8;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --radius: 4px;
  --font: "Poppins", system-ui, sans-serif;
  --container: 1240px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

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

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--heading);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-light:hover {
  background: var(--off-white);
  color: var(--primary-dark);
}

.btn-block {
  width: 100%;
}

.section {
  padding: 90px 0;
}

.section-sm {
  padding: 60px 0;
}

.section-gray {
  background: var(--off-white);
}

.section-dark {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

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

.subtitle {
  display: inline-block;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.subtitle::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--primary);
  vertical-align: middle;
  margin-right: 10px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 720px;
}

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

.section-desc {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-desc.center {
  margin-left: auto;
  margin-right: auto;
}

/* Header */
.top-bar {
  background: var(--dark-3);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 10px 0;
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.top-bar-left {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.top-bar-left a {
  color: rgba(255, 255, 255, 0.9);
}

.top-bar-left a:hover {
  color: var(--primary);
}

.top-bar-left i {
  color: var(--primary);
  margin-right: 6px;
}

.top-bar-social {
  display: flex;
  gap: 12px;
}

.top-bar-social a {
  color: rgba(255, 255, 255, 0.8);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  font-size: 12px;
}

.top-bar-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.main-nav-wrap {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  flex-shrink: 0;
  min-width: 0;
}

.brand img {
  flex-shrink: 0;
}

.brand:hover {
  color: var(--heading);
}

.brand-text {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-text strong {
  font-size: 19px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.main-nav ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
}

.main-nav a {
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 9px;
  display: block;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

.nav-cta {
  margin-left: 8px;
  padding: 11px 18px;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--dark);
  display: block;
}

/* Hero */
.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  background: var(--dark) center / cover no-repeat;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.45));
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 120px;
}

.hero .subtitle {
  color: var(--primary);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.25rem);
  max-width: 800px;
  margin: 0 auto 1rem;
}

.hero-lead {
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: 17px;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.hero-cards {
  margin-top: -70px;
  position: relative;
  z-index: 2;
  padding-bottom: 40px;
}

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

.hero-card {
  background: var(--white);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: relative;
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition);
}

.hero-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 36px 36px 0;
  border-color: transparent var(--primary) transparent transparent;
}

.hero-card:hover {
  border-bottom-color: var(--primary);
}

.hero-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 77, 77, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.hero-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.hero-card p {
  font-size: 14px;
  margin: 0;
}

/* About block */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media img {
  width: 100%;
  border-radius: var(--radius);
}

.about-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--primary);
  color: var(--white);
  padding: 20px 24px;
  text-align: center;
  min-width: 140px;
}

.about-badge strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.feature-list {
  margin-top: 1.5rem;
}

.feature-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.feature-list i {
  color: var(--primary);
  margin-top: 4px;
  flex-shrink: 0;
}

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card-body {
  padding: 28px 24px 32px;
  position: relative;
}

.service-card-icon {
  position: absolute;
  top: -28px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.read-more {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Why choose */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.benefit-card {
  background: var(--white);
  padding: 24px;
  border-left: 3px solid var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.benefit-card i {
  color: var(--primary);
  font-size: 28px;
  margin-bottom: 12px;
}

.benefit-card h4 {
  font-size: 17px;
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 14px;
  margin: 0;
}

.why-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

/* Stats */
.stats-bar {
  background: var(--gray-bg);
  padding: 50px 0;
}

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

.stat-item strong {
  display: block;
  font-size: 2.5rem;
  color: var(--heading);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item span {
  font-size: 14px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

.project-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-item:hover img {
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 77, 77, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.project-overlay span {
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Video band */
.video-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  background: var(--dark) center / cover no-repeat;
  position: relative;
}

.video-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 28, 0.88);
}

.video-band > * {
  position: relative;
  z-index: 1;
}

.video-play {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.play-btn {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 4px solid rgba(255, 255, 255, 0.3);
}

.video-content {
  padding: 50px 40px 50px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
}

.accordion-item h4 {
  color: var(--white);
  font-size: 16px;
  margin: 0;
}

.accordion-item p {
  font-size: 14px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.65);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
}

.testimonial-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.stars {
  color: #ffb400;
  font-size: 14px;
  margin-bottom: 8px;
}

.testimonial-card h4 {
  font-size: 17px;
  margin-bottom: 4px;
}

.testimonial-role {
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 10px;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-meta {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 10px;
}

.blog-meta i {
  color: var(--primary);
  margin-right: 6px;
}

/* Page header */
.page-hero {
  background: var(--dark) center / cover no-repeat;
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  color: var(--white);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

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

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

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

/* Forms */
.form-card {
  background: var(--white);
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

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

.form-control {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  cursor: pointer;
}

.checkbox-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 2px 0 0;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-field label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
  margin: 0;
  flex: 1;
}

.form-group.has-error .form-control,
.checkbox-field.has-error {
  border-color: var(--primary);
}

.checkbox-field.has-error label {
  color: var(--primary-dark);
}

.field-error {
  display: block;
  font-size: 13px;
  color: var(--primary-dark);
  margin-top: 6px;
}

.form-success {
  background: rgba(255, 77, 77, 0.08);
  border: 1px solid var(--primary);
  color: var(--heading);
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  font-weight: 500;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.info-box {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px;
}

.info-box h3 {
  color: var(--white);
}

.info-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.info-list i {
  color: var(--primary);
  margin-top: 4px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 40px 32px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: scale(1.03);
}

.pricing-card .price {
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 700;
}

.pricing-card .price small {
  font-size: 14px;
  color: var(--text);
  font-weight: 400;
}

.pricing-features {
  text-align: left;
  margin: 24px 0;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  display: flex;
  gap: 10px;
}

.pricing-features i {
  color: var(--primary);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-card-body {
  padding: 24px 16px;
}

.team-card h4 {
  margin-bottom: 4px;
}

.team-role {
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.team-social a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border-radius: 50%;
  font-size: 13px;
}

.team-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Legal content */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Footer */
.footer-cta {
  background: var(--primary);
  color: var(--white);
  padding: 40px 0;
}

.footer-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-cta h3 {
  color: var(--white);
  margin-bottom: 6px;
}

.footer-cta p {
  margin: 0;
  opacity: 0.95;
}

.footer-main {
  background: var(--dark-2);
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 14px;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-brand .brand-text strong {
  color: var(--white);
}

.footer-brand .brand-tagline {
  color: rgba(255, 255, 255, 0.75);
}

.footer-brand img {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--primary);
}

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

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 50%;
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-newsletter .form-control {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.footer-newsletter .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter .checkbox-field label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.footer-bottom {
  background: var(--dark-3);
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-legal a:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-card-grid,
  .service-grid,
  .blog-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .main-nav a {
    font-size: 12px;
    padding: 10px 7px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-tagline {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .nav-cta {
    padding: 10px 14px;
    font-size: 10px;
  }
}

@media (max-width: 900px) {
  .about-grid,
  .why-grid,
  .contact-layout,
  .video-band {
    grid-template-columns: 1fr;
  }

  .video-content {
    padding: 0 20px 40px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 100px 24px 40px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  body.nav-open .main-nav {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-cta {
    margin: 20px 0 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 60px 0;
  }

  .hero-card-grid,
  .service-grid,
  .blog-grid,
  .testimonial-grid,
  .benefit-grid,
  .pricing-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .team-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 520px;
  }

  .hero-cards {
    margin-top: -40px;
  }

  .pricing-card.featured {
    transform: none;
  }

  .testimonial-card {
    flex-direction: column;
    text-align: center;
  }

  .testimonial-card img {
    margin: 0 auto;
  }

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

  .form-card {
    padding: 24px;
  }
}
