/*
Theme Name: Northern Utah AA Custom Theme
Theme URI:   https://northernutahaa.org/
Author:      Anonymous
Author URI:  https://northernutahaa.org/
Description: Custom styles and layout overrides for Northern Utah AA site
Version:     1.0.0
Text Domain: northern-utah-aa
*/
body{
    padding: 0;
    margin: 0;
}
/* make header actually use flex */
.site-header {
    display: flex;
    align-items: center;
}

/* turn the inner container into a 3-column flex row */
#head-container {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 0 20px; /* matches your logo margin vibe */
    height: 85px;
}

/* brand (logo + title) stay on the left */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* this is the key: push the nav all the way to the right */
.primary-nav {
    margin-left: auto;
}

.site-nav .menu{
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.site-nav .menu > li > a{
  display: inline-block;
  text-decoration: none;
  /* adjust to taste */
  font-size: 1rem;
  color: white;
}

/* ensure the UL displays horizontally (you already set nav ul display:flex) */
nav ul {
    display: flex;
    gap: 20px;
}
.brand img{
  display: block;
  height: 85px;     
  width: auto;
}
/* make the nav links look like buttons */
.primary-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 3px;
    border: 2px solid #003d84;
    border-radius: 15%;
    background: none;
    color: #003d84;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.2s ease-in-out, background 0.2
}
table a{
    text-decoration: none;
    color:#003d84;
}
.big-spacer{
    margin-bottom: 85px;
}
.primary-nav a:hover {
    color: #fff;
    background: #003d84;
}
.primary-nav ul{
    list-style-type: none;
}
.search{
    padding-top: 10px;
}
/* Base: hide the toggle on desktop, show the nav inline */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: #003d84; /* matches your palette */
}

/* Better hit target on mobile */
.nav-toggle:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.title{
    margin-left: 10%;
    text-decoration: none;
    color: black;
    font-size: 30px;
    font-weight: 700;
}

.wp-block-list{
    margin: 0 auto;
    width: fit-content;
}
.first-quote{
    padding-top: 10px;
    height: 70px;
    display: block;
    font-size: 20px;
    color: black;
    font-weight: 500;
    background-color: rgba(0,61,132,0.4);
}
.main-banner{
	width: 100%;
	background-color: #003d84;
}
.align-center{
	margin-left: auto;
	margin-right: auto;
	align-items: center;
}
.banner{
    background-color: #003d84;
}
.no-border{
    margin-right: 20%;
}

.aa-works{
   display: block;
   width: 100%;
}
/* Center all Gutenberg-aligned media blocks */
.wp-block-image.aligncenter,
.wp-block-video.aligncenter,
figure.aligncenter {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block; /* Ensures block-level centering works */
    text-align: center; /* Helps inner content if needed */
}

/* Also target the outer block div for broader compatibility */
.aligncenter {
    margin-left: auto;
    margin-right: auto;
    display: block;
}
p{
    margin-left: 20%;
    margin-right: 20%;
    font-size: 18px;
    color: black;
    font-weight: 500;
    align-items: center;
    text-align: center;
}
/* Center all table blocks, with extra focus on striped ones and your big-spacer */
.wp-block-table,
.wp-block-table figure,
.is-style-stripes,
.big-spacer.wp-block-table {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;   /* Ensures auto margins work for centering */
    text-align: center;         /* Centers inline content like table cells */
    max-width: 80%;             /* Optional: matches your ~20% side margins feel */
}

/* Ensure the inner table fills the centered wrapper nicely */
.wp-block-table table,
.is-style-stripes table {
    margin-left: auto;
    margin-right: auto;
    width: auto;                /* Prevents full-stretch if not needed */
}
.meeting-guide-app{
  max-width: 1100px;
  margin: 2rem auto;       /* centers the block */
  text-align: center;      /* center text inside */
  clear: both;             /* belt-and-suspenders if any floats remain */
}

.footer-rule{
  width: 80%;
  margin-left: 10%;
  margin-right: 10%;
  height: 20px;
  background-color: #003d84;
}

.meeting-guide-app img,
.meeting-guide-app iframe{
  display: block;
  margin-inline: auto;     /* center media inside */
}
.space-below{
    margin-bottom: 25px;
}
.is-style-stripes{
  margin-left: 20%;
  margin-right: 20%;
}
.video {
  width: 40vw;        /* 40% of the screen */
  max-width: 800px;   /* optional: prevents it getting too large */
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.video video,
.video iframe {
  width: 100%;
  height: auto;
}
/* Mobile layout */
@media (max-width: 900px) {
  /* Show the burger button */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto; /* push it to the right */
  }

  /* Hide the nav by default on mobile */
  .primary-nav {
    display: none;
    position: absolute;
    top: 85px;              /* just below your header height */
    right: 0;
    left: 0;
    background: #fff;
    border-top: 1px solid #e6e6e6;
    padding: 12px 16px;
    z-index: 1000;
  }
  /* Show when open */
  .primary-nav.is-open {
    display: block;
  }

  /* Stack links vertically on mobile */
  .primary-nav ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Make links full-width tap targets */
  .primary-nav a {
    display: block;
    padding: 12px 10px;
    border-radius: 8px;
  }

  /* Optional: hide your .search on small screens or move it below */
  .search {
    display: none;
  }

  /* Keep #head-container tidy on mobile */
  #head-container {
    position: relative; /* so the dropdown can be absolutely positioned */
  }
	.first-quote{
		height:200px;
	}
	.video {
    width: 90vw;     /* almost full width on mobile */
  }
}

/* Desktop-only refinements (optional) */
@media (min-width: 769px) {
  .primary-nav {
    display: block; /* always visible on desktop */
  }
}
