/*
Theme Name: Easy Website Online
Theme URI: https://easywebsiteonline.com/
Author: Easy Website Online
Author URI: https://easywebsiteonline.com/
Description: A lightweight Gutenberg-ready custom theme for Easy Website Online.
Version: 2.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: easywebsiteonline
*/


/* =========================================================
   ROOT / BRAND VARIABLES
   ========================================================= */

:root {
  --ewo-navy: #0b1f33;
  --ewo-slate: #64748b;
  --ewo-white: #ffffff;
  --ewo-blue: #168bff;
  --ewo-orange: #f28c28;
  --ewo-border: #dfe7ef;
  --ewo-light: #f5f8fb;

  --ewo-shell: 1680px;
  --ewo-content: 1680px;

  --ewo-radius: 8px;
  --ewo-radius-large: 14px;

  --ewo-shadow-small:
    0 8px 24px rgba(11, 31, 51, 0.08);

  --ewo-shadow:
    0 16px 40px rgba(11, 31, 51, 0.12);

  --ewo-transition:
    180ms ease;
}


/* =========================================================
   RESET / GLOBAL
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ewo-navy);
  background: var(--ewo-white);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg,
iframe,
embed,
object {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

iframe {
  border: 0;
}

figure {
  margin-inline: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--ewo-blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
  transition:
    color var(--ewo-transition),
    background-color var(--ewo-transition),
    border-color var(--ewo-transition);
}

a:hover {
  color: var(--ewo-orange);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ewo-orange);
  outline-offset: 3px;
}

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ewo-navy);
  font-weight: 800;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4.75rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.85rem, 3vw, 3rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

hr {
  border: 0;
  border-top: 1px solid var(--ewo-border);
}

blockquote {
  margin-inline: 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--ewo-blue);
  background: var(--ewo-light);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.8rem;
  border: 1px solid var(--ewo-border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--ewo-light);
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  clip-path: none;
  color: var(--ewo-white);
  background: var(--ewo-navy);
  border-radius: var(--ewo-radius);
}


/* =========================================================
   GLOBAL SHELL
   ========================================================= */

.ewo-shell {
  width: min(calc(100% - 2rem), var(--ewo-shell));
  margin-inline: auto;
}

.site-main {
  min-height: 45vh;
}


/* Compatibility with older theme markup. */
.ewo-content-shell {
  width: min(calc(100% - 2rem), var(--ewo-content));
  margin-inline: auto;
}


/* =========================================================
   GUTENBERG CONTENT WIDTHS
   ========================================================= */

.entry-content {
  width: 100%;
}

.entry-content::after {
  display: table;
  clear: both;
  content: "";
}

.entry-content > :where(:not(.alignfull)) {
  width: min(calc(100% - 2rem), var(--ewo-content));
  margin-inline: auto;
}

.entry-content > .alignwide {
  width: min(calc(100vw - 2rem), var(--ewo-shell));
  max-width: none;
  margin-inline: auto;
}

.entry-content > .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}


/* Full-width template can use all available width. */
.ewo-full-width-content .entry-content > :where(:not(.alignfull)) {
  width: min(calc(100% - 2rem), var(--ewo-shell));
}


/* Sidebar content must stay inside its column. */
.ewo-sidebar-content .entry-content > *,
.ewo-sidebar-content .entry-content > .alignwide,
.ewo-sidebar-content .entry-content > .alignfull {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  transform: none;
}

/* =========================================================
   GUTENBERG ALIGNMENT / JUSTIFICATION SUPPORT
   ========================================================= */

.has-text-align-left {
  text-align: left;
}

.has-text-align-center {
  text-align: center;
}

.has-text-align-right {
  text-align: right;
}

.has-text-align-justify {
  text-align: justify;
}


/* Flex / row / buttons justification */
.is-content-justification-left {
  justify-content: flex-start;
}

.is-content-justification-center {
  justify-content: center;
}

.is-content-justification-right {
  justify-content: flex-end;
}

.is-content-justification-space-between {
  justify-content: space-between;
}


/* General block alignment */
.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  margin-right: auto;
}

.alignright {
  margin-left: auto;
}


/* Gutenberg image alignment */
.wp-block-image.aligncenter {
  text-align: center;
}

