/*
Theme Name: Fortuna Backup Software
Theme URI: https://www.backupsoftware.co.uk/
Author: Fortuna Data
Author URI: https://www.backupsoftware.co.uk/
Description: SEO-optimised WordPress theme for backupsoftware.co.uk – Acronis backup software supplied by Fortuna Data. On activation it creates all pages, menus, starter blog posts and the quote form.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fortuna-backup
*/

:root {
	--navy: #0b1d36;
	--navy-2: #12294a;
	--ink: #142238;
	--muted: #5b6b82;
	--line: #e3e8ef;
	--bg: #ffffff;
	--bg-soft: #f4f7fb;
	--brand: #0067d6;
	--brand-dark: #0052ab;
	--accent: #19c3a0;
	--warn: #f5a524;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(11, 29, 54, .08);
	--wrap: 1180px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.4em; border-radius: 999px; font-weight: 700; font-size: .98rem; border: 2px solid transparent; transition: .15s ease; cursor: pointer; line-height: 1.2; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: #12a98a; color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { color: inherit; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* Top bar */
.topbar { background: var(--navy); color: #c8d4e6; font-size: .86rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar .contact-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.site-branding { display: flex; align-items: center; }
.site-branding .custom-logo { max-height: 52px; width: auto; display: block; }
.text-logo { display: flex; flex-direction: column; line-height: 1.05; color: var(--navy); }
.text-logo:hover { text-decoration: none; }
.text-logo strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.text-logo strong span { color: var(--brand); }
.text-logo small { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 12px; color: var(--ink); font-weight: 600; font-size: .95rem; border-radius: 8px; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--brand); text-decoration: none; background: var(--bg-soft); }
.main-nav .menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; vertical-align: 1px; }
.main-nav .sub-menu { position: absolute; left: 0; top: 100%; min-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { font-weight: 500; }
.main-nav .nav-cta > a { background: var(--brand); color: #fff; border-radius: 999px; padding: 10px 18px; margin-left: 8px; }
.main-nav .nav-cta > a:hover { background: var(--brand-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-weight: 700; color: var(--navy); cursor: pointer; }

@media (max-width: 1020px) {
	.nav-toggle { display: block; }
	.main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; max-height: calc(100vh - 80px); overflow: auto; }
	.main-nav.is-open { display: block; }
	.main-nav > ul { flex-direction: column; align-items: stretch; padding: 10px 16px 18px; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
	.main-nav .nav-cta > a { margin: 8px 0 0; text-align: center; }
}

/* Sections */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: #d5deeb; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.section-dark .eyebrow { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); }
.section-dark .lead { color: #b8c6da; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(0, 103, 214, .35), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #d5deeb; padding: 84px 0 92px; overflow: hidden; }
.hero h1 { color: #fff; }
.hero .lead { color: #c3d0e3; max-width: 640px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero .btn-ghost { color: #fff; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-stats div strong { display: block; font-size: 1.7rem; color: #fff; font-weight: 800; }
.hero-stats div span { font-size: .88rem; color: #9fb1ca; }
.hero-sub { padding: 64px 0 70px; }
.breadcrumbs { font-size: .85rem; color: #9fb1ca; margin-bottom: 18px; }
.breadcrumbs a { color: #c3d0e3; }

/* Console panel */
.console { background: #0f2747; border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); overflow: hidden; font-size: .9rem; }
.console-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .08); color: #9fb1ca; font-size: .8rem; }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b4f6e; display: inline-block; }
.console-bar b { margin-left: auto; font-weight: 600; }
.console table { width: 100%; border-collapse: collapse; }
.console th, .console td { text-align: left; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); color: #d5deeb; }
.console th { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #8197b5; font-weight: 700; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.pill-ok { background: rgba(25, 195, 160, .16); color: #4be0bf; }
.pill-lock { background: rgba(0, 103, 214, .25); color: #8cc1ff; }
.pill-run { background: rgba(245, 165, 36, .18); color: #ffc65c; }
.console-foot { padding: 12px 16px; color: #8197b5; font-size: .78rem; }

/* Cards & grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: .15s; }
.card:hover { box-shadow: var(--shadow); border-color: #cfd9e6; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(0, 103, 214, .1); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; font-size: 1.3rem; font-weight: 800; }
.card .tag { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--brand); background: rgba(0, 103, 214, .08); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.card-link { display: inline-block; margin-top: 10px; font-weight: 700; }
.section-dark .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.section-dark .card p { color: #b8c6da; }
.product-card h3 a { color: var(--navy); }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230b1d36'%3E%3Cpath d='M8.1 13.6 4.5 10l1.2-1.2 2.4 2.4 6.2-6.2 1.2 1.2z'/%3E%3C/svg%3E") center/14px no-repeat; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat-band strong { display: block; font-size: 2.6rem; font-weight: 800; color: #fff; }

/* Tables */
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: .95rem; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--navy); color: #fff; }
.compare tbody tr:nth-child(even) { background: var(--bg-soft); }
.table-scroll { overflow-x: auto; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 18px 0; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 18px; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--brand) 0%, #0a4fa3 100%); color: #e6f0ff; border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band .btn-row { justify-content: flex-end; margin: 0; }
.cta-band .btn-ghost { color: #fff; }

/* Quote form */
.quote-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: start; }
.quote-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.quote-form h2 { font-size: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.field label .req { color: #d23c3c; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #cdd6e2; border-radius: 10px; font: inherit; font-size: .97rem; color: var(--ink); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 103, 214, .15); }
.field textarea { min-height: 130px; resize: vertical; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.checks label { font-weight: 500; display: flex; gap: 8px; align-items: flex-start; font-size: .94rem; color: var(--ink); }
.checks input { width: auto; margin-top: 5px; }
.consent { font-size: .88rem; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.consent input { margin-top: 5px; }
.hp-field { position: absolute !important; left: -9999px !important; }
.notice { padding: 16px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; }
.notice-ok { background: #e6f8f3; color: #0e6b57; border: 1px solid #b6eadb; }
.notice-err { background: #fdecec; color: #922; border: 1px solid #f3c2c2; }
.side-box { background: var(--bg-soft); border-radius: 18px; padding: 28px; margin-bottom: 20px; }
.side-box h3 { margin-bottom: .4em; }

/* Generic content (posts / plain pages) */
.page-hero { background: var(--navy); color: #c3d0e3; padding: 60px 0; }
.page-hero h1 { color: #fff; margin: 0; }
.entry { padding: 60px 0 80px; }
.entry-content h2 { margin-top: 1.6em; font-size: 1.6rem; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-meta { color: #9fb1ca; font-size: .9rem; margin-top: 10px; }
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card h2 { font-size: 1.25rem; }
.post-card h2 a { color: var(--navy); }
.pagination { margin-top: 40px; display: flex; gap: 10px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; }

/* Footer */
.site-footer { background: var(--navy); color: #a9b8cd; font-size: .93rem; padding: 70px 0 30px; }
.site-footer a { color: #d5deeb; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand .text-logo strong { color: #fff; }
.footer-brand .custom-logo { max-height: 48px; width: auto; background: #fff; padding: 6px 10px; border-radius: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 50px; padding-top: 24px; font-size: .82rem; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.tm-note { font-size: .78rem; color: #7f91ab; max-width: 820px; }

/* Responsive */
@media (max-width: 960px) {
	.hero-grid, .split, .quote-layout, .cta-band { grid-template-columns: 1fr; }
	.grid-3, .grid-4, .post-list { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.cta-band .btn-row { justify-content: flex-start; }
	.section { padding: 64px 0; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.grid-2, .grid-3, .grid-4, .post-list, .stat-band, .form-row, .checks, .footer-grid { grid-template-columns: 1fr; }
	.cta-band, .quote-form { padding: 28px 20px; }
	.hero { padding: 56px 0 64px; }
	.topbar .tagline { display: none; }
	.console th:nth-child(3), .console td:nth-child(3) { display: none; }
}

/* Fixes */
.field label.consent { display: flex; font-weight: 500; color: var(--muted); }
.field .consent input, .field .checks input { width: auto; flex: none; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 20px 28px; justify-content: start; }
@media (max-width: 640px) { .hero-stats { grid-template-columns: 1fr 1fr; } }
.section-dark .card .icon, .hero .card .icon { background: rgba(25, 195, 160, .14); color: var(--accent); }
.hero-stats div span { display: block; line-height: 1.4; }

/* Fortuna Data logo */
.bundled-logo { display: inline-block; line-height: 0; }
.bundled-logo img { display: block; height: 42px; width: auto; }
.footer-brand .bundled-logo img { height: 40px; }
@media (max-width: 640px) { .bundled-logo img { height: 34px; } }
