:root {
  --bg: #fffaf4;
  --surface: #ffffff;
  --surface-warm: #fff3e4;
  --text: #201914;
  --muted: #665b52;
  --primary: #b65f18;
  --primary-dark: #8d4510;
  --green: #315f2c;
  --gold: #e5a93d;
  --border: #ead8c3;
  --shadow: 0 18px 42px rgba(52, 31, 14, 0.12);
  --radius: 8px;
  --container: 1180px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 250, 244, 0.94);
  border-bottom: 1px solid rgba(32, 25, 20, 0.08);
  backdrop-filter: blur(14px);
}

.nav-wrapper {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo,
.footer-logo {
  font-weight: 900;
  letter-spacing: 0;
  color: var(--text);
}

.logo {
  font-size: 1.55rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

#img-logo-chipsua {
  width: 150px;
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.6rem;
  width: auto;
  margin-left: auto;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 320px;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 10px 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 2000;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
}

.nav-dropdown-menu a:hover {
  background: var(--surface-warm);
}

.site-nav a {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--primary);
}

.site-nav a[aria-current="page"] {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: calc(100svh - var(--header-height));
  background:
    linear-gradient(90deg, rgba(23, 17, 12, 0.82), rgba(23, 17, 12, 0.54), rgba(23, 17, 12, 0.18)),
    url("https://images.unsplash.com/photo-1515003197210-e0cd71810b5f?auto=format&fit=crop&w=1800&q=82") center/cover;
}

.hero-overlay {
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 5rem 0;
}

.page-hero {
  padding: clamp(4.5rem, 11vw, 8rem) 0;
  background:
    linear-gradient(90deg, rgba(23, 17, 12, 0.84), rgba(23, 17, 12, 0.54)),
    url("https://images.unsplash.com/photo-1515003197210-e0cd71810b5f?auto=format&fit=crop&w=1800&q=82") center/cover;
  color: #fff;
}

.page-hero .container {
  max-width: 920px;
}

.page-hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
}

.page-hero .hero-lead {
  color: rgba(255, 255, 255, 0.88);
}

.page-hero .eyebrow {
  color: #ffd890;
}

.hero-content {
  max-width: 690px;
  color: #fff;
}

.eyebrow,
.section-tag,
.blog-category {
  margin: 0 0 0.75rem;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd890;
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.12;
}

h1 {
  margin-bottom: 0.9rem;
  font-size: clamp(4rem, 13vw, 2.5rem);
  font-weight: 100;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
}

p {
  color: var(--muted);
}

