/*
 Theme Name: Mackenzie Day — EPSS Child
 Theme URI: https://webmasterandmore.com/
 Description: Child theme that replicates the UCLA EPSS faculty site layout for Mackenzie Day.
 Author: Omar Abuassaf
 Author URI: https://webmasterandmore.com/
 Template: twentytwentyfive
 Version: 1.1.1
 License: GPLv2 or later
 Text Domain: mday-child
*/

/* === Landing page styles (converted) === */
:root{
  --bg: #ffffff;
  --card: #ffffff;
  --muted: #475569;
  --text: #0b1220;
  --accent: #3b82f6;  /* blue */
  --accent-2: #06b6d4;/* teal */
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger:#ef4444;
  --ring: 0 0 0 .08rem #3b82f655, 0 6px 24px #3b82f61a;
}
html{scroll-behavior:smooth}
body{
  margin:0; font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji"; 
  color:var(--text); background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 20% -10%, #3b82f625, transparent 60%),
    radial-gradient(1000px 600px at 100% 0%, #06b6d422, transparent 60%);
  min-height:100vh;
}
.container{width:100%; max-width:1400px; margin-inline:auto; padding:0 5%}
header{
  position:sticky; top:0; z-index:40; backdrop-filter:saturate(140%) blur(8px);
  background: #ffffffcc;
  border-bottom: 1px solid #e2e8f0;
}
.nav{display:flex; align-items:center; justify-content:space-between; padding:14px 0}
.brand{display:flex; gap:10px; align-items:center; text-decoration:none; color:var(--text)}
.logo{inline-size:36px; block-size:36px; border-radius:10px; background:linear-gradient(135deg,var(--accent),var(--accent-2)); display:grid; place-items:center; box-shadow:var(--ring)}
.logo svg{width:22px; height:22px; fill:white}
nav a{color:var(--muted); text-decoration:none; margin:0 10px; font-weight:600}
nav a:hover{color:var(--accent)}
.btn{border:0; padding:12px 16px; border-radius:14px; background:linear-gradient(135deg,var(--accent),var(--accent-2)); color:white; font-weight:700; cursor:pointer; letter-spacing:.2px; box-shadow:var(--ring)}
.btn.ghost{background:transparent; color:var(--text); border:1px solid #cbd5e1; box-shadow:none}
.btn.small{padding:8px 12px; border-radius:10px; font-weight:700}



.phone{aspect-ratio: 9/16; border-radius:24px; background:#f8fafc; border:1px solid #e2e8f0; box-shadow:0 20px 60px #1e293b22; overflow:hidden; position:relative}
.phone .bar{position:absolute; inset:0; display:grid; place-items:center; color:#0369a1; font-weight:800; letter-spacing:.08em; font-size:13px; text-transform:uppercase; background: linear-gradient( to bottom, #e0f2fe55, transparent 40%)}
.phone video, .phone img{width:100%; height:100%; object-fit:cover}

/* Sections */
section{padding:64px 5%}
.section-title{font-size: clamp(22px, 3.2vw, 34px); margin:0 0 10px}
.section-lead{color:var(--muted); max-width:70ch}
.grid-3{display:grid; gap:18px; grid-template-columns: repeat(3, 1fr)}
.card{background:var(--card); border: 1px solid #e2e8f0; padding:18px; border-radius:18px; box-shadow:0 2px 6px #0000000d}
.card h3{margin:0 0 8px}
.badge{display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border-radius:999px; background:#dbeafe; color:#1d4ed8; border:1px solid #93c5fd; font-weight:700; font-size:12px}





/* Pricing */
/* ===== Pricing (scoped, conflict-proof) ===== */
#midp-pricing.midp{
  --text: var(--text, #0b1220);
  --muted: var(--muted, #475569);
  --card: var(--card, #ffffff);
  --border: var(--border, #e2e8f0);
  --accent: var(--accent, #3b82f6);
  --accent2: var(--accent-2, #06b6d4);
  --shadow: 0 8px 28px rgba(2,6,23,.08);
  color: var(--text);
  background: transparent;
}
/* hard-stop any rogue vertical text rules from themes */
#midp-pricing *{ writing-mode: horizontal-tb !important; text-orientation: mixed !important; }

#midp-pricing .midp__wrap{ max-width:1120px; margin-inline:auto; padding:32px 16px; }
#midp-pricing .midp__eyebrow{ margin:0 0 6px; text-transform:uppercase; letter-spacing:.12em; font-size:12px; color:var(--muted); }
#midp-pricing .midp__title{ margin:0 0 8px; font-size:clamp(24px,3.6vw,36px); line-height:1.15; letter-spacing:-.02em; }
#midp-pricing .midp__sub{ margin:0 0 18px; color:var(--muted); font-size:clamp(14px,1.8vw,16px); }

#midp-pricing .midp__grid{
  display:grid; gap:18px; margin-top:8px;
  grid-template-columns:1fr;
}
@media (min-width:720px){ #midp-pricing .midp__grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:1024px){ #midp-pricing .midp__grid{ grid-template-columns:repeat(3,minmax(0,1fr)); } }

#midp-pricing .plan{
  position:relative; display:flex; flex-direction:column; gap:12px;
  background:var(--card); border:1px solid var(--border); border-radius:16px; padding:18px;
  box-shadow:var(--shadow);
}
@media (min-width:768px){ #midp-pricing .plan{ padding:22px; } }

#midp-pricing .plan--popular{
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 10px 36px rgba(59,130,246,.18);
}
#midp-pricing .plan__badge{
  position:absolute; top:12px; right:12px;
  padding:6px 10px; border-radius:999px; font-size:12px; font-weight:700; color:#fff;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  box-shadow:0 0 0 .08rem color-mix(in srgb, var(--accent) 35%, transparent);
}

#midp-pricing .plan__head{ display:grid; gap:4px; }
#midp-pricing .plan__name{ margin:0; font-size:18px; letter-spacing:-.01em; }
#midp-pricing .plan__desc{ margin:0; color:var(--muted); font-size:14px; }

#midp-pricing .plan__priceRow{ display:flex; align-items:baseline; gap:8px; }
#midp-pricing .plan__price{ font-size:clamp(30px,5.5vw,44px); font-weight:900; letter-spacing:-.5px; }
#midp-pricing .plan__cycle{ color:var(--muted); font-size:14px; }

#midp-pricing .plan__divider{ height:1px; background:var(--border); border:0; margin:4px 0 6px; }

#midp-pricing .plan__features{ list-style:none; padding:0; margin:0; display:grid; gap:10px; }
#midp-pricing .plan__features .midp-feature{
  display:grid;
  grid-template-columns:20px minmax(0,1fr); /* icon | flexible text */
  align-items:start; gap:10px;
}
#midp-pricing .midp-icon{ width:18px; height:18px; margin-top:2px; color:var(--accent); flex:none; }
#midp-pricing .plan__features .midp-feature > span{
  display:block; min-width:0; white-space:normal; word-break:normal; overflow-wrap:anywhere; hyphens:auto;
  line-height:1.45;
}

#midp-pricing .plan__note{ margin:4px 0 0; color:var(--muted); font-size:13px; }

#midp-pricing .plan__cta{ margin-top:auto; }
#midp-pricing .midp-btn{
  display:inline-flex; justify-content:center; align-items:center; width:100%;
  padding:12px 14px; border-radius:12px; font-weight:800; text-decoration:none; border:1px solid var(--border);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
#midp-pricing .midp-btn--primary{
  color:#fff; border-color:transparent;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  box-shadow:0 0 0 .08rem color-mix(in srgb, var(--accent) 35%, transparent);
}
#midp-pricing .midp-btn--secondary{ color:var(--text); background:#fff; }
#midp-pricing .midp-btn:hover{ transform:translateY(-1px); }

#midp-pricing .midp__fine{ margin:18px auto 0; text-align:center; color:var(--muted); font-size:14px; }
#midp-pricing .midp__link{ color:var(--accent); font-weight:700; text-decoration:none; }
#midp-pricing .midp__link:hover{ text-decoration:underline; }

@media (prefers-reduced-motion: reduce){
  #midp-pricing .midp-btn{ transition:none; }
}


/* --- Fix: make Starter Site CTA visible regardless of global overrides --- */
#midp-pricing .plan__cta{ margin-top:auto; }

/* Ensure the primary button actually shows the gradient + white text */
#midp-pricing .midp-btn--primary{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  width:100%;
  background: linear-gradient(135deg, var(--accent, #3b82f6), var(--accent-2, #06b6d4)) !important;
  color:#fff !important;
  border-color: transparent !important;
  box-shadow: 0 0 0 .08rem color-mix(in srgb, var(--accent, #3b82f6) 35%, transparent) !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Guard against containers that clip the bottom of the card */
#midp-pricing .plan,
#midp-pricing .midp__grid{
  overflow: visible !important;
}

/* If some framework sets z-index on overlays, keep the button on top */
#midp-pricing .plan__cta,
#midp-pricing .midp-btn{ position: relative; z-index: 2; }




/* Contact */
form{display:grid; gap:12px; max-width:800px}
input, textarea, select{background:#ffffff; color:var(--text); border:1px solid #cbd5e1; padding:12px 14px; border-radius:12px; outline:none}
input:focus, textarea:focus{box-shadow:var(--ring); border-color:#3b82f666}
textarea{min-height:120px}

/* Footer */
footer{border-top:1px solid #e2e8f0; padding:36px 5%; color:var(--muted); background:#f8fafc}
.foot{display:flex; gap:14px; align-items:center; justify-content:space-between; flex-wrap:wrap}

/* Responsive */
@media (max-width: 960px){
  .hero-grid{grid-template-columns: 1fr}
  .grid-3{grid-template-columns: 1fr}
  .pricing{grid-template-columns: 1fr}
}


/* Hero media (16:9 rectangle) */
/* ===== Hero: Side-by-Side Cards ===== */
.hero-cards { padding: 72px 5% 48px; }
.hero-cards .hero-grid { 
  display:grid; 
  grid-template-columns: 1.05fr .95fr; 
  gap: 22px; 
  align-items: stretch; 
}

.hero-card-primary { 
  padding: 24px 22px; 
  border-radius: 18px; 
  border:1px solid #e2e8f0; 
  background: var(--card); 
  box-shadow: 0 8px 22px #0b122007;
}
.hero-card-primary .features { margin-top: 14px; }
.hero-card-primary .features li { gap: 8px; }

/* Spread content top→middle→bottom in the blue card */
.hero-card-highlight {
  padding: 32px 26px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--ring);
  position: relative;
  overflow: hidden;
}

/* Decorative glow so empty space never feels empty */
.hero-card-highlight::after{
  content:"";
  position:absolute; inset:-20% -10% auto auto;
  width:360px; height:360px; border-radius:50%;
  background: radial-gradient(circle, #ffffff33 0, #ffffff10 40%, transparent 70%);
  pointer-events:none;
}

/* Make the card distribute content vertically */
.hero-card-highlight.hero-card-spread{
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* title at top, badges at bottom */
  min-height: 420px;              /* tweak to taste */
}

/* Middle section should flex to fill available space */
.hero-card-highlight .wins{
  flex: 1 1 auto;
  margin: 8px 0 16px;
  display: grid;
  gap: 10px;                      /* consistent spacing between bullets */
  align-content: center;          /* centers the list within its flex area */
  line-height: 1.5;
}

.hero-card-highlight .section-title{ margin: 0 0 10px; color:#fff; }

.hero-card-highlight .badges{
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 8px; /* sits at the bottom due to space-between */
}

.hero-card-highlight .badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  background:#ffffff22; color:#fff; border:1px solid #ffffff55;
  font-weight:700; font-size:12px;
}

/* Keep the whole hero equal-height */
.hero-cards .hero-grid{ align-items: stretch; } /* you already have this */
.hero-card-primary{ height: 100%; }
.hero-card-highlight{ height: 100%; }
/* Desktop/tablet: side by side */
.hero-cards .hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items: stretch;
}

/* Mobile: stack cards vertically */
@media (max-width: 768px) {
  .hero-cards .hero-grid {
    grid-template-columns: 1fr;   /* one column */
    gap: 16px;                    /* less space between */
  }

  .hero-card-primary,
  .hero-card-highlight {
    height: auto;                 /* reset equal heights */
    min-height: unset;
  }
  
/* ===== HERO CARD MOBILE FIX ===== */
/* ===== HERO CARD MOBILE FIX ===== */
@media (max-width: 768px){
  .hero-card-primary .btn {
    display: flex;
    flex-direction: column;    /* stack vertically */
    gap: 20px;                 /* Increased space between buttons */
    width: 100%;
    align-items: center;       /* Center the buttons horizontally */
    justify-content: center;   /* Center the buttons horizontally */
    margin-top: 15px;          /* Add some top margin to the button group */
    text-decoration: none !important;
  }

  .hero-card-primary .btn a,
  .hero-card-primary .btn button {
    width: 100%;               /* full width */
    text-align: center;
    font-size: 18px;           /* slightly larger for tap targets */
    padding: 14px 16px;
    border-radius: 10px;
    text-decoration: none !important;
  }

  /* Specific rule to remove underline from the 'How it Works' link */
  .hero-card-primary .btn a:not(.button-primary) { /* This targets anchor tags that are not the primary button */
    text-decoration: none !important; /* !important to ensure override */
    color: inherit; /* Maintain original text color if it's being reset */
  }

  /* If the 'How it Works' is also a button element, target it here */
  .hero-card-primary .btn button {
    text-decoration: none !important; /* Just in case it's a button, remove underline */
  }
  
  .hero-card-highlight.hero-card-spread{
      display:none !important;
  }
}

  .hero-card-highlight.hero-card-spread {
    justify-content: flex-start;  /* normal stacking on mobile */
  }
  
  


/* Menu */
/* ====== Global nav reset ====== */
/* Base */
.site-nav { display:flex; align-items:center; gap:14px; position:relative; } /* <- dot fixed */
.site-nav .menu { margin:0; padding:0; list-style:none; }

/* ====== Desktop ====== */
@media (min-width: 769px){
  .menu-toggle { display:none; }

  .site-nav .menu { display:flex; gap:18px; align-items:center; }

  .site-nav .menu > li > a{
    display:inline-flex; align-items:center;
    padding:10px 12px; border-radius:12px;
    text-decoration:none; color:var(--muted);
    font-weight:700;
    transition: transform .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease;
  }
  .site-nav .menu > li > a:hover{
    color:var(--text); background:#f1f5f9;
    box-shadow: 0 4px 14px #0b12200a; transform: translateY(-1px);
  }
  .site-nav .menu > li.current-menu-item > a,
  .site-nav .menu > li.current_page_item > a{
    color:#fff; background:linear-gradient(135deg,var(--accent),var(--accent-2));
    box-shadow:var(--ring);
  }
}


/* Optional: sticky header */
header{
  position:sticky; top:0; z-index:70;
  backdrop-filter:saturate(140%) blur(8px);
  background:#ffffffcc; border-bottom:1px solid #e2e8f0;
}

/* ===== Safety: prevent horizontal panning ===== */
html, body { overflow-x:hidden; overscroll-behavior-x:none; }

/* ===== Desktop reset: close button hidden, menu normal ===== */
@media (min-width: 769px){
  .menu-close { display:none !important; }
  nav.site-nav #primary-menu{
    position:static !important; transform:none !important;
    right:auto !important; left:auto !important;
    width:auto !important; height:auto !important;
    background:transparent !important; padding:0 !important; gap:0 !important;
    overflow:visible !important;
  }
}

/* ===== Mobile full-screen panel (transform, doesn’t affect layout) ===== */
@media (max-width: 768px){
  /* Keep hamburger from pushing layout */
  .menu-toggle{
    position:absolute; right:12px; top:50%;
    transform:translateY(-50%);
    z-index:10001;
    display:grid; place-items:center;
    width:42px; height:42px; border-radius:12px;
    border:1px solid #e2e8f0; background:#fff; color:var(--text);
    box-shadow:0 2px 10px #0000000a;
  }

  nav.site-nav #primary-menu{
    position:fixed !important; inset:0 !important;
    width:100vw !important; height:100dvh !important;
    margin:0 !important; padding:80px 20px 40px !important;

    display:flex !important; flex-direction:column !important;
    justify-content:center !important; align-items:center !important;
    gap:24px !important; list-style:none !important;

    background:linear-gradient(135deg,var(--accent),var(--accent-2)) !important;
    overflow-y:auto !important;

    /* off-canvas, no layout impact */
    transform:translate3d(100%,0,0) !important;
    transition:transform .35s cubic-bezier(.2,.7,.2,1) !important;
    will-change:transform;
    z-index:10000 !important;
  }
  nav.site-nav #primary-menu.open{ transform:translate3d(0,0,0) !important; }

  nav.site-nav #primary-menu > li{ width:100%; text-align:center; }
  nav.site-nav #primary-menu > li > a{
    display:inline-block; padding:16px 20px; border-radius:12px;
    text-decoration:none; font-weight:800; font-size:22px; color:#fff;
    transition:background .2s ease, transform .2s ease;
  }
  nav.site-nav #primary-menu > li > a:hover{
    background:rgba(255,255,255,.15); transform:translateY(-2px);
  }

  /* Close button shown only when nav is open */
  .menu-close{
    position:fixed; top:18px; right:18px;
    width:42px; height:42px; border-radius:12px;
    border:1px solid #ffffff55; background:#ffffff26; color:#fff;
    display:none; place-items:center; z-index:10002; backdrop-filter:blur(4px);
  }
  .site-nav.nav-open .menu-close{ display:grid; }
  .site-nav.nav-open .menu-toggle{ display:none; }
}


/**** here *****/
@media (max-width: 768px){
/* ===== MOBILE ONLY (≤768px) ===== */

/* ---------- Global safety (prevents any right-shift) ---------- */
*,
*::before,
*::after { box-sizing: border-box; }                 /* consistent sizing */
html, body { overflow-x: hidden; overscroll-behavior-x: none; }
body { padding-right: 0 !important; }                /* guard vs. scripts adding PR */

/* ---------- Header baseline so it never pushes layout ---------- */
.site-nav { position: relative; width: 100%; }       /* nav spans row but doesn't grow right */

/* ---------- Mobile adjustments ---------- */

  /* Keep hamburger from affecting layout */
  .menu-toggle{
    position:absolute; right:12px; top:50%;
    transform:translateY(-50%);
    z-index:10001;
  }

  /* Off-canvas panel: transform only (no layout impact) */
  nav.site-nav #primary-menu{
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 80px 20px 40px !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 24px !important;
    list-style: none !important;

    background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
    overflow-y: auto !important;

    transform: translate3d(100%,0,0) !important;     /* fully off-screen to RIGHT */
    transition: transform .35s cubic-bezier(.2,.7,.2,1) !important;
    will-change: transform;
    z-index: 10000 !important;

    /* NEW: when closed, make it inert to avoid swiping/scroll effects */
    pointer-events: none;
    touch-action: none;
  }
  nav.site-nav #primary-menu.open{
    transform: translate3d(0,0,0) !important;
    pointer-events: auto;                             /* active only when open */
    touch-action: auto;
  }

  /* Menu links */
  nav.site-nav #primary-menu > li { width:100%; text-align:center; }
  nav.site-nav #primary-menu > li > a{
    display:inline-block; padding:16px 20px; border-radius:12px;
    text-decoration:none; font-weight:800; font-size:22px; color:#fff;
    transition: background .2s ease, transform .2s ease;
  }
  nav.site-nav #primary-menu > li > a:hover{
    background: rgba(255,255,255,.15); transform: translateY(-2px);
  }

  /* Close button: nudged further right & up a touch */
  .menu-close{
    position: fixed; top:10px; right:8px;             /* was 18/18 — closer to the edge now */
    width:42px; height:42px; border-radius:12px;
    border:1px solid #ffffff55; background:#ffffff26; color:#fff;
    display:none; place-items:center; z-index:10002; backdrop-filter: blur(4px);
  }

  /* Swap ☰ and ✕ when open */
  .site-nav.nav-open .menu-close{ display:grid; }
  .site-nav.nav-open .menu-toggle{ display:none; }
}

/* ---------- Desktop safety: never show the ✕ ---------- */
@media (min-width: 769px){
  .menu-close { display: none !important; }
}

/* Make idea cards responsive on mobile */
@media (max-width: 768px) {
  .midim-grid {
    grid-template-columns: 1fr !important;   /* 1 column on mobile */
    gap: 16px;                               /* spacing between cards */
  }

  .midim-card-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 20px auto !important;     /* center + spacing */
  }

  .midim-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;                  /* prevent overflow */
  }

  .midim-thumb img {
    width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 8px;
  }
}

/*** more ***/



