/*
Theme Name: handipage
Theme URI: https://handihomepage.com
Author: Handi Homepage
Author URI: https://handihomepage.com
Description: A polished tech startup WordPress theme for Handi Homepage devices and services, with a bright Irish sales-style layout and trust-focused presentation.
Version: 1.0.0
License: GPL v2 or later
Text Domain: handipage
Tags: custom-logo, custom-menu, featured-images, responsive-layout, accessibility-ready
*/

/* =============================================
   Global Variables & Reset
============================================= */
:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --card: #f7fbff;
    --text: #0a0e14;
    --muted: #10223f;
    --accent: #10223f;
    --accent-soft: #10223f;
    --accent-dark: #10223f;
    --radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img, svg, video, iframe, figure, embed, object {
    max-width: 100%;
    height: auto;
}

body {
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;
    color: var(--text);
    line-height: 1.5;
    font-size: 18px;
    overflow-x: hidden;
    width: 100%;
}

/* =============================================
   Typography
============================================= */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
h1 {
    font-size: 2.6rem;
    margin-bottom: 1.25rem;
    font-family: "Manrope", sans-serif;
}
h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
    font-family: "Manrope", sans-serif;
}
h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
p {
    margin: 0 0 1rem;
    color: var(--muted);
    font-family: "Inter", sans-serif;
    font-size: 1.125rem;
    line-height: 1.7;
}
.hero p {
    text-align: center;
    font-size: 1.125rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================
   Buttons
============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: white;
    box-shadow: 0 8px 20px rgba(20, 113, 255, 0.25);
}
.btn-primary:hover {
    background: var(--accent-dark);
}
.btn-outline {
    background: white;
    color: var(--text);
    border: 2px solid var(--border);
}
.btn-primary:hover,
.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(20, 113, 255, 0.22);
}

/* =============================================
   Header & Navigation
============================================= */
.site-header {
    width: 100%;
    margin: 0 auto;
    padding: 24px 32px 16px;
    background: transparent;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
}
.site-branding .handi-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.handi-logo i {
    font-size: 2.5rem;
    color: var(--accent);
}
.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.heading-title {
    font-size: 2.9rem;
    margin-bottom: 1.25rem;
    text-align: center;
    color: var(--text);
    font-family: "Manrope", sans-serif;
    line-height: 1.15;
}
.subtitle {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 18px;
}
.main-navigation ul {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-navigation {
    margin-left: auto;
}
.main-navigation a {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
}
.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--accent-dark);
}

.nav-free-trial {
    white-space: nowrap;
    font-size: 1rem;
    padding: 10px 22px;
}

/* =============================================
   Main Content Wrapper
============================================= */
.site-main {
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    max-width: 1300px;
}

/* =============================================
   Hero Section
============================================= */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    margin: 48px 0 80px;
}
.tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
    background: var(--accent-dark);
    padding: 6px 18px;
    border-radius: 40px;
    margin-bottom: 1.5rem;
}
.hero > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 20px;
    justify-content: center;
}
.badge {
    background: var(--accent-dark);
    padding: 9px 20px;
    border-radius: 40px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    flex: 0 0 auto;
    text-align: center;
}
.badge i {
    margin-right: 5px;
}
.hero-actions {
    display: none;
}
.hero-actions a {
    flex: 0 0 auto;
    justify-content: center;
    margin-bottom: 0;
}
.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(15, 45, 90, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
    aspect-ratio: 16 / 9;
}
.hero-visual {
    border-radius: var(--radius);
    text-align: center;
}
.hero-visual p {
    margin-top: 1.25rem;
    font-size: 1rem;
    max-width: none;
}
.device-mock {
    background: #0a1a2f;
    border-radius: 28px;
    padding: 20px;
    color: white;
}
.mock-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px 0;
}
.mock-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px;
    font-size: 0.8rem;
    text-align: center;
}

/* =============================================
   Features Grid
============================================= */
.features {
    margin: 80px 0;
}
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 48px;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 0 40px;
}

@media (max-width: 960px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (max-width: 640px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
.feature-card {
    background: var(--surface);
    border-radius: 18px;
    padding: 36px 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 45, 90, 0.1);
}
.feature-card i {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 18px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 113, 255, 0.08);
    border-radius: 14px;
}
.feature-card img {
    display: block;
    max-width: 150px;
    margin-left: auto;
    margin-right: auto;
}
.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 1.125rem;
    line-height: 1.65;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

@media (max-width: 640px) {
    .feature-card {
        align-items: center;
    }
    .feature-card p {
        text-align: center;
    }
}

/* =============================================
   Products & Premium Services
============================================= */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 16px;
    margin: 48px 0 24px;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}
.service-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
}
.service-card h1 {
  display: none;
}
.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

