/* Magic Tiling Ltd — Custom Stylesheet
   Mobile-first, built for 375px and up */

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --primary-dark: #1a1a2e;
  --primary-mid: #2c2c44;
  --accent: #c9a96e;
  --accent-hover: #b8944f;
  --bg: #faf8f5;
  --bg-alt: #f0ece6;
  --bg-dark: #16162b;
  --text: #2a2a2a;
  --text-muted: #6b6b6b;
  --text-on-dark: #e8e4de;
  --text-on-dark-muted: #a0a0a0;
  --white: #ffffff;
  --border: #ddd8d0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.3s ease;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1200px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; border: none; outline: none; }
button { cursor: pointer; }

/* ===== BASE ===== */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-dark);
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

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

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--primary-dark);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--container);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.logo img {
  height: 36px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  display: none;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-on-dark);
  transition: color var(--transition);
  white-space: nowrap;
}

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

.nav-links .nav-cta {
  background: var(--accent);
  color: var(--primary-dark);
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--transition);
}

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

/* Mobile nav toggle — shown on mobile */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-dark);
  z-index: 999;
  padding: 100px 30px 40px;
  flex-direction: column;
  gap: 0;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-on-dark);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--accent);
}

.mobile-menu .mobile-cta {
  display: inline-block;
  margin-top: 24px;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  font-size: 1.1rem;
}

.mobile-menu .mobile-phone {
  margin-top: 16px;
  text-align: center;
  font-size: 1rem;
  color: var(--text-on-dark-muted);
}

.mobile-menu .mobile-phone a {
  display: inline;
  border: none;
  padding: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 50vh;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 20px 40px;
  background: var(--primary-dark);
}

.hero-content h1 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero-content .hero-sub {
  font-size: 1.05rem;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-actions .btn {
  text-align: center;
}

/* ===== PAGE HERO (interior pages) ===== */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 60px;
}

.page-hero .hero-image {
  height: 35vh;
  min-height: 220px;
}

.page-hero .hero-content {
  padding: 28px 20px 32px;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  min-height: 48px;
  line-height: 1.3;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}

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

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-dark {
  background: var(--primary-dark);
  color: var(--white);
}

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

/* ===== SECTIONS ===== */
.section {
  padding: 60px 0;
}

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

.section-dark {
  background: var(--primary-dark);
  color: var(--text-on-dark);
}

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

.section-header {
  margin-bottom: 40px;
}

.section-header .label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

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

.section-dark .section-header p {
  color: var(--text-on-dark-muted);
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

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

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

.service-card-body {
  padding: 24px;
}

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

.service-card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.service-card-body .card-link {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.service-card-body .card-link:hover {
  gap: 10px;
}

/* ===== FEATURES / BENEFITS ===== */
.features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 1.2rem;
  font-weight: 700;
}

.section-dark .feature-icon {
  background: rgba(201,169,110,0.15);
  color: var(--accent);
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-weight: 600;
}

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

.section-dark .feature-item p {
  color: var(--text-on-dark-muted);
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.section-dark .testimonial-card {
  background: var(--primary-mid);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
  font-style: italic;
}

.section-dark .testimonial-card blockquote {
  color: var(--text-on-dark);
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-dark);
}

.section-dark .testimonial-author {
  color: var(--accent);
}

.testimonial-source {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.section-dark .testimonial-source {
  color: var(--text-on-dark-muted);
}

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--accent);
  padding: 48px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--primary-dark);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.cta-band p {
  color: var(--primary-dark);
  opacity: 0.8;
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.cta-band .btn {
  background: var(--primary-dark);
  color: var(--white);
}

.cta-band .btn:hover {
  background: var(--bg-dark);
}

.cta-band .cta-phone {
  margin-top: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.cta-band .cta-phone a {
  text-decoration: underline;
}

/* ===== CONTENT SECTIONS — text + image ===== */
.content-split {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.content-split-text {
  flex: 1;
}

.content-split-text h2 {
  margin-bottom: 16px;
}

.content-split-text .label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.content-split-image {
  flex: 1;
}

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

/* ===== SERVICE DETAIL PAGE ===== */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.service-detail-item {
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent);
}

.service-detail-item h3 {
  margin-bottom: 8px;
}

.service-detail-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(201,169,110,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.contact-info-item h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info-item p,
.contact-info-item a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-info-item a:hover {
  color: var(--accent);
}

/* Contact form */
.contact-form {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition);
}

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

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

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.contact-form .btn {
  width: 100%;
  margin-top: 8px;
}

/* ===== HOURS TABLE ===== */
.hours-table {
  width: 100%;
}

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

.hours-table td {
  padding: 10px 0;
  font-size: 0.95rem;
}

.hours-table td:first-child {
  font-weight: 500;
  color: var(--text);
}

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

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-muted);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-on-dark-muted);
}

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

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
}

/* ===== MAP PLACEHOLDER ===== */
.map-container {
  width: 100%;
  height: 300px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

/* ===== ABOUT PAGE ===== */
.about-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.about-value {
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.about-value h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.about-value p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== STAT COUNTER ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.section-dark .stat-item .stat-label {
  color: var(--text-on-dark-muted);
}

/* ===== PRIVACY / LEGAL PAGES ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.legal-content h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.legal-content p, .legal-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

  .container { padding: 0 40px; }

  .section { padding: 80px 0; }

  .section-header h2 { font-size: 2.2rem; }

  /* Hero: image takes left half, content right */
  .hero {
    flex-direction: row;
    min-height: 100vh;
  }

  .hero-image {
    width: 50%;
    height: auto;
    min-height: 100vh;
    order: 1;
  }

  .hero-content {
    width: 50%;
    padding: 120px 48px 48px;
    order: 2;
  }

  .hero-content h1 {
    font-size: 2.6rem;
  }

  .hero-actions {
    flex-direction: row;
  }

  /* Page hero */
  .page-hero {
    flex-direction: row;
    min-height: 45vh;
  }

  .page-hero .hero-image {
    width: 50%;
    min-height: 45vh;
    height: auto;
  }

  .page-hero .hero-content {
    width: 50%;
    padding: 100px 48px 48px;
  }

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

  /* Grids */
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .features-list { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .gallery-grid img { height: 220px; }
  .about-values { grid-template-columns: repeat(2, 1fr); }

  /* Content split — side by side */
  .content-split {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .content-split.reverse {
    flex-direction: row-reverse;
  }

  .content-split-image img {
    height: 380px;
  }

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

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

  .contact-form { padding: 40px; }
}

/* ===== RESPONSIVE — DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
  /* Show desktop nav, hide burger */
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }

  .header-inner { padding: 16px 40px; }

  .hero-content { padding: 120px 64px 64px; }
  .hero-content h1 { font-size: 3rem; }

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

  .content-split { gap: 64px; }
  .content-split-image img { height: 440px; }

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

/* ===== RESPONSIVE — LARGE DESKTOP (1280px+) ===== */
@media (min-width: 1280px) {
  .container { padding: 0 60px; }
  .section { padding: 100px 0; }
  .hero-content h1 { font-size: 3.4rem; }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ===== PHONE LINK ===== */
.phone-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
}

.phone-link:hover {
  text-decoration: underline;
}
