/* 
========================================================================
   Sandman Engraving - Design System & Styles
   Author: Antigravity AI
   Description: Premium, industrial-stone style stylesheet for Sandman Engraving.
========================================================================
*/

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* --- Custom Properties (Design System) --- */
:root {
  /* Color Palette */
  --color-charcoal: #575858;
  --color-dark-charcoal: #2F2F2F;
  --color-sandstone: #A79078;
  --color-sandstone-light: rgba(167, 144, 120, 0.15);
  --color-light-sand: #F5F2EE;
  --color-white: #FFFFFF;
  --color-gray-border: #E0DCD8;
  --color-overlay: rgba(47, 47, 47, 0.85);

  /* Typography */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;

  /* Transitions & Shadows */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);

  /* Borders */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 50px; /* For rounded CTA buttons */
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: -webkit-fill-available;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-light-sand);
  color: var(--color-dark-charcoal);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark-charcoal);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: var(--space-sm);
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--color-sandstone);
}

.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

p {
  margin-bottom: var(--space-md);
  font-size: 1rem;
  color: #4A4A4A;
}

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

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-sandstone);
  color: var(--color-white);
  padding: var(--space-sm);
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Keyboard accessibility focus indicators */
*:focus-visible {
  outline: 3px solid var(--color-sandstone);
  outline-offset: 4px;
}

/* --- Layout Components --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section-dark {
  background-color: var(--color-charcoal);
  color: var(--color-white);
}

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

.bg-white {
  background-color: var(--color-white);
}

/* --- Header & Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  background-color: transparent;
}

.header.scrolled {
  background-color: var(--color-charcoal);
  box-shadow: var(--shadow-subtle);
  border-bottom: 1px solid var(--color-sandstone);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-img {
  height: 55px;
  width: auto;
  transition: var(--transition-smooth);
  display: block;
}

.header.scrolled .logo-img {
  height: 45px;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--space-md);
}

.nav-link {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  padding: var(--space-xs) 0;
  position: relative;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-sandstone);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--color-sandstone);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 1001;
}

.bar {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px auto;
  transition: var(--transition-smooth);
  background-color: var(--color-white);
}

/* --- Hero Banner --- */
.hero {
  position: relative;
  height: 90vh;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
  background-color: var(--color-dark-charcoal);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 2;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 850px;
  padding: 0 var(--space-md);
  margin-top: 60px; /* offset for header */
}

.hero-logo {
  height: 120px;
  width: auto;
  margin-bottom: var(--space-md);
  opacity: 0.95;
}

.hero h1 {
  color: var(--color-white);
  font-size: 3rem;
  line-height: 1.25;
  margin-bottom: var(--space-sm);
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-subheadline {
  font-size: 1.15rem;
  color: var(--color-light-sand);
  margin-bottom: var(--space-lg);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.btn-group {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons & UI Elements --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--border-radius-lg);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-sandstone);
  color: var(--color-white);
  border: 1px solid var(--color-sandstone);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-sandstone);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(167, 144, 120, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
}

.btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-dark-charcoal);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.btn-dark {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  border: 1px solid var(--color-charcoal);
}

.btn-dark:hover {
  background-color: transparent;
  color: var(--color-charcoal);
  transform: translateY(-2px);
}

.divider {
  width: 80px;
  height: 2px;
  background-color: var(--color-sandstone);
  margin: var(--space-md) auto;
}

.divider-left {
  margin: var(--space-md) 0;
}

/* --- Grid & Cards --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

/* Card Styling */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-sandstone);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 60%; /* Aspect ratio */
}

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.card-content {
  padding: var(--space-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
}

.card-text {
  font-size: 0.9rem;
  color: #555555;
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.card-link {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--color-sandstone);
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: auto;
}

.card-link:hover {
  color: var(--color-dark-charcoal);
}

/* --- About Teaser Section --- */
.about-teaser-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-sandstone);
  box-shadow: var(--shadow-card);
}

.about-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.95rem;
  font-weight: 500;
}

.about-feature-item::before {
  content: '✦';
  color: var(--color-sandstone);
  font-size: 1rem;
}

/* --- Stats Counters --- */
.stats-bar {
  background-color: var(--color-charcoal);
  border-top: 2px solid var(--color-sandstone);
  border-bottom: 2px solid var(--color-sandstone);
  padding: var(--space-lg) 0;
  text-align: center;
  color: var(--color-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--color-sandstone);
  margin-bottom: var(--space-xs);
}

.stat-item p {
  color: var(--color-light-sand);
  letter-spacing: 0.1em;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* --- Why Choose Us --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.why-item {
  text-align: center;
  padding: var(--space-md);
}

.why-icon {
  font-size: 2.5rem;
  color: var(--color-sandstone);
  margin-bottom: var(--space-sm);
}

.why-item h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

.why-item p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- Clients Grid --- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.client-card {
  background: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-subtle);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
}

.client-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-dark-charcoal);
  line-height: 1.4;
}

/* --- Gallery & Filter System --- */
.gallery-filters-wrapper {
  margin-bottom: var(--space-lg);
  position: relative;
}

.gallery-filters-scroll {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  padding-bottom: var(--space-xs);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-filters-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-filters-scroll::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(to right, transparent, var(--color-light-sand));
  pointer-events: none;
  z-index: 1;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--color-gray-border);
  color: var(--color-dark-charcoal);
  padding: var(--space-xs) var(--space-md);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  flex-shrink: 0;
}

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

.gallery-load-more {
  text-align: center;
  margin-top: var(--space-lg);
}

.btn-load-more {
  min-width: 220px;
}

