/* --- Variables & Theme Settings --- */
:root {
  /* Brand Colors */
  --primary: #2c3e50; /* Dark Slate - Softer than black */
  --secondary: #34495e; /* Lighter Slate */
  --accent: #c0392b; /* Brick Red - Slightly deeper, less neon than original */
  --accent-hover: #a93226;

  /* Backgrounds - The "Eye Comfort" Palette */
  --bg-body: #f0f2f5; /* Soft Light Gray - Prevents eye strain */
  --bg-card: #ffffff; /* Pure White - Only for cards/content */
  --bg-dark: #1a252f;

  /* Text Colors */
  --text-main: #2c3e50;
  --text-muted: #64748b; /* Cool Gray for paragraphs */
  --text-light: #ecf0f1;

  /* Borders & Shadows */
  --border: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06); /* Softer shadow */
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);

  /* Animation & Fonts */
  --transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-heading: 'Bebas Neue', cursive;
  --font-body: 'Manrope', sans-serif;

  --color-slate-50: #f8fafc;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  --color-white: #ffffff;
  --font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-body); /* Changed from white to soft gray */
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* --- Utility Classes --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-padding {
  padding: 100px 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 35px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(192, 57, 43, 0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
  border-color: white;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  letter-spacing: 2px;
  margin-bottom: 15px;
  color: var(--primary);
}

.divider {
  width: 60px;
  height: 5px;
  background: var(--accent);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Navigation (Glassmorphism) --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

.navbar.scrolled {
  background: rgba(44, 62, 80, 0.95); /* Deep Slate */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 15px 0;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: white;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-links a:not(.nav-btn)::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-btn {
  background: var(--accent);
  padding: 10px 25px;
  border-radius: 4px;
  color: white !important;
}

.nav-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: white;
  margin: 6px 0;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  background-image: url('https://images.unsplash.com/photo-1621251341109-7a718c3938b8?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Deeper, richer gradient */
  background: linear-gradient(
    135deg,
    rgba(26, 37, 47, 0.92),
    rgba(44, 62, 80, 0.7),
    rgba(192, 57, 43, 0.4)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
  padding: 0 20px;
  animation: fadeUp 1s ease-out;
}

.badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
  margin-bottom: 25px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 5.5rem;
  line-height: 1;
  margin-bottom: 25px;
  letter-spacing: 3px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.35rem;
  margin-bottom: 45px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.7;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid white;
  border-radius: 20px;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 6px;
  background: white;
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    top: 8px;
    opacity: 1;
  }
  100% {
    top: 20px;
    opacity: 0;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--bg-card);
  margin-top: -60px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-md);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  padding: 40px;
  display: flex;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 100%;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  padding: 0 20px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item i {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.9;
}

.stat-item h3 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  line-height: 1;
  color: var(--primary);
}

.stat-item p {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Services (Cards) --- */
.services {
  background: var(--bg-body); /* Main background is soft gray */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-card); /* Card is white - popping off the gray */
  padding: 45px 35px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--accent);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
  width: 100%;
}

.icon-box {
  width: 70px;
  height: 70px;
  background: #fdf2f2; /* Very light tint of accent */
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 25px;
  transition: var(--transition);
}

.service-card:hover .icon-box {
  background: var(--accent);
  color: white;
  border-radius: 50%;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 700;
  color: var(--primary);
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1rem;
  flex-grow: 1;
}

.read-more {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.read-more i {
  transition: var(--transition);
}
.service-card:hover .read-more i {
  transform: translateX(10px);
}

/* --- Why Us --- */
.why-us {
  background: white; /* Break up the gray with a white section */
  position: relative;
}

.why-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 15px;
}

.feature {
  display: flex;
  gap: 25px;
  margin-bottom: 40px;
}

.check-icon {
  min-width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 10px 20px rgba(44, 62, 80, 0.2);
}

.feature h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

.feature p {
  color: var(--text-muted);
}

.why-image {
  position: relative;
}

.why-image img {
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
}

