/*
Theme Name: Anchor Abrasives
Theme URI: https://anchorabrasives.com/
Author: Anchor Abrasives
Description: Responsive WordPress theme migrated from the legacy Concrete5 site.
Version: 1.0.3
Requires at least: 7.1
Requires PHP: 8.2
Text Domain: anchor-abrasives
*/

:root {
  --anchor-ink: #0b1015;
  --anchor-panel: #151c23;
  --anchor-panel-soft: #202830;
  --anchor-steel: #b8c0c7;
  --anchor-paper: #f7f7f4;
  --anchor-gold: #d6aa00;
  --anchor-gold-bright: #ffd532;
  --anchor-max: 1180px;
  --anchor-radius: 6px;
  --anchor-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: #20262b;
  background:
    linear-gradient(rgba(6, 13, 20, .88), rgba(6, 13, 20, .94)),
    url("assets/themes/home/images/background.png") center top / 2171px auto fixed;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a { color: #8a6b00; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: #b18400; }
img { max-width: 100%; height: auto; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  color: #fff;
  border-top: 5px solid var(--anchor-gold);
  background: rgba(7, 13, 19, .92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .28);
}

.header-inner,
.nav-inner,
.site-main,
.footer-inner {
  width: min(calc(100% - 40px), var(--anchor-max));
  margin-inline: auto;
}

.header-inner {
  min-height: 122px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 20px 0;
}

.site-logo img { width: 300px; display: block; }

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.language-switcher a {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.24);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .82rem;
  letter-spacing: .03em;
}

.language-switcher a:hover,
.language-switcher a[aria-current="page"] {
  color: var(--anchor-ink);
  background: var(--anchor-gold-bright);
  border-color: var(--anchor-gold-bright);
}

.site-nav { background: #05080b; border-block: 1px solid rgba(255,255,255,.1); }
.nav-inner { position: relative; }
.menu-toggle { display: none; }
.anchor-menu, .anchor-menu ul { list-style: none; margin: 0; padding: 0; }
.anchor-menu { display: flex; align-items: stretch; }
.anchor-menu > li { flex: 1 1 0; position: relative; border-right: 1px solid rgba(214,170,0,.5); }
.anchor-menu > li:first-child { border-left: 1px solid rgba(214,170,0,.5); }
.anchor-menu a,
.anchor-menu .menu-label {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: .84rem;
  line-height: 1.16;
  font-weight: 700;
}
.anchor-menu a:hover,
.anchor-menu a:focus,
.anchor-menu .current_page_item > a,
.anchor-menu .current_page_ancestor > a { color: var(--anchor-gold-bright); background: #111820; }
.anchor-menu ul {
  position: absolute;
  z-index: 20;
  min-width: 250px;
  top: 100%;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(7px);
  transition: .16s ease;
  background: #fff;
  border-top: 3px solid var(--anchor-gold);
  box-shadow: var(--anchor-shadow);
}
.anchor-menu li:hover > ul,
.anchor-menu li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.anchor-menu ul ul { top: 0; left: 100%; }
.anchor-menu > li:last-child > ul { right: 0; left: auto; }
.anchor-menu > li:nth-last-child(-n+3) ul ul { right: 100%; left: auto; }
.anchor-menu ul li { position: relative; border-bottom: 1px solid #e3e5e7; }
.anchor-menu ul a { color: #20262b; justify-content: flex-start; text-align: left; min-height: 0; padding: 12px 16px; font-size: .88rem; font-weight: 600; }
.anchor-menu ul a:hover, .anchor-menu ul a:focus { color: #5f4a00; background: #fff8d9; }

.site-main { padding: 42px 0 72px; min-height: 65vh; }
.content-shell {
  overflow: hidden;
  background: var(--anchor-paper);
  border-radius: var(--anchor-radius);
  box-shadow: var(--anchor-shadow);
}

.page-header {
  color: #fff;
  background: linear-gradient(115deg, #111920, #26323b);
  padding: 34px clamp(24px, 5vw, 66px);
  border-bottom: 5px solid var(--anchor-gold);
}
.page-header h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.025em; }
.breadcrumbs { margin: 0 0 8px; color: #ccd1d5; font-size: .84rem; }
.breadcrumbs a { color: var(--anchor-gold-bright); }

.entry-content { padding: clamp(28px, 5vw, 64px); }
.entry-content > :first-child, .anchor-area > :first-child { margin-top: 0; }
.entry-content > :last-child, .anchor-area > :last-child { margin-bottom: 0; }
.entry-content h2, .entry-content h3 { color: #182027; line-height: 1.16; }
.entry-content h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.entry-content table { width: 100% !important; max-width: 100%; border-collapse: collapse; }
.entry-content td, .entry-content th { padding: 10px; vertical-align: top; }

.anchor-area { min-width: 0; }
.anchor-layout-interior .entry-content,
.anchor-layout-interior_product .entry-content,
.anchor-layout-interior_contact .entry-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}
.anchor-area--bottom,
.anchor-area--accross-top,
.anchor-area--textpage { grid-column: 1 / -1; }
.anchor-area--top-left img,
.anchor-area--accross-top img { border-radius: var(--anchor-radius); box-shadow: 0 14px 35px rgba(0,0,0,.14); }

.anchor-home-shell { overflow: hidden; }
.anchor-hero {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(260px, .8fr);
  color: #fff;
  background: #0b0f13;
  border-bottom: 6px solid var(--anchor-gold);
}
.anchor-hero-media { min-height: 410px; position: relative; overflow: hidden; background: #222; }
.anchor-hero-media .anchor-slideshow { height: 100%; min-height: 410px; }
.anchor-hero-media .anchor-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.anchor-hero-media .anchor-slide.is-active { opacity: 1; }
.anchor-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.anchor-hero-gallery { position: absolute; inset: 0; }
.anchor-hero-copy { position: absolute; z-index: 3; inset: 0; padding: 38px 28px; pointer-events: none; }
.anchor-hero-copy .anchor-slideshow { position: relative; width: min(42%, 330px); min-height: 110px; height: 110px; }
.anchor-hero-copy .anchor-slide { inset: 0; display: flex; align-items: flex-start; }
.anchor-hero-copy .anchor-slide img { width: auto; max-width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0,0,0,.65)); }
.anchor-address { padding: 45px 34px; display: block; background: linear-gradient(145deg, #24231f, #11161b); }
.anchor-address p { margin: .15rem 0; }
.anchor-address strong { color: var(--anchor-gold-bright); font-size: 1.15rem; }
.anchor-home-body { padding: clamp(30px, 5vw, 64px); background: var(--anchor-paper); }
.anchor-home-body .anchor-area--bottom { font-size: 1.05rem; }
.anchor-home-body > .anchor-home-heading {
  display: inline-block;
  margin: 0 0 24px;
  padding: 8pt;
  color: #fff;
  background: var(--anchor-gold);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}
.anchor-home-intro {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}
.anchor-home-intro img {
  display: block;
  width: 190px;
  height: auto;
  border-radius: var(--anchor-radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}
.anchor-home-intro-copy { margin: 0; }
.anchor-home-gallery { margin-top: 38px; }
.anchor-home-gallery .anchor-slideshow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.anchor-home-gallery .anchor-slide { position: relative; opacity: 1; }
.anchor-home-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

.anchor-image { margin: 0; }
.anchor-image img { display: block; }
.entry-content .anchor-slideshow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.entry-content .anchor-slide { position: relative; opacity: 1; }
.entry-content .anchor-slide img { width: 100%; border-radius: var(--anchor-radius); }
.anchor-file-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: #eef0f1; border-left: 4px solid var(--anchor-gold); }

.anchor-product-size-table .centered_subhead {
  margin: 22px 0 10px;
  text-align: center;
  font-weight: 800;
}
.anchor-product-size-table table.small_table_text {
  width: 100% !important;
  height: auto !important;
  border: 1px solid #727b82;
  border-collapse: collapse;
}
.anchor-product-size-table table.small_table_text td {
  border: 1px solid #a2a8ad;
}

.anchor-safety-dos-table table {
  width: 100% !important;
  table-layout: fixed;
}
.anchor-safety-dos-table table td {
  width: 50% !important;
}

.anchor-markings-table table td {
  padding: 4px 8px;
  line-height: 1.2;
}
.anchor-markings-table table td p { margin: .12rem 0; }

.anchor-resource-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.anchor-resource-card {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 20px;
  color: #20262b;
  background: #fff;
  border: 1px solid #d7dadd;
  border-top: 5px solid var(--anchor-gold);
  border-radius: var(--anchor-radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .09);
  text-decoration: none;
}
.anchor-resource-card:hover,
.anchor-resource-card:focus { color: #20262b; border-top-color: var(--anchor-gold-bright); transform: translateY(-2px); }
.anchor-resource-card span { color: #626a70; font-size: .92rem; }

.anchor-rep-locator {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.anchor-rep-locator-controls {
  display: grid;
  gap: 9px;
  padding: 24px;
  background: #eef0f1;
  border-left: 5px solid var(--anchor-gold);
  border-radius: var(--anchor-radius);
}
.anchor-rep-locator select {
  width: 100%;
  padding: 12px;
  color: #20262b;
  background: #fff;
  border: 1px solid #929ba2;
  border-radius: 4px;
  font: inherit;
}
.anchor-rep-results { min-height: 180px; }
.anchor-rep-card {
  margin-bottom: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #d9dcde;
  border-radius: var(--anchor-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}
.anchor-rep-card[hidden] { display: none; }
.anchor-rep-card h2 { margin: 0 0 8px; font-size: 1.25rem; }
.anchor-rep-card p { margin: 0; }

.anchor-form { display: grid; gap: 16px; margin: 22px 0; }
.anchor-form-field { display: grid; gap: 6px; }
.anchor-form label { font-weight: 700; color: #20262b; }
.anchor-form input,
.anchor-form textarea,
.anchor-form select {
  width: 100%;
  border: 1px solid #aeb6bc;
  border-radius: 4px;
  padding: 11px 12px;
  color: #15191d;
  background: #fff;
  font: inherit;
}
.anchor-form input:focus,
.anchor-form textarea:focus,
.anchor-form select:focus { outline: 3px solid rgba(214,170,0,.28); border-color: #8a6b00; }
.anchor-form button {
  justify-self: start;
  border: 0;
  border-radius: 4px;
  padding: 12px 22px;
  color: #0a0d10;
  background: var(--anchor-gold-bright);
  font-weight: 800;
  cursor: pointer;
}
.anchor-form button:hover { background: var(--anchor-gold); }
.anchor-form-notice { padding: 13px 16px; border-left: 4px solid #23864b; background: #e9f7ee; }
.anchor-form-honeypot { position: absolute; left: -10000px; }

.site-footer { color: #c9d0d5; background: #05080b; border-top: 1px solid rgba(255,255,255,.1); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; padding: 30px 0; font-size: .9rem; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--anchor-gold-bright); }

@media (max-width: 900px) {
  .header-inner { min-height: 94px; }
  .site-logo img { width: 245px; }
  .menu-toggle {
    display: block;
    width: 100%;
    padding: 14px 0;
    border: 0;
    color: #fff;
    background: transparent;
    text-align: left;
    font: inherit;
    font-weight: 800;
  }
  .anchor-menu { display: none; padding-bottom: 12px; flex-direction: column; }
  .anchor-menu.is-open { display: flex; }
  .anchor-menu > li, .anchor-menu > li:first-child { border: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .anchor-menu a, .anchor-menu .menu-label { justify-content: flex-start; text-align: left; min-height: 0; padding: 13px 8px; }
  .anchor-menu ul { position: static; opacity: 1; visibility: visible; transform: none; display: block; min-width: 0; box-shadow: none; border-top: 0; background: #111820; }
  .anchor-menu ul ul { position: static; }
  .anchor-menu ul a { color: #eef2f4; padding-left: 26px; }
  .anchor-menu ul ul a { padding-left: 44px; }
  .anchor-hero { grid-template-columns: 1fr; }
  .anchor-hero-media, .anchor-hero-media .anchor-slideshow { min-height: 330px; }
  .anchor-layout-interior .entry-content,
  .anchor-layout-interior_product .entry-content,
  .anchor-layout-interior_contact .entry-content { grid-template-columns: 1fr; }
  .anchor-area { grid-column: 1 !important; }
  .anchor-resource-list { grid-template-columns: 1fr; }
  .anchor-rep-locator { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 13px; }
  .language-switcher { justify-content: flex-start; }
  .header-inner, .nav-inner, .site-main, .footer-inner { width: min(calc(100% - 24px), var(--anchor-max)); }
  .site-main { padding-top: 18px; }
  .entry-content { padding: 25px 20px; }
  .page-header { padding: 26px 20px; }
  .anchor-hero-media, .anchor-hero-media .anchor-slideshow { min-height: 230px; }
  .anchor-address { padding: 28px 22px; }
  .anchor-home-intro { grid-template-columns: minmax(125px, 42%) minmax(0, 1fr); gap: 16px; }
  .anchor-home-intro img { width: 100%; }
  .anchor-home-gallery .anchor-slideshow { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; }
}
