/*
Theme Name: Deep Ocean Water Recovery
Description: Restored company pages and media on a clean WordPress theme.
Version: 1.0.0
Text Domain: deepocean-recovery
*/
:root {
  color-scheme: light;
  --navy: #082681;
  --blue: #0256c3;
  --ink: #192b43;
  --muted: #486078;
  --surface: #f4f5f8;
  --line: #d8e1eb;
  --content: min(1140px, calc(100% - 48px));
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 1rem/1.65 system-ui, sans-serif; }
a { color: var(--blue); text-underline-offset: .16em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #31a8f5; outline-offset: 4px; }
img { max-width: 100%; height: auto; vertical-align: middle; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 3.2vw, 3.1rem); margin: 0 0 1.2rem; letter-spacing: -.035em; }
h2 { font-size: clamp(1.4rem, 2.25vw, 2.1rem); letter-spacing: -.025em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.wrap { width: var(--content); margin-inline: auto; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 10; padding: .6rem 1rem; background: white; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { background: var(--navy); color: white; }
.header-inner { display: flex; gap: 2rem; align-items: center; justify-content: space-between; min-height: 90px; }
.brand { color: white; text-decoration: none; font-size: 1.28rem; font-weight: 750; }
.brand img { width: min(235px, 45vw); height: auto; }
.site-header ul, .site-footer ul { list-style: none; margin: 0; padding: 0; }
.desktop-nav > ul { display: flex; gap: clamp(.35rem, 1.1vw, .95rem); align-items: center; }
.site-header li { position: relative; }
.site-header nav a { color: inherit; display: block; padding: .6rem .4rem; text-decoration: none; font-size: .93rem; font-weight: 650; }
.site-header nav a:hover, .site-header .current-menu-item > a { text-decoration: underline; text-underline-offset: .33em; }
.desktop-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: white; color: var(--ink); border: 1px solid var(--line); min-width: 210px; padding: .45rem; z-index: 5; box-shadow: 0 12px 28px #07184025; }
.desktop-nav li:hover > .sub-menu, .desktop-nav li:focus-within > .sub-menu { display: block; }
.mobile-nav { display: none; }
.page-title { background: var(--surface); padding-block: clamp(2.1rem, 5vw, 3.85rem); margin-bottom: clamp(1.85rem, 5vw, 3.25rem); }
.page-title h1 { margin: 0; }
.main-content { padding-bottom: clamp(2.75rem, 7vw, 5rem); min-height: 42vh; }

.reading { max-width: 760px; margin-inline: auto; }
.entry-date { color: var(--muted); font-size: .91rem; margin: .6rem 0; }
.recovered-row { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: clamp(.9rem, 2.4vw, 2rem); row-gap: 1.25rem; margin: 0 0 clamp(1.25rem, 3vw, 2.4rem); }
.recovered-col { min-width: 0; grid-column: span 12; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.recovered-tint { background: var(--surface); padding: clamp(1.2rem, 3vw, 2.3rem); border-radius: .6rem; }
.recovered-copy { margin-bottom: .75rem; }
.recovered-copy > :last-child { margin-bottom: 0; }
.recovered-label { display: inline-block; color: var(--blue); font-size: .82rem; letter-spacing: .1em; font-weight: 750; margin-bottom: .65rem; }
.recovered-image, .recovered-caption { margin: 0 0 1.1rem; }
.recovered-image img { border-radius: .35rem; }
.recovered-image.center { text-align: center; }
.recovered-image.right { text-align: right; }
.image-medium img { max-width: min(300px, 100%); }
.recovered-gallery { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .8rem; }
.recovered-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.recovered-video { aspect-ratio: 16/9; overflow: hidden; background: #0e214d; border-radius: .4rem; margin: 0 0 1rem; }
.recovered-video iframe { border: 0; display: block; width: 100%; height: 100%; }
.recovered-stat, .recovered-service, .recovered-person, .recovered-contact { height: 100%; padding: 1.1rem; border: 1px solid var(--line); border-radius: .45rem; }
.recovered-stat, .recovered-service, .recovered-person { text-align: center; }
.recovered-stat strong { display: block; color: var(--navy); font-size: clamp(1.45rem, 3vw, 2.4rem); }
.recovered-stat img, .recovered-service img { width: 65px; height: 65px; object-fit: contain; }
.recovered-person img { width: 160px; aspect-ratio: 1; object-fit: cover; }
.recovered-service h3, .recovered-person h3, .recovered-contact h2 { margin-top: 0; }
.recovered-button { display: inline-block; padding: .65rem 1rem; background: var(--navy); color: white; border-radius: .3rem; text-decoration: none; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.2rem; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: .45rem; }
.post-card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.post-card-body { padding: 1rem; }
.post-card h2, .post-card h3 { margin: 0; font-size: 1.2rem; }
blockquote { margin: 1.5rem 0; padding: .5rem 1.2rem; border-left: 4px solid var(--blue); background: var(--surface); }
.site-footer { background: #091947; color: white; padding: 2rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem 2rem; }
.site-footer p { margin: 0; }
.site-footer a { color: white; }
@media (max-width: 920px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { cursor: pointer; font-weight: 650; }
  .mobile-nav[open] nav { position: absolute; z-index: 6; right: 0; left: 0; padding: 1rem max(24px, calc((100vw - 1140px)/2)); background: white; color: var(--ink); box-shadow: 0 12px 18px #07184024; }
  .mobile-nav .sub-menu { padding-left: 1rem; }
}
@media (max-width: 690px) {
  :root { --content: calc(100% - 32px); }
  .header-inner { min-height: 72px; }
  .recovered-col { grid-column: span 12; }
  .recovered-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .post-grid { grid-template-columns: 1fr; }
}

.ocean-hero { position: relative; isolation: isolate; display: grid; align-items: center; background: #091947; min-height: clamp(340px, 44vw, 515px); }
.ocean-hero > img, .ocean-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; object-fit: cover; }
.ocean-hero::after { content: ''; z-index: -1; background: linear-gradient(90deg, #071639f2, #071639ab 55%, #0716394a); }
.hero-copy { padding-block: clamp(2rem, 5vw, 4.6rem); color: white; }
.hero-copy h1 { max-width: 780px; font-size: clamp(2rem, 5.5vw, 4.15rem); color: white; }
.hero-copy p { max-width: 610px; font-size: clamp(1rem, 2vw, 1.2rem); }
.hero-copy .recovered-button { background: #fff; color: var(--navy); }
.hero-features { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; padding-block: clamp(1.8rem, 4vw, 3.25rem); }
.hero-features article { overflow: hidden; border: 1px solid var(--line); border-radius: .45rem; }
.hero-features img { width: 100%; aspect-ratio: 2.2/1; object-fit: cover; }
.hero-features article div { padding: .9rem; }
.hero-features h2 { font-size: 1.1rem; margin: 0 0 .45rem; }
.hero-features p { margin: 0; }
@media (max-width: 690px) { .hero-features { grid-template-columns: 1fr; } }
