/*
Theme Name: Amalgamated Towing
Description: Custom theme for Amalgamated Towing. Navy and orange design with service pages, fleet, accordions and one-click page setup.
Version: 1.0.0
Requires at least: 6.3
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: amalgamated-towing
*/

:root {
	--navy: #0E1B3A;
	--navy-deep: #091226;
	--rust: #C2551A;
	--rust-text: #B44E15;
	--rust-light: #F08A4B;
	--mist: #F3F4F7;
	--slate: #3A4563;
	--line: #C9CEDB;
	--side: max(24px, calc((100% - 1192px) / 2));
	--head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Barlow', system-ui, sans-serif; font-size: 17px; line-height: 1.5; color: var(--navy); background: #FFFFFF; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
a { color: var(--rust-text); }
a:hover { color: #8A3B0F; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; text-transform: uppercase; margin: 0; line-height: 1; text-wrap: balance; }
.screen-reader-text { position: absolute; left: -9999px; }
.screen-reader-text:focus { left: 16px; top: 16px; background: #FFFFFF; padding: 12px 16px; z-index: 10; }
.amt-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.amt-eyebrow { margin: 0; font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust-text); }
.amt-eyebrow--light { color: var(--rust-light); }

/* Buttons */
.amt-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 26px; letter-spacing: 0.04em; text-transform: uppercase; padding: 14px 30px; min-height: 60px; }
.amt-btn--orange { background: var(--rust); color: #FFFFFF; }
.amt-btn--orange:hover { background: #A44612; color: #FFFFFF; }
.amt-btn--dark { background: var(--navy); color: #FFFFFF; align-self: flex-start; }
.amt-btn--dark:hover { background: #1A2A52; color: #FFFFFF; }
.amt-btn--outline { border: 2px solid var(--navy); color: var(--navy); font-size: 22px; }
.amt-btn--outline:hover { background: var(--navy); color: #FFFFFF; }
.amt-btn--small { font-size: 21px; padding: 10px 22px; min-height: 46px; }
.amt-btn--big { font-weight: 800; font-size: 34px; padding: 16px 30px; min-height: 72px; }

/* Top bar and header */
.amt-topbar { background: var(--navy); color: #FFFFFF; font-size: 15px; font-weight: 500; }
.amt-topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; }
.amt-header { border-bottom: 3px solid var(--rust); background: #FFFFFF; }
.amt-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 16px; padding-bottom: 16px; }
.amt-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; line-height: 1; }
.amt-logo__text { display: flex; flex-direction: column; gap: 3px; }
.amt-logo__name { font-family: var(--head); font-weight: 800; font-style: italic; font-size: 34px; letter-spacing: 0.01em; text-transform: uppercase; color: var(--navy); }
.amt-logo__sub { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--rust-text); }
.amt-logo__sub i { flex: 1; height: 3px; background: var(--rust); }
.custom-logo { max-height: 60px; width: auto; display: block; }
.amt-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-family: var(--head); font-weight: 600; font-size: 19px; letter-spacing: 0.05em; text-transform: uppercase; }
.amt-nav > a:not(.amt-btn) { color: var(--navy); text-decoration: none; padding: 12px 0; }
.amt-nav > a:not(.amt-btn):hover, .amt-nav > a[aria-current="page"] { color: var(--rust-text); }

/* Hero */
.amt-hero { background: var(--mist); }
.amt-hero__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-top: 40px; padding-bottom: 64px; }
.amt-hero h1 { font-size: clamp(42px, 6.2vw, 78px); line-height: 0.96; max-width: 14em; }
.amt-lead { margin: 0; font-size: 20px; color: var(--slate); max-width: 36em; }
.amt-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--slate); }
.amt-hero__split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 72px; }
.amt-hero__text { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.amt-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.amt-hero__photo { flex: 1 1 480px; min-width: 0; height: 420px; background: var(--navy); clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%); }
.amt-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Strip and stats */
.amt-strip { background: var(--navy); color: #FFFFFF; }
.amt-strip__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px 32px; padding-top: 26px; padding-bottom: 26px; font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; }
.amt-strip__inner span { display: flex; align-items: center; gap: 12px; }
.amt-strip__inner span::before { content: ""; width: 10px; height: 10px; background: var(--rust-light); transform: rotate(45deg); flex: none; }
.amt-stats { background: var(--rust); color: #FFFFFF; }
.amt-stats__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 24px 32px; padding-top: 44px; padding-bottom: 44px; }
.amt-stats__inner div { display: flex; flex-direction: column; }
.amt-stats__inner strong { font-family: var(--head); font-weight: 800; font-size: 64px; line-height: 1; }
.amt-stats__inner span { font-weight: 600; font-size: 18px; }

