/* ============================================================
   Marco Tiling Limited — Custom Site
   Mobile-first. Dark + Gold palette from business card brand.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600&display=swap');

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

:root {
  --dark: #1a1a1a;
  --dark-mid: #262626;
  --gold: #c9a050;
  --gold-light: #dbb96a;
  --gold-muted: rgba(201,160,80,0.15);
  --cream: #f7f5f0;
  --white: #ffffff;
  --text-dark: #2c2c2c;
  --text-muted: #6b6560;
  --text-light: #e0dbd4;
  --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --gap: 1.25rem;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; line-height: 1.2; }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26,26,26,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,160,80,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem var(--gap);
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--gold);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links .nav-cta {
  background: var(--gold);
  color: var(--dark);
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  transition: background 0.25s;
}

.nav-links .nav-cta:hover {
  background: var(--gold-light);
}

/* Mobile burger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

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

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #1a1a1a;
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--white);
  transition: color 0.25s;
}

.mobile-nav a:hover { color: var(--gold); }

.mobile-nav .mobile-phone {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(26,26,26,0.92) 0%,
    rgba(26,26,26,0.6) 40%,
    rgba(26,26,26,0.25) 70%,
    rgba(26,26,26,0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 var(--gap) 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.35rem 0.75rem;
  margin-bottom: 1rem;
}

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

.hero p {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 440px;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--gold);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s;
  min-height: 48px;
}

.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
  min-height: 48px;
}

.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* --- Section Utilities --- */
.section { padding: 4rem 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-mid { background: var(--dark-mid); color: var(--white); }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }

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

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

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

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 0.95rem;
}

.section-dark .section-header p { color: var(--text-light); opacity: 0.8; }

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

.service-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

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

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

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.service-card h3 {
  color: var(--white);
  margin-bottom: 0.25rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.85rem;
  opacity: 0.85;
}

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

.review-card {
  background: var(--dark-mid);
  padding: 1.5rem;
  border-left: 3px solid var(--gold);
}

.review-stars {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.review-card blockquote {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-style: italic;
}

.review-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.review-source {
  font-size: 0.7rem;
  color: var(--text-light);
  opacity: 0.5;
  margin-top: 0.15rem;
}

/* --- Gallery Preview (Home) --- */
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.gallery-preview a {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
}

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

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

.gallery-cta {
  text-align: center;
  margin-top: 2rem;
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: 3.5rem var(--gap);
  background: var(--gold);
  color: var(--dark);
}

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

.cta-banner p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

.cta-banner .btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--dark);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.25s;
  min-height: 48px;
}

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

/* --- Footer --- */
.site-footer {
  background: var(--dark);
  color: var(--text-light);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(201,160,80,0.2);
}

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

.footer-col h4 {
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.85rem;
  color: var(--text-light);
  opacity: 0.7;
  line-height: 1.8;
}

.footer-col a:hover { color: var(--gold); opacity: 1; }

.footer-col .footer-phone {
  display: block;
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 600;
  opacity: 1;
  margin-top: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  font-size: 0.75rem;
  opacity: 0.4;
  text-align: center;
}

/* --- Page Header (Interior Pages) --- */
.page-header {
  background: var(--dark);
  padding: 7rem 0 3rem;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-light);
  opacity: 0.7;
  max-width: 480px;
  margin: 0 auto;
  font-size: 0.95rem;
}

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

/* --- Services Page --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.service-detail:first-child { padding-top: 0; }
.service-detail:last-child { border-bottom: none; }

.service-detail-img {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.service-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-detail-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.service-detail-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.service-detail-content ul {
  list-style: none;
  margin-bottom: 1.25rem;
}

.service-detail-content li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.service-detail-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  background: var(--gold);
}

/* --- Gallery Page --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
  transition: transform 0.5s;
}

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

.gallery-item.landscape { grid-column: span 2; }
.gallery-item.landscape img { aspect-ratio: 16/9; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

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

.contact-info-card {
  background: var(--white);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--gold);
}

.contact-info-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.contact-info-card p,
.contact-info-card a {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-info-card a { color: var(--gold); font-weight: 500; }
.contact-info-card a:hover { text-decoration: underline; }

.contact-form {
  background: var(--white);
  padding: 2rem 1.5rem;
}

.contact-form h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.contact-form > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 1px solid #d4d0ca;
  background: var(--cream);
  color: var(--text-dark);
  transition: border-color 0.25s;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  min-height: 48px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

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

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6560' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-submit {
  width: 100%;
  padding: 0.875rem;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.25s;
  min-height: 48px;
}

.form-submit:hover { background: var(--gold-light); }

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

.form-success h3 { color: var(--gold); margin-bottom: 0.5rem; }

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

.hours-table tr { border-bottom: 1px solid rgba(0,0,0,0.05); }

.hours-table td {
  padding: 0.5rem 0;
  color: var(--text-muted);
}

.hours-table td:first-child { font-weight: 500; color: var(--text-dark); }
.hours-table td:last-child { text-align: right; }
.hours-table tr.today td { color: var(--gold); font-weight: 600; }

/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
  padding: 2.5rem 0;
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.15rem;
}

.stat-item p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  opacity: 0.6;
}

/* --- About Snippet (Home) --- */
.about-snippet {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.about-snippet-img {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-snippet-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-snippet-content h2 { margin-bottom: 0.75rem; }

.about-snippet-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* --- Google Rating Badge --- */
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--dark-mid);
  padding: 0.6rem 1rem;
  margin-top: 0.5rem;
}

.google-badge .stars { color: var(--gold); font-size: 0.85rem; }
.google-badge span { font-size: 0.8rem; color: var(--text-light); opacity: 0.8; }

/* ============================================================
   RESPONSIVE — Tablet (768px+)
   ============================================================ */
@media (min-width: 768px) {
  :root { --gap: 2rem; }
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }

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

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

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

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

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

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

  .service-detail {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .service-detail:nth-child(even) .service-detail-img { order: 2; }

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

  .about-snippet { grid-template-columns: 1fr 1fr; }

  .stats-bar { padding: 3rem 0; }
  .stat-item h3 { font-size: 2.5rem; }
}

/* ============================================================
   RESPONSIVE — Desktop (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; }

  .hero { min-height: 100vh; }
  .hero h1 { font-size: 3.25rem; }
  .hero-content { padding-bottom: 5rem; }

  .section { padding: 5rem 0; }

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

  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
  .gallery-item.landscape { grid-column: span 2; }

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

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

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-gold { color: var(--gold); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
