/* TreasureSigns Main Stylesheet
   ========================================================================== */

/* Variables
   ========================================================================== */
:root {
  /* Brand Colors */
  --color-royal-blue: #1a4b8c;
  --color-royal-blue-dark: #0e3266;
  --color-royal-blue-light: #2a5da0;
  --color-white: #ffffff;
  --color-light-red: #e74c3c;
  --color-light-red-dark: #c0392b;
  --color-gray-100: #f8f9fa;
  --color-gray-200: #e9ecef;
  --color-gray-300: #dee2e6;
  --color-gray-400: #ced4da;
  --color-gray-500: #adb5bd;
  --color-gray-600: #6c757d;
  --color-gray-700: #495057;
  --color-gray-800: #343a40;
  --color-gray-900: #212529;
  
  /* Typography */
  --font-heading: 'Montserrat', 'Poppins', 'Segoe UI', 'Arial', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', 'Roboto', 'Poppins', 'Segoe UI', 'Arial', 'Helvetica Neue', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Container */
  --container-max-width: 1200px;
  --container-padding: 1rem;
  
  /* Border Radius */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 15px 25px rgba(0, 0, 0, 0.15), 0 5px 10px rgba(0, 0, 0, 0.05);
}

/* Self-hosted fonts */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat/montserrat-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat/montserrat-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat/montserrat-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter/inter-latin-700-normal.woff2') format('woff2');
}

/* Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-gray-800);
  background-color: var(--color-white);
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-royal-blue);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: var(--spacing-md);
  color: var(--color-gray-900);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-top: 0;
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--color-royal-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

ul {
  padding-left: var(--spacing-lg);
  margin-top: 0;
  margin-bottom: var(--spacing-md);
}

/* Container
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

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

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

.btn-secondary {
  background-color: var(--color-royal-blue);
  color: var(--color-white);
  border-color: var(--color-royal-blue);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--color-royal-blue-dark);
  border-color: var(--color-royal-blue-dark);
  color: var(--color-white);
}

.btn-text {
  color: var(--color-royal-blue);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.btn-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-royal-blue);
  transition: width var(--transition-medium);
}

.btn-text:hover::after {
  width: 100%;
}

/* WhatsApp CTA */
.contact-actions { margin-top: var(--spacing-sm); }
.btn.btn-whatsapp {
  background-color: #25D366;
  color: var(--color-white);
  border-color: #25D366;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}
.btn.btn-whatsapp:hover, .btn.btn-whatsapp:focus {
  background-color: #1DA851;
  border-color: #1DA851;
  color: var(--color-white);
}
/* WhatsApp icon inside button */
.btn.btn-whatsapp .icon {
  width: 18px;
  height: 18px;
}

/* Social Icons (Makeover): colorful brand styles and hover effects */
.social-links {
  display: flex;
  gap: var(--spacing-sm);
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid transparent;
  background-color: rgba(0,0,0,0.06);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.social-links a .icon {
  width: 20px;
  height: 20px;
}

/* Brand coloring using aria-label selectors */
.social-links a[aria-label="Facebook"] { color: #1877F2; border-color: #1877F2; background-color: rgba(24,119,242,0.12); }
.social-links a[aria-label="Twitter"] { color: #1DA1F2; border-color: #1DA1F2; background-color: rgba(29,161,242,0.12); }
.social-links a[aria-label="LinkedIn"] { color: #0A66C2; border-color: #0A66C2; background-color: rgba(10,102,194,0.12); }
.social-links a[aria-label="WhatsApp"] { color: #25D366; border-color: #25D366; background-color: rgba(37,211,102,0.12); }
/* Instagram: gradient background with white icon for pop */
.social-links a[aria-label="Instagram"] {
  color: #ffffff;
  border-color: #E1306C;
  background-image: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* Hover effects */
.social-links a:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
.social-links a[aria-label="Facebook"]:hover { background-color: rgba(24,119,242,0.20); }
.social-links a[aria-label="Twitter"]:hover { background-color: rgba(29,161,242,0.20); }
.social-links a[aria-label="LinkedIn"]:hover { background-color: rgba(10,102,194,0.20); }
.social-links a[aria-label="WhatsApp"]:hover { background-color: rgba(37,211,102,0.20); }
.social-links a[aria-label="Instagram"]:hover {
  filter: brightness(1.05) saturate(1.1);
}

/* Ensure footer overrides don't force monochrome: raise specificity */
.site-footer .social-links .icon.icon-facebook { color: #1877F2; }
.site-footer .social-links .icon.icon-twitter { color: #1DA1F2; }
.site-footer .social-links .icon.icon-linkedin { color: #0A66C2; }
.site-footer .social-links .icon.icon-instagram { color: #ffffff; }
.site-footer .social-links .icon.icon-whatsapp { color: #25D366; }

/* Header
   ========================================================================== */
.header-top {
  background-color: var(--color-gray-100);
  color: var(--color-gray-700);
  font-family: 'Poppins', 'Roboto', sans-serif;
  font-size: 0.85rem; /* slightly smaller on desktop */
  overflow: hidden;
}

.header-top .contact {
  display: inline-block;
  white-space: nowrap;
  padding: var(--spacing-xxs) 0; /* tighter banner padding */
  animation: headerTicker 30s linear infinite;
}

.header-top .contact-item {
  white-space: nowrap;
  margin-right: var(--spacing-md);
  color: var(--color-royal-blue); /* change banner text to blue */
}

/* Ensure links in the banner are blue */
.header-top .contact a {
  color: var(--color-royal-blue);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xxs);
}
.header-top .contact .icon.icon-whatsapp {
  color: #25D366; /* WhatsApp brand green for header icon */
}
.header-top .contact a:hover,
.header-top .contact a:focus {
  color: var(--color-royal-blue-dark);
}

@keyframes headerTicker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.site-header {
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.site-header.sticky {
  box-shadow: var(--shadow-md);
  animation: slideDown 0.3s ease;
}

.site-header.hide {
  transform: translateY(-100%);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0; /* significantly tighter desktop header padding */
}

.logo {
  display: block;
  max-width: 120px; /* desktop logo size */
  z-index: 1001; /* Above mobile menu */
}

/* Ensure logo image adheres to cap */
.logo img {
  max-width: 120px;
  height: auto;
}

/* Ensure inline SVG logos size like images */
.logo svg {
  max-width: 120px;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  margin-right: var(--spacing-lg);
}

.nav-item:last-child {
  margin-right: 0;
}

.nav-item a {
  display: block;
  padding: 0; /* remove extra vertical padding to shrink header height */
  color: var(--color-gray-800);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-item a:hover {
  color: var(--color-royal-blue);
}

.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
}

.dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 200px;
  padding: var(--spacing-sm) 0;
  margin: 0;
  list-style: none;
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.dropdown-menu li a {
  padding: var(--spacing-sm) var(--spacing-md);
  white-space: nowrap;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  display: block;
}

.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  width: 500px;
  padding: var(--spacing-md);
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.has-dropdown:hover .mega-dropdown,
.has-dropdown:focus-within .mega-dropdown {
  display: flex;
}

.dropdown-column {
  flex: 1;
  padding: 0 var(--spacing-md);
}

.dropdown-column:first-child {
  padding-left: 0;
}

.dropdown-column:last-child {
  padding-right: 0;
}

.dropdown-column h3 {
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-royal-blue);
}

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

.dropdown-column ul li {
  margin-bottom: var(--spacing-xs);
}

.dropdown-column ul li a {
  padding: var(--spacing-xs) 0;
  font-size: 0.9rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1001; /* Above mobile menu */
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin-bottom: 5px;
  background-color: var(--color-gray-800);
  transition: transform var(--transition-medium), opacity var(--transition-medium);
}

.mobile-menu-toggle span:last-child {
  margin-bottom: 0;
}

.header-cta {
  margin-left: var(--spacing-lg);
}

body.menu-open {
  overflow: hidden; /* Prevent scrolling when menu is open */
}

/* Hero Section
   ========================================================================== */
.hero {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-gray-100);
}

.hero .container {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-royal-blue);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  color: var(--color-gray-700);
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
}

.hero-image {
  flex: 1;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Services Overview
   ========================================================================== */
.services-overview {
  padding: var(--spacing-xxl) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
}

.section-header h2 {
  color: var(--color-royal-blue);
  margin-bottom: var(--spacing-sm);
}

.section-header p {
  font-size: 1.25rem;
  color: var(--color-gray-600);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.service-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--spacing-md);
}
.service-icon img {
  filter: none;
}

.service-card h3 {
  margin-bottom: var(--spacing-sm);
}

.service-card p {
  margin-bottom: var(--spacing-md);
  color: var(--color-gray-600);
}

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

/* Service item cards on landing pages */
.service-item {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-item h3::before {
  content: '✨ ';
}

/* Page banner enhancement */
.page-banner {
  background: linear-gradient(135deg, var(--color-royal-blue) 0%, #3b7bd9 60%, #6fa8ff 100%);
  color: var(--color-white);
  padding: var(--spacing-xl) 0;
}

.page-banner h1 { color: var(--color-white); }
.page-banner p { color: #eef3ff; }

/* Service detail visuals */
.service-detail {
  padding: var(--spacing-xxl) 0;
}

.service-detail .feature-list,
.service-detail .spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-lg) 0;
}

.service-detail .feature-list li,
.service-detail .spec-list li {
  background: var(--color-gray-100);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.service-detail .feature-list li::before { content: '💡 '; }
.service-detail .spec-list li::before { content: '🛠️ '; }

.service-detail a.btn.btn-primary { margin-top: var(--spacing-md); }

/* Gallery item mockups section styling */
.gallery-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--spacing-lg);
  align-items: center;
  background: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-lg);
}

.gallery-item .gallery-image svg { filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15)); }
.gallery-item .gallery-info h3::before { content: '🖼️ '; }

@media (max-width: 768px) {
  .gallery-item { grid-template-columns: 1fr; }
}

/* Case Studies
   ========================================================================== */
.case-studies {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-gray-100);
}

.case-studies-carousel {
  display: flex;
  overflow-x: hidden;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.case-study {
  flex: 0 0 calc(33.333% - var(--spacing-lg));
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.case-study-image {
  height: 200px;
  overflow: hidden;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.case-study:hover .case-study-image img {
  transform: scale(1.05);
}

.case-study-content {
  padding: var(--spacing-lg);
}

.case-study-content h3 {
  margin-bottom: var(--spacing-sm);
}

.case-study-content p {
  margin-bottom: var(--spacing-md);
  color: var(--color-gray-600);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
}

.prev-btn, .next-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-300);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.prev-btn::before, .next-btn::before {
  content: '';
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--color-gray-600);
  border-right: 2px solid var(--color-gray-600);
  transition: border-color var(--transition-fast);
}

.prev-btn::before {
  transform: rotate(-135deg);
}

.next-btn::before {
  transform: rotate(45deg);
}

.prev-btn:hover, .next-btn:hover {
  background-color: var(--color-royal-blue);
  border-color: var(--color-royal-blue);
}

.prev-btn:hover::before, .next-btn:hover::before {
  border-color: var(--color-white);
}

.carousel-dots {
  display: flex;
  gap: var(--spacing-sm);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-gray-300);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.dot.active, .dot:hover {
  background-color: var(--color-royal-blue);
}

/* Testimonials
   ========================================================================== */
.testimonials {
  padding: var(--spacing-xxl) 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.testimonial-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.testimonial-content {
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-top: var(--spacing-lg);
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: 0;
  left: 0;
  font-size: 4rem;
  line-height: 1;
  color: var(--color-royal-blue);
  opacity: 0.2;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: 0;
  font-size: 1rem;
}

.author-info p {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

/* CTA Section
   ========================================================================== */
.cta-section {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-royal-blue);
  color: var(--color-white);
  text-align: center;
}

.cta-content h2 {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-gray-900);
  color: var(--color-gray-300);
  padding-top: var(--spacing-xl);
}

/* Narrower footer container on desktop for a tighter look */
.site-footer .container {
  max-width: 1000px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.footer-logo {
  max-width: 100%;
  display: flex;
  align-items: center; /* vertically align logo with text */
  justify-content: flex-start; /* keep logo left-aligned */
  gap: var(--spacing-sm);
}

.footer-nav {
  display: flex;
  justify-content: space-between;
}

.footer-nav-column h3 {
  color: var(--color-white);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
}

.footer-nav-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-column ul li {
  margin-bottom: var(--spacing-xs);
}

.footer-nav-column ul li a {
  color: var(--color-gray-400);
  transition: color var(--transition-fast);
}

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

.footer-contact h3 {
  color: var(--color-white);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
}

.footer-contact p {
  margin-bottom: var(--spacing-sm);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-gray-800);
  transition: background-color var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--color-royal-blue);
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--color-white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
  border-top: 1px solid var(--color-gray-800);
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li a {
  color: var(--color-gray-400);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

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

/* Footer logo rendering on dark background */
.footer-logo img {
  display: block;
  max-width: 100%;
  max-height: 80px; /* optimized desktop cap */
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Make SVG logo appear light on dark footer until PNG is supplied */
.site-footer .footer-logo img[src$=".svg"] {
  filter: brightness(0) invert(1) grayscale(100%);
  opacity: 0.95;
}

/* Gallery Grid (visual showcase) */
.gallery-grid {
  padding: var(--spacing-xxl) 0;
}

.gallery-grid .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--spacing-lg);
}

.gallery-card {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-white);
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

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

.gallery-card .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--spacing-md);
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
  color: var(--color-white);
  font-weight: 600;
}

@media (max-width: 768px) {
  .gallery-card img { height: 180px; }
  .site-footer .container { max-width: var(--container-max-width); }
}

/* Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-logo {
    grid-column: auto;
    margin-bottom: var(--spacing-lg);
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
  
  .case-study {
    flex: 0 0 calc(50% - var(--spacing-lg));
  }
}

@media (max-width: 768px) {
  /* Show full ticker on mobile without increasing header height */
  .header-top {
    font-size: 0.9rem;
    overflow: hidden; /* clip overflow so marquee effect looks clean */
  }
  .header-top .contact {
    padding: var(--spacing-xxs) 0;
    display: inline-block; /* required for marquee-style animation */
    white-space: nowrap; /* keep text in one line for scrolling */
    animation: headerTicker 30s linear infinite; /* restore marquee on mobile */
  }
  .header-top .contact-item {
    margin-right: var(--spacing-md); /* consistent spacing between items */
  }
  /* Reduce header footprint on mobile */
  .site-header {
    max-height: 14vh; /* tighter max height for mobile */
  }
  .header-inner {
    padding: var(--spacing-xxs) 0; /* tighter mobile padding */
  }
  .logo {
    max-width: 100px; /* tablet/mobile logo size */
  }
  .nav-item a {
    padding: var(--spacing-xs) 0;
  }
  /* Stack footer logo with text on mobile */
  .footer-logo {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
  /* Ensure footer logo scales nicely on tablets/phones */
  .footer-logo img {
    max-width: 100%;
    max-height: 64px; /* optimized tablet cap */
  }
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-list {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(-100%);
    transition: transform var(--transition-medium);
    z-index: 1000;
  }
  
  .nav-list.active {
    transform: translateX(0);
  }
  
  .nav-item {
    margin-right: 0;
    margin-bottom: var(--spacing-md);
  }
  
  .dropdown-menu, .mega-dropdown {
    position: static;
    box-shadow: none;
    display: none;
    width: 100%;
  }
  
  .has-dropdown.active .dropdown-menu,
  .has-dropdown.active .mega-dropdown {
    display: block;
  }
  
  .mega-dropdown {
    flex-direction: column;
  }
  
  .dropdown-column {
    padding: var(--spacing-sm) 0;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
  
  .case-study {
    flex: 0 0 100%;
  }
}

@media (max-width: 480px) {
  .header-top .contact {
    gap: var(--spacing-xs);
  }
  /* Further tighten header on small phones */
  .header-inner {
    padding: var(--spacing-xxs) 0;
  }
  .logo {
    max-width: 90px;
  }
  /* Slightly smaller footer logo on small phones */
  .footer-logo img {
    max-width: 100%;
    max-height: 56px; /* optimized small-phone cap */
  }
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}
/* WhatsApp CTA button styling */
.btn.btn-whatsapp {
  background-color: #25D366; /* WhatsApp green */
  border: 1px solid #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xxs);
}

.btn.btn-whatsapp:hover,
.btn.btn-whatsapp:focus {
  background-color: #1DA851; /* darker green for hover */
  border-color: #1DA851;
  color: #fff;
}

/* WhatsApp CTA green variant */
.btn.btn-whatsapp--green {
  background-color: #25D366; /* WhatsApp green */
  border: 1px solid #25D366;
  color: #fff;
}

.btn.btn-whatsapp--green:hover,
.btn.btn-whatsapp--green:focus {
  background-color: #1ebe57; /* darker green for hover */
  border-color: #1ebe57;
  color: #fff;
}

/* Compact variant for tighter layout */
.btn.btn-whatsapp--compact {
  padding: 6px 10px;
  font-size: 0.95rem;
}

.btn.btn-whatsapp--compact .icon {
  width: 16px;
  height: 16px;
}
