/* --- Fonts (loaded via functions.php, not @import) ---
   Philosopher site-wide, Berkshire Swash for H1, Satisfy for sidebar titles
*/

/* Global text */
body, p, li {
  font-family: 'Philosopher', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #1F2937; /* dark grey */
}

/* Headings */
h1 {
  font-family: 'Berkshire Swash', cursive;
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 0.6em;
  color: #1F2937;
  border-bottom: 3px solid #FFBF00; /* amber underline */
  padding-bottom: 0.2em;
}

h2 {
  font-family: 'Philosopher', sans-serif;
  font-size: 24px;
  line-height: 1.3;
  margin: 1.2em 0 0.6em;
  color: #FFBF00; /* amber highlight */
}

h3 {
  font-family: 'Philosopher', sans-serif;
  font-size: 20px;
  line-height: 1.4;
  margin: 1em 0 0.5em;
  color: #374151; /* deep grey */
  border-left: 4px solid #FFBF00; /* amber accent bar */
  padding-left: 8px;
}

h4, h5, h6 {
  font-family: 'Philosopher', sans-serif;
  line-height: 1.4;
  color: #374151;
}

/* --- Sidebar Widgets --- */
.sidebar .widget {
  background-color: #F5F5F5;
  border: 2px solid #FFBF00;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
  font-family: 'Philosopher', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #374151;
}

.sidebar .widget-title {
  font-family: 'Satisfy', cursive;
  font-size: 20px;
  color: #1F2937;
  border-bottom: 2px solid #FFBF00;
  margin-bottom: 0.5em;
  padding-bottom: 0.3em;
}

/* Links inside widgets */
.sidebar .widget a {
  color: #0693e3;
  text-decoration: none;
}
.sidebar .widget a:hover {
  color: #FFBF00;
  text-decoration: underline;
}

/* --- Navigation + Search --- */
.site-header .main-navigation {
  background-color: #fff;
  border-bottom: 2px solid #FFBF00;
  text-align: center;
  padding: 0.5em 0;
}

.site-header .main-navigation ul {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.site-header .main-navigation ul li {
  display: inline-block;
  margin: 0 10px;
  vertical-align: middle;
}

.site-header .main-navigation ul li a {
  font-family: 'Philosopher', sans-serif;
  font-size: 18px;
  color: #1F2937;
  padding: 8px 14px;
  text-decoration: none;
}

.site-header .main-navigation ul li a:hover,
.site-header .main-navigation ul li.current-menu-item a {
  color: #FFBF00;
  border-bottom: 2px solid #FFBF00;
}

/* Search form inside menu */
.menu-item-search {
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}

.menu-item-search form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.menu-item-search input[type="search"] {
  padding: 6px 10px;
  border: 1px solid #FFBF00;
  border-radius: 4px;
  font-size: 16px;
}

.menu-item-search input[type="submit"] {
  background-color: #FFBF00;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  margin-left: 6px;
  cursor: pointer;
  font-size: 16px;
}
.menu-item-search input[type="submit"]:hover {
  background-color: #F59E0B;
}

/* --- Footer --- */
.site-footer {
  background-color: #F3F4F6;
  color: #1F2937;
  text-align: center;
  padding: 12px 0;
  font-size: 0.9rem;
}
.site-footer a {
  color: #0693e3;
  text-decoration: none;
  margin: 0 8px;
}
.site-footer a:hover {
  color: #FFBF00;
  text-decoration: underline;
}

/* Hide default SiteOrigin credit */
.site-info,
.theme-by {
  display: none !important;
}

/* --- Hyperlinks site-wide --- */
a {
  color: #065F46; /* dark green */
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #007A33; /* brighter green */
  text-decoration: underline;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  h1 { font-size: 26px; line-height: 1.3; }
  h2 { font-size: 22px; line-height: 1.3; }
  h3 { font-size: 18px; line-height: 1.4; }
  h4 { font-size: 16px; }
  h5 { font-size: 15px; }
  h6 { font-size: 13px; }
  body, p { font-size: 16px; line-height: 1.6; }
  .sidebar .widget-title { font-size: 15px; }
  .menu-item-search { display: block; margin: 8px auto; text-align: center; }
  .menu-item-search input[type="search"] { width: 90%; max-width: none; }
}
/* --- Mobile adjustments --- */
@media (max-width: 768px) {
  /* Headings scale down */
  h1 { font-size: 26px; line-height: 1.3; }
  h2 { font-size: 22px; line-height: 1.3; }
  h3 { font-size: 18px; line-height: 1.4; }
  h4 { font-size: 16px; }
  h5 { font-size: 15px; }
  h6 { font-size: 13px; }

  /* Body text slightly smaller */
  body, p, li {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Sidebar widgets stack neatly */
  .sidebar .widget {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 6px;
  }
  .sidebar .widget-title {
    font-size: 15px;
    text-align: center;
  }

  /* Navigation + search form stack */
  .site-header .main-navigation {
    display: block;
    text-align: center;
    padding: 0.5em 0;
  }
  .site-header .main-navigation ul {
    display: block;
    margin: 0;
    padding: 0;
  }
  .site-header .main-navigation ul li {
    display: block;
    margin: 6px 0;
  }

  /* Search form full width */
  .menu-item-search {
    display: block;
    margin: 10px auto;
    text-align: center;
  }
  .menu-item-search input[type="search"] {
    width: 90%;
    max-width: none;
    margin-bottom: 8px;
  }
  .menu-item-search input[type="submit"] {
    width: auto;
    display: inline-block;
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  h1 { font-size: 22px; }
  h2 { font-size: 20px; }
  h3 { font-size: 17px; }
  body, p, li { font-size: 15px; }

  /* Sidebar titles even smaller */
  .sidebar .widget-title {
    font-size: 14px;
  }

  /* Footer text */
  .site-footer {
    font-size: 0.8rem;
    padding: 8px 0;
  }
}