/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Clinic palette (clean, airy, premium) */
    --primary-color: #819732;
    --secondary-color: #328197;
    --accent-color: #973281;

    --text-dark: #0f172a;
    --text-light: #475569;

    --bg-light: #f6f8fb;
    --bg-white: #ffffff;

    --border-color: rgba(15, 23, 42, 0.10);
    --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);

    --success-color: #16a34a;
    --error-color: #ef4444;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    /* Card backgrounds derived from theme colors */
    --card-bg: rgba(129,151,50,0.06); /* tint of primary (#819732) */
    --card-bg-strong: rgba(129,151,50,0.08);
    /* RGB fallbacks for use with rgba() */
    --primary-rgb: 129,151,50; /* #819732 */
    --secondary-rgb: 50,129,151; /* #328197 */
    --accent-rgb: 151,50,129; /* #973281 */
}

html {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    min-width: 280px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    background: var(--text-dark);
    color: white;
    border-radius: 10px;
    z-index: 9999;
    transform: translateY(-200%);
    transition: transform 0.2s ease;
    text-decoration: none;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Header Styles */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.main-header.is-scrolled {
    box-shadow: var(--shadow-sm);
}

.topbar {
    background: linear-gradient(90deg, rgba(129, 151, 50, 0.10), rgba(50, 129, 151, 0.10));
    border-bottom: 1px solid var(--border-color);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.topbar-link {
    color: var(--text-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topbar-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}

.tagline {
    font-size: 0.92rem;
    color: var(--text-light);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 30%, rgba(var(--secondary-rgb),0.9), rgba(var(--primary-rgb),0.95));
    box-shadow: 0 10px 22px rgba(var(--secondary-rgb), 0.22);
    position: relative;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.18);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.25rem;
}

/* Navigation */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.nav-toggle-lines {
    width: 18px;
    height: 2px;
    background: var(--text-dark);
    display: inline-block;
    position: relative;
    border-radius: 2px;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
}

.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding-bottom: 16px;
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    transition: background-color 0.25s, transform 0.25s;
    font-weight: 600;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: rgba(var(--secondary-rgb), 0.12);
}

/* Mark header action buttons active when on same page */
.header-actions a.active,
.header-actions a.active.btn-ghost {
    background: linear-gradient(135deg, rgba(var(--secondary-rgb),0.95), rgba(var(--primary-rgb),0.95));
    color: #fff;
    box-shadow: 0 10px 24px rgba(var(--secondary-rgb),0.28);
}

/* Header action button interaction styles */
.header-actions a {
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease, color 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.header-actions a:active,
.header-actions a:focus,
.header-actions a:focus-visible,
.header-actions a.active {
    background: linear-gradient(135deg, rgba(var(--secondary-rgb),0.95), rgba(var(--primary-rgb),0.95));
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(var(--secondary-rgb),0.22);
    outline: none;
}

.header-actions a:focus-visible {
    outline: 3px solid rgba(var(--secondary-rgb),0.18);
    outline-offset: 3px;
}

/* Stronger override for header action active state (ensure overrides .btn-primary) */
.header-actions a.active,
.header-actions a.active.btn-ghost,
.header-actions a.active.btn-primary {
    background: linear-gradient(135deg, rgba(var(--secondary-rgb),0.95), rgba(var(--primary-rgb),0.95)) !important;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(var(--secondary-rgb),0.28) !important;
}

/* When Lab Results page is active, make Book/Enquire appear muted (off-white) */
.main-header.page-results .header-actions .btn-primary {
    background: #f7f7f6 !important;
    color: var(--text-dark) !important;
    box-shadow: none !important;
    border: 1px solid var(--border-color) !important;
    transform: none !important;
    opacity: 0.95;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #819732 0%, #6f7f2e 100%);
    color: #ffffff;
    padding: 5rem 0 4rem;
    text-align: left;
}

.hero-section::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 320px;
    height: 320px;
    border-radius: 80px;
    background: linear-gradient(135deg, rgba(0,0,0,0.06), rgba(255,255,255,0.02));
    transform: rotate(12deg);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2.2rem;
    max-width: 800px;
    color: rgba(255,255,255,0.92);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(var(--secondary-rgb), 0.35);
}