/* =============================================
   Safety & Emergency Section
============================================= */
.safety-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    background: linear-gradient(
        135deg,
        rgba(20, 113, 255, 0.06),
        rgba(255, 255, 255, 0.95)
    );
    border-radius: var(--radius);
    padding: 56px 48px;
    margin: 72px 0;
    align-items: center;
}
.safety-section > div:first-child {
    text-align: center;
}
.safety-section h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    margin-bottom: 0.75rem;
}
.safety-section p {
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 460px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.safety-section ul {
    margin-top: 1.25rem;
}
.safety-section ul li {
    padding: 4px 0;
    font-size: 1.125rem;
    color: var(--text);
}
.safety-section img {
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 45, 90, 0.1);
    display: block;
    margin: 0 auto;
}
.emergency-card {
    text-align: center;
    background: white;
    border-radius: 28px;
    padding: 32px;
    box-shadow: var(--shadow);
}
.emergency-button {
    background: radial-gradient(circle at 30% 30%, #cc0000, #800000);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(204, 0, 0, 0.5);
}

/* =============================================
   Callout / Click-to-Call
============================================= */
.callout {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 64px 48px;
    text-align: center;
    margin: 72px 0;
    box-shadow: var(--shadow);
}
.callout > i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: inline-block;
}
.callout h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}
.callout > p {
    max-width: 560px;
    margin: 0 auto 28px;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* =============================================
   Mailing List Section
============================================= */
.maillist-section {
    background: linear-gradient(135deg, rgba(20, 113, 255, 0.06), rgba(255, 255, 255, 0.95));
    border-radius: var(--radius);
    padding: 56px 48px;
    margin: 72px 0;
    text-align: center;
    border: 1px solid var(--border);
}
.maillist-section > i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 16px;
    display: inline-block;
}
.maillist-section p {
    max-width: 580px;
    margin: 0 auto 28px;
    font-size: 1.125rem;
    color: var(--muted);
    line-height: 1.7;
}
.maillist-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}
.maillist-form input[type="email"] {
    flex: 1 1 250px;
    padding: 12px 18px;
    border: 2px solid var(--border);
    border-radius: 60px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    outline: none;
    transition: border-color 0.2s;
}
.maillist-form input[type="email"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 113, 255, 0.12);
}
.maillist-form .btn {
    flex: 0 0 auto;
    width: auto;
}
.maillist-success {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #d4edda;
    color: #155724;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px !important;
}

@media (max-width: 700px) {
    .maillist-section {
        padding: 36px 20px;
    }
    .maillist-form {
        flex-direction: column;
    }
    .maillist-form input[type="email"] {
        flex: 1 1 auto;
        width: 100%;
    }
}

/* =============================================
   Footer (optional, your footer.php may add own styles)
============================================= */
.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 80px;
    padding: 32px 24px 28px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

/* =============================================
   Responsive Breakpoints
============================================= */
@media (max-width: 960px) {
    .hero,
    .safety-section,
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-visual {
        order: -1;
    }
    .site-header,
    .site-main {
        padding-left: 20px;
        padding-right: 20px;
    }
    .callout {
        padding: 48px 28px;
    }
    .safety-section {
        padding: 40px 32px;
    }
}
@media (max-width: 700px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
    }
    .hero {
        margin: 32px 0 48px;
        gap: 36px;
    }
    .hero h1 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
    .features {
        margin: 48px 0;
    }
    .tagline {
        font-size: 0.85rem;
    }
    .nav_home {
        display: none;
    }
    .main-navigation ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }
    .main-navigation {
        margin-left: 0;
    }
    .badge {
        white-space: normal;
        text-align: center;
        font-family: "Manrope", sans-serif;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .callout {
        padding: 36px 20px;
    }
    .safety-section {
        padding: 32px 24px;
    }
}

/* =============================================
   wp-block-list
============================================= */
.wp-block-list,
.block-list {
    font-family: "Inter", sans-serif;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--muted);
    margin-left: 2rem;
}
.wp-block-list li,
.block-list li {
    margin-bottom: 0.5rem;
}

/* =============================================
   Force Font Awesome icons to show (fallback)
============================================= */
.fa,
.fas,
.far,
.fal,
.fa-solid,
.fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.fab,
.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    display: inline-block !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.feature-card {
    box-shadow: var(--wp--preset--shadow--natural);
}

.service-card {
    box-shadow: var(--wp--preset--shadow--natural);
}
/* =========================================================
   Terms of Service page (adds to existing theme)
   Apply class "terms-page" to <body> in terms.html
========================================================= */
.terms-page .container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--surface, #ffffff);
    border-radius: var(--radius, 24px);
    padding: 2rem;
    box-shadow: var(--shadow, 0 24px 60px rgba(15, 45, 90, 0.08));
    border: 1px solid var(--border, rgba(20, 113, 255, 0.14));
}

