/*
Theme Name: Olusola Olaneye & Co.
Theme URI: https://olusolaolaneye.com
Author: www.servercrib.com
Description: A professional WordPress theme for chartered accountants and business advisers. Navy Trust palette with DM Serif Display headings and Fira Sans body text. Includes a Services custom post type, page templates for About and Contact, and a configurable homepage.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: olusola-olaneye
Tags: business, professional, accounting, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ==========================================================================
   Design tokens — Navy Trust
   ========================================================================== */
:root {
  --navy-900: #0f1b3d;
  --navy-800: #1e3a5f;
  --navy-700: #2f557f;
  --navy-600: #3b6fa0;
  --cloud: #e8edf3;
  --cloud-foreground: #46586f;

  --background: #fbfcfd;
  --foreground: var(--navy-900);
  --card: #ffffff;
  --primary: var(--navy-800);
  --primary-foreground: #ffffff;
  --secondary: var(--cloud);
  --muted: var(--cloud);
  --muted-foreground: var(--cloud-foreground);
  --border: #d3dbe5;

  --radius: 0.5rem;
  --container: 80rem;

  --font-heading: "DM Serif Display", Georgia, serif;
  --font-body: "Fira Sans", system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 500; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

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

ul { margin: 0; padding: 0; list-style: none; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 1rem; left: 1rem;
  z-index: 100;
  clip: auto; width: auto; height: auto;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.container--narrow { max-width: 56rem; text-align: center; }

.section { padding: 4rem 0; }
@media (min-width: 640px) { .section { padding: 6rem 0; } }

.section--muted { background-color: var(--muted); }
.section--light { background-color: var(--background); }

.grid { display: grid; gap: 2rem; }
@media (min-width: 768px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  margin: 0;
}

.eyebrow--light { color: var(--navy-600); }

.lead { font-size: 1.125rem; color: var(--muted-foreground); }
.muted { color: var(--muted-foreground); }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary { background-color: var(--primary); color: var(--primary-foreground); }
.btn--primary:hover { background-color: var(--navy-700); }

.btn--white { background-color: #fff; color: var(--navy-900); }
.btn--white:hover { background-color: rgba(255, 255, 255, 0.9); }

.btn--ghost {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--primary-foreground);
}
.btn--ghost:hover { background-color: rgba(255, 255, 255, 0.14); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}
.link-arrow:hover { text-decoration: underline; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: rgba(251, 252, 253, 0.95);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.site-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--foreground);
}
.site-brand span { color: var(--muted-foreground); }
@media (min-width: 640px) { .site-brand { font-size: 1.5rem; } }

.main-nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .main-nav { display: flex; } }

.main-nav ul { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-parent > a { color: var(--foreground); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: 0;
  border-radius: var(--radius);
  color: var(--foreground);
  cursor: pointer;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background-color: var(--background);
}
.mobile-nav.is-open { display: block; }
@media (min-width: 768px) { .mobile-nav, .mobile-nav.is-open { display: none; } }

.mobile-nav ul { padding: 1rem 0; }
.mobile-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.mobile-nav a:hover { background-color: var(--muted); color: var(--foreground); }
.mobile-nav .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }

/* ==========================================================================
   Page hero
   ========================================================================== */
.page-hero {
  background-color: var(--navy-900);
  color: var(--primary-foreground);
  padding: 5rem 0;
}
@media (min-width: 640px) { .page-hero { padding: 7rem 0; } }

.page-hero h1 { max-width: 48rem; margin-top: 1rem; }
.page-hero p.lead { max-width: 40rem; margin-top: 1.5rem; color: rgba(253, 253, 254, 0.8); }

/* Home hero with image */
.home-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--navy-900);
  color: var(--primary-foreground);
}
.home-hero__image {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}
.home-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--navy-900), rgba(15, 27, 61, 0.9) 55%, rgba(15, 27, 61, 0.7));
}
.home-hero__content { position: relative; padding: 6rem 0; max-width: 42rem; }
@media (min-width: 640px) { .home-hero__content { padding: 8rem 0; } }
.home-hero__content h1 { margin-top: 1rem; }
.home-hero__content p { margin-top: 1.5rem; font-size: 1.125rem; color: rgba(253, 253, 254, 0.8); }
.home-hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  display: flex;
  flex-direction: column;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(15, 27, 61, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card--link:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(15, 27, 61, 0.1); }
