:root {
  --bg-primary: #F8FAFC;
  --bg-secondary: #EEF2F7;
  --nav-bg: #FFFFFF;
  --dark-section: #111827;
  --brand-primary: #E11D48;
  --brand-secondary: #F97316;
  --accent-energy: #FACC15;
  --accent-tech: #0EA5E9;
  --accent-fresh: #14B8A6;
  --accent-purple: #7C3AED;
  --text-main: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border-color: #D7DEE8;
  --soft-shadow: rgba(15, 23, 42, 0.10);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* Utilities */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-padding {
  padding: 100px 0;
}

.text-center { text-align: center; }
.text-brand { color: var(--brand-primary); }
.text-tech { color: var(--accent-tech); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-secondary);
  color: var(--accent-tech);
  margin-bottom: 1rem;
}

.badge.purple { color: var(--accent-purple); }
.badge.fresh { color: var(--accent-fresh); }
.badge.energy { color: var(--accent-energy); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  gap: 10px;
}

.btn-primary {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
}

.btn-primary:hover {
  background: #be123c;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* Portal Header */
.portal-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1400px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 10px 30px var(--soft-shadow);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--brand-primary);
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 5px 10px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--brand-primary);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
}

/* Hero Section */
.hero-portal {
  padding: 180px 0 100px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Interactive Hero Portal Right Side */
.interactive-portal {
  position: relative;
  height: 500px;
  background: var(--nav-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px var(--soft-shadow);
  padding: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portal-ring {
  position: absolute;
  width: 400px;
  height: 400px;
  border: 2px dashed var(--border-color);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 30s linear infinite;
}

.portal-node {
  position: relative;
  z-index: 2;
  background: var(--nav-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 10px 20px var(--soft-shadow);
  transform: translateX(20px);
  animation: float 4s ease-in-out infinite;
}

.portal-node:nth-child(2) {
  animation-delay: 1s;
  transform: translateX(-20px);
  border-left: 4px solid var(--accent-tech);
}
.portal-node:nth-child(3) {
  animation-delay: 2s;
  border-left: 4px solid var(--brand-secondary);
}

.node-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.node-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Modular Content Blocks / Navigation Cards */
.portal-gateways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.gateway-card {
  background: var(--nav-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.gateway-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, var(--bg-secondary));
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.gateway-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--soft-shadow);
  border-color: var(--accent-tech);
}

.gateway-card:hover::before {
  opacity: 1;
}

.gateway-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--accent-tech);
}

.gateway-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.gateway-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.gateway-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--brand-primary);
}

/* Educational Blocks */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.edu-block {
  background: var(--nav-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.edu-content {
  padding: 30px;
}

.edu-content h3 {
  margin-bottom: 12px;
}

/* Smart Care Path */
.care-path-section {
  background: var(--dark-section);
  color: #fff;
}

.care-path-section .badge {
  background: rgba(255,255,255,0.1);
  color: var(--accent-fresh);
}

.care-path-section h2 {
  color: #fff;
}

.path-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  margin-top: 60px;
  max-width: 800px;
  margin-inline: auto;
}

.path-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  width: 2px;
  background: rgba(255,255,255,0.1);
}

.path-step {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  position: relative;
}

.step-indicator {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--dark-section);
  border: 2px solid var(--accent-tech);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent-tech);
  flex-shrink: 0;
  z-index: 2;
}

.step-content {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 30px;
  border-radius: var(--radius-lg);
  flex-grow: 1;
}

.step-content h3 {
  color: #fff;
  margin-bottom: 10px;
}

.step-content p {
  color: var(--text-muted);
}

/* UK Conditions */
.uk-conditions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.condition-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.condition-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--nav-bg);
  padding: 15px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.condition-item span.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-purple);
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--nav-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  padding: 0 25px 25px;
  max-height: 500px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

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

/* Contact Portal */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form {
  background: var(--nav-bg);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px var(--soft-shadow);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg-primary);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-tech);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

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

/* Footer */
.portal-footer {
  background: var(--dark-section);
  color: #fff;
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 24px;
  font-size: 1.2rem;
}

.footer-col p {
  color: var(--text-muted);
  max-width: 300px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-tech);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: 90%;
  max-width: 600px;
  background: var(--nav-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  display: block;
}

.cookie-content h4 {
  margin-bottom: 10px;
}

.cookie-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(20px); }
  50% { transform: translateY(-10px) translateX(20px); }
}

@keyframes spin {
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Service Inner Pages */
.service-hero {
  padding: 160px 0 80px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.service-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.service-hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin-inline: auto;
}

.content-section {
  padding: 80px 0;
}

.info-card {
  background: var(--nav-bg);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 150px 5% 100px;
}

.legal-content h1 {
  margin-bottom: 40px;
  font-size: 3rem;
}

.legal-content h2 {
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.legal-content p, .legal-content ul {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.legal-content ul {
  padding-left: 20px;
  list-style: disc;
}

/* Responsive */
@media (max-width: 1200px) {
  .hero-content h1 { font-size: 3.2rem; }
  .edu-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .hero-grid, .contact-grid, .uk-conditions-grid { grid-template-columns: 1fr; gap: 40px; }
  .interactive-portal { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portal-header { padding: 15px 20px; }
  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    flex-direction: column;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px var(--soft-shadow);
    display: none;
    border: 1px solid var(--border-color);
  }
  .nav-links.active { display: flex; }
  .mobile-toggle { display: block; }
  .path-step { gap: 20px; }
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .edu-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
  .path-timeline::before { left: 30px; }
  .step-indicator { width: 60px; height: 60px; font-size: 1.2rem; }
  .section-padding { padding: 60px 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .gateway-card { padding: 25px 20px; }
}