.wp-block-image.aligncenter img {
  margin-left: auto;
  margin-right: auto;
}

.wp-block-image.alignleft img {
  margin-right: auto;
}

.wp-block-image.alignright img {
  margin-left: auto;
}


/* Gutenberg buttons */
.wp-block-buttons.is-content-justification-center {
  justify-content: center;
}

.wp-block-buttons.is-content-justification-left {
  justify-content: flex-start;
}

.wp-block-buttons.is-content-justification-right {
  justify-content: flex-end;
}


/* Gutenberg Group / Row flex layouts */
.wp-block-group.is-layout-flex.is-content-justification-center {
  justify-content: center;
}

.wp-block-group.is-layout-flex.is-content-justification-left {
  justify-content: flex-start;
}

.wp-block-group.is-layout-flex.is-content-justification-right {
  justify-content: flex-end;
}


/* =========================================================
   GUTENBERG MEDIA / EMBEDS
   ========================================================= */

.wp-block-image img,
.wp-block-cover img,
.wp-block-media-text img {
  max-width: 100%;
  height: auto;
}

.wp-block-embed,
.wp-block-embed__wrapper {
  max-width: 100%;
}

.wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


/*
 * Keep incomplete Gutenberg gallery rows at the same image size.
 *
 * Example:
 * A 3-column gallery with 8 images stays:
 *
 * X X X
 * X X X
 * X X
 *
 * instead of stretching the final two images.
 */
.wp-block-gallery.has-nested-images figure.wp-block-image {
  flex-grow: 0;
}

.wp-block-gallery figcaption,
.wp-block-image figcaption {
  color: var(--ewo-slate);
  font-size: 0.875rem;
  line-height: 1.5;
}


/*
 * PRIORITY IMAGE NOTE
 *
 * Above-the-fold/LCP images can use:
 *
 * ewo-priority-image
 *
 * The actual fetchpriority/loading behavior is handled
 * in functions.php. The CDN should exclude that class
 * from lazy loading/rewrite behavior.
 */


/* =========================================================
   LEGACY RESPONSIVE IFRAME SUPPORT
   ========================================================= */

/*
 * Existing manual iframe markup can continue using:
 *
 * <div class="iframe-container">
 *   <iframe></iframe>
 * </div>
 *
 * New content should use the Responsive Iframe block
 * in the Easy Website Online Blocks plugin.
 */

.iframe-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.iframe-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}


/* =========================================================
   GUTENBERG BUTTONS
   ========================================================= */

.wp-element-button,
.wp-block-button__link,
.ewo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.3rem;
  color: var(--ewo-white);
  background: var(--ewo-blue);
  border: 2px solid var(--ewo-blue);
  border-radius: var(--ewo-radius);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    color var(--ewo-transition),
    background-color var(--ewo-transition),
    border-color var(--ewo-transition),
    transform var(--ewo-transition);
}

.wp-element-button:hover,
.wp-element-button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
.ewo-button:hover,
.ewo-button:focus-visible {
  color: var(--ewo-white);
  background: var(--ewo-orange);
  border-color: var(--ewo-orange);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  color: var(--ewo-blue);
  background: transparent;
  border-color: currentColor;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
  color: var(--ewo-white);
  background: var(--ewo-orange);
  border-color: var(--ewo-orange);
}

.wp-block-buttons {
  flex-wrap: wrap;
}


/* =========================================================
   FORMS
   ========================================================= */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.8rem 0.9rem;
  color: var(--ewo-navy);
  background: var(--ewo-white);
  border: 1px solid var(--ewo-border);
  border-radius: var(--ewo-radius);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8794a2;
}


/* =========================================================
   TOP CONTACT BAR
   ========================================================= */

.ewo-contact-bar {
  color: var(--ewo-white);
  background: var(--ewo-navy);
  font-size: 0.875rem;
}

.ewo-contact-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  min-height: 40px;
  padding-block: 0.4rem;
}

.ewo-contact-tagline {
  margin: 0;
  font-weight: 700;
}

.ewo-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.ewo-contact-links a {
  color: var(--ewo-white);
  text-decoration: none;
}

.ewo-contact-links a:hover,
.ewo-contact-links a:focus-visible {
  color: var(--ewo-orange);
}


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

.site-header {
  position: relative;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--ewo-border);
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 82px;
  padding-block: 0.7rem;
}

