/*
Theme Name: GMass Pages 2026
Theme URI: https://www.gmass.co/
Author: GMass, Inc.
Description: Lightweight WordPress theme for GMass landing pages, matching the 2026 GMass redesign while preserving legacy WordPress page content.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: gmass-pages-2026
*/

:root {
    --ink: #172A35;
    --ink-2: #334A55;
    --muted: #66737A;
    --teal: #176B68;
    --teal-dark: #115552;
    --ivory: #FAF8F3;
    --stone: #F1EEE7;
    --line: #D9D5CC;
    --card: #FFFEFC;
    --mocha: #6F625C;
    --mocha-soft: #F3F0ED;
    --gmass-red: #A71919;
    --max: 1180px;
    --content: 930px;
    --shadow: 0 14px 44px rgba(23,42,53,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ivory); }
body.gmass-pages-theme {
    margin: 0;
    overflow-x: hidden;
    background: var(--ivory);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

.landing-content a { color: var(--teal-dark); }
.landing-content a:hover { color: var(--teal); }
/* Keep responsive image behavior inside page content only.
   Do not override dimensions supplied by the live GMass nav/footer. */
.landing-content img { max-width: 100%; height: auto; }
.landing-content button,
.landing-content input,
.landing-content textarea,
.landing-content select { font: inherit; }

/* The fetched live nav supplies its own complete nav CSS. */
.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-nav { top: 46px; } }

.landing-page-main {
    padding: 26px 0 90px;
}

.landing-content-wrap {
    width: min(var(--content), calc(100% - 40px));
    margin: 0 auto;
}

.landing-content {
    color: var(--ink-2);
    font-size: 18px;
    line-height: 1.72;
}

.landing-content > :first-child { margin-top: 0; }
.landing-content > :last-child { margin-bottom: 0; }

.landing-content h1,
.landing-content h2,
.landing-content h3,
.landing-content h4,
.landing-content h5,
.landing-content h6 {
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.landing-content h1 {
    margin: 0 0 32px;
    color: var(--mocha);
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.landing-content h2 {
    margin: 2.1em 0 .55em;
    color: var(--mocha);
    font-size: clamp(32px, 4.2vw, 46px);
    line-height: 1.08;
}

.landing-content h3 {
    margin: 1.8em 0 .5em;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.14;
}

.landing-content h4 {
    margin: 1.55em 0 .45em;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.2;
}

.landing-content h5 { font-size: 22px; }
.landing-content h6 { font-size: 19px; }

.landing-content p { margin: 0 0 1.15em; }
.landing-content ul,
.landing-content ol { margin: 0 0 1.35em; padding-left: 1.45em; }
.landing-content li { margin: 0 0 .5em; }
.landing-content li::marker { color: var(--teal); }

.landing-content a:not(.button-alt):not(.button):not(.cta) {
    color: var(--teal-dark);
    text-decoration: underline;
    text-decoration-color: rgba(23,107,104,.35);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.landing-content a:not(.button-alt):not(.button):not(.cta):hover {
    color: var(--teal);
    text-decoration-color: currentColor;
}

.landing-content strong,
.landing-content b { color: var(--ink); }

.landing-content em { color: var(--ink-2); }

.landing-content hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 48px 0;
}

.landing-content code {
    padding: .12em .35em;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--mocha-soft);
    color: var(--ink);
    font-size: .9em;
}

.landing-content pre {
    overflow-x: auto;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #172A35;
    color: #F8FBFA;
}
.landing-content pre code { padding: 0; border: 0; background: transparent; color: inherit; }

/* Legacy WordPress image/alignment compatibility. */
.landing-content img,
.landing-content figure { max-width: 100%; }
.landing-content figure { margin: 28px 0; }
.landing-content figcaption {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--stone);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}
.aligncenter { display: block; margin-left: auto !important; margin-right: auto !important; }
.alignleft { float: left; margin: .35em 24px 18px 0; }
.alignright { float: right; margin: .35em 0 18px 24px; }
.alignnone { max-width: 100%; }

/* Prevent old fixed-width media from breaking mobile pages. */
.landing-content iframe,
.landing-content video,
.landing-content embed,
.landing-content object { max-width: 100%; }
.landing-content iframe[src*="youtube.com"],
.landing-content iframe[src*="youtu.be"] {
    width: min(100%, 760px);
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    display: block;
    margin: 28px auto;
}

/* Legacy GMass landing-page CTA class. Keep the class, update the look. */
.button-alt,
a.button-alt,
.button,
a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 25px;
    border: 0;
    border-radius: 9px;
    background: #232323;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
    box-shadow: 0 9px 24px rgba(35,35,35,.18);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button-alt:hover,
a.button-alt:hover,
.button:hover,
a.button:hover {
    background: #111;
    color: #fff !important;
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 13px 30px rgba(35,35,35,.24);
}

