/*
Theme Name: PourlyDone
Theme URI: https://pourlydone.com
Author: PourlyDone
Description: Custom theme for PourlyDone — an app for tracking what you drink, where you drink it, and the questionable decisions that follow.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: pourlydone
*/

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
    --color-amber:       #C16C18;
    --color-amber-dark:  #884C11;
    --color-peach:       #FFD8B2;
    --color-cream:       #FFF5EC;
    --color-dark:        #1A1A1A;
    --color-medium-dark: #2A2A2A;
    --color-white:       #FFFFFF;
    --color-text:        #333333;
    --color-muted:       #888888;
    --color-border:      #E0D5C7;

    --font-family: 'Roboto', sans-serif;
    --font-weight-light:   300;
    --font-weight-regular: 400;
    --font-weight-medium:  500;
    --font-weight-bold:    700;
    --font-weight-black:   900;

    --max-width:         1200px;
    --section-pad-v:     80px;
    --bottom-bar-height: 68px;

    --transition-fast:   150ms ease;
    --transition-std:    300ms ease;
    --border-radius-btn: 999px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    padding-bottom: 90px; /* clearance for fixed footer */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-amber);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

a:hover {
    text-decoration: underline;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    line-height: 1.2;
}

h1 { font-size: 48px; font-weight: var(--font-weight-black); }
h2 { font-size: 32px; font-weight: var(--font-weight-bold); }
h3 { font-size: 24px; font-weight: var(--font-weight-bold); }
h4 { font-size: 20px; font-weight: var(--font-weight-medium); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-pad {
    padding: var(--section-pad-v) 0;
}

.text-center { text-align: center; }
.text-white  { color: var(--color-white); }
.text-amber  { color: var(--color-amber); }
.text-peach  { color: var(--color-peach); }
.text-muted  { color: var(--color-muted); }

.bg-dark   { background-color: var(--color-dark); }
.bg-cream  { background-color: var(--color-cream); }
.bg-white  { background-color: var(--color-white); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-block;
    background-color: var(--color-peach);
    color: var(--color-amber-dark);
    font-family: var(--font-family);
    font-weight: var(--font-weight-medium);
    font-size: 16px;
    padding: 14px 32px;
    border-radius: var(--border-radius-btn);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--transition-std), color var(--transition-std);
    line-height: 1;
}

.btn:hover {
    background-color: #F0C89E;
    text-decoration: none;
    color: var(--color-amber-dark);
}

.btn:focus-visible {
    outline: 3px solid var(--color-amber-dark);
    outline-offset: 2px;
}

.btn-full {
    display: block;
    width: 100%;
    text-align: center;
}

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #000;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo left */
.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo a {
    display: block;
    line-height: 0;
}

.header-logo img,
.header-logo svg {
    height: 64px; /* header is 70px; 3px margin top + bottom = 64px usable */
    width: auto;
}

/* Primary nav right — replaces split left/right nav */
.nav-primary {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Keep .nav-left and .nav-right selectors working if menus still rendered */
.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* Nav links */
.nav-primary a,
.nav-left a,
.nav-right a {
    color: var(--color-white);
    font-weight: var(--font-weight-regular);
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition-fast);
    padding: 4px 0;
    position: relative;
}

.nav-primary a,
.nav-left a,
.nav-right a {
    padding: 6px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.nav-primary a:hover,
.nav-left a:hover,
.nav-right a:hover {
    color: var(--color-white);
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.6);
}

.nav-primary a.current-menu-item,
.nav-left a.current-menu-item,
.nav-right a.current-menu-item {
    color: var(--color-white);
    border-color: var(--color-white);
}

/* Nav dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    padding-top: 0;
    background: var(--color-amber);
    border-radius: 0 0 8px 8px;
    min-width: 180px;
    z-index: 1001;
    overflow: hidden;
}

.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px !important;
    border: none !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--color-peach) !important;
    font-size: 14px;
    color: var(--color-cream);
    white-space: nowrap;
}

.nav-dropdown-menu a:last-child {
    border-bottom: none !important;
}

.nav-dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--color-peach) !important;
    color: var(--color-cream);
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span {
    display: block;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition-std);
}

.hamburger span:nth-child(1) { width: 24px; }
.hamburger span:nth-child(2) { width: 20px; }
.hamburger span:nth-child(3) { width: 24px; }

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    width: 24px;
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 24px;
}

/* Mobile nav overlay */
#mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background-color: var(--color-dark);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

