/* ==========================================================================
   RUVIA THEME — main.css
   Exact visual match to the original HTML design.
   All content is editable via Appearance > Customize > Theme Options.
   ========================================================================== */

/* ── CUSTOM PROPERTIES ──────────────────────────────────────────────── */
:root {
    --gold:    #C8860A;
    --crimson: #C41E5C;
    --dark:    #111111;
    --gray-bg: #fbfbfb;
    --text:    #1a1a1a;
    --white:   #ffffff;
    --border:  #e5e5e5;
    --muted:   #666666;
    --radius:  14px;
    --shadow:  0 2px 20px rgba(0,0,0,.07);
    --max-w:   1200px;
    --pad:     40px;
}

/* ── RESET ──────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ── CONTAINER ──────────────────────────────────────────────────────── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
}


/* ==========================================================================
   NAVIGATION
   Edit logo  : Appearance > Customize > Site Identity > Logo
   Edit button: Appearance > Customize > Theme Options > Header
   Edit menu  : Appearance > Menus > Primary Navigation
   ========================================================================== */
nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

/* Solid background on inner/legal pages */
nav.nav-legal {
    position: relative;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 24px 9px;
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
}

/* Logo */
.logo { flex-shrink: 0; }
.logo img,
.logo .custom-logo { height: 65px; width: auto; display: block; }

/* Primary menu (desktop) */
.nav-menu-wrap { margin-left: auto; }
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-menu a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--dark);
    transition: color .2s;
}
.nav-menu a:hover { color: var(--crimson); }

/* Header CTA button */
.nav-btn {
    background: var(--crimson);
    color: var(--white);
    padding: 9px 22px;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background .2s, color .2s;
    flex-shrink: 0;
}
.nav-btn:hover { opacity: .88; }

/* Mobile hamburger button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile dropdown menu */
.mobile-menu {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 20px var(--pad);
}
.mobile-nav-list { list-style: none; }
.mobile-nav-list li { border-bottom: 1px solid var(--border); }
.mobile-nav-list a { display: block; padding: 14px 0; font-size: 1rem; font-weight: 500; }
.mobile-nav-btn {
    display: inline-flex;
    margin-top: 16px;
    border: 1.5px solid var(--crimson);
    color: var(--crimson);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    transition: background .2s, color .2s;
}
.mobile-nav-btn:hover { background: var(--crimson); color: var(--white); }


/* ==========================================================================
   HERO SECTION
   Edit via: Appearance > Customize > Theme Options > Home Page
   ========================================================================== */
.hero-wrap {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--white);
    position: relative;
}

/* Left content column */
.hero-left {
    width: 45%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Container-aligned left padding, fixed right padding */
    padding-top: 100px;
    padding-bottom: 60px;
    padding-left: max(var(--pad), calc((100vw - var(--max-w)) / 2));
    padding-right: 32px;
    background: var(--white);
    position: relative;
    z-index: 2;
}

.hero-left h1 {
    font-size: clamp(2.4rem, 5.2vw, 4.6rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--dark);
    margin-bottom: 24px;
}
.hero-left h1 span {
    color: var(--crimson);
    font-style: italic;
}

.badge {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #e3bd5a;
    border-radius: 10px;
    padding: 6px 16px;
    font-size: .72rem;
    letter-spacing: .09em;
    color: #e3bd5a;
    margin-bottom: 22px;
    width: fit-content;
}
.badge span { color: #e3bd5a; font-weight: 700; }

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--crimson);
    color: var(--white);
    border: none;
    padding: 15px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: fit-content;
    margin-bottom: 24px;
    transition: opacity .2s;
}
.cta-btn:hover { opacity: .88; }

.avatars { display: none; align-items: center; gap: 12px; }
.avatar-stack { display: flex; }
.avatar-stack img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2.5px solid var(--white);
    object-fit: cover;
    margin-left: -12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.avatar-stack img:first-child { margin-left: 0; }
