/*
Theme Name: OurFamilyConnected
Theme URI: https://ourfamilyconnected.co.uk
Author: Flarepath.com Ltd
Author URI: https://flarepath.com
Description: Custom theme for OurFamilyConnected – a simple communication device for elderly and dementia care.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ourfamilyconnected
*/

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  --primary: #1a5276;
  --accent: #2980b9;
  --warm: #e67e22;
  --green: #27ae60;
  --red: #e74c3c;
  --dark: #2c3e50;
  --light: #f8f9fa;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --radius: 12px;
}

/* ========================================
   RESET & BASE
   ======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif; color: var(--text); line-height: 1.6; }

/* ========================================
   NAVIGATION
   ======================================== */
nav { position: fixed; top: 0; width: 100%; background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); box-shadow: 0 1px 6px rgba(0,0,0,0.08); z-index: 1000; }
nav .container { display: flex; align-items: center; justify-content: center; max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 90px; }
nav .brand { text-decoration: none; flex-shrink: 0; margin-right: 24px; }
nav .brand img { height: 80px; width: auto; display: block; }
nav .brand span { color: var(--accent); }
nav ul, nav .menu { list-style: none; display: flex; gap: 20px; align-items: center; }
nav ul li a, nav .menu li a { text-decoration: none; color: var(--text); font-size: 15px; font-weight: 500; transition: color 0.2s; }
nav ul li a:hover, nav .menu li a:hover { color: var(--accent); }
.nav-cta { background: var(--accent); color: var(--white) !important; padding: 8px 20px; border-radius: 6px; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--primary) !important; }

/* ========================================
   HERO
   ======================================== */
