/*
Theme Name: Offshore Accident Lawyer UK
Theme URI: https://offshoreaccidentlawyeruk.com/
Author: OffshoreAccidentLawyerUK.com
Description: A lightweight, responsive WordPress theme for an offshore accident and maritime injury information website.
Version: 1.1.0
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: offshore-accident-lawyer-uk
Tags: blog, news, custom-logo, custom-menu, featured-images, one-column, two-columns, accessibility-ready
*/

:root {
  --oal-ink: #172533;
  --oal-muted: #5c6975;
  --oal-navy: #102b43;
  --oal-blue: #145b83;
  --oal-red: #bd3434;
  --oal-border: #dce3e8;
  --oal-soft: #f4f7f9;
  --oal-white: #fff;
  --oal-width: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--oal-white);
  color: var(--oal-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
}
a { color: var(--oal-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--oal-red); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #f0b429; outline-offset: 3px;
}
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip: auto !important; clip-path: none; height: auto; width: auto;
  margin: 5px; padding: 15px 23px; background: #fff; color: #000; z-index: 100000;
}
.site-header { border-bottom: 1px solid var(--oal-border); background: #fff; }
.header-inner, .content-wrap, .footer-inner {
  width: min(var(--oal-width), calc(100% - 40px)); margin-inline: auto;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; min-height: 94px; padding-block: 16px;
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.custom-logo { max-height: 64px; width: auto; }
.brand-mark {
  display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px;
  background: var(--oal-navy); color: #fff; border-radius: 8px;
  font-weight: 800; letter-spacing: -1px;
}
.site-title { margin: 0; font-size: 1.25rem; line-height: 1.25; font-weight: 800; }
.site-title a { color: var(--oal-navy); text-decoration: none; }
.site-description { margin: 4px 0 0; color: var(--oal-muted); font-size: .83rem; line-height: 1.4; }
.primary-navigation { margin-left: auto; }
.primary-navigation ul {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: 5px 18px; list-style: none; padding: 0; margin: 0;
}
.primary-navigation li { margin: 0; }
.primary-navigation a {
  color: var(--oal-ink); display: inline-block; padding: 8px 0;
  text-decoration: none; font-size: .92rem; font-weight: 650;
}
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { color: var(--oal-blue); }
.menu-toggle {
  display: none; border: 1px solid var(--oal-border); background: #fff; color: var(--oal-ink);
  border-radius: 7px; padding: 8px 12px; cursor: pointer;
}
.site-main { min-height: 60vh; padding-block: 42px 64px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 46px; align-items: start; }
.content-grid.no-sidebar { grid-template-columns: minmax(0, 820px); justify-content: center; }
.page-heading { margin: 0 0 24px; }
.page-heading h1 { margin: 0 0 8px; color: var(--oal-navy); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.16; letter-spacing: -.035em; }
.page-intro { color: var(--oal-muted); margin: 0; }
.post-card { padding: 0 0 28px; margin: 0 0 30px; border-bottom: 1px solid var(--oal-border); }
.post-card:last-child { margin-bottom: 0; }
.post-card .entry-title { font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.3; margin: 0 0 9px; }
.entry-title a { color: var(--oal-navy); text-decoration: none; }
.entry-title a:hover { color: var(--oal-blue); text-decoration: underline; }
.entry-meta { color: var(--oal-muted); font-size: .86rem; margin: 0 0 12px; }
.entry-summary { margin: 0; }
.entry-summary p { margin: 0 0 12px; }
.read-more { display: inline-block; margin-top: 8px; font-weight: 700; }
.post-thumbnail { display: block; margin: 0 0 18px; }
.post-thumbnail img { display: block; width: 100%; height: auto; border-radius: 8px; }
.single-header { margin-bottom: 26px; }
.single-header h1 { color: var(--oal-navy); font-size: clamp(2rem, 4.2vw, 3.15rem); line-height: 1.15; letter-spacing: -.035em; margin: 0 0 14px; }
.entry-content { overflow-wrap: anywhere; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { color: var(--oal-navy); font-size: clamp(1.45rem, 2.5vw, 1.9rem); line-height: 1.3; margin: 1.8em 0 .55em; }
.entry-content h3 { color: var(--oal-navy); font-size: 1.25rem; line-height: 1.4; margin: 1.6em 0 .5em; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin: 0 0 1.4em; }
.entry-content li { padding-left: .2em; margin-bottom: .35em; }
.entry-content blockquote { margin: 1.5em 0; padding: 8px 20px; border-left: 4px solid var(--oal-blue); background: var(--oal-soft); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95em; }
.entry-content th, .entry-content td { border: 1px solid var(--oal-border); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--oal-soft); }
.entry-content iframe { max-width: 100%; }
.post-taxonomy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; font-size: .9rem; }
.post-taxonomy a { background: var(--oal-soft); border-radius: 4px; padding: 3px 9px; text-decoration: none; }
.sidebar .widget { border: 1px solid var(--oal-border); border-radius: 8px; padding: 20px; margin: 0 0 22px; }
.widget-title { margin: 0 0 12px; color: var(--oal-navy); font-size: 1.12rem; line-height: 1.35; }
.widget ul { padding-left: 1.15em; margin: 0; }
.widget li { margin-bottom: 8px; }
.search-form { display: flex; gap: 8px; }
.search-field { min-width: 0; width: 100%; border: 1px solid #b9c5ce; border-radius: 5px; padding: 9px 10px; }
.search-submit, .button-link {
  border: 0; border-radius: 5px; padding: 10px 14px; background: var(--oal-blue);
  color: #fff; cursor: pointer; text-decoration: none; font-weight: 700;
}
.search-submit:hover, .button-link:hover { background: var(--oal-navy); color: #fff; }
.pagination, .post-navigation { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--oal-border); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-block; padding: 7px 12px; border: 1px solid var(--oal-border); border-radius: 5px; text-decoration: none; }
.page-numbers.current { background: var(--oal-navy); color: #fff; border-color: var(--oal-navy); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 20px; }
.post-navigation a { font-weight: 700; }
.comments-area { border-top: 1px solid var(--oal-border); margin-top: 40px; padding-top: 24px; }
.comments-title { color: var(--oal-navy); }
.comment-list { padding-left: 22px; }
.comment-body { margin-bottom: 20px; }
.comment-form label { display: block; font-weight: 650; }
.comment-form input:not([type=submit]), .comment-form textarea {
  width: 100%; max-width: 100%; border: 1px solid #b9c5ce; border-radius: 5px; padding: 10px;
}
.comment-form input[type=submit] { background: var(--oal-blue); color: #fff; border: 0; border-radius: 5px; padding: 10px 16px; cursor: pointer; }
.site-footer { background: var(--oal-navy); color: #eaf0f4; padding: 34px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-title { color: #fff; font-size: 1.05rem; margin: 0 0 12px; }
.footer-text { margin: 0; color: #d0dbe3; font-size: .92rem; }
.footer-navigation ul, .footer-widget ul { list-style: none; padding: 0; margin: 0; }
.footer-navigation li, .footer-widget li { margin: 0 0 7px; }
.footer-navigation a, .footer-widget a { color: #edf4f8; text-decoration: none; }
.footer-navigation a:hover, .footer-widget a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid #355066; color: #c7d4dd; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.notice-box { background: var(--oal-soft); border-left: 4px solid var(--oal-blue); padding: 14px 18px; }
.alignwide { max-width: 1000px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: none; }
.wp-block-image img, .wp-block-gallery img { border-radius: 5px; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; gap: 16px; }
.sticky { border-left: 3px solid var(--oal-blue); padding-left: 18px; }
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; }
  .menu-toggle { display: inline-block; margin-left: auto; }
  .primary-navigation { display: none; width: 100%; margin: 0; }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: block; padding: 10px 0 0; border-top: 1px solid var(--oal-border); }
  .primary-navigation a { display: block; padding: 9px 0; }
  .content-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .sidebar .widget { margin: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-inner, .content-wrap, .footer-inner { width: min(100% - 28px, var(--oal-width)); }
  .header-inner { min-height: 78px; gap: 12px; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .site-title { font-size: 1.05rem; }
  .site-description { font-size: .75rem; }
  .site-main { padding-block: 30px 44px; }
  .sidebar, .footer-grid { grid-template-columns: 1fr; }
  .single-header h1 { font-size: 2rem; }
  .entry-content table { display: block; overflow-x: auto; }
}

/* Brand fallback and usability refinements */
.brand-logo-fallback { display: inline-flex; align-items: center; flex: 0 1 310px; }
.brand-logo-fallback img { display: block; width: 100%; max-width: 310px; height: auto; }
.brand { gap: 14px; }
@media (max-width: 560px) {
  .brand { flex: 1 1 210px; }
  .brand-logo-fallback { max-width: 245px; }
  .brand-logo-fallback img { max-width: 245px; }
}
