/*
 Theme Name: ESLAN Coach
 Theme URI: https://www.eslan.com.au
 Author: Patrick Hayeck
 Description: Minimal, clean theme for an English communication coach using Beaver Builder.
 Version: 1.0
 License: GNU General Public License v2 or later
 Text Domain: eslan-coach
*/

/* ===========================
   ROOT VARIABLES & RESETS
   =========================== */

:root {
  --primary: #0b2545;   /* deep navy – authority */
  --accent:  #c89b3c;   /* soft gold – premium */
  --text:    #222222;
  --muted:   #707070;
  --border:  #e4e4e4;
  --bg:      #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===========================
   HEADER
   =========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--bg); /* ensures content doesn’t show through */
}

/* Gold accent line under header */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.site-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-title {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-title a {
  color: var(--primary);
  text-decoration: none;
}

.site-tagline {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ===========================
   MAIN NAVIGATION
   =========================== */

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.main-nav ul li {
  position: relative; /* needed for dropdowns */
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* DROPDOWN (SUBMENU) */

.main-nav ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 8px 0;
  min-width: 180px;
  display: none;            /* hidden by default on desktop */
  flex-direction: column;   /* vertical stack */
  gap: 0;
  z-index: 1000;
}

.main-nav ul ul li {
  width: 100%;
}

.main-nav ul ul a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
}

/* Show submenu on hover (desktop) */
.main-nav ul li:hover > ul {
  display: flex;
}

/* ===========================
   HEADER CTA BUTTON
   =========================== */

.header-cta a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s ease;
}

.header-cta a:hover {
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
}

/* ===========================
   SPECIAL MENU BUTTONS
   =========================== */

/* Generic black variant (not required, but kept if you ever need it) */
.menu-button-black > a {
  display: inline-block;
  padding: 8px 16px;
  background: #000000;
  color: #ffffff !important;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
}

.menu-button-black > a:hover {
  background: #222222;
  color: #ffffff !important;
  text-decoration: none;
}

/* Premium navy + gold button (e.g. Student Portal) */
.menu-button-gold > a {
  display: inline-block;
  padding: 8px 18px;
  background: var(--primary);      /* deep navy */
  color: var(--accent) !important; /* gold text */
  border: 1px solid var(--accent); /* gold border */
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s ease;
}

.menu-button-gold > a:hover {
  background: var(--accent);       /* gold background on hover */
  color: #ffffff !important;       /* white text */
  border-color: var(--accent);
  text-decoration: none;
}

/* ===========================
   LAYOUT & TYPOGRAPHY
   =========================== */

.site-content {
  max-width: 1080px;
  margin: 40px auto 60px;
  padding: 0 20px;
}

/* Typography inside content (for pages/posts without BB) */
.site-content h1,
.site-content h2,
.site-content h3 {
  color: var(--primary);
  margin-top: 0;
}

.site-content h1 {
  font-size: 32px;
}

.site-content h2 {
  font-size: 24px;
}

.site-content h3 {
  font-size: 20px;
}

.site-content p {
  margin-bottom: 1em;
  max-width: 110ch;        /* adjusted for better line length */
  margin-left: auto;
  margin-right: auto;
}

/* Make Beaver Builder rows align nicely within content width */
.fl-builder-content {
  max-width: 1080px;
  margin: 0 auto;
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
  position: relative;
  margin-top: 40px;
  padding: 18px 32px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* Gold accent line above the footer */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}

/* Footer Menu */

.footer-nav {
  margin-bottom: 8px;
}

.footer-nav ul {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-nav a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Footer meta line */

.footer-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.footer-tagline {
  opacity: 0.85;
}

/* ===========================
   RESPONSIVE (MOBILE)
   =========================== */

@media (max-width: 768px) {
  .site-header {
    padding: 14px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site-header-left {
    align-items: flex-start;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
  }

  /* Submenus on mobile: indent and show under parent */
  .main-nav ul ul {
    position: static;
    border: none;
    padding: 0 0 0 16px;
    display: block;  /* always shown under parent */
    min-width: 0;
    background: transparent;
  }

  .header-cta {
    align-self: stretch;
    margin-top: 6px;
  }

  .header-cta a {
    display: block;
    text-align: center;
    width: 100%;
  }

  .site-footer {
    padding: 16px 20px 22px;
  }

  .footer-nav ul {
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer-meta {
    flex-direction: column;
    gap: 4px;
  }
}