#mobile-nav.open {
    display: flex;
}

.mobile-nav-logo {
    margin-bottom: 8px;
}

.mobile-nav-logo img {
    height: 40px;
    width: auto;
    margin: 0 auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.mobile-nav-links a {
    color: var(--color-white);
    font-size: 22px;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.mobile-nav-links a:hover {
    color: var(--color-amber);
    text-decoration: none;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

/* Page offset for fixed header */
.page-content {
    padding-top: 70px;
}

body.home .page-content {
    padding-top: 0;
}

/* Home page: black background so any gap between capped carousel and fixed footer is black */
body.home {
    background-color: #000;
}

/* =========================================================
   FOOTER — simplified fixed bar
   ========================================================= */
#site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background-color: var(--color-peach);
}

/* Row 1: CTA buttons + quote carousel */
.footer-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 6px 24px;
    min-height: auto;
    border-top: 1px solid rgba(136, 76, 17, 0.25);
}

/* App store badge links */
.footer-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.footer-badge:hover {
    opacity: 0.85;
    text-decoration: none;
}

.footer-badge img {
    display: block;
    height: 44px;
    width: auto;
}

.footer-badge--google img {
    height: 44px;
}

/* Dark Apple badge on light background — no wrapper needed */
.footer-badge--apple {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
}

/* Dark Google Play badge on light background — right-aligned, grows left */
.footer-badge--google {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    justify-self: end;
}

/* Row 2: copyright left, social icons right */
.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 24px 8px;
    border-top: 1px solid rgba(136, 76, 17, 0.15);
}

.footer-copyright-text {
    font-size: 12px;
    color: #884C11;
    margin: 0;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    color: #884C11;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.footer-social-link:hover {
    opacity: 0.65;
    text-decoration: none;
}

.footer-social-link svg {
    display: block;
}

/* =========================================================
   QUOTE CAROUSEL (inside footer bar)
   ========================================================= */
.quote-carousel {
    text-align: center;
    overflow: hidden;
    min-width: 0;
}

.quote-header {
    display: block;
    font-size: 10px;
    font-weight: var(--font-weight-regular);
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 2px;
    line-height: 1;
}

.quote-track {
    position: relative;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 600ms ease;
    pointer-events: none;
}

.quote-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.quote-text {
    display: block;
    font-style: italic;
    font-size: 16.5px;
    color: var(--color-dark);
    line-height: 1.3;
    white-space: normal;
    overflow: visible;
}

.quote-attr {
    display: block;
    font-size: 16.5px;
    font-weight: var(--font-weight-bold);
    color: var(--color-amber-dark);
    margin-top: 1px;
    white-space: nowrap;
}

/* =========================================================
   DARK HERO BAND (used on inner pages)
   ========================================================= */
.page-hero {
    background-color: var(--color-dark);
    padding: 20px 0 16px;
    text-align: center;
}

.page-hero h1 {
    color: var(--color-white);
    font-size: 42px;
    font-weight: var(--font-weight-black);
    margin-bottom: 12px;
}

.page-hero .hero-sub {
    color: var(--color-peach);
    font-size: 20px;
    font-weight: var(--font-weight-regular);
}

.page-hero .hero-date {
    color: var(--color-muted);
    font-size: 16px;
    font-weight: var(--font-weight-regular);
}

/* =========================================================
   HOME PAGE — CAROUSEL (barrel is constant backdrop)
   ========================================================= */

/* Outer carousel — barrel background, full viewport minus fixed footer */
.home-carousel {
    position: relative;
    height: calc(100vh - 90px); /* 90px = fixed footer height */
    max-height: 900px;          /* cap on very tall/rotated viewports */
    background-color: #000;
    background-size: auto 100%;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Swap to portrait image on mobile */
@media (max-width: 768px) {
    .home-carousel {
        background-image: url('images/hero-bg.png') !important;
    }
}

/* Every slide: absolute, covers carousel, fades in/out */
.home-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 90px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* Logo slide: stretch hero content to full slide height for flex column distribution */
.home-slide--logo {
    align-items: stretch;
    justify-content: center;
}

.home-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* ---- Slide 1: Logo / Intro ---- */
.home-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    width: 100%;
    max-width: 900px;
    padding: 80px 24px 80px; /* top pushes logo into upper third; bottom clears dots */
}

