/* Landmark Electrical Supplies site styles.
   Palette sampled from the logo: navy #2D3482, yellow #F4E029. */

:root {
  --navy: #2D3482;
  --navy-700: #252B6E;
  --navy-900: #171B45;
  --yellow: #F4E029;
  --yellow-600: #DCC914;
  --ink: #1B1E33;
  --muted: #5B6078;
  --line: #E3E6EF;
  --bg: #F5F6FA;
  --white: #FFFFFF;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(23, 27, 69, 0.08);
  --shadow-lg: 0 16px 40px rgba(23, 27, 69, 0.14);
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0 0 0.5em; color: var(--navy-900); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; font-style: italic; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--navy-900); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.8em 1.4em; border-radius: 7px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); }
.btn-yellow { background: var(--yellow); color: var(--navy-900); }
.btn-yellow:hover { background: var(--yellow-600); color: var(--navy-900); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); border-color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }

/* Top bar */
.topbar { background: var(--navy-900); color: rgba(255, 255, 255, 0.9); font-size: 0.92rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; min-height: 40px; padding-block: 6px; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar .icon { color: var(--yellow); }
.topbar .right { margin-left: auto; font-weight: 600; color: var(--yellow); }

/* Header and navigation */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(23, 27, 69, 0.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; position: relative; }
.brand img { height: 56px; width: auto; }
.nav-toggle { display: none; background: none; border: 2px solid var(--navy); border-radius: 7px; padding: 8px 10px; color: var(--navy); cursor: pointer; font: inherit; }
.nav-toggle .icon { width: 1.5em; height: 1.5em; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav li { position: relative; }
.nav a, .nav button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 7px; font: inherit; font-weight: 600; color: var(--ink); background: none; border: 0; text-decoration: none; cursor: pointer; }
.nav a:hover, .nav button:hover, .nav a:focus-visible, .nav button:focus-visible { background: var(--bg); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 7px 7px 0 0; }
.nav .sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: none; z-index: 5; }
.nav .sub a { display: flex; width: 100%; padding: 10px 12px; font-weight: 500; }
.nav li.open > .sub { display: block; }
.nav .caret { transition: transform 0.15s; }
.nav li.open .caret { transform: rotate(180deg); }
.nav .cta { margin-left: 8px; }
.nav .cta a { background: var(--yellow); color: var(--navy-900); }
.nav .cta a:hover { background: var(--yellow-600); }

@media (max-width: 1060px) {
  .topbar .hide-sm { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 8px 16px 16px; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a, .nav button { width: 100%; justify-content: space-between; padding: 12px 10px; border-radius: 7px; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--yellow); border-radius: 0 7px 7px 0; }
  .nav .sub { position: static; display: none; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 6px 14px; padding: 0 0 0 6px; min-width: 0; }
  .nav li.open > .sub { display: block; }
  .nav .cta { margin: 10px 0 0; }
  .nav .cta a { justify-content: center; }
}

/* Home hero */
.hero { position: relative; color: var(--white); background: var(--navy-900); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; filter: brightness(1.25) saturate(1.1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 27, 69, 0.94) 0%, rgba(45, 52, 130, 0.82) 42%, rgba(45, 52, 130, 0.15) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(64px, 9vw, 120px); }
.hero-inner { max-width: 680px; }
.hero h1 { color: var(--white); margin-bottom: 0.4em; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: rgba(255, 255, 255, 0.9); max-width: 36em; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 34px; height: 4px; background: var(--yellow); border-radius: 2px; flex: none; }
.hero .eyebrow { color: var(--yellow); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Inner page hero */
.page-hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.page-hero .hero-bg { filter: brightness(1.25); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 27, 69, 0.94), rgba(45, 52, 130, 0.55)); }
.page-hero .wrap { position: relative; z-index: 1; padding-block: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.page-hero h1 { color: var(--white); margin: 0 0 0.3em; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.page-hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255, 255, 255, 0.9); max-width: 38em; margin: 0; }
.page-hero .eyebrow { color: var(--yellow); }
.page-hero .big-icon { width: 150px; height: 150px; color: var(--yellow); opacity: 0.9; stroke-width: 1.1; }
.crumbs { font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); margin: 0 0 14px; }
.crumbs a { color: var(--white); }
@media (max-width: 720px) { .page-hero .big-icon { display: none; } .page-hero .wrap { grid-template-columns: 1fr; } }

