/*
Theme Name: Walk-In Tubs Online
Theme URI: https://walkintubs.online
Description: Premium WordPress theme for Walk-In Tubs Online - featuring luxury design, compliance-ready structure, and SEO optimization
Version: 1.0.0
Author: Walk-In Tubs Online
Author URI: https://walkintubs.online
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: walkintubs
*/

:root {
  --bg: linear-gradient(145deg, #050814 0%, #0d1b3d 40%, #1a3f8b 100%);
  --text: #f5f7fa;
  --muted: #9aa8c2;
  --accent: #3a7dff;
  --accent-hover: #5a95ff;
  --lux-gold: #d4af37;
  --panel: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.15);
  --shadow: 0 25px 80px rgba(0,0,0,.6);
  --radius: 18px;
  --radius-pill: 999px;
  --maxw: 1200px;
  --gap: 28px;
  --display: "Playfair Display", serif;
  --body: "Inter", sans-serif;
  --content: 800px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--lux-gold);
}

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.headline {
  font-family: var(--display);
  letter-spacing: -.02em;
  line-height: 1.1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
}

h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin: 32px 0 12px;
}

h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-top: 28px;
  margin-bottom: 10px;
}

h3 {
  font-size: 18px;
  margin-top: 18px;
  margin-bottom: 8px;
}

p, li, label, input, textarea {
  line-height: 1.6;
  font-size: 17px;
  color: #e9edf5;
}

ul, ol {
  padding-left: 20px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px) saturate(1.2);
  background: rgba(5, 8, 20, 0.6);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 0;
}

/* Brand / Logo */
.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 120px;
}

.brand img.logo {
  height: clamp(48px, 6vw, 80px);
  width: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.brand img.logo:hover {
  transform: scale(1.05);
}

/* Menu */
.menu {
  display: flex;
  gap: 22px;
  margin-left: 24px;
  align-items: center;
}

.menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 40px;
  padding: 8px 12px;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.3s ease;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--lux-gold);
  transition: width 0.3s ease;
}

.menu a:hover {
  color: var(--lux-gold);
}

.menu a:hover::after {
  width: 100%;
}

.menu a.active,
.menu a.current-menu-item a {
  color: var(--lux-gold);
  font-weight: 600;
}

.spacer {
  flex: 1;
}

/* Search */
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  max-width: 420px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search:focus-within {
  border-color: var(--lux-gold);
  box-shadow: 0 0 12px rgba(212,175,55,0.3);
}

.search input {
  flex: 1;
  background: transparent;
  color: var(--text);
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--body);
}

.search input::placeholder {
  color: var(--muted);
  font-style: italic;
}

.search button {
  background: linear-gradient(135deg, var(--lux-gold), #f7e7a3);
  color: #050814;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212,175,55,0.4);
}

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: grid;
  align-items: center;
  background: linear-gradient(120deg, rgba(5,8,20,.82), rgba(10,20,60,.66)),
    url('https://cdn.shopify.com/s/files/1/0919/3393/3850/files/hero_backgrounf.png?v=1761267739') center/cover no-repeat;
}

.hero-inner {
  padding: 110px 0;
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  text-shadow: 0 4px 20px rgba(0,0,0,.6);
}

.hero p {
  margin-top: 18px;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--muted);
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: all .3s ease;
  box-shadow: 0 6px 20px rgba(58,125,255,.4);
}

.btn:hover {
  background: var(--accent-hover);
  border-color: var(--lux-gold);
  box-shadow: 0 8px 28px rgba(58,125,255,.6);
  transform: translateY(-3px);
}

/* Sections */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 16px;
}

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

/* Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: transform .3s ease, border-color .3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--lux-gold);
}

.card-media {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 16px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
}

.card-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  font-size: 14px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.chip:hover {
  border-color: var(--lux-gold);
  background: rgba(212,175,55,.08);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination .page,
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.pagination .page:hover,
.pagination a:hover {
  border-color: var(--lux-gold);
  color: var(--lux-gold);
  background: rgba(212,175,55,0.08);
}

.pagination .page.current,
.pagination .current {
  background: var(--lux-gold);
  color: #050814;
  font-weight: 700;
  border-color: var(--lux-gold);
  box-shadow: 0 0 12px rgba(212,175,55,0.4);
}

/* Forms */
form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

input,
textarea {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-family: var(--body);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--lux-gold);
  box-shadow: 0 0 0 2px rgba(212,175,55,.25);
}