.why-image::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 200px;
  height: 200px;
  background: repeating-radial-gradient(
    circle,
    var(--accent) 0,
    var(--accent) 2px,
    transparent 3px,
    transparent 10px
  );
  opacity: 0.1;
  z-index: -1;
}

/* --- Portfolio --- */
.portfolio {
  background: var(--bg-body);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 350px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(26, 37, 47, 0.95), transparent);
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .overlay {
  transform: translateY(0);
  opacity: 1;
}

.overlay h3 {
  font-family: var(--font-heading);
  letter-spacing: 1px;
  font-size: 1.8rem;
  margin-bottom: 5px;
  color: white;
}

.overlay p {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* --- Contact --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.contact-info {
  background: var(--bg-dark); /* Dark Slate */
  color: white;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

/* Add a decorative circle to contact */
.contact-info::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.1;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 25px;
  line-height: 1.1;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 35px;
}

.info-item i {
  color: var(--accent);
  font-size: 1.4rem;
  margin-top: 5px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 50%;
}

.info-item span {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 5px;
}

.info-item a,
.info-item p {
  font-size: 1.1rem;
  color: white;
  margin: 0;
  font-weight: 600;
}

.social-links a {
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.contact-form {
  padding: 60px;
  background: white;
}

.form-group {
  position: relative;
  margin-bottom: 35px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px 12px 0;
  border: none;
  border-bottom: 2px solid var(--border);
  outline: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--primary);
  background: transparent;
  transition: border-color 0.3s;
  border-radius: 0;
}

.form-group label {
  position: absolute;
  top: 12px;
  left: 0;
  color: #95a5a6;
  pointer-events: none;
  transition: 0.3s ease all;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--accent);
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group input.has-val ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label,
.form-group textarea.has-val ~ label {
  top: -20px;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.btn-block {
  width: 100%;
  text-align: center;
  padding: 18px;
}

/* --- Footer --- */
footer {
  background: var(--bg-dark);
  color: white;
  padding: 60px 0 30px;
  border-top: 4px solid var(--accent);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2.5rem;
}
.footer-logo span {
  color: var(--accent);
}

.footer-links a {
  color: #95a5a6;
  margin-left: 25px;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: white;
}

footer p {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

/* -------------------------------------------
 SUB-PAGE STYLES
 ------------------------------------------- */

.service-hero {
  height: 45vh;
  min-height: 350px;
  background: linear-gradient(rgba(26, 37, 47, 0.9), rgba(192, 57, 43, 0.7)),
    url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?ixlib=rb-4.0.3');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 80px;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.service-hero h1 {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  letter-spacing: 3px;
  text-align: center;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.service-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 100px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr 1.5fr;
  }
}

.service-image {
  min-height: 350px;
  background-color: #ddd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  background-image: url('https://images.unsplash.com/photo-1599708153386-51e829cb8678?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  box-shadow: var(--shadow-md);
}

.service-details h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 25px;
  color: var(--primary);
}

.service-details p {
  margin-bottom: 25px;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.service-details ul,
.benefits ul {
  list-style: none;
  margin-bottom: 35px;
}

.service-details ul li,
.benefits ul li {
  padding-left: 35px;
  position: relative;
  margin-bottom: 15px;
  color: var(--primary);
  font-weight: 500;
}

.service-details ul li::before,
.benefits ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--accent);
  background: rgba(192, 57, 43, 0.1);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.benefits {
  background: white;
  padding: 50px;
  border-radius: 12px;
  margin: 50px 0;
  border-left: 5px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.benefits h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: var(--primary);
}

.cta-section {
  text-align: center;
  background: var(--primary);
  color: white;
  padding: 80px 20px;
  border-radius: 12px;
  margin-top: 80px;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  margin-bottom: 15px;
}

.cta-button {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 18px 45px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 4px;
  transition: var(--transition);
  letter-spacing: 1px;
  margin-top: 20px;
}

.cta-button:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 4rem;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .why-container {
    grid-template-columns: 1fr;
  }
  .why-image {
    order: -1;
  }
  .stats-grid {
    gap: 20px;
  }
  .stat-item {
    border-right: none;
    padding: 0;
  }
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2.5rem;
  }
  .hamburger {
    display: block;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    transition: 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    right: 0;
  }

  .hero h1 {
    font-size: 3rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .stats-bar {
    margin-top: 0;
    border-radius: 0;
    padding: 30px 20px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .stat-item {
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
  }
  .stat-item:last-child {
    border-bottom: none;
  }

  .contact-info {
    padding: 40px 20px;
  }
  .contact-form {
    padding: 40px 20px;
  }
  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  .footer-links {
    margin-left: 0;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .service-hero {
    clip-path: none;
    height: 35vh;
  }
  .service-hero h1 {
    font-size: 2.5rem;
  }
}

/* =========================================
   UPDATED SUB-PAGE STYLES (Compact & Vibrant)
   ========================================= */

/* 1. Shorter Hero Section */
.service-hero {
  height: 35vh; /* Reduced from 45vh */
  min-height: 250px;
  background: linear-gradient(
      135deg,
      rgba(44, 62, 80, 0.9),
      rgba(192, 57, 43, 0.8)
    ),
    url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?ixlib=rb-4.0.3');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-bottom: 50px; /* Reduced margin */
  border-bottom: 5px solid var(--accent); /* Pop of color */
}

.service-hero h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  letter-spacing: 2px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 5px;
}

.service-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
  letter-spacing: 1px;
}

