/* ==========================================================================
   Digital Update - Static Homepage Styles
   ========================================================================== */

/* Font Faces */
@font-face {
  font-family: 'Museo Sans Rounded';
  src: url('../fonts/museosansrounded-500-wf.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Museo Sans Rounded';
  src: url('../fonts/museosansrounded-900-wf.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/opensans-regular-webfont.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/opensans-bold-webfont.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   CSS Variables (from WordPress theme)
   ========================================================================== */
:root {
  --color-black: #041f1f;
  --color-white: #ffffff;
  --color-dark-grey: #545757;
  --color-grey: #848787;
  --color-light-grey: #dae0e2;
  --color-xlight-grey: #e8edee;
  --color-xxlight-grey: #f1f2f2;
  --color-xdark-blue: #176897;
  --color-dark-blue: #1f8daa;
  --color-blue: #70c9e9;
  --color-light-blue: #c0effc;
  --color-xlight-blue: #dff3f8;
  --color-xxlight-blue: #EDF9F9;
  --color-xdark-orange: #b65800;
  --color-dark-orange: #d87500;
  --color-orange: #f7941d;
  --color-light-orange: #ffdd99;
  --color-xlight-orange: #fff5e2;
}

/* ==========================================================================
   Base / Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Museo Sans Rounded', 'Open Sans', sans-serif;
  font-weight: 900;
  line-height: 1.2;
  margin-top: 0;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

ul {
  padding-left: 1.2em;
}

p {
  margin-top: 0;
  margin-bottom: 1em;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.page-container {
  width: 100%;
  overflow: hidden;
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  background: var(--color-white);
}

.sitename-container {
  display: flex;
  align-items: center;
}

.sitename-container .logo {
  height: 50px;
  width: auto;
}

.main-menu-container {
  display: flex;
  align-items: center;
}

.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}

.main-menu a {
  font-family: 'Museo Sans Rounded', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--color-black);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-menu a:hover {
  color: var(--color-dark-blue);
}

/* Mobile nav toggle */
.toggle-nav,
.close-nav {
  display: none;
}

.mobile-only {
  display: none;
}

.desktop-only {
  display: flex;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background-color: var(--color-xxlight-blue);
  padding: 0 30px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 100px;
  padding-bottom: 40px;
}

.hero-columns {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2em;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-text h1 {
  font-size: 3.5em;
  margin-bottom: 0.3em;
  color: var(--color-black);
}

.hero-text p {
  font-size: 1.15em;
  line-height: 1.7;
  color: var(--color-dark-grey);
}

.hero-text em {
  font-style: italic;
}

.hero-image {
  flex: 1;
  min-width: 0;
}

.hero-image img {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Search / Blog Archive Section
   ========================================================================== */
.search-section {
  background-color: var(--color-white);
  padding: 60px 30px;
}

.search-section-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.search-section h2 {
  font-size: 1.8em;
  margin-bottom: 1em;
  color: var(--color-black);
}

.search-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1em;
  border: 1px solid #949494;
  border-radius: 0;
  outline: none;
  appearance: none;
}

.search-form input[type="search"]:focus {
  border-color: var(--color-dark-blue);
}

.search-form button {
  padding: 12px 24px;
  font-family: 'Museo Sans Rounded', sans-serif;
  font-weight: 500;
  font-size: 1em;
  background-color: var(--color-black);
  color: var(--color-white);
  border: 1px solid var(--color-black);
  cursor: pointer;
  margin-left: 10px;
  transition: background-color 0.2s;
}

.search-form button:hover {
  background-color: var(--color-dark-grey);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background-color: var(--color-xxlight-grey);
  color: var(--color-dark-grey);
}

.footer-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 30px 30px;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h2 {
  font-size: 1.1em;
  font-weight: 900;
  margin-bottom: 0.8em;
  color: var(--color-black);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.5em;
}

.footer-column ul li a {
  color: var(--color-dark-grey);
  font-size: 0.95em;
}

.footer-column ul li a:hover {
  color: var(--color-dark-blue);
}

.footer-column p {
  font-size: 0.95em;
  line-height: 1.6;
}

.credits {
  text-align: center;
  padding: 30px 30px 40px;
  border-top: 1px solid var(--color-light-grey);
  max-width: 1200px;
  margin: 0 auto;
}

.credits .logo-container {
  margin-bottom: 15px;
}

.credits .logo {
  height: 40px;
  width: auto;
}

.credits p {
  font-size: 0.9em;
  color: var(--color-grey);
  margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 781px) {
  .hero-columns {
    flex-direction: column;
  }

  .hero-text h1 {
    font-size: 2.5em;
  }

  .hero-inner {
    padding-top: 50px;
  }

  .footer-columns {
    flex-direction: column;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form button {
    margin-left: 0;
    margin-top: 10px;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: flex;
  }

  .navbar-container {
    padding: 10px 20px;
  }

  .sitename-container .logo {
    height: 40px;
  }
}
