/* ========================================
   Universe Tiling Limited — Styles
   Mobile-first, 375px base
   ======================================== */

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

:root {
  --navy: #1a2332;
  --navy-light: #253347;
  --terracotta: #c4956a;
  --terracotta-dark: #a87a52;
  --terracotta-light: #dbb99a;
  --warm-white: #f8f6f3;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --text: #1a1a1a;
  --text-light: #4a4a4a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 6px;
  --radius-lg: 12px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 35, 50, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.125rem;
  color: var(--white);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-logo span {
  color: var(--terracotta);
}

/* Desktop nav — hidden on mobile */
.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-links .nav-cta {
  background: var(--terracotta);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  margin-left: 0.5rem;
  font-weight: 600;
}

.nav-links .nav-cta:hover {
  background: var(--terracotta-dark);
}

/* Hamburger — visible on mobile */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  z-index: 99;
  padding: 5rem 1.25rem 2rem;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
}

.mobile-menu a {
  color: var(--white);
  font-size: 1.25rem;
  font-family: 'DM Serif Display', Georgia, serif;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: block;
  min-height: 44px;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a.active {
  color: var(--terracotta);
}

.mobile-menu .mobile-cta {
  margin-top: 1.5rem;
  background: var(--terracotta);
  color: var(--white);
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: none;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 35, 50, 0.2) 0%,
    rgba(26, 35, 50, 0.55) 50%,
    rgba(26, 35, 50, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1.25rem 3.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0.75rem;
  max-width: 500px;
}

.hero .hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  max-width: 440px;
}

.hero .hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--terracotta);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  min-height: 48px;
  transition: background 0.2s, transform 0.2s;
}

.hero .hero-cta:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
}

.hero .hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.875rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  min-height: 48px;
  margin-left: 0.75rem;
  transition: background 0.2s, border-color 0.2s;
}

.hero .hero-cta-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-ctas .hero-cta-secondary {
  margin-left: 0;
}

/* Page heroes (inner pages) */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 4rem;
}

.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 35, 50, 0.3) 0%,
    rgba(26, 35, 50, 0.7) 100%
  );
}

.page-hero .hero-content {
  padding-bottom: 2.5rem;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-hero .hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  max-width: 500px;
}

/* --- Section Styles --- */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--warm-white);
}

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

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

.section-header {
  margin-bottom: 2rem;
}

.section-header .label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.7);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
}

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

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

.service-card-body {
  padding: 1.25rem;
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--terracotta);
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 0.75rem;
  min-height: 44px;
  transition: gap 0.2s;
}

.service-card .card-link:hover {
  gap: 0.625rem;
}

/* --- Reviews --- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--terracotta);
}

.section-dark .review-card {
  background: var(--navy-light);
  border-left-color: var(--terracotta);
}

.review-stars {
  color: #f59e0b;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.review-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-style: italic;
}

.section-dark .review-text {
  color: rgba(255,255,255,0.8);
}

.review-author {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
}

.section-dark .review-author {
  color: var(--white);
}

.review-source {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.125rem;
}

.section-dark .review-source {
  color: rgba(255,255,255,0.5);
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding: 2rem 0;
}

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

.stat-number {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2rem;
  color: var(--terracotta);
  line-height: 1.1;
}

.section-dark .stat-number {
  color: var(--terracotta-light);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-dark .stat-label {
  color: rgba(255,255,255,0.6);
}

/* --- Content Blocks --- */
.content-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

.content-block-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  height: 280px;
}

.content-block-text h2 {
  margin-bottom: 0.75rem;
}

.content-block-text p {
  color: var(--text-light);
  font-size: 0.9375rem;
}

.content-block-text .label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

/* --- Service Detail Page --- */
.service-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--warm-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
  font-size: 1.25rem;
}

.feature-item h4 {
  margin-bottom: 0.25rem;
}

.feature-item p {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* --- Image Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.gallery-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--navy);
  padding: 3rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--terracotta);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  min-height: 48px;
  transition: background 0.2s;
}

.cta-banner .btn-primary:hover {
  background: var(--terracotta-dark);
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 48px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.15);
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--terracotta);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  min-height: 48px;
  width: 100%;
  transition: background 0.2s;
  font-family: inherit;
}

.form-submit:hover {
  background: var(--terracotta-dark);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.form-success.show {
  display: block;
}

.form-success h3 {
  margin-bottom: 0.5rem;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-item .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--warm-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
  font-size: 1.125rem;
}

.contact-info-item h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.contact-info-item p {
  font-size: 0.9375rem;
  color: var(--text-light);
}

.contact-info-item a {
  color: var(--terracotta);
  font-weight: 500;
}

.contact-info-item a:hover {
  text-decoration: underline;
}

/* Hours table */
.hours-table {
  width: 100%;
  font-size: 0.875rem;
}

.hours-table tr {
  border-bottom: 1px solid var(--gray-100);
}

.hours-table td {
  padding: 0.5rem 0;
}

.hours-table td:last-child {
  text-align: right;
  color: var(--text-light);
}

/* --- Footer --- */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  padding: 0.3rem 0;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.footer-col a:hover {
  color: var(--terracotta-light);
}

.footer-col .footer-phone {
  color: var(--terracotta-light);
  font-weight: 600;
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--terracotta-light);
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: step;
}

.process-step {
  counter-increment: step;
  position: relative;
  padding-left: 3.5rem;
}

.process-step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--terracotta);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
}

.process-step h4 {
  margin-bottom: 0.25rem;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* --- Phone pill (sticky mobile CTA) --- */
.phone-pill {
  display: flex;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 90;
  background: var(--terracotta);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  transition: background 0.2s, transform 0.2s;
}

.phone-pill:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
}

.phone-pill svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ========================================
   Tablet — 768px+
   ======================================== */
@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.375rem; }

  .container { padding: 0 2rem; }

  .hero h1 { font-size: 2.75rem; }
  .hero .hero-sub { font-size: 1.0625rem; }

  .page-hero { min-height: 45vh; }
  .page-hero h1 { font-size: 2.5rem; }

  .section { padding: 4.5rem 0; }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  .content-block {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .content-block.reverse .content-block-img {
    order: 2;
  }

  .content-block-img {
    height: 340px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .gallery-grid img {
    height: 200px;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .contact-form {
    padding: 2rem;
  }

  .form-submit {
    width: auto;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .service-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* ========================================
   Desktop — 1024px+
   ======================================== */
@media (min-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }

  .header-inner { padding: 1rem 2rem; }

  /* Show desktop nav, hide hamburger */
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }

  .hero h1 { font-size: 3.25rem; max-width: 620px; }
  .hero .hero-sub { font-size: 1.125rem; }
  .hero-content { padding-bottom: 5rem; }

  .page-hero h1 { font-size: 3rem; }

  .section { padding: 5.5rem 0; }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-number { font-size: 2.5rem; }

  .content-block-img { height: 400px; }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-grid img {
    height: 220px;
  }

  .phone-pill { display: none; }

  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   Large Desktop — 1440px+
   ======================================== */
@media (min-width: 1440px) {
  .container { max-width: 1320px; }
  .hero h1 { font-size: 3.5rem; }
}
