/* Marios Performance — supplementary styles beyond theme.json */

:root {
  --marios-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --marios-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --marios-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --marios-radius: 0.75rem;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Buttons — consistent rounded look */
.wp-block-button__link {
  border-radius: var(--marios-radius);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color .2s ease, transform .2s ease;
}
.wp-block-button.is-style-outline .wp-block-button__link {
  border-width: 2px;
}

/* Cards */
.marios-card {
  box-sizing: border-box;
  width: 100%;
  min-height: 100%;
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--marios-radius);
  padding: 1.5rem;
  transition: box-shadow .2s ease, transform .2s ease;
  height: auto;
  overflow-wrap: anywhere;
}
.marios-card:hover {
  box-shadow: var(--marios-shadow-md);
  transform: translateY(-2px);
}

/* Service card spacing — applies to existing page content and patterns */
.marios-services-grid {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem !important;
  width: 100%;
  padding: 0 1.5rem;
}
.wp-block-columns:has(.marios-card),
.marios-services-highlight-grid {
  gap: 2rem !important;
  align-items: stretch !important;
}
.wp-block-columns:has(.marios-card) > .wp-block-column,
.marios-services-highlight-grid > .wp-block-column {
  min-width: 0;
  margin-bottom: 1.5rem;
}
.wp-block-columns:has(.marios-card) .marios-card,
.marios-services-highlight-grid .marios-card {
  margin-bottom: 0;
}

@media (max-width: 781px) {
  .marios-services-grid { grid-template-columns: 1fr; gap: 1.5rem !important; }
  .wp-block-columns:has(.marios-card),
  .marios-services-highlight-grid { gap: 1.5rem !important; }
}

.marios-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(225, 29, 29, 0.1);
  color: var(--wp--preset--color--primary);
  margin-bottom: 1rem;
}
.marios-icon-circle svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Hero overlay */
.marios-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.marios-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(38, 38, 38, 0.72);
}
.marios-hero > * { position: relative; z-index: 1; }

/* Brand logos */
.marios-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.marios-brand-logo {
  width: 6rem; height: 6rem;
  background: #fff;
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  box-shadow: var(--marios-shadow-sm);
  transition: box-shadow .25s ease;
}
.marios-brand-logo img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter .25s ease;
}
.marios-brand:hover .marios-brand-logo { box-shadow: var(--marios-shadow-md); }
.marios-brand:hover .marios-brand-logo img { filter: none; }

/* Gallery masonry */
.marios-gallery {
  column-count: 1;
  column-gap: 1rem;
}
@media (min-width: 640px) { .marios-gallery { column-count: 2; } }
@media (min-width: 1024px) { .marios-gallery { column-count: 3; } }
.marios-gallery figure {
  break-inside: avoid;
  margin: 0 0 1rem 0;
  border-radius: var(--marios-radius);
  overflow: hidden;
  cursor: zoom-in;
}
.marios-gallery img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .3s ease;
}
.marios-gallery figure:hover img { transform: scale(1.04); }

/* Lightbox */
.marios-lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
  cursor: zoom-out;
}
.marios-lightbox.is-open { display: flex; }
.marios-lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: var(--marios-radius);
  box-shadow: var(--marios-shadow-lg);
}
.marios-lightbox-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.marios-lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* Header logo two-row layout */
.marios-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--wp--preset--color--border);
}

/* Footer */
.marios-footer {
  background: var(--wp--preset--color--foreground);
  color: rgba(255,255,255,0.7);
}
.marios-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.marios-footer a:hover { color: #fff; }
.marios-footer h4 {
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

/* Contact info card */
.marios-info-row {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem;
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--marios-radius);
}
.marios-info-row .marios-icon-circle { margin: 0; width: 2.5rem; height: 2.5rem; flex-shrink: 0; }
.marios-info-row .marios-icon-circle svg { width: 1.125rem; height: 1.125rem; }
.marios-info-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--muted-foreground);
  font-weight: 500;
}
.marios-info-value { color: var(--wp--preset--color--foreground); font-weight: 500; margin-top: 0.25rem; }
.marios-info-value a { color: inherit; text-decoration: none; }
.marios-info-value a:hover { color: var(--wp--preset--color--primary); }

/* Map iframe wrapper */
.marios-map {
  border-radius: var(--marios-radius);
  overflow: hidden;
  border: 1px solid var(--wp--preset--color--border);
  min-height: 360px;
}
.marios-map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }

/* Blog post cards */
.marios-post-card {
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--marios-radius);
  overflow: hidden;
  transition: box-shadow .2s ease;
  display: flex; flex-direction: column; height: 100%;
}
.marios-post-card:hover { box-shadow: var(--marios-shadow-md); }
.marios-post-card img { width: 100%; height: 200px; object-fit: cover; }
.marios-post-card-body { padding: 1.25rem; }
.marios-badge {
  display: inline-block; padding: 0.25rem 0.625rem;
  background: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--foreground);
  border-radius: 999px; font-size: 0.75rem; font-weight: 500;
}

/* Stats band */
.marios-stats {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground);
  padding: 4rem 0;
}
.marios-stat-value { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; }
.marios-stat-label { opacity: 0.8; margin-top: 0.5rem; font-size: 0.875rem; font-weight: 500; }
/* ===== Custom Site Header (matches original design) ===== */
.marios-site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--wp--preset--color--border); background: rgba(250,250,250,0.95); backdrop-filter: blur(8px); }
.marios-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.marios-header-logo { display: inline-flex; align-items: center; }
.marios-header-logo img { height: 56px; width: auto; display: block; }
.marios-nav-desktop { display: flex; gap: 4px; align-items: center; }
.marios-nav-desktop a { padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--wp--preset--color--muted-foreground); text-decoration: none; transition: background 0.2s, color 0.2s; }
.marios-nav-desktop a:hover { background: var(--wp--preset--color--secondary); color: var(--wp--preset--color--foreground); }
.marios-header-actions { display: flex; align-items: center; gap: 12px; }
.marios-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; text-decoration: none; border: none; cursor: pointer; transition: opacity 0.2s; }
.marios-btn-primary { background: var(--wp--preset--color--primary); color: #fff; }
.marios-btn-primary:hover { opacity: 0.9; color: #fff; }
.marios-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--wp--preset--color--foreground); }
.marios-mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }
.marios-mobile-overlay.open { display: block; }
.marios-mobile-menu { position: fixed; top: 0; right: 0; width: 288px; height: 100vh; background: #fff; z-index: 100; padding: 24px; box-shadow: -4px 0 20px rgba(0,0,0,0.1); transform: translateX(100%); transition: transform 0.3s; }
.marios-mobile-menu.open { transform: translateX(0); }
.marios-mobile-menu h3 { font-size: 18px; margin: 0 0 24px; }
.marios-mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.marios-mobile-menu nav a { padding: 12px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--wp--preset--color--muted-foreground); text-decoration: none; }
.marios-mobile-menu nav a:hover { background: var(--wp--preset--color--secondary); color: var(--wp--preset--color--foreground); }
.marios-mobile-cta { justify-content: center; margin-top: 16px; color: #fff !important; }
.marios-mobile-close { position: absolute; top: 16px; right: 16px; background: none; border: none; cursor: pointer; padding: 4px; }
@media (max-width: 860px) {
  .marios-nav-desktop { display: none; }
  .marios-hamburger { display: inline-flex; }
  .marios-header-actions .marios-btn-primary span, .marios-header-actions .marios-btn-primary { font-size: 13px; padding: 6px 12px; }
}