.hero-logo-wrap {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.hero-logo-wrap::before {
    content: '';
    position: absolute;
    top: 6%;
    left: 4%;
    width: 92%;
    height: 88%;
    background-color: rgba(0, 0, 0, 0.33);
    border-radius: 8px;
    z-index: 0;
    pointer-events: none;
}

.hero-logo {
    width: 525px;
    max-width: 85vw;
    display: block;
    position: relative;
    z-index: 1;
}

.hero-intro {
    color: var(--color-white);
    font-size: 30px;
    font-weight: var(--font-weight-regular);
    max-width: 800px;
    margin-top: auto;    /* pushes intro down to center of remaining vertical space */
    margin-bottom: auto; /* keeps it vertically centered in that remaining space */
    line-height: 1.55;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 32px;
    border-radius: 12px;
}

/* Full-slide clickable link for feature slides */
.home-feature-link {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    text-decoration: none;
}

/* Two-column content card inside feature slide — whiskey-light background wraps content only */
.home-feature-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 32px;
    align-items: stretch;
    max-width: 960px;
    width: 100%;
    height: min(640px, calc(100vh - 90px - 90px - 50px));
    padding: 10px 48px;
    background-color: rgba(255, 216, 178, 0.75);
    border-radius: 20px;
    overflow: hidden;
}

.home-feature-device {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-height: 0;
}

.home-feature-device img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.home-feature-copy h2 {
    font-size: 42px;
    font-weight: var(--font-weight-bold);
    color: #000;
    margin-bottom: 16px;
}

.home-feature-copy p {
    font-size: 22px;
    font-weight: var(--font-weight-medium);
    color: #000;
    line-height: 1.6;
    margin-bottom: 16px;
}

.home-feature-copy .learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-amber);
    color: var(--color-peach);
    font-weight: var(--font-weight-bold);
    font-size: 18px;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 999px;
    transition: opacity var(--transition-fast);
}

.home-feature-copy .learn-more::after {
    content: '>';
    font-size: 20px;
    font-weight: var(--font-weight-bold);
}

.home-feature-copy .learn-more:hover {
    opacity: 0.85;
    text-decoration: none;
}

/* ---- Dot indicators ---- */
.carousel-dots {
    position: absolute;
    top: auto;
    bottom: clamp(4px, calc((100vh - 90px - 90px - min(640px, 100vh - 230px)) / 2 - 16px), 20px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #C16C18;
    background: transparent;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: #C16C18;
}

/* =========================================================
   FEATURES PAGE — ZIGZAG SECTIONS
   ========================================================= */
.features-section {
    padding: var(--section-pad-v) 0;
}

.features-section:nth-child(odd) {
    background-color: var(--color-cream);
}

.features-section:nth-child(even) {
    background-color: var(--color-white);
}

.features-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* Reverse on even sections */
.features-row.reverse {
    direction: rtl;
}

.features-row.reverse > * {
    direction: ltr;
}

.features-screenshot {
    display: flex;
    justify-content: center;
}

.features-screenshot img {
    width: 280px;
    max-width: 100%;
    border-radius: 16px;
}

.features-copy h2 {
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    margin-bottom: 16px;
}

.features-copy p {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 16px;
}

.features-copy .cta-link {
    display: inline-block;
    color: var(--color-amber);
    font-weight: var(--font-weight-medium);
    font-size: 15px;
    margin-top: 8px;
}

/* Features bottom CTA */
.features-cta {
    background-color: var(--color-dark);
    padding: 60px 0;
    text-align: center;
}

.features-cta p {
    color: var(--color-white);
    font-size: 24px;
    font-weight: var(--font-weight-medium);
    margin-bottom: 32px;
}

.badge-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.badge-row img {
    height: 52px;
    width: auto;
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-origin {
    background-color: var(--color-white);
    padding: var(--section-pad-v) 0;
}

.about-building {
    background-color: var(--color-cream);
    padding: 60px 0;
}

.prose {
    max-width: 740px;
    margin: 0 auto;
}

.prose p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 1.25em;
}

.prose p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   DOWNLOAD PAGE
   ========================================================= */
.download-section {
    background-color: var(--color-white);
    padding: var(--section-pad-v) 0;
}

.download-layout {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.download-layout h2 {
    font-size: 28px;
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    margin-bottom: 16px;
}

.download-layout p {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 40px;
}

.download-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.download-badges img {
    height: 56px;
    width: auto;
}

/* =========================================================
   POUR IDEAS FORM
   ========================================================= */
.pourideas-section {
    background-color: var(--color-white);
    padding: var(--section-pad-v) 0;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--color-amber);
    margin-left: 2px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--color-text);
    background-color: var(--color-white);
    border: 1px solid #dddddd;
    border-radius: 8px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-amber);
    box-shadow: 0 0 0 3px rgba(193, 108, 24, 0.12);
}