/* Bands */
.amt-band { background: var(--mist); padding: 72px 0; }
.amt-band--white { background: #FFFFFF; padding: 80px 0; }
.amt-h2 { font-size: clamp(38px, 5vw, 58px); }
.amt-h2 span { color: var(--rust-text); }
.amt-two .amt-h2 { font-size: clamp(34px, 4vw, 50px); }
.amt-h2--small { font-size: clamp(32px, 4.2vw, 46px); margin-bottom: 24px; }
.amt-band .amt-eyebrow { margin: 8px 0 36px; }

/* Services */
.amt-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 24px; align-items: stretch; }
.amt-service { border: 1px solid var(--line); border-top: 6px solid var(--rust); padding: 28px; display: flex; flex-direction: column; gap: 16px; background: #FFFFFF; }
.amt-service h3 { font-size: 34px; }
.amt-service p { margin: 0; color: var(--slate); }
.amt-service ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.amt-more { margin-top: auto; font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; padding: 12px 0; }
.amt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; margin-top: 28px; }
.amt-card { display: block; background: #FFFFFF; border: 1px solid var(--line); border-top: 6px solid var(--rust); padding: 24px; text-decoration: none; color: var(--navy); }
.amt-card:hover { border-color: var(--rust); color: var(--navy); }
.amt-card h3 { font-size: 28px; margin-bottom: 8px; }
.amt-card p { margin: 0; color: var(--slate); }

/* Fleet */
.amt-fleet { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 20px; }
.amt-unit { background: #FFFFFF; border: 1px solid var(--line); display: flex; flex-direction: column; }
.amt-unit__img { height: 170px; padding: 10px; border-bottom: 1px solid var(--line); background: #FFFFFF; }
.amt-unit__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.amt-unit__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.amt-unit__body h2, .amt-unit__body h3 { font-size: 26px; }
.amt-unit__body p { margin: 0; color: var(--slate); font-size: 16px; }
.amt-unit__body .amt-unit__spec { font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--rust-text); }

/* Two-column blocks */
.amt-two { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.amt-two__head { flex: 1 1 380px; min-width: 0; overflow-wrap: break-word; display: flex; flex-direction: column; gap: 14px; }
.amt-two__head p { margin: 0; color: var(--slate); font-size: 19px; }
.amt-two__head .amt-eyebrow { margin: 0; color: var(--rust-text); font-size: 20px; }
.amt-two__body { flex: 2 1 520px; min-width: 0; font-size: 18px; color: var(--slate); }
.amt-two__body p { margin: 0 0 18px; }
.amt-arealist { margin: 0; padding-left: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 6px 32px; color: var(--navy); font-weight: 500; }
.amt-tiles { flex: 2 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.amt-tile { border: 1px solid var(--line); padding: 20px; }
.amt-tile h3 { font-weight: 700; font-size: 22px; margin-bottom: 6px; }
.amt-tile p { margin: 0; color: var(--slate); font-size: 16px; }
.amt-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--head); font-weight: 600; font-size: 19px; letter-spacing: 0.04em; text-transform: uppercase; }
.amt-tags li { background: #FFFFFF; border: 1px solid var(--line); padding: 8px 16px; }

/* Call to action */
.amt-cta { background: var(--navy); color: #FFFFFF; padding: 72px 0; }
.amt-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 56px; }
.amt-cta__text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.amt-cta h2 { font-size: clamp(40px, 6vw, 72px); line-height: 0.96; }
.amt-cta__actions { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.amt-cta__email { color: #FFFFFF; font-weight: 500; font-size: 18px; padding: 10px 0; overflow-wrap: anywhere; }
.amt-cta__email:hover { color: var(--rust-light); }

/* Long-form page content: each Group block with the class amt-section is one band */
.amt-content > .amt-section { padding: 64px var(--side); margin: 0; }
.amt-content > .amt-section:nth-child(even) { background: var(--mist); }
.amt-content--home > .amt-section:nth-child(odd) { background: var(--mist); }
.amt-content--home > .amt-section:nth-child(even) { background: #FFFFFF; }
.amt-section > .wp-block-group__inner-container { display: contents; }
.amt-section h2 { font-size: clamp(32px, 4.2vw, 46px); margin: 0 0 20px; }
.amt-section p, .amt-section ul, .amt-section ol { font-size: 18px; margin: 0 0 16px; max-width: 42em; }
.amt-section p { color: var(--slate); }
.amt-section ul { padding-left: 22px; }
.amt-section ul li { margin-bottom: 8px; }
.amt-section > :last-child, .amt-section details > :last-child { margin-bottom: 0; }
@media (min-width: 860px) {
	.amt-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 56px; align-items: start; }
	.amt-section > *, .amt-section > .wp-block-group__inner-container > * { grid-column: 2; }
	.amt-section > h2, .amt-section > .wp-block-group__inner-container > h2 { grid-column: 1; grid-row: 1 / span 80; margin-bottom: 0; }
}

/* Numbered step cards */
.amt-section ol.amt-steps { list-style: none; padding: 0; max-width: none; counter-reset: amt-step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; }
.amt-steps li { counter-increment: amt-step; background: #FFFFFF; border: 1px solid var(--line); border-top: 4px solid var(--rust); padding: 20px; color: var(--slate); font-size: 16px; }
.amt-steps li::before { content: "0" counter(amt-step); display: block; font-family: var(--head); font-weight: 800; font-size: 26px; line-height: 1; color: var(--rust-text); margin-bottom: 8px; }
.amt-steps li strong { display: block; font-family: var(--head); font-weight: 700; font-size: 22px; text-transform: uppercase; color: var(--navy); line-height: 1.1; margin-bottom: 6px; }
.amt-steps li br { display: none; }

/* Accordions (Details blocks) */
.amt-section details { border-top: 1px solid var(--line); margin: 0; max-width: 46em; }
.amt-section details:last-of-type { border-bottom: 1px solid var(--line); }
.amt-section summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; min-height: 44px; font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--navy); }
.amt-section summary::-webkit-details-marker { display: none; }
.amt-section summary::after { content: "+"; font-family: var(--head); font-weight: 700; font-size: 30px; line-height: 1; color: var(--rust-text); flex: none; }
.amt-section details[open] summary::after { content: "\2013"; }
.amt-section details[open] { padding-bottom: 22px; }

.amt-todo { background: #FFF3BF; color: #5C4400; padding: 1px 4px; }

/* Plain pages and posts */
.amt-content--plain { padding: 64px 0; }
.amt-prose { max-width: 760px; }
.amt-prose h2 { font-size: 30px; margin: 32px 0 12px; }
.amt-prose p { color: var(--slate); font-size: 18px; }
.amt-content > :not(.amt-section) { max-width: 760px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

/* Footer */
.amt-footer { background: var(--navy-deep); color: #C5CBDB; }
.amt-footer a { color: #FFFFFF; }
.amt-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 40px; padding-top: 28px; padding-bottom: 28px; font-size: 15px; }
.amt-footer address { font-style: normal; }

@media (max-width: 600px) {
	.amt-btn { font-size: 22px; padding: 12px 22px; }
	.amt-btn--big { font-size: 28px; }
	.amt-hero__split { padding-top: 40px; padding-bottom: 48px; gap: 32px; }
	.amt-hero__photo { height: 260px; flex-basis: 100%; }
	.amt-content > .amt-section { padding-top: 48px; padding-bottom: 48px; }
	.amt-logo__name { font-size: 28px; }
}
