/*
Theme Name: Maritime Appliance Rentals
Theme URI: https://nbappliancerentals.com
Author: Maritime Appliance Rentals
Description: Custom single-page WordPress theme for Maritime Appliance Rentals, formerly NB Appliance Rentals.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: Proprietary
Text Domain: maritime-appliance-rentals
*/

:root {
  --background: #f7f4ee;
  --foreground: #17212b;
  --muted: #59636e;
  --panel: #ffffff;
  --line: #d8d2c8;
  --primary: #1f6f8b;
  --primary-dark: #124a61;
  --accent: #d96d3b;
  --green: #2f766a;
  --shadow: 0 24px 70px rgba(23, 33, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

main {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(216, 210, 200, 0.8);
  background: rgba(247, 244, 238, 0.94);
  padding: 14px clamp(20px, 4vw, 56px);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  min-width: 230px;
  align-items: center;
  gap: 12px;
}

.brand span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-emblem {
  position: relative;
  flex: 0 0 auto;
  height: 58px;
  width: 50px;
  border: 3px solid var(--primary);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0 48%, #dcecf1 48% 100%);
  box-shadow: 0 10px 24px rgba(31, 111, 139, 0.12);
}

.brand-emblem::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 9px;
  height: 19px;
  width: 19px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: #ffffff;
}

.brand-emblem::after {
  content: "";
  position: absolute;
  bottom: 9px;
  left: 9px;
  right: 9px;
  height: 4px;
  border-radius: 999px;
  background: var(--primary);
}

.brand-emblem-large {
  height: 118px;
  width: 100px;
  border-width: 5px;
}

.brand-emblem-large::before {
  left: 21px;
  top: 20px;
  height: 38px;
  width: 38px;
  border-width: 5px;
}

.brand-emblem-large::after {
  bottom: 21px;
  left: 20px;
  right: 20px;
  height: 7px;
}

.brand-emblem {
  height: 62px;
  width: 92px;
  border: 0;
  border-radius: 0;
  background: transparent url("assets/maritime-appliance-rentals-logo.png") center / contain no-repeat;
  box-shadow: none;
}

.brand-emblem::before,
.brand-emblem::after {
  content: none;
  display: none;
}

.brand-emblem-large {
  height: 150px;
  width: min(100%, 250px);
}

.brand strong {
  color: var(--primary-dark);
  font-size: 0.98rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.74rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  color: #30404d;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a:hover,
.footer-links a:hover,
.service-contact a:hover {
  color: var(--primary);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 800;
  line-height: 1.1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--primary);
  box-shadow: 0 14px 28px rgba(31, 111, 139, 0.2);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--primary-dark);
}

.section {
  padding: clamp(54px, 8vw, 104px) clamp(20px, 4vw, 56px);
}

.hero {
  display: grid;
  min-height: calc(100vh - 82px);
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(34px, 6vw, 80px);
  padding-top: clamp(36px, 6vw, 80px);
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  color: #102334;
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: #142635;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  color: #17212b;
  font-size: 1.13rem;
  font-weight: 900;
  line-height: 1.22;
}

.hero-lede,
.section-heading p,
.landlord-copy p,
.service-card p,
.contact-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.75;
}

.hero-lede {
  max-width: 710px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.trust-row span,
.mini-rentals span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #334554;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 8px 12px;
}

.hero-panel {
  border: 1px solid rgba(216, 210, 200, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), #ffffff),
    radial-gradient(circle at top left, rgba(31, 111, 139, 0.12), transparent 40%);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 34px);
}

.panel-logo {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  text-align: center;
}

.panel-logo strong {
  color: var(--primary-dark);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.15;
}

.panel-logo small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.availability-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
  padding: 16px;
}

.availability-box p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.status-dot {
  flex: 0 0 auto;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(47, 118, 106, 0.12);
  margin-top: 5px;
}

.mini-rentals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.intro-band {
  background: var(--primary-dark);
  color: #ffffff;
  padding-bottom: clamp(34px, 5vw, 54px);
  padding-top: clamp(34px, 5vw, 54px);
}

.intro-band p {
  margin: 0 auto;
  max-width: 1050px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.6;
}

.intro-band strong {
  color: #ffffff;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 34px;
}

.rental-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.rental-card,
.process-card,
.faq-item,
.service-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(23, 33, 43, 0.06);
}

.rental-card {
  min-height: 390px;
  padding: 24px;
}

.rental-card p,
.process-card p,
.faq-item p {
  color: var(--muted);
  line-height: 1.65;
}

.rental-card ul {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
}

.rental-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334554;
  font-weight: 800;
  list-style: none;
}

.rental-card li::before {
  content: "";
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.appliance-mark {
  position: relative;
  height: 86px;
  width: 74px;
  border: 3px solid var(--primary);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0 45%, #dcecf1 45% 100%);
  margin-bottom: 22px;
}

.appliance-mark::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 12px;
  height: 28px;
  width: 28px;
  border: 3px solid var(--accent);
  border-radius: 50%;
}