.form-control.error {
    border-color: #e53935;
}

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

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-error {
    display: block;
    font-size: 13px;
    color: #e53935;
    margin-top: 5px;
}

/* Honeypot */
.hp-field {
    display: none !important;
    visibility: hidden;
}

.form-submit {
    margin-top: 8px;
}

/* Success / Error messages */
.form-message {
    padding: 20px 24px;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 24px;
}

.form-message.success {
    background-color: rgba(193, 108, 24, 0.08);
    border-left: 4px solid var(--color-amber);
    color: var(--color-dark);
}

.form-message.error-msg {
    background-color: rgba(229, 57, 53, 0.08);
    border-left: 4px solid #e53935;
    color: var(--color-dark);
}

.form-success-content {
    text-align: center;
    padding: 48px 24px;
}

.form-success-content p {
    font-size: 20px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    margin-bottom: 24px;
}

/* Rate limit notice */
.rate-limit-notice {
    text-align: center;
    padding: 48px 24px;
    max-width: 500px;
    margin: 0 auto;
}

.rate-limit-notice p {
    font-size: 17px;
    color: var(--color-text);
    margin-bottom: 16px;
}

/* =========================================================
   SUPPORT PAGE
   ========================================================= */
.support-faq {
    background-color: var(--color-white);
    padding: var(--section-pad-v) 0;
}

.faq-container {
    max-width: 740px;
    margin: 0 auto;
}

.faq-group {
    margin-bottom: 40px;
}

.faq-group-title {
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-border);
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    background-color: var(--color-cream);
    user-select: none;
    gap: 12px;
}

.faq-question:hover {
    background-color: #f5ebe0;
}

.faq-question-text {
    font-size: 17px;
    font-weight: var(--font-weight-medium);
    color: var(--color-dark);
}

.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-amber);
    transition: transform var(--transition-std);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 20px;
    background-color: var(--color-white);
    border-left: 3px solid var(--color-amber);
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.7;
}

.faq-answer a {
    color: var(--color-amber);
}

.faq-item.open .faq-answer {
    display: block;
}

/* Support contact */
.support-contact {
    background-color: var(--color-cream);
    padding: 60px 0;
}

.support-contact-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.support-contact h2 {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    margin-bottom: 16px;
}

.support-contact p {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 12px;
}

.support-links {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.support-links a {
    color: var(--color-amber);
    font-size: 16px;
}

.support-links .sep {
    color: var(--color-muted);
}

/* =========================================================
   GENERIC PAGE (page.php — About, Download, Privacy, Terms)
   ========================================================= */
.page-body {
    padding: var(--section-pad-v) 0;
    background-color: var(--color-white);
}

.page-body-inner {
    max-width: 740px;
    margin: 0 auto;
}

/* Gutenberg block styles */
.entry-content h2 {
    font-size: 26px;
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.entry-content h3 {
    font-size: 20px;
    font-weight: var(--font-weight-medium);
    color: var(--color-dark);
    margin-top: 28px;
    margin-bottom: 12px;
}

.entry-content h2:first-child,
.entry-content h3:first-child {
    margin-top: 0;
}

.entry-content p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text);
    margin-bottom: 1.2em;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.2em;
    padding-left: 28px;
}

.entry-content li {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 6px;
}

.entry-content a {
    color: var(--color-amber);
}

.entry-content strong {
    font-weight: var(--font-weight-bold);
}