.avatars p { font-size: .88rem; color: #555; }

/* Right image — full bleed to viewport edge */
.hero-right { flex: 1; position: relative; overflow: hidden; }
.hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}
.hero-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #fff 0%, rgba(255,255,255,.5) 18%, transparent 38%);
    z-index: 1;
}


/* ==========================================================================
   FEATURE BAR
   Edit via: Appearance > Customize > Theme Options > Home Page > Feature Bar
   ========================================================================== */
.feature-bar-wrap {
    background: var(--gray-bg);
    padding: 0 var(--pad) 56px;
}

.feature-bar {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 36px 56px;
    background: var(--white);
    border-radius: 24px;
    display: flex;
    align-2tems: center;
    box-shadow: var(--shadow);
    position: relative;
    top: -32px;
    margin-bottom: -32px;
    z-index: 9999999;
}

.feature-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 40px;
    justify-content: center;
}
.feature-item:first-child { padding-left: 0; }
.feature-item:last-child  { padding-right: 0; }
.feature-item + .feature-item { border-left: 1px solid #e8e8e8; }

.f-icon { width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.f-icon svg { width: 100%; height: 100%; }

.feature-item p { font-weight: 600; font-size: 1rem; line-height: 1.4; color: var(--dark); }


/* ==========================================================================
   MID SECTION
   Edit via: Appearance > Customize > Theme Options > Home Page > Mid Section
   ========================================================================== */
.mid-section {
    background: var(--gray-bg);
    text-align: center;
    padding: 80px 0 90px;
}
.mid-section .container { display: flex; flex-direction: column; align-items: center; }

.mid-section .sub { font-size: 1.25rem; color: var(--text); margin-bottom: 12px;font-style: italic; }

.mid-section h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 64px;
    color: var(--dark);
}
.mid-section h2 span { color: var(--crimson); font-style: italic; }

.icon-grid { display: flex; align-items: flex-start; justify-content: center; width: 100%; }

.icon-card { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 0 32px; }
.icon-card + .icon-card { border-left: 1px solid #d8d8d8; }

.icon-circle { width: 110px; height: 110px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ic-green { background: #E2F5EE; }
.ic-pink  { background: #FAE4EE; }
.ic-peach { background: #FBF0E3; }
.ic-teal  { background: #E2F5EE; }

.icon-card p { font-size: 1rem; font-weight: 500; color: var(--dark); }


/* ==========================================================================
   CTA / WAITLIST SECTION
   Edit via: Appearance > Customize > Theme Options > Home Page > Waitlist Section
   ========================================================================== */
.cta-dark { background: var(--gray-bg); padding: 64px 0; }

.cta-dark-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }

.cta-card {
    background: #1a1a1a;
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 52px 56px;
}

.cta-card h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 20px; }
.cta-card h2 span { color: var(--gold); }

.cta-divider { width: 40px; height: 2px; background: var(--gold); margin-bottom: 20px; border-radius: 2px; }

.cta-desc-row { display: flex; align-items: flex-end; gap: 16px; }
.cta-desc-row p { color: #aaa; font-size: 1.4rem; line-height: 1.6; }
.cta-arrow { flex-shrink: 0; margin-bottom: 2px; }

/* Form */
.cta-form { display: flex; flex-direction: column; gap: 14px; overflow: hidden;}

.cta-form input[type="email"],
.phone-number {
    width: 100%;
    padding: 17px 22px;
    border-radius: var(--radius);
    border: none;
    background: #2e2e2e;
    color: var(--white);
    font-size: .95rem;
    font-family: inherit;
    outline: none;
    transition: box-shadow .2s;
}
.cta-form input::placeholder,
.phone-number::placeholder { color: #666; }
.cta-form input:focus { box-shadow: 0 0 0 2px var(--gold); }

/* Phone row */
.phone-row { display: flex; border-radius: var(--radius); overflow: hidden; background: #2e2e2e; }
.phone-code { flex-shrink: 0; border-right: 1px solid #444; display: flex; align-items: center; }
.dial-badge { display: flex; align-items: center; color: var(--white); font-size: .95rem; padding: 0 14px 0 18px; white-space: nowrap; user-select: none; gap: 5px; }
.phone-row .phone-number { background: transparent; border: none; border-radius: 0; flex: 1; }
.phone-row:focus-within { box-shadow: 0 0 0 2px var(--gold); }

/* Input wrapper */
.input-wrap { display: flex; flex-direction: column; gap: 6px; }

/* Error states */
.input-wrap.field--error input[type="email"] { box-shadow: 0 0 0 2px #f87171; }
.input-wrap.field--error .phone-row         { box-shadow: 0 0 0 2px #f87171; }

.field-error { display: block; font-size: .8rem; color: #f87171; min-height: 1em; padding-left: 4px; }

/* reCAPTCHA */
.recaptcha-wrap { display: flex; justify-content: center; }

/* Submit button */
.cta-form button {
    width: 100%;
    padding: 18px;
    border-radius: var(--radius);
    border: none;
    background: var(--crimson);
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: .01em;
    transition: opacity .2s;
}
.cta-form button:hover    { opacity: .88; }
.cta-form button:disabled { opacity: .6; cursor: not-allowed; }

/* Form feedback message */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.form-msg {
    display: none;
    align-items: flex-start;
    gap: 12px;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: .9rem;
    line-height: 1.5;
    font-weight: 500;
    animation: slideDown .25s ease;
}
.form-msg--success,
.form-msg--error { display: flex; }

.form-msg--success {
    background: rgba(74, 222, 128, .12);
    border: 1px solid rgba(74, 222, 128, .35);
    color: #4ade80;
}
.form-msg--error {
    background: rgba(248, 113, 113, .12);
    border: 1px solid rgba(248, 113, 113, .35);
    color: #f87171;
}


/* ==========================================================================
   FOOTER
   Edit via: Appearance > Customize > Theme Options > Footer / Contact / Social
   ========================================================================== */
footer { background: var(--white); padding: 48px 0 24px; }

.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo img,
.footer-brand .custom-logo { height: 60px; }
.footer-brand p { font-size: .82rem; color: var(--muted); margin: 8px 0 4px; display: none; }
.footer-brand .launch-tag { font-size: .8rem; font-weight: 600; color: var(--crimson); }

.footer-col h4 { font-size: .9rem; font-weight: 700; margin-bottom: 14px; color: var(--dark); }
.footer-col a { display: block; font-size: .85rem; color: #555; margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: var(--crimson); }

.social-icons { display: flex; gap: 16px; margin-top: 4px; flex-wrap: wrap; }
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    color: var(--dark);
    transition: border-color .2s, color .2s;
}
.social-icons a:hover { border-color: var(--crimson); color: var(--crimson); }

.footer-bottom { text-align: center; font-size: .82rem; color: #999; }


/* ==========================================================================
   PAGE TEMPLATE — Standard WordPress pages (page.php)
   Edit: Dashboard > Pages > (select page) > WordPress editor
   ========================================================================== */
.page-banner { margin-top: 64px; }
.page-banner img { width: 100%; max-height: 420px; object-fit: cover; }

.page-main { padding: 64px 0 100px; }

.page-article-header { margin-bottom: 32px; border-bottom: 2px solid var(--border); padding-bottom: 24px; }

.page-article-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--dark);
}

.page-article-content { max-width: 760px; }

/* Rich-text content styles (used in both page.php and legal template) */
.entry-content h2,
.entry-content h3 { margin: 1.8em 0 .5em; font-weight: 700; color: var(--dark); }
.entry-content h2 { font-size: 1.35rem; padding-bottom: 8px; }
.entry-content h3 { font-size: 1.1rem; }
.entry-content p  { font-size: .97rem; color: #555; line-height: 1.8; margin-bottom: 1.2em; }
.entry-content ul,
.entry-content ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.entry-content li { margin-bottom: .4em; font-size: .97rem; color: #555; line-height: 1.7; }
.entry-content a  { color: var(--crimson); font-weight: 500; }
.entry-content a:hover { text-decoration: underline; }
.entry-content blockquote {
    border-left: 4px solid var(--crimson);
    padding: 12px 20px;
    color: #555;
    font-style: italic;
    background: var(--gray-bg);
    border-radius: 0 8px 8px 0;
    margin: 1.2em 0;
}
.entry-content img { border-radius: 8px; margin: 1em 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; }
.entry-content table th,
.entry-content table td { padding: 10px 14px; border: 1px solid var(--border); font-size: .9rem; }
.entry-content table th { background: var(--gray-bg); font-weight: 700; }


/* ==========================================================================
   LEGAL PAGE TEMPLATE — Privacy Policy, Terms & Conditions
   Assign: Dashboard > Pages > Edit > Page Attributes > Template > Legal Page
   ========================================================================== */
.legal-main {
    background: var(--gray-bg);
    min-height: 80vh;
    padding: 64px var(--pad) 96px;
}

.legal-container { max-width: 800px; margin: 0 auto; }

.legal-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}
.legal-tag {
    display: inline-block;
    background: var(--crimson);
    color: var(--white);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.legal-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 20px;
}

.legal-intro { font-size: 1.05rem; color: #555; line-height: 1.75;display: none; }
.legal-intro strong { color: var(--dark); font-weight: 600;}

/* Legal body — uses .entry-content styles above, plus these overrides */
.legal-body .entry-content h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    border-bottom: none;
    padding-bottom: 0;
    padding: 32px 0 12px;
}
.legal-body .entry-content h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--crimson);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Sections separated by borders */
.legal-body .entry-content > * + h2 { border-top: 1px solid #e8e8e8; }


/* ==========================================================================
   BLOG TEMPLATES — index.php, archive.php, single.php
   ========================================================================== */
.blog-main { padding-top: 64px; padding-bottom: 100px; }
.single-main { padding-top: 80px; }

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 56px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
    padding-top: 20px;
}

.blog-header { margin-bottom: 40px; }
.blog-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--dark);
}

.archive-header { margin-bottom: 40px; }
.archive-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--dark); }
.archive-desc { color: var(--muted); margin-top: 8px; }

/* Post card grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax(280px, 1fr) );
    gap: 28px;
}

.post-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.post-card-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card-img img { transform: scale(1.04); }

.post-card-body { padding: 20px; }

.post-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.post-date { font-size: .78rem; color: var(--muted); }
.post-cat {
    font-size: .72rem;
    font-weight: 700;
    background: #FAE4EE;
    color: var(--crimson);
    padding: 2px 10px;
    border-radius: 20px;
}

.post-card-title { font-size: 1rem; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.post-card-title a { color: var(--dark); transition: color .2s; }
.post-card-title a:hover { color: var(--crimson); }

.post-card-excerpt { font-size: .87rem; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }

.read-more-link { font-size: .85rem; font-weight: 700; color: var(--crimson); }
.read-more-link:hover { text-decoration: underline; }

/* Pagination */
.blog-pagination { margin-top: 40px; }
.blog-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.blog-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 8px;
    border: 1.5px solid var(--border); border-radius: 8px;
    font-size: .88rem; font-weight: 600;
    transition: border-color .2s, background .2s, color .2s;
}
.blog-pagination .page-numbers:hover { border-color: var(--crimson); color: var(--crimson); }
.blog-pagination .page-numbers.current { background: var(--crimson); border-color: var(--crimson); color: var(--white); }
.blog-pagination .page-numbers.dots { border: none; }

/* Sidebar */
.blog-sidebar {}
.blog-sidebar .widget { margin-bottom: 32px; }
.blog-sidebar .widget-title { font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 14px; color: var(--dark); }

/* Single post */
.single-thumbnail { margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; max-height: 480px; }
.single-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.single-header { margin-bottom: 32px; }
.single-title { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--dark); line-height: 1.2; margin-bottom: 16px; }

.post-author { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; }
.post-author img { border-radius: 50%; }

.single-content { margin-bottom: 40px; max-width: 720px; }

.single-footer { border-top: 1px solid var(--border); padding-top: 24px; }
.post-tags { margin-bottom: 20px; }
.post-tags a { display: inline-block; background: var(--gray-bg); border-radius: 20px; padding: 4px 12px; font-size: .78rem; margin: 2px; color: var(--muted); transition: background .2s, color .2s; }
.post-tags a:hover { background: var(--crimson); color: var(--white); }

.post-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.prev-post a,
.next-post a { font-size: .9rem; font-weight: 600; color: var(--crimson); }

/* No posts */
.no-posts { color: var(--muted); padding: 40px 0; font-size: 1rem; }

/* Search */
.search-header { margin-bottom: 32px; }
.search-title { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.search-query { color: var(--crimson); }
.no-results { text-align: center; padding: 48px 0; }

/* 404 */
.error-404 { padding: 80px 0; min-height: 60vh; display: flex; align-items: center; }
.error-wrap { text-align: center; max-width: 520px; margin: 0 auto; }
.error-code { font-size: 8rem; font-weight: 900; color: var(--crimson); opacity: .15; line-height: 1; display: block; }
.error-wrap h1 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.error-wrap p  { color: var(--muted); margin-bottom: 28px; }
.error-search  { margin-top: 24px; }

/* WordPress search form */
.search-form { display: flex; gap: 8px; }
.search-field { flex: 1; border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 14px; font-size: .92rem; font-family: inherit; outline: none; transition: border-color .2s; }
.search-field:focus { border-color: var(--crimson); }
.search-submit { background: var(--crimson); color: var(--white); border: none; border-radius: 8px; padding: 10px 18px; font-size: .9rem; font-weight: 600; font-family: inherit; cursor: pointer; transition: opacity .2s; }
.search-submit:hover { opacity: .88; }


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet — 1024px */
@media ( max-width: 1024px ) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { display: none; }
    .nav-inner {padding: 24px 40px; }
}

/* Mobile — 768px */
@media ( max-width: 768px ) {
    :root { --pad: 20px; }

    /* Nav */
    nav {position: relative;}
    .nav-menu-wrap { display: none; }   
    /* hide desktop menu */
    .nav-btn    { display: none; }       /* hide desktop button */
    .nav-toggle { display: none; }       /* show hamburger */
    .nav-inner { padding: 24px 20px;}

    /* Hero */
    .hero-wrap  { height: auto; flex-direction: column; }
    .hero-left  { width: 100%; padding: 30px 20px 36px; }
    .hero-right { flex: none; height: 100%; }
    
    .hero-right::before { background: linear-gradient(to bottom, #fff 0%, transparent 30%); }

    /* Feature bar */
    .feature-bar-wrap { padding: 24px 0 32px; }
    .feature-bar { flex-direction: column; gap: 0; top: 0; margin: 0 20px; margin-bottom: 0; border-radius: 16px; padding: 28px 24px; }
    .feature-item { padding: 20px 0; justify-content: flex-start; }
    .feature-item + .feature-item { border-left: none; border-top: 1px solid #e5e5e5; }

    /* Mid */
    .mid-section { padding: 48px 0 56px; }
    .icon-grid { flex-wrap: wrap; gap: 28px; }
    .icon-card { border-left: none !important; min-width: 120px; }

    /* CTA */
    .cta-card { grid-template-columns: 1fr; gap: 40px; padding: 36px 15px; }
    

    /* Footer */
    .footer-top { grid-template-columns: 1fr 1fr; gap: 26px; }

    /* Blog */
    .blog-main { padding-top: 40px; }
    .posts-grid { grid-template-columns: 1fr; }

    /* Legal */
    .legal-main { padding: 40px 20px 64px; }
}

/* Small mobile — 480px */
@media ( max-width: 480px ) {
    .footer-top { grid-template-columns: 1fr; }
    .hero-left h1 { font-size: 3rem; }
    .cta-card h2 { font-size: 1.5rem; }
    .cta-desc-row p { font-size: 1.3rem; }
}