.appliance-mark::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  height: 4px;
  border-radius: 999px;
  background: var(--primary);
}

.process-section {
  background: #ffffff;
}

.process-card {
  min-height: 250px;
  padding: 24px;
}

.process-card span {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--primary);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.landlord-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.62fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  background: #eef6f7;
}

.landlord-copy {
  max-width: 790px;
}

.landlord-list {
  display: grid;
  gap: 12px;
}

.landlord-list div {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #c9dde2;
  border-radius: 8px;
  background: #ffffff;
  padding: 16px 18px;
}

.landlord-list span {
  display: inline-flex;
  flex: 0 0 auto;
  height: 28px;
  width: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 900;
}

.landlord-list p {
  margin: 0;
  color: #233746;
  font-weight: 800;
}

.service-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 16px;
}

.service-card {
  padding: clamp(24px, 4vw, 42px);
}

.service-contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.service-contact a {
  color: var(--primary-dark);
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.faq-section {
  padding-top: 30px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq-item {
  padding: 24px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.78fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background: #17212b;
  color: #ffffff;
}

.contact-copy {
  position: sticky;
  top: 110px;
}

.contact-copy h2 {
  color: #ffffff;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.inquiry-form {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: var(--foreground);
  padding: clamp(22px, 4vw, 34px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.inquiry-form label,
.inquiry-form fieldset {
  display: grid;
  gap: 8px;
  color: #253746;
  font-size: 0.9rem;
  font-weight: 900;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid #ccd5db;
  border-radius: 8px;
  background: #f9fbfb;
  color: #17212b;
  outline: none;
  padding: 12px;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 111, 139, 0.16);
}

.inquiry-form fieldset {
  border: 1px solid #ccd5db;
  border-radius: 8px;
  padding: 14px;
}

.inquiry-form legend {
  padding: 0 6px;
}

.radio-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px !important;
  font-weight: 800 !important;
}

.radio-row input {
  width: auto;
}

.form-button {
  width: 100%;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  background: #101820;
  color: #ffffff;
  padding: 32px clamp(20px, 4vw, 56px);
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 22px;
}

@media (max-width: 1080px) {
  .header-email {
    display: none;
  }

  .rental-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .landlord-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
  }

  .service-section,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 2.7rem;
  }

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .rental-grid,
  .process-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .rental-card,
  .process-card {
    min-height: auto;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }
}


/* Logo image overrides - use the real MAR logo instead of CSS-drawn placeholder */
.brand-emblem {
  display: block;
  height: 62px;
  width: 92px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.brand-emblem-large {
  height: 150px;
  width: min(100%, 250px);
}
.brand-emblem::before,
.brand-emblem::after {
  content: none !important;
  display: none !important;
}

.mar-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-success,
.form-error {
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 18px;
  font-weight: 700;
}

.form-success {
  background: #e8f7ef;
  color: #0d5d32;
  border: 1px solid #9ad8b4;
}

.form-error {
  background: #fff0f0;
  color: #8a1f1f;
  border: 1px solid #e3a6a6;
}

/* MAR Fleet commercial landlord section */
.landlord-section {
  background:
    radial-gradient(circle at top right, rgba(217, 109, 59, 0.13), transparent 32%),
    linear-gradient(135deg, #f6fbfc 0%, #eef6f7 48%, #ffffff 100%);
}

.landlord-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.mar-fleet-panel {
  border: 1px solid #c9dde2;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(23, 33, 43, 0.09);
  padding: clamp(22px, 4vw, 34px);
}

.mar-fleet-panel h3 {
  color: var(--primary-dark);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  margin-bottom: 18px;
}

.fleet-badge {
  display: inline-flex;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--primary-dark);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.mar-fleet-list div {
  align-items: flex-start;
}

.mar-fleet-list span {
  background: var(--accent);
  margin-top: 1px;
}

.mar-fleet-list p {
  font-size: 0.98rem;
  line-height: 1.42;
}

/* Website refresh v1.2 - MAR Fleet positioning */
.hero-copy h1 {
  max-width: 1080px;
}

.service-grid .rental-card {
  min-height: 470px;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  width: 52px;
  border-radius: 999px;
  background: var(--primary-dark);
  color: #ffffff;
  font-weight: 900;
  margin-bottom: 22px;
}

.service-card-link {
  scroll-margin-top: 120px;
}

.service-card-link h3 {
  color: var(--primary-dark);
  font-size: 1.22rem;
}

.service-card-link:nth-child(3) .service-icon {
  background: var(--accent);
}

.service-card-link:nth-child(4) .service-icon {
  background: var(--green);
}

#why-mar-fleet p + p {
  margin-top: -8px;
}

.fleet-badge {
  letter-spacing: 0.08em;
}

.hero-panel .availability-box strong {
  color: var(--primary-dark);
}

@media (max-width: 1080px) {
  .service-grid .rental-card {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .service-grid .rental-card {
    min-height: auto;
  }
}