/* Forms, including old WPForms pages. */
.landing-content input[type="text"],
.landing-content input[type="email"],
.landing-content input[type="url"],
.landing-content input[type="password"],
.landing-content input[type="search"],
.landing-content input[type="number"],
.landing-content input[type="tel"],
.landing-content select,
.landing-content textarea {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    outline: none;
}
.landing-content input[type="text"],
.landing-content input[type="email"],
.landing-content input[type="url"],
.landing-content input[type="password"],
.landing-content input[type="search"],
.landing-content input[type="number"],
.landing-content input[type="tel"],
.landing-content select { min-height: 46px; padding: 0 13px; }
.landing-content textarea { min-height: 150px; padding: 12px 13px; resize: vertical; }
.landing-content input:focus,
.landing-content select:focus,
.landing-content textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(23,107,104,.10);
}
.landing-content input[type="submit"],
.landing-content button[type="submit"],
div.wpforms-container-full .wpforms-form input[type="submit"],
div.wpforms-container-full .wpforms-form button[type="submit"] {
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 9px;
    background: #232323;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

/*
 * Table compatibility
 *
 * Many older GMass landing pages use raw/nested HTML tables to draw product UI
 * (Google Sheets, Gmail compose windows, icon labels, etc.). Do not globally
 * add padding, borders, widths or margins to those tables; their page-level
 * HTML/CSS is the source of truth.
 */
.landing-content table {
    max-width: 100%;
}

/* Only give "data table" styling to actual Gutenberg table blocks. */
.landing-content .wp-block-table {
    max-width: 100%;
    overflow-x: auto;
    margin: 28px 0;
}

.landing-content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.landing-content .wp-block-table th,
.landing-content .wp-block-table td {
    padding: 12px 14px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.landing-content .wp-block-table th {
    background: var(--stone);
    color: var(--ink);
}

/* Keep legacy alignment-table helpers lightweight. */
.landing-content table.alignleft,
.landing-content table.alignright {
    width: auto;
}

.landing-content table.alignleft td,
.landing-content table.alignright td {
    border: 0;
    vertical-align: middle;
}

/* Overlay used by the preserved Chrome Web Store popup behavior. */
#overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity ease-in-out .5s;
}
#overlay.visible { opacity: .75; pointer-events: all; }

/* Footer styles. _Footer.cshtml provides markup; WordPress supplies the presentation. */
.site-footer, .site-footer .footer-top, .site-footer .footer-bottom {
    background: #172A35;
    color: #F8FBFA;
}
.site-footer {
    padding: 0;
    border-top: 1px solid rgba(255,255,255,.10);
    font-size: 16px;
}
.site-footer .wrap {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}
.footer-top { padding: 58px 0 48px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.1fr 1fr 1fr;
    gap: 46px;
    align-items: start;
}
.footer-col { min-width: 0; }
.footer-box + .footer-box { margin-top: 34px; }
.site-footer .footer-box h6 {
    position: relative;
    margin: 0 0 18px;
    padding: 0 0 11px;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: .09em;
    text-transform: uppercase;
    font-weight: 900;
    border-bottom: 1px solid rgba(255,255,255,.16);
}
.site-footer .footer-box h6::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: #70CFC7;
}
.footer-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-box li { margin: 0; padding: 0; }
.site-footer .footer-box a,
.site-footer .footer-recent a {
    display: inline-block;
    color: #F1F7F5;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 550;
    transition: color .13s ease, transform .13s ease;
}
.site-footer .footer-box a:hover { color: #fff; transform: translateX(2px); }
.site-footer .footer-box .external::after { content: " ↗"; font-size: .82em; color: #9FE0DA; }
.footer-subgroup { margin-top: 30px; }
.site-footer .footer-recent small {
    display: block;
    margin-top: 3px;
    color: #9FE0DA;
    font-size: 11px;
    font-weight: 750;
    opacity: .9;
}
.footer-bottom { padding: 20px 0 24px; border-top: 1px solid rgba(255,255,255,.13); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: center; text-align: center; }
.site-footer .footer-bottom p { margin: 0; color: #DCE8E5; font-size: 14px; font-weight: 700; }
.site-footer .footer-recent h6[aria-hidden="true"] { border-bottom-color: transparent; }
.site-footer .footer-recent h6[aria-hidden="true"]::after { display: none; }

.not-found-card {
    max-width: 680px;
    margin: 50px auto;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--card);
    box-shadow: var(--shadow);
    text-align: center;
}
.not-found-card .eyebrow { margin: 0 0 8px; color: var(--teal); font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.not-found-card h1 { margin-top: 0; }

@media (max-width: 980px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 54px; }
}

@media (max-width: 700px) {
    .landing-page-main { padding: 42px 0 64px; }
    .landing-content-wrap { width: min(var(--content), calc(100% - 28px)); }
    .landing-content { font-size: 17px; line-height: 1.68; }
    .landing-content h1 { margin-bottom: 25px; }
    .landing-content h2 { margin-top: 1.7em; }
    .alignleft,
    .alignright { float: none; display: block; margin: 22px auto !important; }
    .landing-content table.alignleft,
    .landing-content table.alignright { width: auto; }
}

@media (max-width: 640px) {
    .site-footer .wrap { width: min(var(--max), calc(100% - 24px)); }
    .footer-top { padding: 42px 0 36px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-col { padding-bottom: 4px; }
}


/* Legacy Gmail compose mockups should retain Gmail's white canvas.
   Some embedded icon-strip PNGs include white backgrounds, so this
   prevents visible white rectangles against the site's ivory page. */
.landing-content #email-table {
    background: #fff;
}