button[type="submit"] {
  padding: 12px 18px;
  border-radius: var(--pill);
  border: 1px solid var(--border);
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: var(--accent-hover);
  border-color: var(--lux-gold);
}

/* Content Styles */
.main {
  max-width: var(--content);
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.article-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0;
}

.blockquote {
  border-left: 3px solid var(--lux-gold);
  padding: 12px 16px;
  background: rgba(212,175,55,.06);
  border-radius: 12px;
  margin: 24px 0;
}

.notice {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin: 16px 0;
}

/* Footer */
.footer {
  padding: 50px 0;
  background: linear-gradient(180deg, #050814 0%, #0a1124 100%);
  border-top: 1px solid var(--border);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.footer-nav a {
  padding: 8px 10px;
  border-radius: 10px;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--lux-gold);
}

.copyright {
  margin-top: 16px;
  font-size: 13px;
  color: #9aa8c2;
  text-align: center;
}

/* Article Content Styles */
.article {
  max-width: 820px;
  margin: 0 auto;
}

.article p {
  line-height: 1.7;
  color: #e9edf5;
  font-size: 18px;
  margin: 16px 0;
}

.article h2,
.article h3 {
  font-family: var(--display);
}

.article h2 {
  font-size: 28px;
  margin: 28px 0 10px;
}

.article h3 {
  font-size: 22px;
  margin: 22px 0 8px;
}

.article ul,
.article ol {
  line-height: 1.7;
  color: #e9edf5;
  font-size: 18px;
  padding-left: 20px;
  margin: 16px 0;
}

.article li {
  margin: 8px 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

thead th {
  background: rgba(255,255,255,.06);
  color: #eef1f7;
  font-weight: 700;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

tbody td {
  padding: 10px;
  border-top: 1px solid var(--border);
  color: #e9edf5;
}

/* Grid Layout for Articles */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.box h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.box p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* CTA Sections */
.cta {
  margin: 24px 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.cta h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 22px;
}

.cta p {
  margin: 8px 0;
  font-size: 16px;
}

.cta .btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn.secondary {
  background: transparent;
  color: var(--text);
}

/* Ad Placeholders */
.ad {
  margin: 24px 0;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.ad.sticky {
  position: sticky;
  top: 90px;
}

/* Related Posts Section */
.related {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.related h3 {
  font-family: var(--display);
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--text);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.rel-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: block;
  text-decoration: none;
}

.rel-card:hover {
  transform: translateY(-4px);
  border-color: var(--lux-gold);
}

.rel-card img {
  height: 140px;
  object-fit: cover;
  width: 100%;
  display: block;
}

.rel-card .rel-body {
  padding: 12px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}

/* Comment Form Styling */
.comment-respond {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.comment-respond .comment-reply-title {
  font-family: var(--display);
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--text);
}

.comment-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-family: var(--body);
  margin-bottom: 16px;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--lux-gold);
  box-shadow: 0 0 0 2px rgba(212,175,55,.25);
}

.comment-form .form-submit {
  margin-top: 10px;
}

.comment-form .submit {
  padding: 12px 18px;
  border-radius: var(--pill);
  border: 1px solid var(--border);
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.comment-form .submit:hover {
  background: var(--accent-hover);
  border-color: var(--lux-gold);
  transform: translateY(-2px);
}

/* Article Hero/Header */
.hero.article-hero {
  text-align: center;
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--border);
}

.hero.article-hero .title {
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 12px;
  text-align: center;
}

.hero.article-hero .article-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero.article-hero .subhead {
  margin: 16px auto 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  color: var(--muted);
  max-width: 900px;
  text-align: center;
}

.hero.article-hero .cover {
  margin: 22px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 940px;
}

.hero.article-hero .cover img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article Footer - Categories/Tags */
.article-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-footer strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 10px;
}

.article-footer .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.alignleft {
  float: left;
  margin-right: 20px;
}

.alignright {
  float: right;
  margin-left: 20px;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  padding: 8px 0;
}

/* Responsive */
@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav {
    padding: 12px 0;
    gap: 14px;
  }
  .menu {
    gap: 14px;
    margin-left: 12px;
    flex-wrap: wrap;
  }
  .search {
    max-width: 360px;
  }
}

@media (max-width: 860px) {
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .nav {
    flex-wrap: wrap;
  }
  .brand {
    order: 1;
    width: 100%;
    justify-content: center;
  }
  .search {
    order: 2;
    width: 100%;
    margin-top: 10px;
  }
  .menu {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .cta-row {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* Accessibility */
a:focus,
button:focus,
input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.45);
  border-radius: 6px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}