/* ==========================================================================
   Base & Resets
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
p,
ul,
blockquote,
figure,
hr {
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --color-bg: #FFFFFF;
  --color-bg-alt: #FBF2F1;
  --color-bg-dark: #2E2724;
  --color-text-primary: rgb(42, 38, 34);
  --color-text-secondary: rgb(102, 89, 87);
  --color-border: rgba(42, 38, 34, 0.12);
  --color-rule: rgba(42, 38, 34, 0.10);
  --color-input-border: rgba(42, 38, 34, 0.20);
  --color-input-border-focus: rgb(42, 38, 34);

  /* Dark sections */
  --color-dark-text-primary: #FFFFFF;
  --color-dark-text-secondary: rgba(255, 255, 255, 0.79);
  --color-dark-border: rgba(255, 255, 255, 0.15);

  --color-input-error: #B00020;

  /* Layout */
  --max-width: 1100px;
  --section-padding-y: 64px;
  --section-padding-x: 24px;
}

@media (min-width: 768px) {
  :root {
    --section-padding-y: 100px;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: underline;
}

a:visited {
  color: inherit;
}

a:hover {
  opacity: 0.7;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  margin-bottom: 24px;
}

h1 {
  font-size: 42px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h2 {
  font-size: 34px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h3 {
  font-size: 21px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

@media (min-width: 768px) {
  h1 {
    font-size: 68px;
  }

  h2 {
    font-size: 50px;
  }

  h3 {
    font-size: 26px;
  }
}

/* Editorial Heading Pattern */
.editorial-heading {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.editorial-heading em {
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: lowercase;
  opacity: 0.6;
}

.subtext {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
  text-align: left;
}

p.subtext {
  text-align: inherit;
}

.label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-rule);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px var(--section-padding-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  text-decoration: none;
}

@media (min-width: 768px) {
  .wordmark {
    font-size: 17px;
    letter-spacing: 0.12em;
  }
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a.text-link {
  display: none;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav-links a.text-link:hover {
  opacity: 0.6;
}

@media (min-width: 768px) {
  .nav-links a.text-link {
    display: block;
  }
}

.site-header .btn {
  padding: 8px 24px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgb(42, 38, 34);
  color: rgb(42, 38, 34);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  text-align: center;
}

.btn:hover {
  background: rgb(42, 38, 34);
  color: #fff;
}

.btn-dark-bg {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

.btn-dark-bg:hover {
  background: #fff;
  color: rgb(42, 38, 34);
}

.btn-full {
  width: 100%;
  padding: 18px 36px;
  background: rgb(42, 38, 34);
  color: #fff;
  border-color: rgb(42, 38, 34);
}

.btn-full:hover {
  background: #1a1714;
}

/* ==========================================================================
   Layout Sections
   ========================================================================== */
.section {
  padding: var(--section-padding-y) var(--section-padding-x);
}

.section-bg-alt {
  background-color: var(--color-bg-alt);
}

.section-bg-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-dark-text-primary);
}

.section-bg-dark h1,
.section-bg-dark h2 {
  color: var(--color-dark-text-primary);
}

.section-bg-dark .subtext {
  color: var(--color-dark-text-secondary);
}

.section-bg-dark .label {
  color: var(--color-gold);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.container-narrow {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.grid-2 {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.grid-3 {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.section-rule {
  border: none;
  border-top: 1px solid var(--color-rule);
  margin: 0;
}

.mid-cta {
  text-align: center;
  margin: 48px 0;
}

.tight-cta {
  margin-top: 16px !important;
}

/* ==========================================================================
   Images
   ========================================================================== */
.img-placeholder {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-3-4 {
  aspect-ratio: 3/4;
}

.img-square {
  aspect-ratio: 1/1;
}

/* Hero Visual Patterns */
.hero-visual {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-top: 48px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .hero-visual {
    margin-top: 64px;
    aspect-ratio: 16/9;
  }
}

.img-3-4 {
  aspect-ratio: 3 / 4;
}

.img-16-9 {
  aspect-ratio: 16 / 9;
}

.img-21-9 {
  aspect-ratio: 21 / 9;
}


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

/* ==========================================================================
   Cards / Services / Testimonials
   ========================================================================== */
.service-card {
  padding: 32px;
  background: var(--color-bg);
  height: 100%;
  border: 1px solid var(--color-rule);
}

.section-bg-alt .service-card {
  background: var(--color-bg);
}

.section-bg-white .service-card {
  background: var(--color-bg-alt);
}

.link-arrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  text-decoration: none;
  display: inline-block;
  margin-top: 16px;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* Feature Grid (Why Maren Redesign) */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 40px;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.feature-card svg {
  width: 16px;
  height: 16px;
  margin-bottom: 24px;
  color: var(--color-gold);
}

.feature-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
}

.feature-card p {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
  margin-bottom: 0;
}

/* Inventory Grid / Swiper Wrapper */
.inventory-grid {
  display: flex; /* Required for Swiper */
  gap: 0;        /* Swiper handles gap via spaceBetween */
}

@media (min-width: 768px) {
  .inventory-grid {
    display: grid !important; /* Override Swiper's flex on desktop */
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    transform: none !important; /* Prevent Swiper transition on desktop */
  }
}

.inventory-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto; /* Allow Swiper to set height */
}

/* Swiper specific styles */
.inventory-swiper {
  padding-bottom: 50px; /* Space for pagination */
}

@media (max-width: 767px) {
  .inventory-swiper {
    overflow: visible !important;
  }
  
  #inventory {
    overflow: hidden;
    position: relative;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .inventory-swiper {
    padding-bottom: 0;
  }
}

.swiper-pagination-bullet-active {
  background: var(--color-text-primary) !important;
  opacity: 1;
}

.swiper-pagination {
  bottom: 0 !important;
}

.section-bg-alt .inventory-card {
  background: #fff;
}

/* Service Cards */
.service-card {
  padding: 40px;
  background: #fff;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.section:not(.section-bg-alt) .service-card {
  background: var(--color-bg-alt);
}

.section.section-bg-alt .service-card {
  background: #fff;
}

.service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  line-height: 1.2;
}

.service-card .col-price {
  margin-bottom: 24px;
  opacity: 1;
  color: var(--color-gold);
}

.inventory-card .img-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
}

.inventory-card-content {
  padding: 24px;
  text-align: left;
}

.inventory-card-content span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.inventory-card-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0;
  text-transform: uppercase;
}

.testimonial-card-grid {
  padding: 40px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  margin-bottom: 0px;
}

.section-bg-alt .testimonial-card-grid {
  background: #fff;
}

.grid-3 .testimonial-card-grid {
  height: 100%;
}

.testimonial-card-grid .quote-mark {
  color: var(--color-gold);
  font-size: 32px;
  font-family: 'Cormorant Garamond', serif;
  line-height: 1;
  display: block;
  margin-bottom: 24px;
}

.testimonial-card-grid p {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
  flex-grow: 1;
}

.testimonial-card-grid .cite-wrapper {
  margin-top: auto;
  padding-top: 16px;
}

.testimonial-card-grid cite {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  color: var(--color-text-primary);
}

.feature-row {
  margin-bottom: 32px;
}

.feature-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 8px;
  display: block;
}

/* ==========================================================================
   Inquiry Section & Forms
   ========================================================================== */
#inquiry {
  scroll-margin-top: 80px;
}

.inquiry-left .testimonial-card-grid {
  display: none;
}

@media (min-width: 768px) {
  .inquiry-left .testimonial-card-grid {
    display: flex;
    margin-top: 48px;
    background: var(--color-bg-alt);
  }
}

.vendor-note {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.vendor-note a {
  color: var(--color-text-primary);
  text-decoration: underline;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-field {
  flex: 1;
}

.form-field {
  position: relative;
  margin-bottom: 12px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 24px 16px 8px;
  background: #fff;
  border: 1px solid var(--color-input-border);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--color-text-primary);
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  border-radius: 0;
}

.form-field.grow {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.form-field.grow textarea {
  flex-grow: 1;
  height: 100%;
}

.inquiry-right {
  display: flex;
  flex-direction: column;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

@media (min-width: 768px) {
  .form-field textarea {
    min-height: 80px;
  }
}

.form-field label {
  position: absolute;
  top: 18px;
  left: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  pointer-events: none;
  transition: top 0.2s ease, font-size 0.2s ease, opacity 0.2s ease;
}

.form-field input:focus~label,
.form-field input:not(:placeholder-shown)~label,
.form-field textarea:focus~label,
.form-field textarea:not(:placeholder-shown)~label {
  top: 8px;
  font-size: 9px;
  opacity: 0.7;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-input-border-focus);
  background: #fdfdfd;
}

.form-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: rgb(42, 38, 34);
  cursor: pointer;
  border: none;
  padding: 0;
}

.form-checkbox label {
  position: static;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  pointer-events: auto;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.form-checkbox a {
  color: var(--color-text-primary);
  text-decoration: underline;
}

/* ==========================================================================
   FAQ Accordions (No JS)
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

details {
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.section-bg-alt details,
.section-bg-alt details summary,
.section-bg-alt details p {
  background-color: var(--color-bg);
}

.section:not(.section-bg-alt) details,
.section:not(.section-bg-alt) details summary,
.section:not(.section-bg-alt) details p {
  background-color: var(--color-bg-alt);
}

summary {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 18px 54px 18px 24px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  transition: background-color 0.2s ease;
}

summary:hover {
  background: #fdfdfd;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--color-text-primary);
  border-bottom: 1px solid var(--color-text-primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s ease;
}

details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

details p {
  padding: 24px;
  margin-top: 0;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
  border: 1px solid var(--color-border);
  border-top: none;
  background: #ffffff;
}

.faq-nudge a {
  color: var(--color-text-primary);
  text-decoration: underline;
  font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-bg-dark);
  padding: 64px var(--section-padding-x);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.site-footer .wordmark {
  color: #fff;
}

.site-footer p {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 400px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.79);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .copyright {
    flex-direction: row;
    justify-content: center;
    gap: 32px;
  }
}

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

.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #fff;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

.mb-48 {
  margin-bottom: 48px;
}

.mb-64 {
  margin-bottom: 64px;
}

.mt-32 {
  margin-top: 32px;
}

.mt-48 {
  margin-top: 48px;
}

.centered-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* For lists in articles */
.content-list {
  list-style: none;
  margin-top: 24px;
}

.content-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--color-text-secondary);
}

.content-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-gold);
}

/* Full height hero utility for thank you / 404 */
.vh-100 {
  min-height: 100vh;
}

.full-screen-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 24px;
}

/* ==========================================================================
   Comparison Table
   ========================================================================== */

.comparison-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 48px;
}

.comparison-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
}

.comparison-table th {
  padding: 24px 16px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--color-text-primary);
  color: var(--color-text-primary);
}

.comparison-table th:first-child {
  text-align: left;
  padding-left: 0;
}

.comparison-table td {
  padding: 20px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 15px;
  color: var(--color-text-secondary);
}

.comparison-table td:first-child {
  text-align: left;
  color: var(--color-text-primary);
  font-weight: 500;
  padding-left: 0;
}

.comparison-table tr:hover td {
  background-color: rgba(0,0,0,0.02);
}

.checkmark {
  color: #8b7355;
  font-size: 18px;
  font-weight: bold;
}

.cross {
  color: #ccc;
  font-size: 18px;
}

.table-note {
  font-size: 14px;
  font-style: italic;
  opacity: 0.8;
}

.col-price {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 4px;
  opacity: 0.7;
}

/* END OF STYLES */