/*
 Theme Name:   TrekMeet Child (Astra)
 Theme URI:    https://trekmeet.com
 Description:  A custom child theme for the TrekMeet website, based on the Astra theme.
 Author:       Manish
 Author URI:   https://trekmeet.com
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, fluid-layout, responsive-layout, custom-background, custom-header, custom-menu, e-commerce, featured-images, full-width-template, post-formats, sticky-post, theme-options, translation-ready, accessibility-ready
 Text Domain:  trekmeet-child
*/

/* ============================================================
   Self-hosted DM Sans — the sole sanctioned site font (handover §4).
   .woff2 files live in /wp-content/themes/astra-child/fonts/.
   ============================================================ */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/dm-sans-300.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/dm-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/dm-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/dm-sans-700.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/dm-sans-800.woff2') format('woff2');
}

/* Force DM Sans across the whole site — overrides any Astra/plugin default
   that hasn't been caught by the Customizer typography setting. */
body, button, input, select, textarea,
h1, h2, h3, h4, h5, h6,
.ast-builder-menu-1 .menu-link,
.site-title, .site-description {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Enhance hero text readability */
.wp-block-cover h1.uagb-heading-text {
  text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
}

/* Underline the active menu item */
.main-header-menu .current-menu-item > .menu-link {
    border-bottom: 2px solid #b8860b; /* Antique gold accent */
}

/*
 * Tablet / small-laptop header layout fix (922–1120px)
 * Prevents social icons + CTA from wrapping awkwardly.
*/
@media (max-width: 1120px) and (min-width: 922px) {
    .ast-builder-menu-1 .menu-item > .menu-link {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 15px;
    }
    .ast-header-social-1-wrap {
        flex-shrink: 0;
    }
    .ast-header-social-1-wrap .ast-builder-social-element svg {
        width: 26px;
        height: 26px;
    }
    .ast-header-button-1 .ast-custom-button {
        padding: 10px 16px;
        font-size: 15px;
    }
}