.hero-lead {
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 30px rgba(182, 95, 24, 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.section {
  padding: 5.5rem 0;
}

.split-section,
.notice-layout,
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.section-copy p:last-child,
.contact-copy p:last-child {
  margin-bottom: 0;
}

.promise-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}

.promise-item {
  min-height: 250px;
  padding: 1.5rem;
  background: var(--surface);
}

.promise-item span {
  display: inline-block;
  margin-bottom: 3rem;
  color: var(--primary);
  font-weight: 900;
}

.notice-section,
.contact-section {
  background: #fff4e6;
}

.notice-layout {
  align-items: center;
}

.notice-panel {
  padding: clamp(1.4rem, 4vw, 2.3rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.notice-panel strong {
  display: block;
  margin-bottom: 1rem;
  color: var(--green);
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
}

.text-link {
  display: inline-flex;
  margin-top: 0.7rem;
  font-weight: 800;
}

.blog-header {
  max-width: 820px;
  margin-bottom: 2.5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.blog-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(52, 31, 14, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.blog-card img {
  width: 100%;
  height: 235px;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.25rem;
}

.blog-card-content h2 {
  font-size: 1.35rem;
}

.blog-category {
  margin-bottom: 0.55rem;
  color: var(--primary);
  font-size: 0.76rem;
}

.blog-card-content a {
  font-weight: 800;
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.internal-links span {
  color: var(--text);
  font-weight: 800;
}

.internal-links a {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 700;
}

.contact-info {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-item {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-item span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.contact-item a {
  color: var(--text);
  font-weight: 800;
}

.contact-form {
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.chatbot-form input:focus {
  outline: 3px solid rgba(182, 95, 24, 0.18);
  border-color: var(--primary);
}

.form-message {
  min-height: 1.4rem;
  margin: 1rem 0 0;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-footer {
  padding-top: 4rem;
  background: #201914;
  color: rgba(255, 255, 255, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-logo {
  margin-bottom: 0.7rem;
  color: #fff;
  font-size: 1.45rem;
}

.site-footer h4 {
  margin-bottom: 1rem;
  color: #fff;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.65rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: var(--primary);
  color: #fff;
}

.footer-bottom {
  margin-top: 2.6rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

.chatbot-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
}

.chatbot-toggle {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 18px 38px rgba(49, 95, 44, 0.32);
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.chatbot-toggle:hover {
  transform: translateY(-2px);
  background: #234b20;
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 350px;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(41, 25, 12, 0.22);
}

.chatbot-panel.is-open {
  display: block;
  animation: panelIn 0.22s ease both;
}

.chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-warm);
}

.chatbot-header strong {
  display: block;
  color: var(--text);
}

.chatbot-header p {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
}

.chatbot-close {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.05rem;
}

.chatbot-messages {
  max-height: 310px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chatbot-message {
  max-width: 88%;
  padding: 0.78rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.93rem;
  line-height: 1.45;
}

.chatbot-message.bot {
  border: 1px solid #eed3ae;
  background: #fff2df;
  color: var(--text);
}

.chatbot-message.user {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
}

.chatbot-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

.chatbot-chip {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.chatbot-form {
  display: flex;
  gap: 0.55rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: #fffaf5;
}

.chatbot-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  font: inherit;
}

.chatbot-form button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* White breadcrumb above banner */
.chipsua-breadcrumb-bar {
  display: block;
  width: 100%;
  background: #ffffff;
  padding: 12px 0;
  border-bottom: 1px solid #eeeeee;
  position: relative;
  z-index: 5;
}

.chipsua-breadcrumb-list {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.chipsua-breadcrumb-list li {
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  font-size: 14px;
  line-height: 22px;
  color: #333333;
}

.chipsua-breadcrumb-list li::before,
.chipsua-breadcrumb-list li::after,
.chipsua-breadcrumb-list li::marker {
  content: none !important;
  display: none !important;
}

.chipsua-breadcrumb-list a {
  color: #8b4513;
  font-weight: 600;
  text-decoration: none;
}

.chipsua-breadcrumb-list a:hover {
  text-decoration: underline;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem;
    border-radius: var(--radius);
  }

  .site-nav a:hover {
    background: var(--surface-warm);
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    width: 100%;
    max-height: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 0 12px;
    background: transparent;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
  }

  .split-section,
  .notice-layout,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .promise-row,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .promise-item {
    min-height: auto;
  }

  .promise-item span {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
  }

  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .logo {
    font-size: 1.32rem;
  }
  #img-logo-chipsua {
    width: 125px;
  }

  .hero,
  .hero-overlay {
    min-height: calc(92svh - var(--header-height));
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(23, 17, 12, 0.8), rgba(23, 17, 12, 0.5)),
      url("https://images.unsplash.com/photo-1515003197210-e0cd71810b5f?auto=format&fit=crop&w=1200&q=82") center/cover;
  }

  .hero-overlay {
    padding: 4rem 0;
    align-items: flex-end;
  }

  h1 {
    font-size: clamp(3.25rem, 18vw, 5rem);
  }

  .section {
    padding: 4rem 0;
  }

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

  .blog-card img {
    height: 210px;
  }

  .internal-links {
    align-items: stretch;
    flex-direction: column;
  }

  .chatbot-widget {
    right: 14px;
    bottom: 14px;
  }

  .chatbot-toggle {
    width: 54px;
    height: 54px;
  }

  .chatbot-panel {
    width: min(350px, calc(100vw - 20px));
    right: -4px;
  }
}