/* Highlight box (for Privacy/Terms callouts) */
.highlight-callout {
    background-color: var(--color-cream);
    border-left: 4px solid var(--color-amber);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.highlight-callout p {
    margin-bottom: 0;
    font-size: 15px;
}

/* =========================================================
   404 PAGE
   ========================================================= */
.error-404-page {
    min-height: 100vh;
    background-color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}

.error-404-inner {
    max-width: 500px;
}

.error-404-logo {
    margin: 0 auto 48px;
    width: 200px;
}

.error-404-inner h1 {
    font-size: 36px;
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    margin-bottom: 16px;
}

.error-404-inner p {
    font-size: 18px;
    color: var(--color-muted);
    margin-bottom: 40px;
}

/* =========================================================
   RESPONSIVE — TABLET / MOBILE
   ========================================================= */
@media (max-width: 900px) {
    .home-feature-content,
    .features-row {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad-v: 56px;
        --bottom-bar-height: 80px;
    }

    h1 { font-size: 32px; }
    h2 { font-size: 26px; }

    /* Header */
    .nav-primary,
    .nav-left,
    .nav-right {
        display: none;
    }

    .header-inner {
        position: relative;
    }

    .header-logo {
        padding-left: 16px;
    }

    .hamburger {
        display: flex;
    }

    /* Page hero */
    .page-hero h1 {
        font-size: 32px;
    }

    .page-hero .hero-sub {
        font-size: 17px;
    }

    /* Home hero — logo slide on mobile */
    .hero-logo {
        width: 390px;
        background-color: rgba(0, 0, 0, 0.75);
        padding: 20px 24px;
        border-radius: 12px;
    }

    .hero-intro {
        font-size: 17px;
    }

    /* Home carousel — feature slides on mobile: stack vertically */
    .home-feature-content {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
        padding: 24px; /* card has its own padding; dots are outside the card */
        margin: 0 16px 80px; /* side margin + bottom margin clears the dots */
    }

    .home-feature-device {
        order: -1; /* screenshot always on top on mobile */
    }

    .home-feature-device img {
        width: 220px;
    }

    .home-feature-copy h2 {
        font-size: 30px;
    }

    .home-feature-copy p {
        font-size: 18px;
    }

    .home-feature-copy .learn-more {
        font-size: 16px;
        padding: 10px 24px;
    }

    /* Features zigzag */
    .features-row {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .features-row.reverse {
        direction: ltr;
    }

    .features-screenshot {
        order: -1;
    }

    .features-screenshot img {
        width: 220px;
    }

    /* Footer — mobile: quotes on top, badges side by side below */
    .footer-bar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 16px;
        text-align: center;
        padding: 8px 16px 6px;
    }

    .footer-bar .quote-carousel {
        order: -1;
        width: 100%;
    }

    .footer-badge {
        justify-self: center;
    }

    .footer-badge--google {
        justify-self: center;
    }

    .quote-track {
        height: 48px;
    }

    .quote-header {
        font-size: 9px;
    }

    .quote-text {
        font-size: 14px;
    }

    .quote-attr {
        font-size: 14px;
    }

    /* Download page */
    .download-badges {
        flex-direction: column;
        gap: 16px;
    }

    /* Support links */
    .support-links {
        flex-direction: column;
        gap: 8px;
    }

    .support-links .sep {
        display: none;
    }

    /* Features CTA badges */
    .badge-row {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .form-container {
        padding: 0 4px;
    }
}

/* =========================================================
   GUTENBERG ALIGNMENT UTILITIES
   ========================================================= */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-image img {
    border-radius: 8px;
}

/* Editor-specific: pull blocks to full width */
.entry-content .wp-block-separator {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 40px 0;
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
:focus-visible {
    outline: 3px solid var(--color-amber);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    padding: 8px 16px;
    background: var(--color-amber);
    color: var(--color-white);
    border-radius: 0 0 8px 8px;
    font-weight: var(--font-weight-medium);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* Short viewports — scale down card content */
@media (max-height: 800px) {
    .home-hero-content {
        padding: 20px 24px 40px;
    }

    .hero-logo {
        width: 350px;
    }

    .hero-intro {
        font-size: 22px;
    }

    .home-feature-content {
        padding: 24px 32px;
        gap: 32px;
    }

    .home-feature-copy h2 {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .home-feature-copy p {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .home-feature-copy .learn-more {
        font-size: 14px;
        padding: 8px 20px;
    }
}

@media (max-height: 650px) {
    .home-hero-content {
        padding: 10px 24px 20px;
    }

    .hero-logo {
        width: 250px;
    }

    .hero-intro {
        font-size: 18px;
        padding: 12px 20px;
    }

    .home-feature-copy h2 {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .home-feature-copy p {
        font-size: 14px;
        margin-bottom: 4px;
    }
}

/* Print */
@media print {
    #site-header,
    #site-footer,
    #mobile-nav {
        display: none;
    }

    .page-content {
        padding-top: 0;
    }
}
