/* ======================================================
   thewebdoctor.ie — Independent informational stylesheet
   Clinical cream + slate-blue palette · serif editorial
   ====================================================== */

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

:root {
    --bg: #faf9f5;
    --bg-alt: #f1ede4;
    --paper: #ffffff;
    --ink: #1a1a1a;
    --ink-soft: #4a4642;
    --ink-light: #7a7470;
    --primary: #1e5b8a;
    --primary-deep: #163f60;
    --accent: #2d8659;
    --warning-bg: #fef3e2;
    --warning-border: #d49251;
    --warning-text: #6b3a18;
    --border: #d9d4cb;
    --shadow-sm: 0 1px 3px rgba(40,30,20,0.08);
    --shadow-md: 0 4px 14px rgba(40,30,20,0.10);
    --radius: 6px;
    --radius-lg: 10px;
    --maxw: 1080px;
    --maxw-narrow: 720px;
    --serif: 'Source Serif 4', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--serif);
    line-height: 1.65;
    color: var(--ink-soft);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color 0.15s; }
a:hover { color: var(--primary); }

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: var(--maxw-narrow); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 2rem 0 0.85rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.6rem; }

p { margin-bottom: 1.1rem; font-size: 1.05rem; }
ul, ol { margin: 0.5rem 0 1.25rem 1.5rem; }
li { margin-bottom: 0.5rem; font-size: 1.05rem; }

/* Notice bar — defensive, non-affiliation */
.notice-bar {
    background: var(--warning-bg);
    border-bottom: 1px solid var(--warning-border);
    padding: 0.85rem 1.5rem;
    text-align: center;
    font-family: var(--sans);
    font-size: 0.94rem;
    color: var(--warning-text);
    line-height: 1.5;
}
.notice-bar strong { color: #4a2811; }
.notice-bar a { color: var(--warning-text); text-decoration: underline; font-weight: 600; }

/* Sticky nav */
.site-nav {
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
    font-family: var(--sans);
}
.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.site-nav .logo {
    color: var(--ink);
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    letter-spacing: -0.01em;
}
.site-nav .logo .dot { color: var(--primary); }
.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
}
.site-nav li { margin: 0; font-size: 0.95rem; }
.site-nav a {
    color: var(--ink-soft);
    font-weight: 500;
    text-decoration: none;
}
.site-nav a:hover { color: var(--primary); }

/* Hero */
.hero {
    padding: 4rem 1.5rem 3rem;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}
.hero .eyebrow {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--primary);
    margin-bottom: 0.85rem;
}
.hero h1 { color: var(--ink); }
.hero p.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 720px; margin-bottom: 1.5rem; }
.breadcrumb {
    font-family: var(--sans);
    font-size: 0.88rem;
    color: var(--ink-light);
    margin-bottom: 0.5rem;
}
.breadcrumb a { color: var(--ink-light); }

/* Sections */
.section { padding: 3rem 1.5rem; }
.section.alt { background: var(--bg-alt); }
.section h2:first-child { margin-top: 0; }

/* Card grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}
.card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--primary); transform: translateY(-2px); }
.card h3 { color: var(--primary-deep); margin-top: 0; font-size: 1.15rem; }
.card p { font-size: 0.97rem; margin-bottom: 0.5rem; }
.card .arrow { font-family: var(--sans); font-size: 0.92rem; font-weight: 600; color: var(--primary-deep); text-decoration: none; }

/* Editorial card / callout */
.editorial-card {
    background: var(--bg-alt);
    border-left: 4px solid var(--primary);
    padding: 1.3rem 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0;
    font-family: var(--sans);
    font-size: 0.97rem;
}
.editorial-card strong { color: var(--ink); }

/* Operator table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.97rem;
    font-family: var(--sans);
}
th, td {
    border: 1px solid var(--border);
    padding: 0.6rem 0.8rem;
    text-align: left;
    vertical-align: top;
}
th {
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--ink);
}

/* Form */
.contact-form {
    max-width: 560px;
    font-family: var(--sans);
    margin-top: 1rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.95rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 1rem;
    background: var(--paper);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.btn-primary {
    background: var(--primary);
    color: white;
    border: 0;
    cursor: pointer;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    font-family: var(--sans);
    text-decoration: none;
    display: inline-block;
}
.btn-primary:hover { background: var(--primary-deep); color: white; }
.btn-ghost {
    background: transparent;
    color: var(--primary-deep);
    border: 1px solid var(--primary-deep);
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    font-family: var(--sans);
    text-decoration: none;
    display: inline-block;
}
.btn-ghost:hover { background: var(--primary-deep); color: white; }

/* Footer */
.site-footer {
    background: var(--ink);
    color: #d9d4cb;
    padding: 2.5rem 1.5rem 2rem;
    margin-top: 3rem;
    font-family: var(--sans);
    font-size: 0.92rem;
}
.site-footer a { color: #f7f3ec; text-decoration: underline; }
.site-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.site-footer h4 { color: #f7f3ec; font-family: var(--sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; font-size: 0.92rem; }
.site-footer .legal {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.82rem;
    color: #9a948a;
}
.site-footer .legal a { color: #b8b1a6; }

/* For-sale (footer-linked, noindex) */
.sale-callout {
    background: var(--ink);
    color: #f7f3ec;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    text-align: center;
}
.sale-callout h3 { color: #f7f3ec; font-family: var(--serif); }
.sale-callout p { color: #d9d4cb; }
.sale-callout .btn-primary { background: var(--accent); }
.sale-callout .btn-primary:hover { background: #1f6444; }

@media (max-width: 720px) {
    .site-nav ul { flex-basis: 100%; justify-content: flex-start; }
    .hero { padding: 2.5rem 1.25rem 2rem; }
}
