/*
Theme Name: SURMOI Theme
Theme URI: https://surmoi.app
Author: SURMOI
Author URI: https://surmoi.app
Description: WordPress theme for SURMOI household project.
Version: 1.0.0
Text Domain: surmoi-theme
*/

:root {
  --background: 40 33% 97%;
  --foreground: 200 15% 15%;
  --card: 40 30% 95%;
  --primary: 140 18% 42%;
  --primary-foreground: 40 33% 97%;
  --secondary: 30 40% 90%;
  --muted-foreground: 200 10% 45%;
  --accent: 28 60% 58%;
  --accent-foreground: 40 33% 97%;
  --border: 40 20% 88%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

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

.site-container {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid hsl(var(--border));
  padding: 1.5rem 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  line-height: 1;
}

.site-header__nav { flex: 1; display: flex; justify-content: center; }

.site-menu { margin: 0; padding: 0; list-style: none; }
.site-menu--primary { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.site-menu--primary a { font-size: 0.95rem; color: hsl(var(--muted-foreground)); }
.site-menu--primary a:hover { color: hsl(var(--foreground)); }

.site-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: 999px;
  padding: 0.95rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
}
.site-cta--header { padding: 0.65rem 1.5rem; font-size: 0.9rem; }

.site-main { padding-bottom: 0; }

.hero-section { padding: 5rem 0 6rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-copy { display: grid; gap: 2rem; }
.hero-copy h1 { font-size: clamp(2.2rem, 4.8vw, 4.1rem); line-height: 1.08; }
.hero-copy p { font-size: clamp(1rem, 1.7vw, 1.35rem); line-height: 1.65; color: hsl(var(--muted-foreground)); max-width: 34rem; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { max-width: 100%; width: min(430px, 100%); height: auto; }

.content-section { padding: 4rem 0 5rem; }
.content-section--card { background: hsl(var(--card)); }

.intro-block { max-width: 44rem; text-align: center; display: grid; gap: 1.5rem; }
.intro-block h2,
.section-title,
.compact-section h2 { font-size: clamp(2rem, 3.6vw, 3rem); text-align: center; }
.intro-block p { font-size: 1.2rem; color: hsl(var(--muted-foreground)); line-height: 1.7; }

.feature-grid,
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.feature-card,
.step-card { display: grid; gap: 1rem; align-content: start; }
.feature-icon { width: 3rem; height: 3rem; border-radius: 0.75rem; background: hsl(var(--secondary)); display: grid; place-items: center; font-size: 1.4rem; line-height: 1; }
.feature-card h3,
.step-card h3 { font-size: 1.55rem; }
.feature-card p,
.step-card p { color: hsl(var(--muted-foreground)); }

.compact-section { max-width: 44rem; }
.compact-intro { text-align: center; font-size: 1.2rem; color: hsl(var(--muted-foreground)); margin: 1.8rem 0; }
.compact-intro--left { text-align: left; }
.bullet-list { margin: 0 0 2.25rem; padding: 0; list-style: none; display: grid; gap: 1rem; }
.bullet-list li { display: flex; gap: 0.85rem; align-items: flex-start; font-size: 1.15rem; }
.bullet-list li::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: hsl(var(--accent));
  margin-top: 0.6rem;
  flex: 0 0 auto;
}
.centered-cta { text-align: center; margin-top: 2.5rem; }

.steps-grid .step-number {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  display: grid;
  place-items: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
}

.home-footer-block {
  padding: 4rem 0 3rem;
  border-top: 1px solid hsl(var(--border));
}
.home-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.home-footer-brand { font-family: 'DM Serif Display', serif; font-size: 2rem; margin-bottom: 0.75rem; }
.home-footer-muted { color: hsl(var(--muted-foreground)); font-size: 0.95rem; margin-bottom: 0.75rem; }
.home-footer-small { color: hsl(var(--muted-foreground)); font-size: 0.8rem; }
.home-footer-grid h3 { font-family: 'DM Sans', sans-serif; font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.9rem; }
.home-footer-grid ul,
.site-menu--footer { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.home-footer-grid a,
.site-menu--footer a { color: hsl(var(--muted-foreground)); font-size: 0.93rem; }

.site-footer {
  border-top: 1px solid hsl(var(--border));
  padding: 2rem 0;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.site-footer p,
.site-footer a { color: hsl(var(--muted-foreground)); font-size: 0.76rem; }
.site-footer__links { display: flex; gap: 1.4rem; }

@media (max-width: 980px) {
  .hero-grid,
  .feature-grid,
  .steps-grid,
  .home-footer-grid { grid-template-columns: 1fr; }

  .site-header__inner { flex-wrap: wrap; }
  .site-header__nav { order: 3; width: 100%; justify-content: flex-start; }
  .site-cta--header { margin-left: auto; }
  .intro-block,
  .compact-section { max-width: 100%; }
}

@media (max-width: 760px) {
  .site-container { width: min(1120px, calc(100% - 2rem)); }
  .hero-section { padding: 3.5rem 0 4rem; }
  .content-section { padding: 3rem 0; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

.page-layout {
  width: min(960px, calc(100% - 3rem));
  margin: 4rem auto 5rem;
}

.page-article {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: clamp(1.5rem, 2.4vw, 2.5rem);
}

.page-article__header {
  margin-bottom: 1.5rem;
}

.page-article__title {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.page-article__content {
  color: hsl(var(--foreground));
}

.page-article__content > * + * {
  margin-top: 1.15rem;
}

.legal-page-layout {
  width: min(860px, calc(100% - 3rem));
  margin: 5.5rem auto 6rem;
}

.legal-article__header {
  margin-bottom: 3rem;
  text-align: center;
}

.legal-article__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.legal-article__subtitle {
  margin-top: 0.8rem;
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
}

.legal-article__content {
  display: grid;
  gap: 2.5rem;
  color: hsl(var(--foreground));
}

.legal-article__content h2,
.legal-article__content h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  margin-bottom: 1rem;
}

.legal-article__content p,
.legal-article__content li {
  color: hsl(var(--foreground) / 0.85);
}

.legal-article__content p + p,
.legal-article__content ul + p,
.legal-article__content ol + p,
.legal-article__content p + ul,
.legal-article__content p + ol {
  margin-top: 1rem;
}

.legal-article__content ul,
.legal-article__content ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.45rem;
}

.legal-article__content hr {
  border: 0;
  border-top: 1px solid hsl(var(--border));
  margin: 0.5rem 0;
}

@media (max-width: 760px) {
  .page-layout,
  .legal-page-layout {
    width: min(960px, calc(100% - 2rem));
  }

  .legal-page-layout {
    margin-top: 4rem;
    margin-bottom: 4.5rem;
  }
}

.account-page {
  padding: 7rem 0 5rem;
}

.account-page__container {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

.account-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.account-page__title {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.account-page__welcome {
  color: hsl(var(--muted-foreground));
  margin-top: 0.5rem;
}

.account-page__welcome span {
  color: hsl(var(--foreground));
  font-weight: 500;
}

.account-page__logout {
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

.account-page__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2rem;
}

.account-page__tabs {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.account-page__tab {
  border: 1px solid transparent;
  background: transparent;
  color: hsl(var(--muted-foreground));
  font: inherit;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
}

.account-page__tab:hover,
.account-page__tab:focus-visible {
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
  outline: none;
}

.account-page__tab.is-active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.account-page__panel {
  display: none;
}

.account-page__panel.is-active {
  display: block;
}

.account-page__panel h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.account-orders,
.account-profile-list,
.account-page__editable-content {
  border: 1px solid hsl(var(--border));
  border-radius: 0.9rem;
  background: hsl(var(--card));
}

.account-orders__item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
}

.account-orders__item + .account-orders__item {
  border-top: 1px solid hsl(var(--border));
}

.account-orders__id {
  font-weight: 500;
}

.account-orders__date,
.account-orders__status {
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

.account-orders__total {
  font-weight: 500;
}

.account-page__editable-content {
  padding: 1.2rem;
}

.account-page__editable-content > * + * {
  margin-top: 0.8rem;
}

.account-profile-list {
  list-style: none;
  margin: 0;
  padding: 1.2rem;
  display: grid;
  gap: 0.7rem;
}

.account-page__empty {
  color: hsl(var(--muted-foreground));
}

@media (max-width: 820px) {
  .account-page {
    padding-top: 4.5rem;
  }

  .account-page__container {
    width: min(1120px, calc(100% - 2rem));
  }

  .account-page__header {
    flex-direction: column;
  }

  .account-page__layout {
    grid-template-columns: 1fr;
  }

  .account-page__tabs {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .account-orders__item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.cart-page {
  padding: 7rem 0 5rem;
}

.cart-page__container {
  width: min(1024px, calc(100% - 3rem));
  margin: 0 auto;
}

.cart-page__title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-bottom: 2rem;
}

.cart-page__intro {
  margin-bottom: 1.5rem;
  color: hsl(var(--muted-foreground));
}

.cart-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.cart-page__items {
  display: grid;
  gap: 1rem;
}

.cart-item {
  display: flex;
  gap: 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background: hsl(var(--card));
  padding: 1.25rem;
}

.cart-item__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  background: hsl(var(--secondary));
  display: grid;
  place-items: center;
}

.cart-item__name {
  font-size: 1rem;
  margin: 0;
}

.cart-item__meta {
  color: hsl(var(--muted-foreground));
  margin-top: 0.45rem;
  font-size: 0.88rem;
}

.cart-item__actions {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.cart-item__price {
  font-weight: 500;
}

.cart-item__remove {
  color: hsl(var(--muted-foreground));
}

.cart-item__remove:hover {
  color: hsl(var(--destructive));
}

.cart-coupon {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.cart-coupon input {
  flex: 1;
  border-radius: 0.6rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  padding: 0.75rem 1rem;
}

.cart-coupon button,
.cart-summary__checkout {
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  padding: 0.75rem 1.5rem;
}

.cart-summary {
  position: sticky;
  top: 7rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background: hsl(var(--card));
  padding: 1.5rem;
}

.cart-summary__title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.cart-summary__lines,
.cart-summary__totals {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid hsl(var(--border));
}

.cart-summary__line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.cart-summary__line span:first-child {
  color: hsl(var(--muted-foreground));
}

.cart-summary__line--total {
  font-weight: 600;
  font-size: 1.05rem;
}

.cart-summary__line--total span:first-child {
  color: hsl(var(--foreground));
}

.cart-summary__note {
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.cart-summary__checkout {
  display: block;
  width: 100%;
  text-align: center;
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.cart-page__empty {
  border: 1px dashed hsl(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  color: hsl(var(--muted-foreground));
}

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

  .cart-summary {
    position: static;
  }
}

@media (max-width: 720px) {
  .cart-page {
    padding-top: 5.5rem;
  }

  .cart-page__container {
    width: min(1024px, calc(100% - 2rem));
  }

  .cart-item {
    flex-direction: column;
  }

  .cart-item__actions {
    margin-left: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cart-coupon {
    flex-direction: column;
  }
}

.checkout-page {
  padding: 7rem 0 5rem;
}

.checkout-page__container {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

.checkout-page__title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-bottom: 1rem;
}

.checkout-page__intro {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.75rem;
}

.checkout-page .woocommerce-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2rem;
  align-items: start;
}

.checkout-page .col2-set {
  display: grid;
  gap: 1.5rem;
}

.checkout-page .woocommerce-billing-fields,
.checkout-page .woocommerce-additional-fields,
.checkout-page #order_review {
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background: hsl(var(--card));
  padding: 1.25rem;
}

.checkout-page .woocommerce-billing-fields h3,
.checkout-page .woocommerce-additional-fields h3,
.checkout-page #order_review_heading {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.checkout-page .form-row {
  margin-bottom: 0.8rem;
}

.checkout-page .form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.checkout-page .input-text,
.checkout-page select,
.checkout-page textarea {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  padding: 0.72rem 0.9rem;
}

.checkout-page #order_review {
  position: sticky;
  top: 7rem;
}

.checkout-page #order_review table {
  margin: 0;
}

.checkout-page #order_review th,
.checkout-page #order_review td {
  border-color: hsl(var(--border));
}

.checkout-page .woocommerce-checkout-payment {
  margin-top: 1rem;
  border-top: 1px solid hsl(var(--border));
  padding-top: 1rem;
}

.checkout-page .woocommerce-checkout-payment .payment_box {
  background: hsl(var(--secondary));
}

.checkout-page .place-order .button,
.checkout-page #place_order {
  width: 100%;
  border-radius: 999px;
  border: 1px solid hsl(var(--primary));
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.8rem 1.4rem;
}

.checkout-page__empty {
  border: 1px dashed hsl(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  color: hsl(var(--muted-foreground));
}

@media (max-width: 980px) {
  .checkout-page .woocommerce-checkout {
    grid-template-columns: 1fr;
  }

  .checkout-page #order_review {
    position: static;
  }
}

@media (max-width: 720px) {
  .checkout-page {
    padding-top: 5.5rem;
  }

  .checkout-page__container {
    width: min(1120px, calc(100% - 2rem));
  }
}


.subscription-page-layout {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 5rem 0 6rem;
}

.subscription-page {
  width: min(100%, 42rem);
  margin: 0 auto;
  background: transparent;
  border: 0;
  padding: 0;
}

.subscription-page__header {
  text-align: center;
  margin-bottom: 2rem;
}

.subscription-page__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.subscription-page__icon--primary {
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
}

.subscription-page__icon--destructive {
  background: hsl(0 72% 92%);
  color: hsl(0 66% 44%);
}

.subscription-page__icon--accent {
  background: hsl(var(--accent) / 0.16);
  color: hsl(var(--accent));
}

.subscription-page__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.subscription-page__description {
  max-width: 34rem;
  margin: 0 auto;
  color: hsl(var(--muted-foreground));
  font-size: 1.05rem;
  line-height: 1.7;
}

.subscription-page__content {
  color: hsl(var(--foreground));
}

.subscription-page__content > * + * {
  margin-top: 1rem;
}

.subscription-page__content form,
.subscription-page__content .mailpoet_page,
.subscription-page__content .mailpoet_page__subscription,
.subscription-page__content .mailpoet_page__unsubscribe,
.subscription-page__content .mailpoet_paragraph {
  max-width: 100%;
}

.subscription-page__content form {
  display: grid;
  gap: 1rem;
}

.subscription-page__content label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.subscription-page__content input[type="text"],
.subscription-page__content input[type="email"],
.subscription-page__content input[type="tel"],
.subscription-page__content input[type="password"],
.subscription-page__content input[type="search"],
.subscription-page__content input[type="number"],
.subscription-page__content input[type="url"],
.subscription-page__content select,
.subscription-page__content textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: #fff;
  color: hsl(var(--foreground));
  font: inherit;
}

.subscription-page__content input:focus,
.subscription-page__content select:focus,
.subscription-page__content textarea:focus {
  outline: 2px solid hsl(var(--primary) / 0.25);
  outline-offset: 2px;
  border-color: hsl(var(--primary));
}

.subscription-page__content input[type="checkbox"],
.subscription-page__content input[type="radio"] {
  margin-right: 0.65rem;
}

.subscription-page__content button,
.subscription-page__content input[type="submit"],
.subscription-page__content .button,
.subscription-page__content .btn,
.subscription-page__content .mailpoet_submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.75rem;
  border: 0;
  border-radius: 999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.subscription-page__content .mailpoet_submit,
.subscription-page__content input[type="submit"] {
  width: auto;
}

.subscription-page__content .mailpoet_text,
.subscription-page__content .mailpoet_textarea,
.subscription-page__content .mailpoet_select,
.subscription-page__content .mailpoet_checkbox_label,
.subscription-page__content .mailpoet_radio_label {
  width: 100%;
}

.subscription-page__content p,
.subscription-page__content li,
.subscription-page__content small,
.subscription-page__content .mailpoet_paragraph,
.subscription-page__content .mailpoet_segment_label {
  color: hsl(var(--muted-foreground));
}

.subscription-page__content .mailpoet_success,
.subscription-page__content .mailpoet_message,
.subscription-page__content .woocommerce-message,
.subscription-page__content .woocommerce-info {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--foreground));
}

@media (max-width: 760px) {
  .subscription-page-layout {
    width: min(1120px, calc(100% - 2rem));
    padding: 3.5rem 0 4rem;
  }
}