/* 2. Compact Grid Layout */
.service-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px; /* Reduced bottom padding */
}

.compact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 900px) {
  .compact-grid {
    grid-template-columns: 350px 1fr; /* Fixed width sidebar, flexible content */
    align-items: start;
  }
}

/* 3. Sticky Sidebar (Image) */
.service-sidebar {
  position: sticky;
  top: 100px; /* Sticks 100px from top while scrolling */
}

.sidebar-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
}

.sidebar-image img {
  width: 100%;
  height: auto;
  display: block;
}

.image-badge {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(44, 62, 80, 0.9);
  color: white;
  padding: 10px;

  text-align: center;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.quick-summary {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.quick-summary h4 {
  color: var(--primary);
  margin-bottom: 10px;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  font-size: 1.2rem;
}

.quick-summary ul li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.quick-summary i {
  color: var(--accent);
  margin-right: 8px;
}

/* 4. Vibrant Content Styling */
.service-text h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
  line-height: 1;
}

.lead-text {
  font-size: 1.15rem;
  color: var(--secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.vibrant-box {
  background: #fff5f5; /* Light Red Tint Background */
  border-left: 4px solid var(--accent);
  padding: 25px;
  border-radius: 0 8px 8px 0;
  margin: 30px 0;
}

.vibrant-box h3 {
  color: var(--accent); /* Colored Heading */
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.two-column-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  list-style: none;
}

@media (min-width: 600px) {
  .two-column-list {
    grid-template-columns: 1fr 1fr;
  }
}

.two-column-list li {
  position: relative;
  padding-left: 20px;
  font-weight: 600;
  color: var(--primary);
}

.two-column-list li::before {
  content: '•';
  color: var(--accent);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -5px;
}

/* 5. Inline CTA Box (Compact) */
.inline-cta {
  background: var(--primary); /* Dark Slate */
  color: white;
  padding: 30px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  box-shadow: 0 10px 25px rgba(44, 62, 80, 0.3);
  background-image: linear-gradient(45deg, var(--primary) 0%, #34495e 100%);
}

.cta-text h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.inline-cta .btn {
  white-space: nowrap;
  margin-left: 20px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .service-hero {
    height: 30vh;
  }
  .service-hero h1 {
    font-size: 2.5rem;
  }

  .compact-grid {
    grid-template-columns: 1fr;
  }
  .service-sidebar {
    position: static;
  } /* Un-stick on mobile */
  .sidebar-image {
    max-height: 250px;
  }
  .sidebar-image img {
    object-fit: cover;
    height: 100%;
  }

  .inline-cta {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .inline-cta .btn {
    margin-left: 0;
    width: 100%;
  }
}

/* Section Styling */
.gallery-section {
  padding-top: 8rem; /* py-32 */
  padding-bottom: 8rem;
  background-color: var(--color-slate-50);
  overflow: hidden;
}

.gallery-container {
  max-width: 80rem; /* max-w-7xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem; /* px-6 */
  padding-right: 1.5rem;
  display: grid;
  gap: 4rem; /* gap-16 */
  align-items: center;
}

/* Responsive Grid (lg:grid-cols-2) */
@media (min-width: 1024px) {
  .gallery-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Typography */
.gallery-title {
  font-size: 2.25rem; /* text-4xl */
  font-weight: 600; /* font-semibold */
  color: var(--color-slate-900);
  letter-spacing: -0.025em; /* tracking-tight */
  margin-bottom: 1.5rem; /* mb-6 */
  line-height: 1.1;
  margin-top: 0;
}

@media (min-width: 768px) {
  .gallery-title {
    font-size: 3rem; /* md:text-5xl */
  }
}

.gallery-description {
  font-size: 1.25rem; /* text-xl */
  color: var(--color-slate-500);
  font-weight: 300; /* font-light */
  line-height: 1.625; /* leading-relaxed */
  margin-bottom: 2.5rem; /* mb-10 */
}

/* Controls Area */
.gallery-controls {
  display: flex;
  align-items: center;
  gap: 1rem; /* gap-4 */
}

.control-btn {
  display: flex; /* Centers the icon */
  align-items: center;
  justify-content: center;
  padding: 1rem; /* p-4 */
  border-radius: 9999px; /* rounded-full */
  border: 1px solid var(--color-slate-200);
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover effects for button and nested icon */
.control-btn:hover {
  border-color: var(--color-slate-400);
  background-color: var(--color-white);
}

.control-icon {
  width: 1.5rem; /* w-6 */
  height: 1.5rem; /* h-6 */
  color: var(--color-slate-400);
  transition: color 0.3s ease;
}

.control-btn:hover .control-icon {
  color: var(--color-slate-900); /* group-hover:text-slate-900 */
}

/* Dots Navigation */
.gallery-dots {
  margin-left: 1.5rem; /* ml-6 */
  display: flex;
  gap: 0.5rem; /* gap-2 */
}

.dot {
  width: 0.5rem; /* w-2 */
  height: 0.5rem; /* h-2 */
  border-radius: 9999px;
  background-color: var(--color-slate-300);
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--color-slate-800);
}

/* Slideshow Container */
.slideshow-wrapper {
  position: relative;
  height: 500px;
  width: 100%;
  border-radius: 1rem; /* rounded-2xl */
  overflow: hidden;
  /* shadow-2xl shadow-slate-200 */
  box-shadow: 0 25px 50px -12px rgba(226, 232, 240, 0.5);
}

/* Slide Styles */
.slide {
  position: absolute; /* absolute inset-0 */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: var(--color-slate-800);
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

/* Caption Overlay */
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem; /* p-8 */
  /* bg-gradient-to-t from-black/80 to-transparent */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  box-sizing: border-box; /* Ensures padding doesn't overflow width */
}

.caption-title {
  color: var(--color-white);
  font-weight: 500; /* font-medium */
  font-size: 1.125rem; /* text-lg */
  margin: 0;
}

.caption-subtitle {
  color: var(--color-slate-300);
  font-size: 0.875rem; /* text-sm */
  margin: 0;
}

/* Note: The original HTML had 'fade-enter' and 'fade-exit' classes.
 These usually require JavaScript to toggle opacity or display.
 Below is a basic implementation of stacking order.
*/
.slide {
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

/* Assuming your JS toggles a class for the visible slide */
.slide.fade-enter {
  opacity: 1;
  z-index: 10;
}
