/*
Theme Name: Toronto Mergers & Acquisitions (Modern)
Theme URI: https://torontomergers.com
Author: Toronto Mergers & Acquisitions
Description: Modern boutique M&A advisory theme with custom templates and Deals integration.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: toronto-ma-modern
*/
:root{--navy:#0b2a4a;--blue:#113e6b;--light:#f6f8fb;--ink:#1b1f27;--muted:#64748b;--accent:#3b82f6;--radius:14px;--container:1140px;--space:1.25rem}
*{box-sizing:border-box}html,body{margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif;color:var(--ink);background:#fff;line-height:1.7}
a{color:var(--blue);text-decoration:none}a:hover{opacity:.9}
.container{max-width:var(--container);margin:0 auto;padding:0 var(--space)}
.site-header{position:sticky;top:0;background:#fff9;backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid #eee;z-index:50}
.navbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0}
.brand{font-weight:800;color:var(--navy);letter-spacing:.2px}
.menu{display:flex;gap:1.1rem;list-style:none;margin:0;padding:0}.menu a{padding:.4rem .6rem;border-radius:10px}.menu a.cta{background:var(--navy);color:#fff}
.hero{padding:6rem 0;background:linear-gradient(180deg,#f2f6ff,#fff);text-align:center}
.hero h1{font-size:clamp(2rem,4.5vw,3.2rem);margin:0 0 .6rem;color:var(--navy)}
.hero p.lead{font-size:1.12rem;color:var(--muted);max-width:760px;margin:.2rem auto 1.2rem}
.btn{display:inline-block;padding:.8rem 1.1rem;border-radius:12px;border:1px solid #dbe3ef}.btn.primary{background:var(--navy);color:#fff;border-color:var(--navy)}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.2rem}
.card{border:1px solid #e5eaf2;border-radius:var(--radius);padding:1.1rem;background:#fff;box-shadow:0 2px 6px rgba(3,10,18,.04)}
.section{padding:3.2rem 0}.section h2{margin:0 0 .8rem;color:var(--navy)}.kicker{display:inline-block;font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:.4rem}
.site-footer{background:var(--light);border-top:1px solid #e5eaf2;margin-top:3rem;padding:2.2rem 0;color:var(--muted)}.site-footer a{color:var(--muted)}
.deal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.1rem}
.deal-card{border:1px solid #e5eaf2;border-radius:var(--radius);padding:1rem;background:#fff}.deal-card h3{font-size:1.05rem;margin:.4rem 0}
img{max-width:100%;height:auto;border-radius:10px}
@media (max-width:720px){.menu{display:none}}
/* Ensure logo is visible and sized properly */
.custom-logo-link img,
.custom-logo {
  display: inline-block !important;
  max-height: 70px;
  width: auto;
  height: auto;
  vertical-align: middle;
}
.brand img {
  max-height: 70px;
  width: auto;
  height: auto;
}

/* === General Layout === */
body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #222;
  line-height: 1.6;
  background-color: #fafafa;
  margin: 0;
}

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

h1, h2, h3, h4 {
  font-weight: 600;
  color: #002244;
}

a {
  color: #004aad;
  text-decoration: none;
}
a:hover {
  color: #002e6d;
  text-decoration: underline;
}

/* === Header === */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand img {
  max-height: 60px;
}

/* === Menu === */
.menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu li a {
  color: #222;
  font-weight: 500;
  transition: color 0.2s ease;
}
.menu li a:hover {
  color: #004aad;
}

/* === Deal Grid === */
.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.deal-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.deal-card h3 {
  font-size: 1.1rem;
  margin-top: 1rem;
}

.deal-card p {
  color: #555;
}

/* === Footer === */
footer {
  background: #002244;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
  margin-top: 3rem;
}

/* === Header (fixed layout) === */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: nowrap;
  gap: 2rem;
}

.brand {
  flex-shrink: 0;
}

.brand img {
  max-height: 60px;
  width: auto;
  display: block;
}

/* === Menu (modern horizontal) === */
.menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  white-space: nowrap;
}

.menu li a {
  color: #111;
  font-weight: 500;
  text-decoration: none;
  transition: col

.hero-video {
  position: relative;
  height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.45);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.55));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
  padding: 2rem;
  animation: fadeInHero 1.5s ease forwards;
}

@keyframes fadeInHero {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-content .lead {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.9);
}

/* Hero video fade-in and cinematic glow */
.hero-bg {
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}
.hero-bg.fade-in {
  opacity: 1;
}
.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
  mix-blend-mode: soft-light;
}
/* Hero text color and contrast */
.hero-content h1,
.hero-content .kicker,
.hero-content .lead {
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.tombstone-frame {
  border: 1px solid #ccc;
  padding: 40px 20px;
  max-width: 500px;
  margin: 40px auto;
  text-align: center;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tombstone-logo {
  max-width: 220px;
  margin: 0 auto 10px;
  display: block;
}

.company-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.company-description {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #444;
}

.deal-action {
  font-weight: 600;
  letter-spacing: 1px;
  color: #555;
  margin-bottom: 5px;
}

.buyer-name {
  font-size: 2rem;
  font-weight: 700;
  color: #8c3b16; /* warm brown like Freestone */
  margin-bottom: 10px;
}

.advisor-text {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #444;
}

.advisor-logo {
  max-width: 180px;
  margin: 10px auto 0;
}
.tombstone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.tombstone-frame {
  border: 1px solid #ccc;
  background: #fff;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.tombstone-logo {
  max-width: 200px;
  margin: 0 auto 10px;
  display: block;
}

.tombstone-frame h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.tombstone-text {
  font-size: 1rem;
  color: #444;
}

