/*
Theme Name: iRobot Roomba
Theme URI: https://www.irobot.com/en_US/roomba.html
Author: iRobot
Description: A lightweight WordPress theme for the Roomba collection page.
 Version: 1.0.3
Text Domain: irobot-roomba
*/

:root {
  --ink: #111827;
  --muted: #5d6672;
  --green: #447355;
  --green-dark: #31523f;
  --blue: #6e89f8;
  --line: #dfe4e7;
  --wash: #f5f7f5;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1.5; background: #fff; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; display: block; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 99; padding: .75rem 1rem; background: #fff; }
.site-notice { background: #0d1f18; color: #fff; text-align: center; font-size: .78rem; letter-spacing: .04em; padding: .55rem 1rem; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.nav-shell { max-width: var(--max); margin: 0 auto; min-height: 76px; padding: 0 2.5rem; display: flex; align-items: center; gap: 2.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; min-width: 160px; }
.brand-mark { width: 37px; height: 37px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem; letter-spacing: -.05em; }
.brand-name { font-weight: 700; font-size: 1.1rem; letter-spacing: .08em; }
.primary-nav { display: flex; align-items: center; gap: 1.9rem; flex: 1; font-size: .92rem; font-weight: 600; }
.primary-nav a:hover, .primary-nav a:focus { color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: .65rem; }
.icon-button { border: 0; background: transparent; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-button svg { width: 20px; height: 20px; }
.menu-toggle { display: none; }
.hero { min-height: 580px; background: #e7eee9 url("assets/images/hero-cleanmap.jpg") center/cover no-repeat; position: relative; display: flex; align-items: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 27, 19, .68), rgba(6, 27, 19, .08) 65%, transparent); }
.hero-content { position: relative; z-index: 1; max-width: var(--max); width: 100%; margin: 0 auto; padding: 6rem 2.5rem; color: #fff; }
.eyebrow { display: inline-block; background: var(--blue); padding: .3rem .7rem; font-weight: 700; font-size: .72rem; letter-spacing: .1em; margin-bottom: 1.25rem; }
.hero h1 { max-width: 680px; margin: 0 0 1.5rem; font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1.04; font-weight: 300; letter-spacing: -.035em; }
.hero p { max-width: 570px; font-size: 1.1rem; margin: 0 0 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid var(--green); background: var(--green); color: #fff; padding: .8rem 1.35rem; border-radius: 999px; font-weight: 700; cursor: pointer; transition: .2s ease; }
.button:hover, .button:focus { background: var(--green-dark); transform: translateY(-1px); }
.button--outline { background: transparent; border-color: #fff; }
.button--outline:hover, .button--outline:focus { background: #fff; color: var(--green-dark); }
.button--light { background: #fff; border-color: #fff; color: var(--green-dark); }
.section { max-width: var(--max); margin: 0 auto; padding: 5.5rem 2.5rem; }
.section--wash { max-width: none; background: var(--wash); }
.section-inner { max-width: var(--max); margin: 0 auto; padding: 0 2.5rem; }
.section-heading { text-align: center; margin-bottom: 2.5rem; }
.section-heading h2 { margin: 0 0 .6rem; font-size: clamp(2rem, 3.3vw, 3.25rem); line-height: 1.1; font-weight: 300; letter-spacing: -.03em; }
.section-heading p { color: var(--muted); max-width: 680px; margin: 0 auto; }
.subnav-wrap { padding: 1.5rem 2.5rem 0; max-width: var(--max); margin: 0 auto; }
.subnav { display: flex; justify-content: center; gap: 0; border-bottom: 3px solid var(--green); }
.subnav a { flex: 1; text-align: center; padding: 1rem .75rem 1.2rem; font-size: .95rem; font-weight: 700; }
.subnav a:hover, .subnav a:focus { color: var(--green); }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.type-card { min-height: 390px; position: relative; overflow: hidden; background: #283b32; color: #fff; }
.type-card:nth-child(1) { background: url("assets/images/hero-app.jpg") center/cover; }
.type-card:nth-child(2) { background: url("assets/images/hero-cleanmap.jpg") center/cover; }
.type-card:nth-child(3) { background: url("assets/images/products/l124020.jpg") center/cover; }
.type-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.78)); }
.type-card-content { position: absolute; z-index: 1; inset: auto 1.5rem 1.5rem; }
.type-card h3 { font-size: 1.55rem; margin: 0 0 .65rem; font-weight: 400; }
.type-card p { margin: 0 0 1rem; font-size: .92rem; }
.type-card .button { font-size: .85rem; padding: .55rem 1rem; }
.innovation { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.innovation img { width: 100%; aspect-ratio: 1.3 / 1; object-fit: cover; }
.innovation h2 { margin: .5rem 0 1rem; font-size: clamp(2rem, 3.5vw, 3.5rem); line-height: 1.05; font-weight: 300; }
.innovation p { color: var(--muted); max-width: 520px; }
.product-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; gap: 1rem; }
.product-toolbar p { margin: 0; color: var(--muted); font-size: .9rem; }
.product-toolbar select { border: 1px solid var(--line); border-radius: 999px; padding: .65rem 2.5rem .65rem 1rem; background: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.product-card { border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; min-width: 0; transition: box-shadow .2s ease, transform .2s ease; }
.product-card:hover { box-shadow: 0 16px 35px rgba(22, 50, 35, .12); transform: translateY(-3px); }
.product-media { aspect-ratio: 1 / 1; background: #f4f4f2; display: grid; place-items: center; padding: 1rem; }
.product-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-body { padding: 1.15rem 1.15rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.product-kicker { text-transform: uppercase; color: var(--green); letter-spacing: .1em; font-size: .7rem; font-weight: 800; }
.product-body h3 { margin: .45rem 0 .7rem; font-size: 1.03rem; line-height: 1.3; font-weight: 600; min-height: 2.7em; }
.rating { color: #e4ad2f; font-size: .88rem; letter-spacing: .1em; }
.rating span { color: var(--muted); letter-spacing: 0; font-size: .75rem; margin-left: .35rem; }
.price { font-size: 1.15rem; font-weight: 700; margin: .8rem 0 1rem; }
.product-body .button { margin-top: auto; width: 100%; font-size: .85rem; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.benefit-card { overflow: hidden; background: #fff; border: 1px solid var(--line); }
.benefit-card img { aspect-ratio: 1.5 / 1; object-fit: cover; }
.benefit-card-body { padding: 1.2rem; }
.benefit-card h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.benefit-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.review-section { background: #eef3ef; }
.review-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: start; }
.review-summary { background: #fff; border: 1px solid var(--line); padding: 2rem; }
.review-summary strong { display: block; font-size: 3rem; font-weight: 300; line-height: 1; }
.review-list { display: grid; gap: 1rem; }
.review-card { background: #fff; border: 1px solid var(--line); padding: 1.4rem; }
.review-card p { margin: .6rem 0 0; color: var(--muted); }
.review-card cite { font-style: normal; font-weight: 700; font-size: .9rem; }
.site-footer { background: #10231a; color: #fff; padding: 4rem 2.5rem 1.5rem; }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.site-footer h3 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: #9fc5aa; margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; color: #d9e4dd; font-size: .9rem; }
.footer-brand p { color: #c7d6cb; max-width: 300px; font-size: .9rem; }
.footer-bottom { max-width: var(--max); margin: 3rem auto 0; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.18); display: flex; justify-content: space-between; color: #b5c6ba; font-size: .78rem; }
.mobile-category { display: none; }
@media (max-width: 980px) {
  .nav-shell { padding: 0 1.25rem; gap: 1rem; }
  .primary-nav { gap: 1rem; font-size: .84rem; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .type-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .site-header { position: relative; }
  .nav-shell { min-height: 65px; justify-content: space-between; }
  .primary-nav { display: none; position: absolute; top: 65px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 1.25rem; flex-direction: column; align-items: flex-start; }
  .primary-nav.is-open { display: flex; }
  .menu-toggle { display: grid; }
  .brand { min-width: auto; }
  .hero { min-height: 540px; background-position: 62% center; }
  .hero-content { padding: 4rem 1.25rem; }
  .hero h1 { font-size: 2.7rem; }
  .section, .section-inner { padding-left: 1.25rem; padding-right: 1.25rem; }
  .subnav-wrap { padding: 1rem 1.25rem 0; }
  .subnav { display: none; }
  .mobile-category { display: flex; width: 100%; justify-content: space-between; align-items: center; border: 1px solid var(--green); color: var(--green); border-radius: 999px; background: #fff; padding: .7rem 1rem; font-weight: 700; }
  .mobile-links { display: none; padding: .7rem 0 0; }
  .mobile-links.is-open { display: grid; gap: .7rem; }
  .mobile-links a { padding: .75rem 1rem; border-bottom: 1px solid rgba(68,115,85,.25); }
  .type-grid, .product-grid, .benefits, .review-grid, .innovation { grid-template-columns: 1fr; }
  .type-card { min-height: 330px; }
  .product-grid { gap: .8rem; }
  .product-body { padding: .9rem; }
  .product-body h3 { font-size: .95rem; }
  .product-toolbar { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: .5rem; }
}
