/*
Theme Name: Marina Transport
Theme URI: https://marinatransportllc.com/
Author: Marina Transport LLC
Description: Custom theme for Marina Transport LLC: heavy machinery rental, transport and construction materials. Activating it creates the Home, About, Services, Fleet and Contact pages, the main menu and the fleet list.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: marina-transport
*/
:root {
  --bg: #f2f0eb;
  --surface: #ffffff;
  --ink: #16181b;
  --ink-2: #24272c;
  --muted: #5e636b;
  --line: #d9d5cc;
  --accent: #e8590c;
  --accent-dark: #c44a08;
  --radius: 4px;
  --wrap: 1200px;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --sans: "IBM Plex Sans", system-ui, "Segoe UI", sans-serif;
  --display: "Archivo", "Arial Black", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; }
h1 { font-size: clamp(42px, 7vw, 92px); }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: 22px; letter-spacing: -0.01em; line-height: 1.15; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 15px 24px; border: 2px solid var(--accent); border-radius: var(--radius); cursor: pointer;
  font-family: var(--sans); transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.arrow::after { content: "→"; }
.link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.link:hover { color: var(--accent); }

/* Top bar + header */
.topbar { background: var(--ink); color: rgba(255,255,255,.7); font-family: var(--mono); font-size: 12px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.topbar a { text-decoration: none; color: #fff; }
.topbar .tb-right { display: flex; gap: 22px; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(242,240,235,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 18px; letter-spacing: -0.04em; }
.brand-text { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1; letter-spacing: -0.02em; }
.brand-text small { display: block; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .18em; color: var(--muted); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav .menu { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav .menu a { text-decoration: none; font-weight: 500; font-size: 15px; position: relative; padding: 6px 0; display: block; }
.nav .menu .current-menu-item > a::after, .nav .menu .current_page_item > a::after, .nav .menu a:hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.nav .btn { padding: 11px 18px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); width: 44px; height: 44px; font-size: 20px; cursor: pointer; border-radius: var(--radius); color: var(--ink); }

/* Photo placeholders (replace with real photos) */
.ph {
  position: relative; background-color: #e6e2d9;
  background-image: repeating-linear-gradient(135deg, rgba(22,24,27,.07) 0 1px, transparent 1px 14px);
  display: flex; align-items: flex-end; min-height: 260px; border-radius: var(--radius); overflow: hidden;
}
.ph span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--bg); padding: 6px 10px; margin: 14px; }
.ph.dark { background-color: var(--ink-2); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 1px, transparent 1px 14px); }
.ph.dark span { background: var(--ink); color: rgba(255,255,255,.6); }

/* Home hero */
.hero { padding: 72px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: end; }
.hero h1 .accent { display: inline-block; }
.hero-lead { font-size: 19px; color: var(--muted); max-width: 520px; margin: 28px 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .ph { min-height: 480px; }
.hero-meta { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 64px; }
.hero-meta div { padding: 26px 22px; border-right: 1px solid var(--line); }
.hero-meta div:last-child { border-right: 0; }
.hero-meta strong { display: block; font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.hero-meta span { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* Marquee */
.marquee { background: var(--accent); color: #fff; overflow: hidden; white-space: nowrap; padding: 16px 0; }
.marquee-track { display: inline-flex; gap: 40px; animation: scroll 40s linear infinite; font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .01em; }
.marquee-track span::after { content: "✦"; margin-left: 40px; opacity: .6; font-size: 14px; vertical-align: middle; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Sections */
.section { padding: 104px 0; }
.section.white { background: var(--surface); }
.section.dark { background: var(--ink); color: #fff; }
.section.dark .muted { color: rgba(255,255,255,.6); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.sec-head h2 { max-width: 720px; margin-top: 14px; }
.sec-head p { max-width: 420px; }

/* Service rows (home) */
.service-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 90px 1fr 1.2fr 40px; gap: 32px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .25s; }
.service-row:hover { padding-left: 12px; }
.service-row:hover .go { color: var(--accent); transform: translateX(4px); }
.service-row .num { font-family: var(--mono); color: var(--accent); font-size: 14px; }
.service-row h3 { font-size: clamp(24px, 2.6vw, 34px); }
.service-row .go { font-size: 26px; transition: transform .25s, color .25s; }

/* Fleet cards */
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.machine { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.machine:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(22,24,27,.08); }
.machine .ph { min-height: 190px; border-radius: 0; }
.machine-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.machine .cat { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.machine p { color: var(--muted); font-size: 15px; flex: 1; }
.machine .specs { display: flex; flex-wrap: wrap; gap: 6px; }
.machine .specs span { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line); padding: 4px 8px; border-radius: 2px; }
.machine .req { margin-top: 8px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--accent); }
.machine .req:hover { text-decoration: underline; }
.machine.hide { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 10px 16px; background: transparent; border: 1px solid var(--ink); color: var(--ink); border-radius: 2px; cursor: pointer; }
.chip.active, .chip:hover { background: var(--ink); color: #fff; }
.chip .count { opacity: .55; margin-left: 6px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.step { padding: 32px 28px 8px 0; border-right: 1px solid rgba(255,255,255,.12); padding-left: 28px; }
.step:first-child { padding-left: 0; }
.step:last-child { border-right: 0; }
.step .label { display: block; margin-bottom: 40px; }
.step h3 { margin-bottom: 10px; }
.section:not(.dark) .steps { border-top-color: var(--line); }
.section:not(.dark) .step { border-right-color: var(--line); }

/* CTA band */
.cta { background: var(--accent); color: #fff; padding: 80px 0; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { max-width: 680px; }
.cta .btn { background: var(--ink); border-color: var(--ink); }
.cta .btn:hover { background: #000; border-color: #000; }

/* Page hero (inner pages) */
.page-hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.page-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: end; }
.page-hero p { font-size: 19px; color: var(--muted); }

/* Generic grids */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two.top { align-items: start; }
.prose p { color: var(--muted); font-size: 17px; margin-bottom: 18px; }
.prose h2 { margin: 14px 0 28px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts div { background: var(--surface); padding: 32px 26px; }
.facts strong { display: block; font-family: var(--display); font-size: 48px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
.facts span { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { border-top: 3px solid var(--accent); padding-top: 22px; }
.tile h3 { margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: 15px; }
.section.dark .tile p { color: rgba(255,255,255,.6); }

/* Service detail blocks */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 72px 0; border-bottom: 1px solid var(--line); }
.svc:last-child { border-bottom: 0; }
.svc:nth-child(even) .ph { order: 2; }
.svc .ph { min-height: 400px; }
.svc h2 { margin: 14px 0 20px; }
.svc p { color: var(--muted); font-size: 17px; margin-bottom: 24px; }
.ticks { list-style: none; display: grid; gap: 12px; margin-bottom: 32px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 40px 26px 0; font-family: var(--display); font-weight: 700; font-size: 20px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font-size: 28px; color: var(--accent); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 26px 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.contact-cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-cards a, .contact-cards div { background: var(--surface); padding: 24px 26px; text-decoration: none; display: block; }
.contact-cards a:hover { background: #fbfaf7; }
.contact-cards .label { color: var(--muted); display: block; margin-bottom: 6px; }
.contact-cards strong { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -0.01em; word-break: break-word; }
.form { background: var(--surface); border: 1px solid var(--line); padding: 36px; border-radius: var(--radius); display: grid; gap: 18px; }
.form h2 { font-size: 32px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.form input, .form select, .form textarea {
  font: 400 16px var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  padding: 13px 14px; border-radius: var(--radius); width: 100%; text-transform: none; letter-spacing: 0;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); background: #fff; }
.form .note { font-size: 13px; color: var(--muted); }
.map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 420px; background: #e6e2d9; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.6) contrast(1.05); }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.65); padding: 80px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .brand-text { color: #fff; }
.footer .brand-text small { color: rgba(255,255,255,.5); }
.footer h4 { font-family: var(--mono); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-about { margin-top: 20px; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-family: var(--mono); font-size: 12px; }

.wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: #25d366; color: #073b1d; text-decoration: none; font-weight: 600; font-size: 15px; padding: 13px 20px; border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,.18); }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid, .page-hero-grid, .two, .svc, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc:nth-child(even) .ph { order: 0; }
  .hero .ph { min-height: 320px; }
  .svc .ph { min-height: 280px; }
  .steps, .tiles, .facts { grid-template-columns: 1fr 1fr; }
  .step { border-right: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 60px 1fr 30px; }
  .service-row p { grid-column: 2 / 3; }
  .service-row .go { grid-row: 1; grid-column: 3; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; }
  .nav.open { display: flex; }
  .nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .nav .menu a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav .menu a::after { display: none !important; }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-meta div:nth-child(2) { border-right: 0; }
  .hero-meta div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .topbar .tb-left { display: none; }
}
@media (max-width: 560px) {
  .steps, .tiles, .facts, .footer-grid, .form .row { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr 30px; gap: 12px; }
  .service-row .num { grid-column: 1; }
  .service-row h3, .service-row p { grid-column: 1 / -1; }
  .service-row .go { grid-row: 1; grid-column: 2; }
  .form { padding: 24px; }
  .hero-meta strong, .facts strong { font-size: 34px; }
}

/* Real photos (uploaded in Customizer / featured images) */
.ph.has-img { background: #ddd; }
.ph.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.custom-logo-link { display: flex; align-items: center; }
.custom-logo-link img { max-height: 48px; width: auto; }
.notice { padding: 16px 18px; border-radius: var(--radius); font-weight: 500; }
.notice.ok { background: #e6f4ea; color: #1e5631; border: 1px solid #b7dfc3; }
.notice.err { background: #fdecea; color: #8a1c13; border: 1px solid #f3c1bb; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.entry { max-width: 820px; }
.entry > * + * { margin-top: 1.1em; }
.entry h2 { font-size: 34px; margin-top: 1.6em; }
.entry h3 { margin-top: 1.4em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry img { height: auto; border-radius: var(--radius); }
.entry a { color: var(--accent); }
.post-list { display: grid; gap: 28px; max-width: 820px; }
.post-list article { border-bottom: 1px solid var(--line); padding-bottom: 28px; }
.post-list h2 { font-size: 30px; margin: 8px 0 10px; }
.post-list h2 a { text-decoration: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
#quote, .svc { scroll-margin-top: 100px; }
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }
