/* ==========================================================================
   PRO TILING SERVICE - PRODUCTION STYLESHEET (CPANEL READY)
   Domain: protilingservice.com
   ========================================================================== */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

:root {
  /* Color Tokens */
  --color-primary: #000000;
  --color-on-primary: #ffffff;
  --color-primary-container: #161c24;
  --color-on-primary-container: #7e848e;
  --color-primary-fixed-dim: #c1c7d2;
  
  --color-secondary: #ac3400;
  --color-secondary-container: #fe642c;
  --color-safety-orange: #F05A22;
  --color-safety-orange-hover: #d94a15;
  
  --color-precision-blue: #0066FF;
  --color-precision-blue-hover: #0052cc;
  --color-precision-blue-light: rgba(0, 102, 255, 0.08);
  
  --color-surface: #f8f9ff;
  --color-on-surface: #0b1c30;
  --color-on-surface-variant: #45474b;
  --color-surface-container: #e5eeff;
  --color-surface-container-high: #dce9ff;
  
  --color-slate-dark: #1E293B;
  --color-slate-light: #F8FAFC;
  --color-outline: #75777c;
  --color-outline-variant: #e2e8f0;
  
  /* Typography */
  --font-heading: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout Spacing */
  --max-width: 1200px;
  --header-height: 100px;
  --section-gap: 90px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-on-surface);
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Icon Styles */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Strategic Tile Grid Background Patterns */
.grid-bg-subtle {
  background-image: linear-gradient(to right, rgba(0, 102, 255, 0.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 102, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.grid-bg-dark {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
}

.grid-bg-slate {
  background-image: linear-gradient(to right, rgba(226, 232, 240, 0.8) 1px, transparent 1px), linear-gradient(to bottom, rgba(226, 232, 240, 0.8) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Header & Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(248, 249, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-outline-variant);
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(11, 28, 48, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
}

/* Doubled Header Logo Dimension */
.brand-logo img {
  height: 96px;
  max-height: 96px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  :root {
    --header-height: 80px;
  }
  .brand-logo img {
    height: 64px;
    max-height: 64px;
  }
}

/* Header Nav Menu shifted to the right, right before Get Quote button */
.nav-menu {
  display: none;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  margin-right: 24px;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-on-surface-variant);
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-precision-blue);
}

/* Header Get Quote button hidden on mobile view (< 768px) */
.nav-actions {
  display: none;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .nav-actions {
    display: flex;
  }
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-align: center;
  text-decoration: none;
}

.btn-orange {
  background-color: var(--color-safety-orange);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(240, 90, 34, 0.35);
}

.btn-orange:hover {
  background-color: var(--color-safety-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(240, 90, 34, 0.45);
}

/* Hero Hover Reveal Button */
.btn-hero-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-safety-orange);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: 4px;
  box-shadow: 0 4px 14px 0 rgba(240, 90, 34, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-hero-whatsapp .whatsapp-icon-hover {
  width: 0;
  height: 20px;
  opacity: 0;
  margin-left: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-hero-whatsapp:hover {
  background-color: var(--color-safety-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(240, 90, 34, 0.45);
}

.btn-hero-whatsapp:hover .whatsapp-icon-hover {
  width: 20px;
  opacity: 1;
  margin-left: 10px;
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: flex;
  background: none;
  border: none;
  color: var(--color-on-surface);
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  background-color: #ffffff;
  z-index: 2000;
  box-shadow: -8px 0 30px rgba(0,0,0,0.15);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-outline-variant);
}

.drawer-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 24px;
}

.drawer-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-on-surface);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-slate-light);
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(11, 28, 48, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 90px;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-color: var(--color-primary-container);
  color: #ffffff;
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22, 28, 36, 0.92) 0%, rgba(22, 28, 36, 0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 820px;
}

.badge-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(0, 102, 255, 0.15);
  border: 1px solid rgba(0, 102, 255, 0.4);
  color: #93c5fd;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 2.3rem;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.4rem;
  }
}

.hero-title .highlight {
  color: var(--color-precision-blue);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-primary-fixed-dim);
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
}

.hero-list-item .material-symbols-outlined {
  color: var(--color-precision-blue);
  margin-top: 2px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 576px) {
  .hero-cta-group {
    flex-direction: row;
    align-items: center;
  }
}

.response-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--color-primary-fixed-dim);
  font-weight: 600;
}