.card h3 { margin-top: 1.5rem; }
.card p { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--muted-foreground); flex: 1; }
.card .link-arrow { margin-top: 1.5rem; }
.card--center { text-align: center; }
.card--center .icon-circle { margin-left: auto; margin-right: auto; }

.icon-square {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background-color: var(--secondary);
  color: var(--navy-700);
}
.icon-square--lg { width: 4rem; height: 4rem; border-radius: 1rem; }

.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.icon-circle--lg { width: 3.5rem; height: 3.5rem; }

.panel {
  background-color: var(--muted);
  border-radius: 1rem;
  padding: 2rem;
}
@media (min-width: 1024px) { .panel { padding: 2.5rem; } }

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  color: var(--foreground);
}
.feature-list .dot {
  margin-top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  flex-shrink: 0;
  border-radius: 999px;
  background-color: var(--primary);
}
.feature-list svg { color: var(--primary); flex-shrink: 0; margin-top: 0.2rem; }

.media-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1rem;
  background-color: var(--navy-800);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }

.reason { display: flex; gap: 1rem; }
.reason h4 { margin: 0; color: var(--foreground); }
.reason p { margin-top: 0.25rem; font-size: 0.9375rem; color: var(--muted-foreground); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 4rem 0;
  text-align: center;
}
@media (min-width: 640px) { .cta { padding: 6rem 0; } }
.cta p { margin: 1rem auto 0; max-width: 40rem; color: rgba(253, 253, 254, 0.8); }
.cta .btn { margin-top: 2rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.form-row { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.5rem; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field input,
.field textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--foreground);
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.field input:focus,
.field textarea:focus { outline: 2px solid var(--navy-600); outline-offset: 1px; }

.contact-list li { display: flex; align-items: flex-start; gap: 1rem; margin-top: 1.5rem; }
.contact-list .label { font-size: 0.8125rem; font-weight: 500; color: var(--muted-foreground); }
.contact-list .value { margin-top: 0.15rem; font-weight: 500; color: var(--foreground); }
.contact-list a.value:hover { color: var(--primary); }

.notice {
  margin-top: 1.5rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--muted);
  font-size: 0.9375rem;
}
.notice--error { border-color: #d9534f; color: #a3302c; background-color: #fdeceb; }

/* ==========================================================================
   Entry / blog content
   ========================================================================== */
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content p,
.entry-content li { color: var(--muted-foreground); line-height: 1.75; }
.entry-content h2,
.entry-content h3 { color: var(--foreground); margin-top: 2rem; }
.entry-content ul { list-style: disc; padding-left: 1.25rem; }
.entry-content ol { list-style: decimal; padding-left: 1.25rem; }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-content blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
  font-style: italic;
}
.entry-meta { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.5rem; }

.post-card h2 { font-size: 1.5rem; }
.pagination { margin-top: 3rem; display: flex; gap: 0.5rem; justify-content: center; }
.pagination .page-numbers {
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
}
.pagination .current { background-color: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

/* WordPress core alignment classes */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 0.8125rem; color: var(--muted-foreground); }
.sticky, .gallery-caption, .bypostauthor { display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--navy-900);
  color: var(--primary-foreground);
  border-top: 1px solid var(--border);
}
.site-footer__inner { padding: 3rem 0; }
.site-footer h3 { font-size: 1.25rem; }
.site-footer h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(253, 253, 254, 0.8);
}
.site-footer p,
.site-footer li { font-size: 0.875rem; color: rgba(253, 253, 254, 0.8); }
.site-footer li { margin-top: 0.5rem; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(253, 253, 254, 0.6);
}

/* 404 */
.error-404 { text-align: center; padding: 6rem 0; }
.error-404 .code { font-family: var(--font-heading); font-size: 5rem; color: var(--navy-800); }