/* Sections */
.section { padding-block: clamp(56px, 7vw, 96px); }
.section-alt { background: var(--bg); }
.section-navy { background: var(--navy-900); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .eyebrow { color: var(--yellow); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-navy .section-head p:last-child { color: rgba(255, 255, 255, 0.8); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.center { text-align: center; }

/* Trust strip */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; gap: 14px; align-items: center; padding: 22px 20px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item .icon { width: 2em; height: 2em; color: var(--navy); }
.trust-item b { display: block; font-family: var(--display); font-size: 1.35rem; line-height: 1.1; color: var(--navy-900); }
.trust-item small { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 960px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } .trust-item:nth-child(2) { border-right: 0; } .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } .trust-item { border-right: 0; border-bottom: 1px solid var(--line); } .trust-item:last-child { border-bottom: 0; } }

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.card h3 { margin-top: 18px; }
.card p { color: var(--muted); margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--navy); }
.card .more { margin-top: auto; padding-top: 18px; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.disc { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: grid; place-items: center; flex: none; }
.disc .icon { width: 32px; height: 32px; stroke-width: 1.6; }
.disc.yellow { background: var(--yellow); color: var(--navy-900); }

/* Brands */
.brand-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.brand-tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-height: 110px; display: grid; place-items: center; padding: 18px; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.brand-tile img { height: 44px; width: auto; max-width: 100%; object-fit: contain; }
.brand-tile:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
@media (max-width: 960px) { .brand-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .brand-grid { grid-template-columns: repeat(2, 1fr); } }
.brand-card { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); scroll-margin-top: 110px; }
.brand-card .logo { display: grid; place-items: center; min-height: 110px; background: var(--bg); border-radius: 8px; padding: 18px; }
.brand-card .logo img { height: 52px; width: auto; max-width: 100%; object-fit: contain; }
.brand-card h3 { margin-top: 0; }
.brand-card p { color: var(--muted); }
.brand-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.brand-card .tags li { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 0.88rem; color: var(--ink); }
.brand-card .btn { margin-top: 4px; }
@media (max-width: 720px) { .brand-card { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips a { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; text-decoration: none; }
.chips a:hover { border-color: var(--navy); background: var(--bg); }

/* Image and text split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split .photo { position: relative; }
.split .photo img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; box-shadow: var(--shadow-lg); position: relative; }
.split .photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; background: var(--yellow); border-radius: var(--radius); }
.split .photo.navy::before { background: var(--navy); }
.split .photo.left::before { inset: 22px 22px -22px -22px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .photo { order: -1; margin-bottom: 22px; } }
.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.points li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.points .disc { width: 44px; height: 44px; }
.points .disc .icon { width: 22px; height: 22px; }
.points b { display: block; font-family: var(--display); font-size: 1.25rem; color: var(--navy-900); }
.points span { color: var(--muted); }

/* Reviews */
.review { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); padding: 28px; }
.stars { color: var(--yellow); display: flex; gap: 2px; margin-bottom: 14px; }
.stars .icon { width: 1.1em; height: 1.1em; fill: currentColor; stroke: none; }
.review blockquote { margin: 0 0 12px; font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1.25; }
.review cite { font-style: normal; color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }
.rating { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.rating .score { font-family: var(--display); font-size: 2.6rem; font-weight: 700; color: var(--yellow); line-height: 1; }
.rating a { color: var(--white); }

/* Visit and contact */
.visit-grid { display: grid; grid-template-columns: 420px 1fr; gap: 24px; align-items: stretch; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.info-card h3 { margin-top: 0; }
.dl { display: grid; grid-template-columns: 28px 1fr; gap: 12px 12px; margin: 0; }
.dl dt { color: var(--navy); display: flex; padding-top: 3px; }
.dl dt .icon { width: 1.3em; height: 1.3em; }
.dl dd { margin: 0; }
.dl a { text-decoration: none; font-weight: 600; }
.dl a:hover { text-decoration: underline; }
.hours { width: 100%; border-collapse: collapse; margin-top: 4px; }
.hours td { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr:last-child td { border-bottom: 0; }
.map { border: 0; width: 100%; min-height: 420px; height: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg); }
@media (max-width: 960px) { .visit-grid { grid-template-columns: 1fr; } .map { min-height: 340px; } }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid #C9CDDB; border-radius: 7px; background: var(--white); color: var(--ink); width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--yellow); outline-offset: 1px; border-color: var(--navy); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--muted); }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 7px; display: none; }
.form-status.ok { display: block; background: #E8F6EC; color: #1F5A32; border: 1px solid #BFE3C9; }
.form-status.err { display: block; background: #FBEAEA; color: #7A1F1F; border: 1px solid #F0C4C4; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; aspect-ratio: 3 / 2; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Stock lists and prose */
.stock { columns: 2; column-gap: 40px; padding: 0; margin: 0 0 24px; list-style: none; }
.stock li { break-inside: avoid; padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line); }
.stock li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 12px; height: 12px; border-radius: 3px; background: var(--yellow); }
@media (max-width: 640px) { .stock { columns: 1; } }
.prose { max-width: 720px; }
.prose p { font-size: 1.05rem; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; }

/* Call to action band */
.cta-band { background: var(--navy); color: var(--white); }
.cta-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding-block: 44px; }
.cta-band h2 { color: var(--white); margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.cta-band .actions { margin: 0; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.82); padding-top: 56px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.foot-grid h4 { color: var(--yellow); font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-logo { background: var(--white); border-radius: 8px; padding: 10px; display: inline-block; margin-bottom: 16px; }
.foot-logo img { height: 48px; width: auto; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-block: 18px; font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: rgba(255, 255, 255, 0.65); }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* Utilities */
.mt-0 { margin-top: 0; }
.muted { color: var(--muted); }