/* Trust Highlights Grid */
.highlights-section {
  padding: 60px 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-outline-variant);
  position: relative;
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .highlights-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.highlight-card {
  padding: 28px;
  background-color: var(--color-slate-light);
  border: 1px solid var(--color-outline-variant);
  border-radius: 4px;
  border-top: 4px solid var(--color-precision-blue);
  transition: transform 0.2s, box-shadow 0.2s;
}

.highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 102, 255, 0.08);
}

.highlight-icon {
  width: 52px;
  height: 52px;
  background-color: rgba(0, 102, 255, 0.1);
  color: var(--color-precision-blue);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.highlight-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.highlight-card p {
  font-size: 0.95rem;
  color: var(--color-on-surface-variant);
}

/* Problem & Solution Section */
.problem-section {
  padding: var(--section-gap) 0;
  background-color: var(--color-surface);
  position: relative;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 10;
}

@media (min-width: 992px) {
  .problem-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-precision-blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--color-on-surface);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.4rem;
  }
}

.problem-box {
  background-color: #fff1f0;
  border-left: 4px solid #f5222d;
  padding: 24px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 24px;
}

.problem-box h4 {
  color: #cf1322;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.solution-card {
  background: #ffffff;
  border: 1px solid var(--color-outline-variant);
  border-radius: 4px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.solution-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.solution-item {
  display: flex;
  gap: 16px;
}

.solution-item-icon {
  width: 36px;
  height: 36px;
  background-color: rgba(0, 102, 255, 0.1);
  color: var(--color-precision-blue);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.solution-item h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.solution-item p {
  font-size: 0.925rem;
  color: var(--color-on-surface-variant);
}

/* Core Services Section */
.services-section {
  padding: var(--section-gap) 0;
  background-color: var(--color-slate-light);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px auto;
  position: relative;
  z-index: 10;
}

.divider-line {
  height: 4px;
  width: 60px;
  background-color: var(--color-precision-blue);
  margin: 16px auto 0 auto;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: #ffffff;
  border: 1px solid var(--color-outline-variant);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--color-precision-blue);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.service-img-wrapper {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.service-card:hover .service-title {
  color: var(--color-precision-blue);
}

.service-desc {
  font-size: 0.95rem;
  color: var(--color-on-surface-variant);
  flex: 1;
  line-height: 1.6;
}

/* Gallery Section (Clean Background without Grid Pattern) */
.gallery-section {
  padding: var(--section-gap) 0;
  background-color: #ffffff;
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 32px;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  background-color: var(--color-slate-light);
  border: 1px solid var(--color-outline-variant);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.92);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
}

/* Why Choose Us Section */
.why-us-section {
  padding: var(--section-gap) 0;
  background-color: var(--color-surface);
  position: relative;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.why-card {
  background: #ffffff;
  padding: 32px;
  border-radius: 4px;
  border: 1px solid var(--color-outline-variant);
  display: flex;
  gap: 20px;
}

.why-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-precision-blue);
  line-height: 1;
}

.why-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.why-body p {
  font-size: 0.95rem;
  color: var(--color-on-surface-variant);
}

/* CTA Banner Section */
.cta-banner-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-primary-container) 0%, #0d1218 100%);
  color: #ffffff;
  text-align: center;
  position: relative;
}

.cta-banner-content {
  position: relative;
  z-index: 10;
}

.cta-banner-content h2 {
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .cta-banner-content h2 {
    font-size: 2.8rem;
  }
}

.cta-banner-content p {
  font-size: 1.15rem;
  color: var(--color-primary-fixed-dim);
  max-width: 650px;
  margin: 0 auto 36px auto;
}

.contact-info-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
  font-size: 1rem;
  color: var(--color-primary-fixed-dim);
}

.contact-pill-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  transition: color 0.2s;
}

.contact-pill-link:hover {
  color: var(--color-precision-blue);
  text-decoration: underline;
}

/* Site Footer */
.site-footer {
  background-color: #0b1118;
  color: #94a3b8;
  padding-top: 50px;
  padding-bottom: 90px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .site-footer {
    padding-bottom: 40px;
  }
}

.footer-brand {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.ssm-info {
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  margin-top: 16px;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 32px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
}

.solbright-link {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}

.solbright-link:hover {
  color: var(--color-precision-blue);
}

/* Mobile Sticky WhatsApp Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-top: 1px solid var(--color-outline-variant);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 12px 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.sticky-text {
  display: flex;
  flex-direction: column;
}

.sticky-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-on-surface);
}

.sticky-sub {
  font-size: 0.8rem;
  color: var(--color-on-surface-variant);
}