.site-branding {
  flex: 1 1 auto;
  min-width: 0;
}

.site-branding a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-branding .custom-logo {
  width: auto;
  max-width: 285px;
  max-height: 58px;
}

.ewo-default-logo {
  width: min(285px, 66vw);
}

.site-title {
  margin: 0;
  color: var(--ewo-navy);
  font-size: 1.25rem;
  font-weight: 800;
}


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

.ewo-header-actions {
  order: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 0.65rem;
  width: 100%;
}

.ewo-header-phone,
.ewo-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border-radius: var(--ewo-radius);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.ewo-header-phone {
  gap: 0.35rem;
  color: var(--ewo-navy);
  background: var(--ewo-light);
  border: 1px solid var(--ewo-border);
}

.ewo-header-phone:hover,
.ewo-header-phone:focus-visible {
  color: var(--ewo-blue);
  background: var(--ewo-white);
  border-color: var(--ewo-blue);
}

.ewo-header-phone-label {
  color: var(--ewo-slate);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ewo-header-cta {
  color: var(--ewo-white);
  background: var(--ewo-blue);
  border: 1px solid var(--ewo-blue);
}

.ewo-header-cta:hover,
.ewo-header-cta:focus-visible {
  color: var(--ewo-white);
  background: var(--ewo-orange);
  border-color: var(--ewo-orange);
}


/* =========================================================
   MOBILE MENU TOGGLE
   ========================================================= */

.menu-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--ewo-navy);
  background: var(--ewo-white);
  border: 1px solid var(--ewo-border);
  border-radius: 10px;
}

.menu-toggle:hover,
.menu-toggle:focus-visible,
.menu-toggle[aria-expanded="true"] {
  color: var(--ewo-blue);
  border-color: var(--ewo-blue);
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition:
    transform var(--ewo-transition),
    top var(--ewo-transition),
    opacity var(--ewo-transition);
}

.menu-toggle-bars {
  position: relative;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-toggle-bars::before {
  top: -7px;
}

.menu-toggle-bars::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}


/* =========================================================
   PRIMARY NAVIGATION - MOBILE
   ========================================================= */

.primary-navigation {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  width: 100%;
  max-height: calc(100vh - 120px);
  padding: 0 1rem 1rem;
  overflow-y: auto;
  background: var(--ewo-white);
  border-bottom: 1px solid var(--ewo-border);
  box-shadow: var(--ewo-shadow);
}

.primary-navigation[hidden] {
  display: none;
}

.primary-navigation ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-navigation a {
  display: block;
  padding: 0.8rem 0;
  color: var(--ewo-navy);
  border-bottom: 1px solid var(--ewo-border);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a,
.primary-navigation .current-menu-ancestor > a,
.primary-navigation .current_page_ancestor > a {
  color: var(--ewo-blue);
}

.primary-navigation .sub-menu {
  padding-left: 1rem;
}

.primary-navigation .sub-menu a {
  color: var(--ewo-slate);
  font-size: 0.9rem;
}


/* =========================================================
   PAGE TOP / BREADCRUMBS
   ========================================================= */

.ewo-page-top {
  padding-top: 28px;
  padding-bottom: 18px;
}

.ewo-breadcrumbs {
  color: var(--ewo-slate);
  font-size: 0.875rem;
  line-height: 1.5;
}

.ewo-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ewo-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ewo-breadcrumb-item + .ewo-breadcrumb-item::before {
  color: #9aa7b5;
  content: "›";
}

.ewo-breadcrumb-item a {
  color: var(--ewo-slate);
  text-decoration: none;
}

.ewo-breadcrumb-item a:hover,
.ewo-breadcrumb-item a:focus-visible {
  color: var(--ewo-blue);
}

.ewo-breadcrumb-item.is-current {
  color: var(--ewo-navy);
  font-weight: 700;
}


/* =========================================================
   PAGE TEMPLATES
   ========================================================= */

.ewo-page-content,
.ewo-front-page-content,
.ewo-landing-content,
.ewo-full-width-content {
  width: 100%;
}

.ewo-landing-main {
  padding-top: 0;
}


/* =========================================================
   SIDEBAR TEMPLATE
   ========================================================= */

.ewo-sidebar-layout {
  display: grid;
  gap: 2rem;
  padding-bottom: clamp(3rem, 6vw, 6rem);
}

.ewo-sidebar-main {
  min-width: 0;
}

.ewo-sidebar {
  min-width: 0;
}

.ewo-sidebar-widget {
  padding: 1.35rem;
  margin-bottom: 1.5rem;
  background: var(--ewo-light);
  border: 1px solid var(--ewo-border);
  border-radius: var(--ewo-radius-large);
}

.ewo-sidebar-widget:last-child {
  margin-bottom: 0;
}

.ewo-sidebar-widget .widget-title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.ewo-sidebar-widget ul {
  padding-left: 1.15rem;
  margin-bottom: 0;
}

.ewo-sidebar-widget li + li {
  margin-top: 0.45rem;
}


/* =========================================================
   SINGLE POSTS
   ========================================================= */

.ewo-single-post {
  padding-bottom: clamp(3rem, 6vw, 6rem);
}

.ewo-single-shell {
  width: min(calc(100% - 2rem), var(--ewo-shell));
  margin-inline: auto;
}

.ewo-single-header {
  max-width: 1400px;
  margin-bottom: 2rem;
}

.ewo-single-title {
  margin: 0 0 1rem;
}

.ewo-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  color: var(--ewo-slate);
  font-size: 0.925rem;
}

