/*
Theme Name: Pelican 2026
Theme URI: https://pelicancomputers.co.uk/
Author: Pelican Computers
Description: Lightweight, fast theme for Pelican Computers. Click-to-call header, service cards, PSTN switch-off banner. No page builder required.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: pelican-2026
*/

:root {
	--ink: #14212b;
	--ink-soft: #4a5a66;
	--paper: #ffffff;
	--paper-alt: #f3f6f8;
	--line: #dbe2e7;
	--brand: #0b5c8a;
	--brand-dark: #083f5f;
	--accent: #f2a516;
	--accent-ink: #3a2700;
	--radius: 10px;
	--wrap: 1120px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 46px); margin-top: 0; }
h2 { font-size: clamp(23px, 3.2vw, 30px); }
h3 { font-size: 20px; }
p, ul, ol { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* Top bar */
.topbar { background: var(--ink); color: #dfe7ec; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { max-height: 52px; width: auto; }
.brand-name { font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brand-name small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-soft); letter-spacing: 0; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: 10px 12px; text-decoration: none; color: var(--ink); font-weight: 500; border-radius: 6px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--paper-alt); color: var(--brand); }
.primary-nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); min-width: 220px; padding: 6px; flex-direction: column; box-shadow: 0 8px 24px rgba(20,33,43,.08); }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: flex; }

.btn { display: inline-block; padding: 12px 20px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid transparent; line-height: 1.2; }
.btn-call { background: var(--accent); color: var(--accent-ink); white-space: nowrap; }
.btn-call:hover { background: #e09500; color: var(--accent-ink); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--brand-dark); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 64px 0 56px; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p.lead { font-size: 20px; max-width: 52ch; color: #e3eef5; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero ul.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: #e3eef5; }
.hero ul.ticks li::before { content: "\2713"; color: var(--accent); font-weight: 700; margin-right: 8px; }

/* Cards */
.section { padding: 56px 0; }
.section.alt { background: var(--paper-alt); }
.section > .wrap > h2:first-child { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.card h3 { margin-top: 0; }
.card p { color: var(--ink-soft); }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card .icon { width: 44px; height: 44px; border-radius: 10px; background: #e3eef5; color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }

/* PSTN banner */
.pstn { background: #fff7e6; border-top: 3px solid var(--accent); border-bottom: 1px solid #f3dfb3; }
.pstn .wrap { display: flex; align-items: center; gap: 24px; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; }
.pstn .count { font-size: 44px; font-weight: 800; color: var(--accent-ink); line-height: 1; }
.pstn .count small { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.pstn .text { flex: 1 1 360px; }
.pstn .text h2 { margin: 0 0 6px; font-size: 22px; }
.pstn .text p { margin: 0; color: var(--ink-soft); }

/* Areas */
.areas { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.areas li a, .areas li span { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--paper); font-size: 15px; }
.areas li a:hover { border-color: var(--brand); color: var(--brand); }

/* Content */
.page-head { background: var(--paper-alt); border-bottom: 1px solid var(--line); padding: 40px 0 32px; }
.page-head h1 { margin: 0; }
.breadcrumbs { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.breadcrumbs a { color: var(--ink-soft); }
.content { padding: 40px 0 56px; }
.content .entry { max-width: 760px; }
.entry > :first-child { margin-top: 0; }
.entry ul li, .entry ol li { margin-bottom: .35em; }
.entry blockquote { border-left: 4px solid var(--brand); margin: 1.5em 0; padding: .2em 0 .2em 1.2em; color: var(--ink-soft); }
.entry .wp-block-button__link { background: var(--brand); border-radius: 8px; }
.cta-box { background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 40px; max-width: 760px; }
.cta-box h2 { margin-top: 0; font-size: 22px; }
.post-meta { color: var(--ink-soft); font-size: 15px; }
.post-list article { border-bottom: 1px solid var(--line); padding: 24px 0; }
.post-list h2 { margin: 0 0 6px; font-size: 22px; }
.post-list h2 a { text-decoration: none; color: var(--ink); }

/* Footer */
.site-footer { background: var(--ink); color: #c9d4dc; padding: 48px 0 24px; font-size: 15px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { color: #fff; font-size: 17px; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links li { margin: 0; }
.footer-base { border-top: 1px solid #2c3b47; margin-top: 32px; padding-top: 16px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Mobile call bar */
.mobile-call { display: none; }

@media (max-width: 900px) {
	.cards { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.nav-toggle { display: inline-block; }
	.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
	.primary-nav.open { display: block; }
	.primary-nav ul { flex-direction: column; }
	.primary-nav .sub-menu { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
	.site-header .btn-call { display: none; }
	.topbar .hours { display: none; }
	.mobile-call { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--accent); color: var(--accent-ink); text-align: center; font-weight: 700; padding: 14px; text-decoration: none; box-shadow: 0 -2px 12px rgba(0,0,0,.12); }
	body { padding-bottom: 52px; }
	.hero { padding: 44px 0 40px; }
}

@media (prefers-reduced-motion: no-preference) {
	a, .btn { transition: background-color .15s, color .15s, border-color .15s; }
}
