/*
Theme Name: Favaro Child Theme
Theme URI: https://favaromediation.com/
Description: Custom child theme for Genesis Framework
Author: Your Name
Author URI: https://favaromediation.com/
Template: genesis
Version: 1.0.0
Text Domain: favaro-child-theme
*/

/* Custom CSS starts here */

/* ===== Header background ===== */
/* =========================
   HEADER (Desktop + Mobile)
   Sticky + Responsive
   ========================= */

/* Sticky header */
.site-header {
  background: #fffdfa;
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* Desktop layout: logo left, nav center, button right */
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  margin: 0 auto;
  max-width: 1300px;
  padding-left: 20px;
  padding-right: 20px;
}

/* Left: logo/title area */
.title-area {
  flex: 0 0 auto;
  margin-right: auto;
  display: flex;
}

/* Logo */
.title-area .custom-logo-link {
  display: block;
}

.title-area .custom-logo {
  display: block;
  max-height: 56px; /* slightly smaller on desktop */
  width: auto;
}

/* Middle: primary nav centered */
.nav-primary {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.nav-primary .genesis-nav-menu {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Right: CTA */
.header-cta {
  flex: 0 0 auto;
  margin-left: auto;
}

.header-cta a {
  display: inline-block;
  background: #F6A055;
  border: 1px solid #F6A055;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  padding: 12px 18px;
  line-height: 1;
  font-weight: 400;
  white-space: nowrap;
  font-family: "Open Sans", sans-serif;
}

.header-cta a:hover {
  background: #fff;
  color: #F6A055;
  border: 1px solid #F6A055;
}

/* Logo link: clickable, no hover effect */
.title-area a,
.title-area a:hover,
.title-area a:focus {
  opacity: 1;
  filter: none;
  text-decoration: none;
}


/* =========================
   TABLET / MOBILE (≤ 768px)
   Logo left + Button right (same row)
   Nav below centered
   ========================= */
@media (max-width: 768px) {

  .site-header .wrap {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 12px;
  }

  /* Row 1: Logo left */
  .title-area {
    margin: 0;
    flex: 0 0 auto;
	display: flex;
  }

  .title-area .custom-logo {
    max-height: 32px;
  }

  /* Row 1: Button right */
  .header-cta {
    margin-left: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
  }

  .header-cta a {
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 18px;
    line-height: 1.1;
  }

  /* Row 2: Nav full width centered */
  .nav-primary {
    flex: 0 0 100%;
    order: 3;
    justify-content: center;
    margin-top: 8px;
  }

  .nav-primary .genesis-nav-menu {
    justify-content: center;
  }
}


/* =========================
   SMALL PHONES (≤ 425px)
   425 / 375 / 320 widths
   More compact logo + button
   ========================= */
@media (max-width: 425px) {

  .site-header .wrap {
    min-height: 56px;
    padding-top: 6px;
    padding-bottom: 6px;
	padding-left: 5px;
	padding-right: 5px;
    gap: 8px;
  }

  /* Smaller logo */
  .title-area .custom-logo {
    max-height: 32px;
  }

  /* Keep logo and button aligned */
  .title-area,
  .header-cta {
    display: flex;
    align-items: center;
  }

  /* Smaller button */
  .header-cta a {
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 16px;
    line-height: 1.2;
    white-space: nowrap;
  }

  /* Slightly tighter nav */
  .nav-primary {
    margin-top: 6px;
  }

  .nav-primary .genesis-nav-menu {
    gap: 10px;
    font-size: 14px;
  }
}


/* =========================
   EXTRA SMALL PHONES (≤ 350px)
   Optional last-resort squeeze
   ========================= */
@media (max-width: 350px) {
  .header-cta a {
    padding: 6px 8px;
    font-size: 11px;
  }

  .title-area .custom-logo {
    max-height: 24px;
  }
}