.btn-secondary {
    background-color: rgba(50, 129, 151, 0.10);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(var(--secondary-rgb), 0.16);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.btn-ghost:hover {
    background: rgba(15, 23, 42, 0.04);
}

.btn-small {
    padding: 0.65rem 1.1rem;
    font-size: 0.95rem;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.features-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: transform 0.3s;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Services Preview */
.services-preview {
    padding: 4rem 0;
}

.services-preview h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

.read-more:hover {
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Page Header */
.page-header {
    background:
        radial-gradient(900px 400px at 10% 30%, rgba(50, 129, 151, 0.20), transparent 60%),
        linear-gradient(180deg, rgba(246, 248, 251, 1), rgba(255, 255, 255, 1));
    color: var(--text-dark);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* About Page */
.about-content {
    padding: 3rem 0;
}

.about-main {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.about-main article h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.about-main article h2:first-child {
    margin-top: 0;
}

.about-main p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.feature-list {
    margin: 1rem 0 1rem 2rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: var(--bg-light);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    border-top: 4px solid var(--secondary-color);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Services Page */
.services-content {
    padding: 3rem 0;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 3.2rem 0;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, #819732 0%, #6f7f2e 100%);
}

.page-hero-services::after {
    content: "";
    position: absolute;
    right: -140px;
    top: -140px;
    width: 360px;
    height: 360px;
    border-radius: 90px;
    background: linear-gradient(135deg, rgba(0,0,0,0.06), rgba(255,255,255,0.02));
    transform: rotate(12deg);
}

.page-hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
}

.page-hero-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.7);
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.page-hero-breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-hero-breadcrumb a:hover {
    color: var(--primary-color);
}

.page-hero h1 {
    font-size: 3rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-hero-subtitle {
    color: rgba(255,255,255,0.92);
    font-size: 1.12rem;
    max-width: 60ch;
    margin-bottom: 18px;
}

.page-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-visual {
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    min-height: 220px;
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: -40px;
    background:
        radial-gradient(circle at 30% 30%, rgba(var(--secondary-rgb),0.30), transparent 55%),
        radial-gradient(circle at 80% 55%, rgba(var(--accent-rgb),0.18), transparent 60%);
    transform: rotate(-6deg);
}

.hero-visual-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    margin: 10px 10px 0 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(50, 129, 151, 0.22);
    font-weight: 800;
    color: var(--text-dark);
}

/* Services catalog (Dermax-like grid) */
.services-catalog {
    padding: 3rem 0 1rem;
    background: var(--bg-white);
}

.services-intro {
    max-width: 920px;
    margin: 0 auto 1.5rem;
    color: var(--text-light);
    text-align: center;
    font-size: 1.05rem;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 1.5rem 0 0;
}

.service-cards-secondary {
    margin-top: 18px;
}

.service-tile {
    display: block;
    text-decoration: none;
    color: var(--text-dark);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.service-tile::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 160px;
    height: 160px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(30,134,201,0.18), rgba(255,107,107,0.10));
    transform: rotate(18deg);
}

.service-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(50, 129, 151, 0.35);
}

.service-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(50, 129, 151, 0.20), rgba(129, 151, 50, 0.08));
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.iconify {
    display: inline-block;
    vertical-align: middle;
    font-size: 1.4rem;
    color: currentColor;
}

.feature-icon .iconify {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.service-tile-icon .iconify {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.topbar-link .iconify {
    font-size: 1rem;
    margin-right: 8px;
    color: var(--text-dark);
}

/* Logo image sizing */
.site-logo {
    height: 120px;
    object-fit: contain;
    margin-right: 12px;
}

.footer-logo {
    height: 48px;
    object-fit: contain;
    margin-right: 12px;
}

.service-tile-title {
    display: block;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    position: relative;
}

.service-tile-text {
    display: block;
    color: var(--text-light);
    font-size: 0.98rem;
    line-height: 1.45;
    position: relative;
}

/* Services content layout (sidebar + content) */
.services-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
}

.services-sidebar {
    position: sticky;
    top: 110px;
}

.sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 18px;
}

.sidebar-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li + li {
    margin-top: 6px;
}

.sidebar-links a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(15, 23, 42, 0.02);
}