.ewo-post-meta a {
  text-decoration: none;
}

.ewo-single-featured-image {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.ewo-single-featured-image img {
  width: 100%;
  max-height: 900px;
  object-fit: cover;
  border-radius: var(--ewo-radius-large);
}

.ewo-single-content {
  width: 100%;
}

.ewo-post-footer {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--ewo-border);
}

.ewo-post-tags-label {
  margin-right: 0.35rem;
  font-weight: 800;
}

.ewo-post-navigation {
  display: grid;
  gap: 1rem;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--ewo-border);
}

.ewo-post-navigation a {
  display: block;
  padding: 1rem;
  color: var(--ewo-navy);
  background: var(--ewo-light);
  border: 1px solid var(--ewo-border);
  border-radius: var(--ewo-radius);
  text-decoration: none;
}

.ewo-post-navigation a:hover,
.ewo-post-navigation a:focus-visible {
  color: var(--ewo-blue);
  border-color: var(--ewo-blue);
}

.ewo-post-nav-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ewo-slate);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ewo-post-nav-title {
  font-weight: 800;
}


/* =========================================================
   ARCHIVES / BLOG / CATEGORY / AUTHOR / SEARCH
   ========================================================= */

.ewo-archive-section,
.ewo-search-section {
  padding-bottom: clamp(3rem, 6vw, 6rem);
}

.ewo-archive-header,
.ewo-search-header {
  max-width: 1200px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.ewo-archive-kicker {
  margin: 0 0 0.4rem;
  color: var(--ewo-blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ewo-archive-title {
  margin: 0;

}

.ewo-archive-description {
  max-width: 900px;
  margin-top: 1rem;
  color: var(--ewo-slate);
  font-size: 1.05rem;
}

.ewo-archive-description > :last-child {
  margin-bottom: 0;
}


/* =========================================================
   AUTHOR ARCHIVE
   ========================================================= */

.ewo-author-header {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.ewo-author-avatar img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
}

.ewo-author-description {
  max-width: 850px;
  margin-top: 0.8rem;
  color: var(--ewo-slate);
}

.ewo-author-description > :last-child {
  margin-bottom: 0;
}

.ewo-author-post-count {
  margin-top: 0.75rem;
  margin-bottom: 0;
  color: var(--ewo-slate);
  font-size: 0.875rem;
  font-weight: 700;
}


/* =========================================================
   POST CARD GRID
   ========================================================= */

.ewo-post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.ewo-post-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: var(--ewo-white);
  border: 1px solid var(--ewo-border);
  border-radius: var(--ewo-radius-large);
  box-shadow: var(--ewo-shadow-small);
}

.ewo-post-card-image {
  display: block;
  overflow: hidden;
  background: var(--ewo-light);
}

.ewo-post-card-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 300ms ease;
}

.ewo-post-card:hover .ewo-post-card-image img {
  transform: scale(1.02);
}

.ewo-post-card-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.35rem;
}

.ewo-post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.65rem;
  color: var(--ewo-slate);
  font-size: 0.8rem;
  font-weight: 700;
}

.ewo-post-card-meta a {
  color: var(--ewo-slate);
  text-decoration: none;
}

.ewo-post-card-meta a:hover,
.ewo-post-card-meta a:focus-visible {
  color: var(--ewo-blue);
}

.ewo-post-card-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.ewo-post-card-title a {
  color: var(--ewo-navy);
  text-decoration: none;
}

.ewo-post-card-title a:hover,
.ewo-post-card-title a:focus-visible {
  color: var(--ewo-blue);
}

.ewo-post-card-excerpt {
  color: var(--ewo-slate);
}

.ewo-post-card-excerpt > :last-child {
  margin-bottom: 0;
}

.ewo-post-card-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.ewo-search-result-type {
  color: var(--ewo-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.ewo-pagination {
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.ewo-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ewo-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0.45rem 0.75rem;
  color: var(--ewo-navy);
  background: var(--ewo-white);
  border: 1px solid var(--ewo-border);
  border-radius: var(--ewo-radius);
  font-weight: 700;
  text-decoration: none;
}

.ewo-pagination .page-numbers:hover,
.ewo-pagination .page-numbers:focus-visible,
.ewo-pagination .page-numbers.current {
  color: var(--ewo-white);
  background: var(--ewo-blue);
  border-color: var(--ewo-blue);
}


/* =========================================================
   SEARCH
   ========================================================= */

.ewo-search-form-wrap {
  max-width: 760px;
  margin-top: 1.5rem;
}

.ewo-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ewo-search-form .search-field {

  flex: 1 1 260px;
}

.ewo-search-form .search-submit {
  flex: 0 0 auto;
  padding: 0.8rem 1.25rem;
  color: var(--ewo-white);
  background: var(--ewo-blue);
  border: 1px solid var(--ewo-blue);
  border-radius: var(--ewo-radius);
  font-weight: 800;
}

.ewo-search-form .search-submit:hover,
.ewo-search-form .search-submit:focus-visible {
  background: var(--ewo-orange);
  border-color: var(--ewo-orange);
}

.ewo-no-results {
  max-width: 900px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--ewo-light);
  border: 1px solid var(--ewo-border);
  border-radius: var(--ewo-radius-large);
}

.ewo-no-results h2 {
  margin-top: 0;
}


/* =========================================================
   404
   ========================================================= */

.ewo-404-section {
  padding-bottom: clamp(3rem, 7vw, 7rem);
}

.ewo-404-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
}

.ewo-404-content {
  max-width: 1000px;
}