.hero { padding: 140px 24px 100px; background: linear-gradient(135deg, #1a5276 0%, #2980b9 50%, #3498db 100%); color: var(--white); text-align: center; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 60px; background: var(--white); clip-path: ellipse(55% 100% at 50% 100%); }
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.15; max-width: 800px; margin: 0 auto 20px; }
.hero h1 em { font-style: normal; color: #f9e79f; }
.hero p { font-size: 20px; max-width: 640px; margin: 0 auto 36px; opacity: 0.92; line-height: 1.5; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========================================
   BUTTONS
   ======================================== */
.btn { display: inline-block; padding: 14px 32px; border-radius: 8px; font-size: 17px; font-weight: 600; text-decoration: none; transition: all 0.25s; cursor: pointer; border: none; }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: #f0f4f8; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

/* ========================================
   SECTIONS
   ======================================== */
section { padding: 80px 24px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-title { font-size: 36px; font-weight: 700; color: var(--primary); text-align: center; margin-bottom: 12px; }
.section-subtitle { font-size: 18px; color: var(--text-light); text-align: center; max-width: 600px; margin: 0 auto 48px; }

/* ========================================
   WHO IS IT FOR
   ======================================== */
.who-section { background: var(--light); }
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.who-text h3 { font-size: 28px; color: var(--primary); margin-bottom: 16px; }
.who-text p { font-size: 17px; color: var(--text-light); margin-bottom: 16px; }
.who-list { list-style: none; padding: 0; }
.who-list li { padding: 10px 0; font-size: 16px; display: flex; align-items: flex-start; gap: 12px; }
.who-list li::before { content: '✓'; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: var(--green); color: var(--white); border-radius: 50%; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.who-visual { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.screen-mock { background: #1a1a2e; border-radius: 8px; padding: 20px; color: #eee; font-family: 'Consolas', 'Courier New', monospace; font-size: 13px; line-height: 1.6; }
.screen-mock .red { color: #e74c3c; }
.screen-mock .cyan { color: #00bcd4; }
.screen-mock .grey { color: #999; }
.screen-mock .green { color: #4caf50; }
.screen-mock .gold { color: #ffd700; }
.screen-mock .blue { color: #64b5f6; }

/* ========================================
   FEATURES
   ======================================== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-card { background: var(--white); border-radius: var(--radius); padding: 32px 28px; box-shadow: 0 2px 16px rgba(0,0,0,0.06); transition: transform 0.25s, box-shadow 0.25s; border-top: 4px solid var(--accent); }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-card h3 { font-size: 20px; color: var(--primary); margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 15px; }

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-section { background: var(--light); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { text-align: center; position: relative; }
.step-number { width: 56px; height: 56px; background: var(--accent); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; margin: 0 auto 16px; }
.step h3 { font-size: 18px; color: var(--primary); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-light); }

/* ========================================
   DEMENTIA CLOCK
   ======================================== */
.clock-section { background: linear-gradient(135deg, #2c3e50, #1a5276); color: var(--white); }
.clock-section .section-title { color: var(--white); }
.clock-section .section-subtitle { color: rgba(255,255,255,0.75); }
.clock-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.clock-features { list-style: none; padding: 0; }
.clock-features li { padding: 12px 0; font-size: 17px; display: flex; align-items: flex-start; gap: 12px; }
.clock-features li::before { content: '★'; color: #f9e79f; font-size: 18px; flex-shrink: 0; }
.clock-demo { background: #111; border-radius: var(--radius); padding: 32px; text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.clock-time { font-size: 72px; font-weight: 800; color: #fff; font-family: 'Segoe UI', sans-serif; letter-spacing: 2px; }
.clock-period { font-size: 28px; color: #f9e79f; margin: 8px 0; }
.clock-date { font-size: 22px; color: #64b5f6; }
.clock-greeting { font-size: 18px; color: #aaa; margin-top: 12px; }

/* ========================================
   CALENDAR
   ======================================== */
.calendar-section { background: var(--white); }
.calendar-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.cal-commands { background: var(--light); border-radius: var(--radius); padding: 28px; }
.cal-commands h3 { font-size: 20px; color: var(--primary); margin-bottom: 16px; }
.cal-cmd { background: var(--white); border-radius: 8px; padding: 14px 18px; margin-bottom: 12px; border-left: 4px solid var(--accent); }
.cal-cmd code { background: #eaf2f8; color: var(--primary); padding: 2px 8px; border-radius: 4px; font-family: 'Consolas', monospace; font-size: 14px; }
.cal-cmd p { font-size: 14px; color: var(--text-light); margin-top: 6px; }
.cal-display { background: #1a1a2e; border-radius: var(--radius); padding: 28px; color: #eee; font-family: 'Consolas', monospace; font-size: 14px; line-height: 1.7; }
.cal-display .heading { color: #ffd700; font-weight: bold; font-size: 16px; }
.cal-display .date { color: #64b5f6; }
.cal-display .entry { color: #eee; }
.cal-display .divider { color: #555; }

/* ========================================
   KEYPAD
   ======================================== */
.keypad-section { background: var(--light); }
.keypad-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.keypad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 360px; }
.key-btn { border-radius: var(--radius); padding: 24px 16px; text-align: center; color: var(--white); font-weight: 700; font-size: 18px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.key-btn span { display: block; font-size: 13px; font-weight: 400; margin-top: 4px; opacity: 0.9; }
.key-record { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.key-replay { background: linear-gradient(135deg, #2471a3, #2980b9); }
.key-back { background: linear-gradient(135deg, #1e8449, #27ae60); }
.key-next { background: linear-gradient(135deg, #d68910, #f39c12); }
.keypad-desc h3 { font-size: 24px; color: var(--primary); margin-bottom: 16px; }
.keypad-desc p { font-size: 16px; color: var(--text-light); margin-bottom: 20px; }
.keypad-list { list-style: none; padding: 0; }
.keypad-list li { padding: 8px 0; font-size: 15px; border-bottom: 1px solid #e0e0e0; }
.keypad-list li:last-child { border: none; }
.keypad-list strong { display: inline-block; width: 80px; }

/* ========================================
   FAMILIES
   ======================================== */
.families-section { background: var(--white); }
.families-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.family-card { background: var(--light); border-radius: var(--radius); padding: 28px; text-align: center; }
.family-card .icon { font-size: 48px; margin-bottom: 14px; }
.family-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 8px; }
.family-card p { font-size: 14px; color: var(--text-light); }

/* ========================================
   PRICING
   ======================================== */
.pricing-section { background: linear-gradient(135deg, #f8f9fa, #eaf2f8); }
.pricing-card { max-width: 480px; margin: 0 auto; background: var(--white); border-radius: var(--radius); padding: 48px 40px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); text-align: center; border-top: 4px solid var(--accent); }
.pricing-card h3 { font-size: 24px; color: var(--primary); margin-bottom: 8px; }
.pricing-card .price { font-size: 48px; font-weight: 800; color: var(--primary); margin: 20px 0; }
.pricing-card .price small { font-size: 18px; font-weight: 400; color: var(--text-light); }
.pricing-includes { list-style: none; padding: 0; text-align: left; margin: 24px 0; }
.pricing-includes li { padding: 8px 0; font-size: 15px; border-bottom: 1px solid #eee; display: flex; gap: 10px; }
.pricing-includes li::before { content: '✓'; color: var(--green); font-weight: 700; }
.pricing-note { font-size: 13px; color: var(--text-light); margin-top: 16px; }

/* ========================================
   FAQ
   ======================================== */
.faq-section { background: var(--white); }
.faq-list { max-width: 740px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #e8e8e8; }
.faq-q { padding: 20px 0; font-size: 17px; font-weight: 600; color: var(--primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: '+'; font-size: 24px; color: var(--accent); transition: transform 0.2s; }
.faq-q.open::after { content: '−'; }
.faq-a { padding: 0 0 20px; font-size: 15px; color: var(--text-light); display: none; }
.faq-a.open { display: block; }

/* ========================================
   CONTACT & FOOTER
   ======================================== */
.contact-section { background: var(--dark); color: var(--white); text-align: center; }
.contact-section .section-title { color: var(--white); }
.contact-section .section-subtitle { color: rgba(255,255,255,0.65); }
.contact-links { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; margin-top: 32px; }
.contact-link { color: var(--white); text-decoration: none; font-size: 16px; display: flex; align-items: center; gap: 8px; opacity: 0.85; transition: opacity 0.2s; }
.contact-link:hover { opacity: 1; }

footer { background: #1a2530; color: rgba(255,255,255,0.5); text-align: center; padding: 20px 24px; font-size: 13px; }
footer a { color: rgba(255,255,255,0.7); text-decoration: none; }

/* ========================================
   HAMBURGER MENU
   ======================================== */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001; }
.hamburger span { display: block; width: 24px; height: 3px; background: var(--primary); margin: 5px 0; border-radius: 2px; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ========================================
   COOKIE BANNER
   ======================================== */
#cookieBanner { position: fixed; bottom: 0; left: 0; right: 0; background: #1a2530; color: #fff; padding: 18px 24px; z-index: 9999; box-shadow: 0 -2px 12px rgba(0,0,0,0.2); }
.cookie-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.cookie-inner p { font-size: 14px; line-height: 1.5; margin: 0; flex: 1; min-width: 280px; }
.cookie-inner a { color: #64b5f6; text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept { padding: 10px 24px; background: #2980b9; color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; }
.cookie-reject { padding: 10px 24px; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; }

/* ========================================
   DESKTOP - ensure nav always visible
   ======================================== */
@media (min-width: 901px) {
  nav ul, nav .menu { display: flex !important; position: static; flex-direction: row; box-shadow: none; padding: 0; background: transparent; }
  .hamburger { display: none !important; }
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .hamburger { display: block; margin-left: auto; padding: 12px; }
  .hamburger span { width: 28px; height: 3px; margin: 6px 0; }
  nav .container { justify-content: flex-start; height: 80px; }
  nav .brand img { height: 70px; }
  nav .brand { margin-right: 0; }
  nav ul, nav .menu { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 16px 24px; gap: 0; }
  nav ul.open, nav .menu.open { display: flex; }
  nav ul li, nav .menu li { padding: 12px 0; border-bottom: 1px solid #eee; list-style: none; }
  nav ul li:last-child, nav .menu li:last-child { border: none; padding-top: 16px; }
  nav ul li a, nav .menu li a { font-size: 17px; }
  .nav-cta { display: inline-block; text-align: center; }
  .hero { padding: 110px 20px 80px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 17px; }
  .features-grid, .families-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .who-grid, .clock-content, .calendar-content, .keypad-content { grid-template-columns: 1fr; }
  .clock-time { font-size: 48px; }
  section { padding: 60px 16px; }
  .section-title { font-size: 28px; }
  .section-subtitle { font-size: 16px; }
  .contact-links { flex-direction: column; align-items: center; gap: 16px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .keypad-grid { max-width: 280px; }
  .btn { padding: 12px 24px; font-size: 15px; }
  .pricing-card { padding: 32px 20px; }
  .pricing-card .price { font-size: 36px; }
}