.sidebar-links a:hover {
    border-color: rgba(50, 129, 151, 0.25);
    background: rgba(50, 129, 151, 0.08);
}

.services-main .service-detail {
    margin-bottom: 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(246, 248, 251, 0.7);
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--text-light);
    font-size: 0.98rem;
}

.breadcrumb .sep {
    color: rgba(71, 85, 105, 0.7);
}

.service-detail {
    background: var(--card-bg-strong);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.service-detail h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.service-detail p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.service-list {
    margin: 1rem 0 1rem 2rem;
}

.service-list li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.services-cta {
    text-align: center;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-top: 2rem;
}

.services-cta h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Contact Page */
.contact-content {
    padding: 3rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.info-block:last-child {
    border-bottom: none;
}

.info-block h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-block p {
    margin-bottom: 0.5rem;
}

.info-block a {
    color: var(--secondary-color);
    text-decoration: none;
}

.info-block a:hover {
    text-decoration: underline;
}

.hours {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.info-block ul {
    list-style: none;
    margin-top: 0.5rem;
}

.info-block ul li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-block ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.contact-form-wrapper h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #c6f6d5;
    color: #22543d;
    border: 1px solid var(--success-color);
}

.alert-error {
    background-color: #fed7d7;
    color: #742a2a;
    border: 1px solid var(--error-color);
}

.map-section {
    padding: 3rem 0;
    background: var(--bg-light);
}

.map-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.map-placeholder {
    background: var(--card-bg);
    padding: 3rem;
    text-align: center;
    border-radius: 8px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Results Page */
.results-content {
    padding: 3rem 0;
}

.results-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.results-login h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.login-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.results-form .form-group {
    margin-bottom: 1.5rem;
}

.help-text {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.help-text a {
    color: var(--secondary-color);
    text-decoration: none;
}

.results-info h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.results-info article h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.results-info article ul {
    margin: 1rem 0 1rem 2rem;
}

.results-info article ul li {
    margin-bottom: 0.5rem;
}

.results-features {
    margin-top: 3rem;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.results-features h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 4px;
}

.feature-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Footer */
.main-footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e0;
    font-size: 0.9rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.6);
    color: #ffffff;
    margin-right: 8px;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.footer-social-link .iconify {
    font-size: 1.2rem;
}

.footer-social-link:hover {
    background: #819732;
    border-color: #819732;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.whatsapp-float .iconify {
    font-size: 1.75rem;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* WhatsApp on mobile - ensure visible on Samsung M21 and similar */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: max(16px, env(safe-area-inset-bottom));
        right: max(16px, env(safe-area-inset-right));
        width: 48px;
        height: 48px;
    }
    .whatsapp-float .iconify {
        font-size: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .service-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: row;
        justify-content: space-between;
        text-align: right;
        gap: 1rem;
    }

    .header-top .logo {
        order: 2;
        margin-left: auto;
    }

    .header-top .header-actions {
        order: 1;
    }
    
    .main-nav ul {
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .contact-wrapper,
    .results-wrapper {
        grid-template-columns: 1fr;
    }

    .services-layout {
        grid-template-columns: 1fr;
    }

    .services-sidebar {
        position: static;
        top: auto;
    }

    .page-hero-inner {
        grid-template-columns: 1fr;
    }
    
    /* Hide the top info bar (contact/strapline) on mobile to reduce clutter */ 
    .topbar {
        display: none;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Mobile navigation behavior */
    .nav-toggle {
        display: inline-flex;
    }

    /* Hide desktop nav on mobile until opened */
    .main-nav {
        display: none;
        width: 100%;
        margin-top: 8px;
    }

    .main-nav.is-open {
        display: block;
        background: rgba(255,255,255,0.98);
        padding: 10px;
        border-radius: 12px;
        box-shadow: var(--shadow-sm);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 6px;
    }

    .main-nav a {
        display: block;
        padding: 12px 14px;
        border-radius: 8px;
    }

    /* Reduce decorative accents on small screens */
    .service-tile::after {
        width: 28px;
    }
    .service-tile::before {
        right: -40px;
        width: 120px;
        height: 120px;
    }

    /* Logo bigger on mobile, right-aligned */
    .site-logo {
        height: 96px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
}
