/* Theme Name: W.T. Johnson & Sons 2026 */

:root {
    --color-white: #FFFFFF;
    --color-neutral-lightest: #F3F0EA;
    --color-neutral-lighter: #CCCCCC;
    --color-neutral-light: #AAAAAA;
    --color-neutral: #666666;
    --color-neutral-dark: #444444;
    --color-neutral-darker: #222222;
    --color-neutral-darkest: #151923;
    --color-brand-blue: #0069AA;
    --color-headings: #151923;
    --color-text: #434C61;
    --color-bg-opacity-low: #FFFFFF10;
    --font-lg: 1.25rem;
    --font-md: 1.125rem;
    --font-rg: 1rem;
    --font-sm: 0.875rem;
    --font-xs: 0.75rem;
    --header-height: 80px;
    --site-max: 1440px;
    --site-gutter: 20px;
}

@media (min-width: 768px) {
    :root {
        --site-gutter: 80px;
    }
}

.site-container {
    width: 100%;
    max-width: calc(var(--site-max) + (var(--site-gutter) * 2));
    margin-inline: auto;
    padding-inline: var(--site-gutter);
}

body {
    color: var(--color-text);
}
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    color: var(--color-headings);
    font-weight: 500;
}

h1, .h1 {
    font-family: "Cormorant Garamond",sans-serif;
    font-size: 2.5rem;
    line-height: 120%;
}
h2, .h2 {
    font-family: "Cormorant Garamond",sans-serif;
    font-size: 2.25rem;
    line-height: 120%;
}
h3, .h3 {
    font-family: "Cormorant Garamond",sans-serif;
    font-size: 2rem;
    line-height: 120%;
}
h4, .h4 {
    font-family: "Cormorant Garamond",sans-serif;
    font-size: 1.5rem;
    line-height: 120%;
}
h5, .h5, .sub-menu .menu-item{
    font-family: "Cormorant Garamond",sans-serif;
    font-size: 1.25rem;
    line-height: 140%;
}
h6, .h6 {
    font-family: "Cormorant Garamond",sans-serif;
    font-size: 1.125rem;
    line-height: 140%;
}

.heading {
    font-family: "Cormorant Garamond",sans-serif;
}

p {
    line-height: 150%;
}

.overline {
    font-weight: 600;
    text-transform: uppercase;
    line-height: 150%;
    letter-spacing: 20%;
    color: var(--color-headings);
    font-size: 1rem;
}