.terms-page h1 {
    font-size: 2.2rem;
    color: var(--accent-dark, #0a4bb5);
    border-bottom: 3px solid var(--accent, #1471ff);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.terms-page h2 {
    font-size: 1.6rem;
    color: var(--accent, #1471ff);
    margin: 1.5rem 0 0.8rem;
}

.terms-page p,
.terms-page li {
    margin-bottom: 0.8rem;
    color: var(--text, #10223f);
}

.terms-page ul,
.terms-page ol {
    margin-left: 1.8rem;
    margin-bottom: 1rem;
}

.terms-page .last-updated {
    font-size: 0.85rem;
    color: var(--muted, #556d8b);
    margin-bottom: 2rem;
    font-style: italic;
}

.terms-page .button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.terms-page .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface, #ffffff);
    border: 2px solid var(--accent, #1471ff);
    color: var(--accent, #1471ff);
    padding: 12px 24px;
    border-radius: 48px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s;
}

.terms-page .btn-primary {
    background: var(--accent, #1471ff);
    color: white;
}

.terms-page .btn-primary:hover {
    background: var(--accent-dark, #0a4bb5);
    border-color: var(--accent-dark, #0a4bb5);
}

.terms-page .btn:hover {
    background: #eaf2ff;
}

.terms-page hr {
    margin: 2rem 0;
    border: none;
    border-top: 2px solid var(--border, rgba(20, 113, 255, 0.14));
}

.terms-page .footer-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--muted, #556d8b);
}

/* Mobile adjustments for Terms page */
@media (max-width: 640px) {
    .terms-page .container {
        padding: 1.5rem;
    }
    .terms-page h1 {
        font-size: 1.8rem;
    }
    .terms-page h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .hero-image {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc((100% - 100vw) / 2);
        border-radius: 0;
        box-shadow: none;
        object-fit: cover;
        aspect-ratio: 16 / 9;
    }
    .hero-visual {
        overflow: visible;
    }
    .badge-list {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
        align-items: center;
    }
}

/* =========================================================
   Privacy Policy & Terms of Service Pages
   Fully scoped under .privacy-page
   Apply class "privacy-page" to the <body> of these pages
========================================================= */
.privacy-page {
    --bg: #f3f8ff;
    --surface: #ffffff;
    --text: #10223f;
    --muted: #556d8b;
    --accent: #1471ff;
    --accent-soft: #8bccff;
    --accent-dark: #0a4bb5;
    --border: rgba(20, 113, 255, 0.14);
    --radius: 24px;
    --shadow: 0 24px 60px rgba(15, 45, 90, 0.08);
    --shadow-soft: 0 14px 30px rgba(15, 45, 90, 0.06);
}

.privacy-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.privacy-page {
    background:
        radial-gradient(
            circle at top left,
            rgba(20, 113, 255, 0.12),
            transparent 24%
        ),
        linear-gradient(180deg, #f7fbff 0%, #e6eff9 100%);
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;
    color: var(--text);
    font-size: 18px;
    line-height: 1.6;
    padding: 2rem 1rem;
}

.privacy-page .container,
.privacy-page .terms-container {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.privacy-page h1 {
    font-size: 2.2rem;
    color: var(--accent-dark);
    border-bottom: 3px solid var(--accent);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.privacy-page .monkey-header {
    text-align: center;
    margin: 1rem 0 2rem;
    font-size: 4rem;
    letter-spacing: 0.5rem;
}

.privacy-page .monkey-sub {
    text-align: center;
    font-style: italic;
    color: var(--muted);
    margin-top: -1rem;
    margin-bottom: 2rem;
}

.privacy-page h2 {
    font-size: 1.8rem;
    color: var(--accent);
    margin: 2rem 0 1rem;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
}

.privacy-page h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem;
    color: var(--accent-dark);
}

.privacy-page p,
.privacy-page li {
    margin-bottom: 0.8rem;
}

.privacy-page ul,
.privacy-page ol {
    margin-left: 1.8rem;
    margin-bottom: 1rem;
}

.privacy-page .badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 1rem 0;
}

.privacy-page .badge {
    background: rgba(20, 113, 255, 0.1);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-dark);
}

.privacy-page .do-not-list {
    background: #fff5f5;
    border-left: 6px solid #cc0000;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 16px;
}

.privacy-page .do-not-list li {
    margin-bottom: 0.6rem;
}

.privacy-page .button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.privacy-page .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 12px 24px;
    border-radius: 48px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s;
}

.privacy-page .btn-primary {
    background: var(--accent);
    color: white;
}

.privacy-page .btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.privacy-page .btn:hover {
    background: #eaf2ff;
}

.privacy-page hr {
    margin: 2rem 0;
    border: none;
    border-top: 2px solid var(--border);
}

.privacy-page .footer-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* Print styles */
@media print {
    .privacy-page {
        background: white;
        padding: 0;
    }
    .privacy-page .button-group,
    .privacy-page .btn,
    .privacy-page .badge-list {
        display: none;
    }
    .privacy-page .container {
        box-shadow: none;
        padding: 0;
    }
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .privacy-page {
        padding: 1rem;
        font-size: 18px;
    }
    .privacy-page .container,
    .privacy-page .terms-container {
        padding: 1.5rem;
    }
    .privacy-page h1 {
        font-size: 1.8rem;
    }
    .privacy-page h2 {
        font-size: 1.5rem;
    }
}

/* =========================================================
   Hide default page intro on all pages (since we have custom hero sections)
   This is a quick fix; ideally the theme would be structured to not output this at all on pages
   but this ensures it won't interfere with our custom designs.
========================================================= */
.page-hero .page-hero-inner .page-intro {
    display: none;
}