.ewo-404-code {
  margin: 0 0 0.5rem;
  color: var(--ewo-blue);
  font-size: clamp(5rem, 16vw, 12rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.08em;
}

.ewo-404-title {
  margin-top: 0;
  margin-bottom: 1rem;
}

.ewo-404-intro {
  max-width: 760px;
  color: var(--ewo-slate);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.ewo-404-search {
  max-width: 760px;
  margin-top: 2rem;
}

.ewo-404-search h2 {
  font-size: 1.2rem;
}

.ewo-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.ewo-button-secondary {
  color: var(--ewo-navy);
  background: var(--ewo-white);
  border-color: var(--ewo-border);
}

.ewo-button-secondary:hover,
.ewo-button-secondary:focus-visible {
  color: var(--ewo-white);
  background: var(--ewo-navy);
  border-color: var(--ewo-navy);
}

.ewo-404-help {
  padding: 1.5rem;
  background: var(--ewo-light);
  border: 1px solid var(--ewo-border);
  border-radius: var(--ewo-radius-large);
}

.ewo-404-help h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.ewo-404-menu {
  padding: 0;
  margin: 0;
  list-style: none;
}

.ewo-404-menu li + li {
  margin-top: 0.65rem;
}

.ewo-404-menu a {
  font-weight: 700;
  text-decoration: none;
}


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

.ewo-footer-cta {
  color: var(--ewo-white);
  background: var(--ewo-blue);
}

.ewo-footer-cta-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.ewo-footer-cta p {
  margin: 0;
}

.ewo-footer-cta-kicker {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ewo-footer-cta h2 {
  max-width: 900px;
  margin: 0.4rem 0 0;
  color: var(--ewo-white);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.ewo-footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.ewo-footer-button,
.ewo-footer-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: var(--ewo-radius);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.ewo-footer-button {
  color: var(--ewo-navy);
  background: var(--ewo-white);
  border: 2px solid var(--ewo-white);
}

.ewo-footer-button:hover,
.ewo-footer-button:focus-visible {
  color: var(--ewo-white);
  background: var(--ewo-orange);
  border-color: var(--ewo-orange);
}

.ewo-footer-call {
  gap: 0.4rem;
  color: var(--ewo-white);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.ewo-footer-call:hover,
.ewo-footer-call:focus-visible {
  color: var(--ewo-white);
  border-color: var(--ewo-white);
}

.ewo-footer-call-label {
  opacity: 0.8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


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

.site-footer {
  color: #d7e1ea;
  background: var(--ewo-navy);
}

.site-footer-main {
  display: grid;
  gap: 2rem;
  padding-block: 3.5rem;
}

.ewo-footer-logo-link {
  display: inline-block;
}

.site-footer-logo {
  width: min(300px, 100%);
  filter: brightness(0) invert(1);
}

.site-footer-summary {
  max-width: 520px;
  margin: 1.25rem 0 0;
  color: #aab8c6;
}

.site-footer h2 {
  margin: 0 0 0.85rem;
  color: var(--ewo-white);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.site-footer li + li {
  margin-top: 0.55rem;
}

.site-footer a {
  color: #d7e1ea;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ewo-orange);
}

.ewo-footer-contact address {
  font-style: normal;
}

.ewo-footer-contact p {
  margin: 0 0 0.55rem;
}

.ewo-footer-contact-address {
  color: #aab8c6;
}


/* =========================================================
   FOOTER BOTTOM / LEGAL
   ========================================================= */

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-block: 1rem;
  color: #91a2b2;
  font-size: 0.85rem;
}

.site-info p {
  margin: 0;
}

.ewo-footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.ewo-footer-legal li {
  margin: 0;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 720px) {

  .alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
  }

  .alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
  }

  .ewo-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ewo-author-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ewo-post-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ewo-post-navigation-next {
    text-align: right;
  }

  .site-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ewo-footer-brand {
    grid-column: 1 / -1;
  }

  .site-info {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}


/* =========================================================
   DESKTOP NAVIGATION / PAGE LAYOUT
   ========================================================= */

@media (min-width: 981px) {

  .ewo-page-top {
    padding-top: 40px;
    padding-bottom: 20px;
  }

  .menu-toggle {
    display: none;
  }

  .site-header-inner {
    flex-wrap: wrap;
    padding-block: 0.5rem;
  }

  .site-branding {
    order: 1;
    flex: 0 0 285px;
  }

  .ewo-header-actions {
    order: 2;
    display: flex;
    width: auto;
    margin-left: auto;
  }

  .ewo-header-phone,
  .ewo-header-cta {
    white-space: nowrap;
  }

  .primary-navigation,
  .primary-navigation[hidden] {
    position: static;
    order: 3;
    display: block;
    flex: 1 0 100%;
    width: 100%;
    max-height: none;
    padding: 0.35rem 0 0;
    overflow: visible;
    background: transparent;
    border-top: 1px solid var(--ewo-border);
    border-bottom: 0;
    box-shadow: none;
  }

  .primary-navigation > ul,
  .primary-navigation > div > ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(0.7rem, 1.4vw, 1.35rem);
  }

  .primary-navigation li {
    position: relative;
  }

  .primary-navigation a {
    padding: 0.85rem 0;
    border: 0;
    font-size: clamp(0.8rem, 1vw, 0.93rem);
    white-space: nowrap;
  }

  .primary-navigation .menu-item-has-children > a::after {
    margin-left: 0.3rem;
    color: var(--ewo-slate);
    font-size: 0.7em;
    content: "▼";
  }

  .primary-navigation .sub-menu {
    position: absolute;
    top: calc(100% - 0.1rem);
    left: -1rem;
    z-index: 200;
    display: none;
    min-width: 240px;
    padding: 0.6rem 1rem;
    background: var(--ewo-white);
    border: 1px solid var(--ewo-border);
    border-radius: var(--ewo-radius);
    box-shadow: var(--ewo-shadow);
  }

  .primary-navigation .sub-menu a {
    padding: 0.65rem 0;
    white-space: normal;
  }

  .primary-navigation .sub-menu .sub-menu {
    top: -0.6rem;
    left: calc(100% + 0.5rem);
  }

  .primary-navigation li:hover > .sub-menu,
  .primary-navigation li:focus-within > .sub-menu {
    display: block;
  }

  .ewo-sidebar-layout {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(300px, 380px);
    gap: clamp(2rem, 4vw, 4rem);
  }

  .ewo-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ewo-404-layout {
    grid-template-columns:
      minmax(0, 1.7fr)
      minmax(300px, 0.7fr);
    align-items: start;
  }

  .ewo-footer-cta-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ewo-footer-cta-actions {
    justify-content: flex-end;
  }

  .site-footer-main {
    grid-template-columns:
      minmax(0, 1.5fr)
      minmax(260px, 0.7fr)
      minmax(260px, 0.7fr);
  }

  .ewo-footer-brand {
    grid-column: auto;
  }

  .ewo-footer-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 1rem;
  }

  .ewo-footer-menu li + li {
    margin-top: 0;
  }
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1440px) {

  .site-header-inner {
    flex-wrap: nowrap;
    gap: clamp(1rem, 1.4vw, 1.5rem);
    min-height: 88px;
  }

  .site-branding {
    order: 1;
    flex: 0 0 285px;
  }

  .primary-navigation,
  .primary-navigation[hidden] {
    order: 2;
    flex: 1 1 auto;
    width: auto;
    padding: 0;
    border: 0;
  }

  .primary-navigation > ul,
  .primary-navigation > div > ul {
    justify-content: flex-end;
    gap: clamp(0.55rem, 0.85vw, 1rem);
  }

  .primary-navigation a {
    padding: 1.9rem 0;
    font-size: clamp(0.78rem, 0.8vw, 0.91rem);
  }

  .primary-navigation .sub-menu {
    top: calc(100% - 0.35rem);
  }

  .ewo-header-actions {
    order: 3;
    flex: 0 0 auto;
    margin-left: 0;
  }

  .ewo-header-phone,
  .ewo-header-cta {
    min-height: 46px;
  }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 479px) {

  .ewo-contact-bar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .ewo-header-actions {
    grid-template-columns: 1fr;
  }

  .ewo-header-phone-label {
    display: none;
  }

  .ewo-footer-cta-actions,
  .ewo-404-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ewo-footer-button,
  .ewo-footer-call,
  .ewo-404-actions .ewo-button {
    width: 100%;
  }

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

  .ewo-search-form .search-submit {
    width: 100%;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .ewo-post-card:hover .ewo-post-card-image img {
    transform: none;
  }
}
/* =========================================================
   EASY WEBSITE ONLINE — HOMEPAGE HERO
   Add class: ewo-home-hero
   ========================================================= */

.ewo-home-hero {
	--ewo-navy: #082b4c;
	--ewo-blue: #126bc5;
	--ewo-bright-blue: #1689e5;
	--ewo-orange: #f7931e;
	--ewo-yellow: #f8c52b;

	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin: 0;
	background: #f3f9ff;
}

.ewo-home-hero > .wp-block-column {
	flex-basis: 100% !important;
	min-width: 0;
}

.ewo-home-hero > .wp-block-column > .wp-block-columns {
	gap: 0;
	margin-block-start: 0;
}

/* Hero image */

.ewo-home-hero figure {
	margin: 0;
}

.ewo-home-hero figure img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: 72% center;
}

/* Mobile content panel */

.ewo-home-hero > .wp-block-column > .wp-block-columns:last-child {
	position: relative;
	z-index: 2;
	padding: 2rem 1.25rem 2.25rem;
	background: #ffffff;
}

.ewo-home-hero > .wp-block-column >
.wp-block-columns:last-child >
.wp-block-column:first-child {
	flex-basis: 100% !important;
	max-width: 680px;
}

/* Eyebrow */

.ewo-home-hero > .wp-block-column >
.wp-block-columns:last-child >
.wp-block-column:first-child >
p:first-child {
	margin: 0 0 0.8rem;
	color: var(--ewo-blue);
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Main heading */

.ewo-home-hero h1 {
	max-width: 760px;
	margin: 0;
	color: var(--ewo-navy);
	font-size: clamp(2.35rem, 10vw, 4.75rem);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

/* Supporting paragraph */

.ewo-home-hero h1 + p {
	max-width: 650px;
	margin: 1.25rem 0 0;
	color: #334d63;
	font-size: clamp(1rem, 3vw, 1.2rem);
	line-height: 1.65;
}

/* Current temporary button paragraph */

.ewo-home-hero h1 + p + p {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.6rem 0 0;
}

.ewo-home-hero h1 + p + p strong {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 1.25rem;
	border: 2px solid var(--ewo-blue);
	border-radius: 6px;
	background: var(--ewo-blue);
	color: #ffffff;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
}

.ewo-home-hero h1 + p + p strong:last-child {
	background: transparent;
	color: var(--ewo-navy);
}

/* Proof line */

.ewo-home-hero > .wp-block-column >
.wp-block-columns:last-child >
.wp-block-column:first-child >
p:last-child {
	margin: 1rem 0 0;
	color: #597083;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.5;
}

/* Native WordPress Buttons block support */

.ewo-home-hero .wp-block-buttons {
	gap: 0.75rem;
	margin-top: 1.6rem;
}

.ewo-home-hero .wp-block-button__link {
	min-height: 48px;
	padding: 0.8rem 1.35rem;
	border: 2px solid var(--ewo-blue);
	border-radius: 6px;
	background: var(--ewo-blue);
	color: #ffffff;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
}

.ewo-home-hero .wp-block-button.is-style-outline
.wp-block-button__link {
	background: rgba(255, 255, 255, 0.75);
	color: var(--ewo-navy);
}


/* =========================================================
   DESKTOP HERO
   ========================================================= */

@media (min-width: 981px) {

	/* Full browser-width hero */

.ewo-home-hero {
	position: relative;
	left: 50%;
	width: 100vw;
	max-width: none !important;
	margin-right: -50vw !important;
	margin-left: -50vw !important;
	overflow: hidden;
	background: #ffffff;
}

.ewo-home-hero figure,
.ewo-home-hero figure img {
	width: 100%;
	max-width: none;
	margin: 0;
}

.ewo-home-hero figure img {
	display: block;
	height: auto;
}


/* Desktop */

@media (min-width: 981px) {

	.ewo-home-hero {
		left: 50%;
		width: 100vw;
		margin-left: -50vw !important;
	}

	.ewo-home-hero figure img {
		width: 100vw;
		aspect-ratio: 1680 / 900;
		object-fit: cover;
		object-position: center;
	}

	/*
	 * Creates a protected white area for the copy.
	 * The device imagery begins after the text.
	 */

	.ewo-home-hero::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 1;
		pointer-events: none;
		background: linear-gradient(
			90deg,
			#ffffff 0%,
			#ffffff 30%,
			rgba(255, 255, 255, 0.98) 34%,
			rgba(255, 255, 255, 0.82) 39%,
			rgba(255, 255, 255, 0) 49%
		);
	}

	/* Copy overlay */

	.ewo-home-hero > .wp-block-column >
	.wp-block-columns:last-child {
		position: absolute;
		inset: 0;
		z-index: 2;
		display: flex;
		align-items: center;
		padding: clamp(2.5rem, 5vw, 6rem);
		background: transparent;
		pointer-events: none;
	}

	.ewo-home-hero > .wp-block-column >
	.wp-block-columns:last-child >
	.wp-block-column:first-child {
		flex: 0 0 36% !important;
		max-width: 560px;
	}

	.ewo-home-hero > .wp-block-column >
	.wp-block-columns:last-child >
	.wp-block-column:last-child {
		flex: 1 1 auto !important;
	}

	.ewo-home-hero h1 {
		max-width: 540px;
		margin: 0;
		font-size: clamp(2.65rem, 3.55vw, 4rem);
		line-height: 1.03;
		letter-spacing: -0.04em;
	}

	.ewo-home-hero h1 + p {
		max-width: 525px;
		font-size: clamp(1rem, 1.15vw, 1.15rem);
		line-height: 1.6;
	}

	.ewo-home-hero h1 + p + p,
	.ewo-home-hero .wp-block-buttons {
		pointer-events: auto;
	}
}
}