/* ==========================================================================
   ExportFirst.in — ef.css  (shared brand + layout stylesheet)
   ONE place to change fonts, colours, widths, nav, buttons, cards, footer.
   Load it in <head>:  <link rel="stylesheet" href="/assets/ef.css">
   Then include nav.php (top of <body>) and footer.php (bottom).
   Page-specific styles stay in a small inline <style> on that page.
   ==========================================================================*/
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ---- Design tokens: change these to restyle the whole site ---------------- */
:root{
  --navy:#1A2B5F; --navy3:#0E1A3D; --gold:#C9A227; --gold2:#E8BC3A;
  --warm:#FAF8F3; --offwhite:#F3F0E8; --text:#1C1C1C; --muted:#666; --border:#E2DDD3;
  --green:#1B6B3A; --red:#C62828;
  --font-head:'Playfair Display',Georgia,serif;
  --font-body:'DM Sans',system-ui,sans-serif;
  --container:1200px;      /* max content width — bump for wider pages     */
  --radius:12px; --radius-lg:16px;
  --shadow:0 8px 24px rgba(26,43,95,0.10);
  --nav-h:60px;
}

/* ---- Reset + base --------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font-body);background:var(--warm);color:var(--text);
  -webkit-font-smoothing:antialiased;min-height:100vh;line-height:1.55;
  overflow-x:hidden}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto}
h1,h2,h3{font-family:var(--font-head);color:var(--navy);line-height:1.2}

/* ---- Shared top navigation (see nav.php) ----------------------------------
   The reset props below (display/padding/margin/width) defensively override any
   leftover bare `nav{...}` rule still sitting in a converted page's inline CSS,
   so the shared nav always renders correctly regardless of old page styles. */
.ef-nav{background:var(--navy3);height:var(--nav-h);border-bottom:2px solid var(--gold);
  position:sticky;top:0;z-index:200;display:block;padding:0;margin:0;width:100%;max-width:none}
.ef-nav-inner{max-width:var(--container);margin:0 auto;height:100%;padding:0 4%;
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  width:100%;box-sizing:border-box}
.ef-logo{font-family:var(--font-head);font-size:1.2rem;font-weight:700;color:#fff;white-space:nowrap}
.ef-logo span{color:var(--gold)}
.ef-nav-links{display:flex;align-items:center;gap:20px}
.ef-nav-link{font-size:0.85rem;color:rgba(255,255,255,0.72);transition:color .15s;white-space:nowrap;margin:0;text-decoration:none}
.ef-nav-link:hover{color:var(--gold2)}
.ef-nav-link.active{color:#fff;font-weight:600}
.ef-nav-cta{background:var(--gold);color:var(--navy3);padding:8px 17px;border-radius:8px;
  font-weight:600;font-size:0.85rem;transition:background .15s;margin:0;text-decoration:none}
.ef-nav-cta:hover{background:var(--gold2)}
.ef-burger{display:none;background:none;border:none;cursor:pointer;width:38px;height:38px;
  color:#fff;font-size:1.5rem;line-height:1}

/* ---- Layout helpers ------------------------------------------------------- */
.ef-container{max-width:var(--container);margin:0 auto;padding:34px 4% 64px}
.ef-narrow{max-width:820px}

/* ---- Hero / page header --------------------------------------------------- */
.ef-hero{background:linear-gradient(135deg,var(--navy3),var(--navy));
  padding:46px 4% 40px;text-align:center}
.ef-hero-label{font-size:0.72rem;font-weight:600;text-transform:uppercase;
  letter-spacing:0.12em;color:var(--gold2);margin-bottom:8px}
.ef-hero-title{font-size:2rem;font-weight:700;color:#fff;margin-bottom:10px}
.ef-hero-sub{font-size:0.94rem;color:rgba(255,255,255,0.72);font-weight:300;
  line-height:1.6;max-width:600px;margin:0 auto}
/* Wrap a left-aligned page hero's text in this so its left edge lines up with
   the nav logo + page content (all share the same centered container). */
.ef-hero-inner{max-width:var(--container);margin:0 auto;padding:0 4%;width:100%;box-sizing:border-box}

/* ---- Buttons -------------------------------------------------------------- */
.ef-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;
  padding:11px 22px;border-radius:9px;font-size:0.88rem;font-weight:600;
  font-family:var(--font-body);cursor:pointer;border:none;transition:all .18s;min-height:44px}
.ef-btn-gold{background:var(--gold);color:var(--navy3)}
.ef-btn-gold:hover{background:var(--gold2);transform:translateY(-1px)}
.ef-btn-navy{background:var(--navy);color:#fff}
.ef-btn-navy:hover{background:var(--navy3)}
.ef-btn-ghost{background:rgba(255,255,255,0.1);color:#fff;border:1px solid rgba(255,255,255,0.25)}
.ef-btn-ghost:hover{background:rgba(255,255,255,0.18)}
.ef-btn-outline{background:#fff;color:var(--navy);border:1.5px solid var(--border)}
.ef-btn-outline:hover{border-color:var(--gold)}

/* ---- Cards + grid --------------------------------------------------------- */
.ef-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.ef-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius-lg);
  padding:20px;transition:border-color .2s,box-shadow .2s,transform .15s}
.ef-card:hover{border-color:var(--gold);box-shadow:var(--shadow);transform:translateY(-2px)}

/* ---- Shared footer (see footer.php) --------------------------------------- */
.ef-footer{background:var(--navy3);color:rgba(255,255,255,0.6);text-align:center;
  padding:30px 4%;font-size:0.8rem;line-height:1.7;margin:0;width:100%;max-width:none}
.ef-footer a{color:var(--gold2)}
.ef-footer a:hover{color:#fff}

/* ---- Responsive: collapse nav into a burger menu -------------------------- */
@media(max-width:760px){
  .ef-burger{display:block}
  .ef-nav-links{position:absolute;top:var(--nav-h);left:0;right:0;
    flex-direction:column;align-items:stretch;gap:0;background:var(--navy3);
    border-bottom:2px solid var(--gold);padding:6px 0 12px;
    max-height:0;overflow:hidden;transition:max-height .28s ease}
  .ef-nav-links.open{max-height:80vh}
  .ef-nav-link,.ef-nav-links .ef-nav-cta{margin:0 4%;padding:13px 4px;
    border-bottom:1px solid rgba(255,255,255,0.08);border-radius:0;text-align:left;font-size:0.95rem}
  .ef-nav-links .ef-nav-cta{margin-top:8px;border-radius:8px;text-align:center;border-bottom:none}
  .ef-hero-title{font-size:1.55rem}
  .ef-container{padding-top:26px}
}
