/*
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: #f3f8ff;
  --surface: #ffffff;
  --card: #f7fbff;
  --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);
}

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

body {
  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);
  line-height: 1.5;
  font-size: 18px;
}

/* =============================================
   Typography
============================================= */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1rem; }
p { margin-bottom: 1rem; color: var(--muted); }

/* =============================================
   Buttons
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  border-radius: 60px;
  font-weight: 700;
  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-outline {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-primary:hover, .btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(20,113,255,0.2);
}

/* =============================================
   Header & Navigation
============================================= */
.site-header {
  max-width: 1300px;
  margin: 0 auto;
  padding: 32px 32px 20px;
  background: transparent;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.site-branding .handi-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.handi-logo i {
  font-size: 2.2rem;
  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;
}
.subtitle {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
}
.main-navigation ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-navigation a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--accent);
}

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

/* =============================================
   Hero Section
============================================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin: 40px 0 60px;
}
.tagline {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 16px;
}
.badge {
  background: rgba(20,113,255,0.1);
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-dark);
  white-space: nowrap;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}
.hero-image {
    max-width: 100%;
    height: auto;          /* ← add this line */
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero-visual {
  border-radius: var(--radius);
  text-align: center;
}
.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 – exactly 3 columns on desktop, 2 on tablet, 1 on mobile */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0 0 40px;
}

/* Tablet: 2 columns */
@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.4rem; margin-bottom: 12px; }

/* =============================================
   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 h3 { font-size: 1.4rem; margin-bottom: 12px; }

/* =============================================
   Safety & Emergency Section
============================================= */
.safety-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: linear-gradient(135deg, rgba(20,113,255,0.08), rgba(255,255,255,0.92));
  border-radius: 32px;
  padding: 48px;
  margin: 60px 0;
  align-items: center;
}
.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: 32px;
  padding: 48px;
  text-align: center;
  margin: 60px 0;
  box-shadow: var(--shadow);
}

/* =============================================
   Footer (optional, your footer.php may add own styles)
============================================= */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 40px 32px 30px;
  text-align: center;
  color: var(--muted);
}

/* =============================================
   Responsive Breakpoints
============================================= */
@media (max-width: 960px) {
  .hero, .safety-section, .cards-grid {
    grid-template-columns: 1fr;
  }
  .site-header, .site-main {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }
  .main-navigation ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .badge {
    white-space: normal;
    text-align: center;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================
   Force Font Awesome icons to show (fallback)
============================================= */
.fa, .fas, .far, .fal, .fab, .fa-solid, .fa-regular, .fa-brands {
  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;
}

.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: 100%;
        object-fit: cover;  /* or contain – depends on your design */
    }
    /* Ensure parent doesn't overflow */
    .hero-visual {
        overflow-x: hidden;
    }
}

/* =========================================================
   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: 20px;
    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;  
}