/* ================================================
   TOMASO RESTAURANT MARKETING PAGES
   Shared styles for main + 3 sub-pages
   ================================================ */

/* ── Base ─────────────────────────────────────── */
.tomaso-rest-page {
  background: linear-gradient(180deg, #0a0a2e 0%, #060620 30%, #050518 60%, #000 100%);
  min-height: 100vh;
  padding-top: 100px;
  font-family: var(--font-primary, 'Assistant', sans-serif);
  overflow: hidden;
}

/* ── Gradient text ────────────────────────────── */
.tr-gradient {
  background: linear-gradient(135deg, var(--color-primary, #38C4DA), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero ─────────────────────────────────────── */
.tr-hero {
  position: relative;
  padding: 80px 24px 60px;
  text-align: center;
  overflow: hidden;
}

.tr-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(56, 196, 218, 0.12), transparent 50%),
    radial-gradient(circle at 30% 80%, rgba(231, 67, 122, 0.08), transparent 50%);
  pointer-events: none;
}

.tr-hero-inner {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.tr-hero-label {
  color: var(--color-primary, #38C4DA);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 20px;
  font-weight: 700;
}

.tr-hero-title {
  font-family: var(--font-display, 'Bebas Neue', cursive);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1;
}

.tr-hero-desc {
  font-size: 1.2rem;
  color: #a0aec0;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Section shared ───────────────────────────── */
.tr-section {
  position: relative;
  padding: 96px 24px;
}

.tr-section-border {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tr-container {
  max-width: 1200px;
  margin: 0 auto;
}

.tr-section-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  z-index: 10;
}

.tr-section-label {
  color: var(--color-primary, #38C4DA);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 12px;
  font-weight: 700;
}

.tr-section-title {
  font-family: var(--font-display, 'Bebas Neue', cursive);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 12px;
}

.tr-section-subtitle {
  font-size: 1.15rem;
  color: #9ca3af;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Service Cards (main page 3-cards) ────────── */
.tr-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tr-service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.tr-service-card:hover {
  border-color: var(--card-color, var(--color-primary, #38C4DA));
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.tr-service-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center bottom, var(--card-color, #38C4DA), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
}

.tr-service-card:hover .tr-service-card-glow {
  opacity: 0.06;
}

.tr-service-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 36px;
  position: relative;
  z-index: 5;
}

.tr-service-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  z-index: 5;
  transition: color 0.3s;
}

.tr-service-card:hover .tr-service-card-title {
  color: var(--card-color, var(--color-primary, #38C4DA));
}

.tr-service-card-desc {
  font-size: 0.95rem;
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 24px;
  position: relative;
  z-index: 5;
}

.tr-service-card-link {
  color: var(--card-color, var(--color-primary, #38C4DA));
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 5;
  margin-top: auto;
  transition: gap 0.3s;
}

.tr-service-card:hover .tr-service-card-link {
  gap: 12px;
}

/* ── Intro / Text Block ───────────────────────── */
.tr-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.tr-intro-text h2 {
  font-family: var(--font-display, 'Bebas Neue', cursive);
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.1;
}

.tr-intro-text p {
  font-size: 1.1rem;
  color: #9ca3af;
  line-height: 1.8;
  margin-bottom: 16px;
}

.tr-intro-image {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 4 / 3;
}

.tr-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Features Grid ────────────────────────────── */
.tr-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tr-feature {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 28px;
  transition: all 0.3s ease;
}

.tr-feature:hover {
  border-color: rgba(56, 196, 218, 0.3);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
}

.tr-feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.tr-feature h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.tr-feature p {
  font-size: 0.9rem;
  color: #9ca3af;
  line-height: 1.7;
}

/* ── Video Grid ───────────────────────────────── */
.tr-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tr-video-card {
  cursor: pointer;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s ease;
}

.tr-video-card:hover {
  border-color: var(--color-primary, #38C4DA);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(56, 196, 218, 0.12);
}

.tr-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.tr-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tr-video-card:hover .tr-video-thumb img {
  transform: scale(1.08);
}

.tr-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.tr-video-card:hover .tr-video-overlay {
  opacity: 1;
}

.tr-play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(56, 196, 218, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  box-shadow: 0 0 30px rgba(56, 196, 218, 0.5);
  transition: transform 0.3s;
  padding-left: 4px;
}

.tr-video-card:hover .tr-play-btn {
  transform: scale(1.15);
}

.tr-video-info {
  padding: 18px 22px;
}

.tr-video-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  transition: color 0.3s;
}

.tr-video-card:hover .tr-video-info h3 {
  color: var(--color-primary, #38C4DA);
}

.tr-video-info p {
  font-size: 0.85rem;
  color: #9ca3af;
  line-height: 1.5;
}

/* ── Case Study Cards ─────────────────────────── */
.tr-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tr-case-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.tr-case-card:hover {
  border-color: var(--case-color, #38C4DA);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.tr-case-logo-area {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(20, 20, 50, 0.8), rgba(10, 10, 30, 0.9));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.tr-case-logo-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--case-color, #38C4DA), transparent 70%);
  opacity: 0.08;
  transition: opacity 0.5s;
}

.tr-case-card:hover .tr-case-logo-glow {
  opacity: 0.2;
}

.tr-case-logo-area img {
  max-width: 140px;
  max-height: 90px;
  object-fit: contain;
  position: relative;
  z-index: 5;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  transition: transform 0.5s;
}

.tr-case-card:hover .tr-case-logo-area img {
  transform: scale(1.1);
}

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

.tr-case-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.tr-case-card:hover .tr-case-body h3 {
  color: var(--case-color, #38C4DA);
}

.tr-case-body > p {
  font-size: 0.9rem;
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 16px;
}

.tr-case-stats {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tr-case-stat {
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.tr-case-stat-label {
  display: block;
  font-size: 0.7rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.tr-case-stat-value {
  font-family: var(--font-display, 'Bebas Neue', cursive);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

/* ── CTA Section ──────────────────────────────── */
.tr-cta {
  position: relative;
  padding: 128px 24px;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tr-cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(56, 196, 218, 0.1), transparent 60%);
  pointer-events: none;
}

.tr-cta-inner {
  position: relative;
  z-index: 10;
  max-width: 700px;
  margin: 0 auto;
}

.tr-cta-title {
  font-family: var(--font-display, 'Bebas Neue', cursive);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 24px;
}

.tr-cta-desc {
  font-size: 1.2rem;
  color: #9ca3af;
  line-height: 1.8;
  margin-bottom: 36px;
}

.tr-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ── Breadcrumb ───────────────────────────────── */
.tr-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}

.tr-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.tr-breadcrumb a:hover {
  color: var(--color-primary, #38C4DA);
}

.tr-breadcrumb span {
  color: #4b5563;
  font-size: 0.75rem;
}

.tr-breadcrumb-current {
  color: var(--color-primary, #38C4DA) !important;
  font-weight: 600;
  font-size: 0.85rem;
}

/* ── Video Modal ──────────────────────────────── */
.tr-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.tr-modal-open { display: flex; }

.tr-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  z-index: 100000;
  line-height: 1;
  padding: 0;
}

.tr-modal-close:hover {
  color: var(--color-primary, #38C4DA);
}

.tr-modal-body {
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
}

.tr-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* ── WP Overrides ─────────────────────────────── */
[class*="page-template-template-restaurant"] .site-content,
.page-template-template-restaurant-marketing .site-content,
.page-template-template-restaurant-social .site-content,
.page-template-template-restaurant-ads .site-content,
.page-template-template-restaurant-video .site-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

[class*="page-template-template-restaurant"] .ast-container,
.page-template-template-restaurant-marketing .ast-container,
.page-template-template-restaurant-social .ast-container,
.page-template-template-restaurant-ads .ast-container,
.page-template-template-restaurant-video .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}

[class*="page-template-template-restaurant"] .site-main > article,
[class*="page-template-template-restaurant"] .entry-content {
  margin: 0 !important;
  padding: 0 !important;
}

[class*="page-template-template-restaurant"] .entry-header,
[class*="page-template-template-restaurant"] .entry-title {
  display: none !important;
}

[class*="page-template-template-restaurant"] .entry-content > .elementor,
[class*="page-template-template-restaurant"] .entry-content > [data-elementor-type="wp-page"] {
  display: none !important;
}

/* ================================================
   RESPONSIVE — TABLET
   ================================================ */
@media (max-width: 1024px) {
  .tr-services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tr-service-card {
    flex-direction: row;
    text-align: right;
    padding: 28px;
    gap: 24px;
  }

  .tr-service-card-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .tr-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tr-intro-image {
    order: -1;
  }

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

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

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

  .tr-cases-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ================================================
   RESPONSIVE — MOBILE
   ================================================ */
@media (max-width: 768px) {
  .tomaso-rest-page {
    padding-top: 80px;
  }

  .tr-hero {
    padding: 50px 20px 40px;
  }

  .tr-hero-title {
    font-size: 3.5rem;
  }

  .tr-service-card {
    flex-direction: column;
    text-align: center;
  }

  .tr-features-grid,
  .tr-video-grid,
  .tr-cases-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tr-cases-grid > :last-child {
    max-width: none;
  }

  .tr-section {
    padding: 64px 16px;
  }

  .tr-section-title {
    font-size: 2rem;
  }

  .tr-cta {
    padding: 80px 20px;
  }

  .tr-cta-title {
    font-size: 3rem;
  }

  .tr-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .tr-modal-body {
    width: 95%;
  }
}

@media (max-width: 480px) {
  .tr-hero-title { font-size: 2.8rem; }
  .tr-cta-title  { font-size: 2.5rem; }
  .tr-case-stats { grid-template-columns: 1fr; }
}