@font-face {
    font-family: 'Lato';
    src: url('assets/fonts/Lato/Lato-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('assets/fonts/Lato/Lato-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('assets/fonts/Lato/Lato-LightItalic.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('assets/fonts/Lato/Lato-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('assets/fonts/Lato/Lato-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('assets/fonts/Lato/Lato-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('assets/fonts/Lato/Lato-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('assets/fonts/Lato/Lato-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('assets/fonts/Lato/Lato-BlackItalic.woff2') format('woff2');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url('assets/fonts/CormorantGaramond-VariableFont_wght.woff2') format('woff2-variations'),
         url('assets/fonts/CormorantGaramond-VariableFont_wght.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}


body {
    background: var(--color-neutral-lightest);
    font-family: 'Lato', sans-serif;
}

body.mobile-nav-locked {
    overflow: hidden;
}

@media ((hover:hover) and (pointer:fine)) {
    h1, .h1 {
        font-size: 3.5rem;
        line-height: 120%;
    }
    h2, .h2 {
        font-size: 3rem;
        line-height: 120%;
    }
    h3, .h3 {
        font-size: 2.5rem;
        line-height: 120%;
    }
    h4, .h4 {
        font-size: 2rem;
        line-height: 130%;
    }
    h5, .h5{
        font-size: 1.5rem;
        line-height: 140%;
    }
    h6, .h6 {
        font-size: 1.25rem;
        line-height: 140%;
    }
    .tagline {
        font-size: 1rem;
        line-height: 150%;
    }
}

.wtj-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    padding: 0.75rem 2.25rem;
    gap: 0.5rem;
    border-radius: 0.125rem;
    background: transparent;
    border: none;
    isolation: isolate;
    width: fit-content;
    overflow: visible;
    transform-origin: center;
}

.wtj-button::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 0.1875rem;
    transform-origin: center;
    transition: transform 180ms ease, filter 180ms ease,
    border-radius 180ms ease, background-color 180ms ease;
    z-index: -1;
}

.wtj-button.primary {
    background-color: var(--btn-bg, var(--color-brand-blue)) !important;
    color: var(--color-neutral-lightest) !important;
    font-weight: 500 !important;
    line-height: 139% !important;
    letter-spacing: 0% !important;
    border-radius: 2px !important;
}

.wtj-button.primary::before {
    background-color: var(--btn-bg, var(--color-brand-blue));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.wtj-button.secondary::before {
    background: #f4f0ea;
    border: 1px solid var(--color-brand-blue);
    box-shadow: none;
}

.button-label {
    position: relative;
    display: inline-block;
    color: #f4f0ea;
    font-family: Lato;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 500;
    line-height: 139%;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    overflow: hidden;
    height: 1.2rem;
    transition: transform 180ms ease;
    transform-origin: center;
}

.wtj-button.secondary .button-label {
    color: var(--color-headings);
}

.wtj-button.primary.dark::before {
    background: var(--color-brand-blue);
    filter: brightness(0.9);
}
.wtj-button.secondary.dark::before {
    color: #f4f0ea;
    background: transparent;
    border: none;
    border-radius: 0.125rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.wtj-button.secondary.dark::before {
    display: block;
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 0.125rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: none;
    z-index: -1;
    transform-origin: center;
    transition: transform 180ms ease, filter 180ms ease,
        border-radius 180ms ease;
}

.wtj-button.secondary.dark .button-label {
    color: #f4f0ea;
}
.wtj-button.secondary.dark:hover::before {
    background: linear-gradient(
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.08)
    );
    border: 1px solid rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    filter: brightness(1.12);
    transform: scale(1.05, 1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    border-radius: 0.125rem;
  }

.button-label .text-top, 
.button-label .text-bottom {
    display: block;
    transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button-label .text-top {
    transform: translateY(0);
}
.button-label .text-bottom {
    transform: translateY(1.2rem);
    position: absolute;
    inset: 0;
    color: inherit;
}
.wtj-button:hover .button-label {
    transform: translateX(0.02em);
}
.wtj-button:hover .button-label .text-top {
    transform: translateY(-1.2rem);
}
.wtj-button:hover .button-label .text-bottom {
    transform: translateY(0);
}
/* .wtj-button.large {
    padding: 12px 36px !important;
}
.wtj-button.small {
    padding: 8px 20px
} */

.wtj-button.secondary {
    background-color: #ffffff10;
    border: 1px solid #ffffff70;
    color: var(--color-white);
}

.wtj-button:hover {
    text-decoration: none;
}

.wtj-button:hover::before {
    transform: scale(1.03, 1.06);
    border-radius: 0;
}

.wtj-button.primary:hover::before {
    filter: brightness(0.86);
}
.wtj-button.secondary:hover::before {
    filter: brightness(0.97);
}

@media ((hover:hover) and (pointer:fine)) {
    :root {
        --header-height: 176px;
    }
}

.glass-card {
    background: rgb(201 201 201 / 80%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    /* box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 30px 15px rgba(255, 255, 255, 1.5); */
    box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 12px 6px rgba(255, 255, 255, 0.6);

    position: relative;
    overflow: hidden;
  }
  
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.8),
        transparent,
        rgba(255, 255, 255, 0.3)
    );
}

.wp-block-heading,
.wp-block-paragraph,
.wp-block-list,
.wp-block-table,
.rank-math-html-sitemap {
    max-width: 768px;
    margin-inline: 20px;
}
.rank-math-html-sitemap__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-block: 12px;
}

.rank-math-html-sitemap__section {
    margin-bottom: 12px;
}

.rank-math-html-sitemap__section:last-of-type {
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .wp-block-heading,
    .wp-block-paragraph,
    .wp-block-list,
    .wp-block-table,
    .rank-math-html-sitemap {
        margin-inline: auto;
    }
}