.masonry-gallery {
  column-count: 3;
  column-gap: var(--space-md);
  width: 100%;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--space-md);
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-gray-border);
  background-color: var(--color-white);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.gallery-item:hover {
  transform: scale(1.02);
  border-color: var(--color-sandstone);
  box-shadow: var(--shadow-card);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
  aspect-ratio: auto;
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(47, 47, 47, 0.8);
  opacity: 0;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-md);
  text-align: center;
  color: var(--color-white);
}

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

.gallery-item-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  color: var(--color-white);
}

.gallery-item-category {
  font-size: 0.8rem;
  color: var(--color-sandstone);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Lightbox Styling */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-overlay);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border: 2px solid var(--color-sandstone);
  border-radius: var(--border-radius-sm);
}

.lightbox-caption {
  color: var(--color-white);
  margin-top: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 0.05em;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 40px;
  height: 40px;
}

.lightbox-close:hover {
  color: var(--color-sandstone);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-sandstone);
  color: var(--color-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
  z-index: 2010;
}

.lightbox-nav:hover {
  background-color: var(--color-sandstone);
  color: var(--color-white);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

/* --- Service Areas Section --- */
.service-areas-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
}

.service-areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
  list-style: none;
}

.service-area-item {
  padding: 0.25rem 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.service-area-item::before {
  content: '•';
  color: var(--color-sandstone);
}

.travel-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-sandstone);
  border-radius: var(--border-radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-subtle);
}

.travel-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
  color: var(--color-dark-charcoal);
}

/* --- Contact Page Layout & Forms --- */
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 650px;
  margin: 0 auto;
}

.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--border-radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-subtle);
}

.owner-profile {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-light-sand);
  padding-bottom: var(--space-md);
}

.owner-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--color-light-sand);
  border: 2px solid var(--color-sandstone);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-sandstone);
  font-weight: bold;
}

.owner-meta h3 {
  margin-bottom: 2px;
  font-size: 1.15rem;
}

.owner-meta p {
  margin-bottom: 0;
  font-size: 0.85rem;
  font-family: var(--font-heading);
  color: var(--color-sandstone);
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.contact-detail-icon {
  color: var(--color-sandstone);
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.contact-detail-text h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #777777;
  margin-bottom: 2px;
}

.contact-detail-text p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Map Section */
.map-container {
  width: 100%;
  height: 400px;
  margin-top: var(--space-lg);
  border: 1px solid var(--color-sandstone);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  background-color: var(--color-charcoal);
  border-bottom: 1px solid var(--color-sandstone);
  padding: var(--space-sm) 0;
  margin-top: 80px; /* Offset for header */
}

.breadcrumbs-list {
  display: flex;
  list-style: none;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--color-light-sand);
}

.breadcrumbs-item::after {
  content: '/';
  margin-left: var(--space-xs);
  color: var(--color-sandstone);
}

.breadcrumbs-item:last-child::after {
  content: '';
}

.breadcrumbs-link:hover {
  color: var(--color-sandstone);
}

.breadcrumbs-active {
  color: var(--color-sandstone);
  pointer-events: none;
}

/* --- Privacy Policy Page --- */
.privacy-container {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-gray-border);
  box-shadow: var(--shadow-subtle);
}

.privacy-container h2 {
  font-size: 1.5rem;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.privacy-container h2::after {
  display: none;
}

.privacy-container ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
}

/* --- Footer --- */
.footer {
  background-color: var(--color-dark-charcoal);
  border-top: 1px solid var(--color-sandstone);
  color: var(--color-light-sand);
  padding: var(--space-xl) 0 var(--space-md);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-logo-desc {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-logo {
  height: 65px;
  width: auto;
  align-self: flex-start;
}

.footer-desc {
  color: #CCCCCC;
  font-size: 0.85rem;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-xs);
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-sandstone);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-link-item a {
  color: #CCCCCC;
}

.footer-link-item a:hover {
  color: var(--color-sandstone);
  padding-left: 5px;
}

.footer-contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  color: #CCCCCC;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}

.footer-contact-icon {
  color: var(--color-sandstone);
  font-size: 1rem;
  margin-top: 3px;
}

.footer-socials {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-sandstone);
  color: var(--color-sandstone);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background-color: var(--color-sandstone);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid #444444;
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #888888;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-md);
}

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

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--color-charcoal);
  border: 1px solid var(--color-sandstone);
  color: var(--color-white);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--color-sandstone);
  color: var(--color-white);
  transform: translateY(-5px);
}

/* --- Scroll Animations (Intersection Observer) --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.reveal {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.75rem; }
  .grid-3, .clients-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .masonry-gallery { column-count: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 3.5rem;
    --space-lg: 2rem;
  }
  
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
  
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-charcoal);
    border-left: 2px solid var(--color-sandstone);
    flex-direction: column;
    padding: var(--space-xl) var(--space-md);
    transition: var(--transition-smooth);
    z-index: 1000;
    align-items: flex-start;
  }

  .nav-menu.active {
    right: 0;
  }

  /* Hamburger Animation */
  .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
  .menu-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid-2, .grid-3, .grid-4, 
  .why-grid, .clients-grid, 
  .service-areas-layout, 
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .about-teaser-img {
    height: 280px;
  }

  .hero {
    height: auto;
    padding: var(--space-xl) 0;
  }
  
  .hero-logo {
    height: 90px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }

  .masonry-gallery {
    column-count: 1;
  }

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

  .lightbox-prev, .lightbox-next {
    display: none !important; /* Hide arrows on mobile and rely on swipe or simple close */
  }

  .lightbox-content-wrapper {
    max-width: 95%;
  }
}
