/**
 * The 3 Closets — Brand Design System v3.0
 *
 * EXACT CI match with the homepage SPA (uno-editorial-home).
 * All color values, spacing, typography, and effects are taken
 * directly from index.css and App.tsx of the React SPA.
 *
 * KEY DIFFERENCES FROM v2:
 * - Colors: HSL values from SPA :root variables (NOT Material You)
 * - Images: GRAYSCALE filter (NOT sepia)
 * - Dividers: BLACK lines (NOT brown/beige)
 * - Max-width: 1440px (NOT 1536px)
 * - Section padding: 64px/96px (NOT 192px/256px)
 * - Body font: Cormorant Garamond (NOT Manrope)
 * - Background: hsl(30,20%,95%) (NOT #f8f5f0)
 * - Selection: rgba(0,0,0,0.08) (NOT rgba(61,58,53,0.08))
 *
 * @package Astra_Child_The3Closets
 * @version 3.0.0
 */


/* ══════════════════════════════════════════════════════════════════════
   A. CSS Custom Properties — EXACT homepage SPA values
   ══════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Brand Colors (from SPA index.css :root) ── */
  --t3c-bg:               hsl(30, 20%, 95%);    /* #f5f0eb */
  --t3c-fg:               hsl(30, 5%, 15%);     /* #272524 */
  --t3c-muted:            hsl(30, 5%, 45%);     /* #807a6f */
  --t3c-border:           hsl(30, 10%, 82%);    /* #d6cfc5 */
  --t3c-secondary:        hsl(30, 10%, 88%);    /* #e3ddd4 */
  --t3c-card:             hsl(30, 15%, 92%);    /* #ede8e1 */
  --t3c-accent:           hsl(30, 10%, 88%);    /* #e3ddd4 */
  --t3c-input:            hsl(30, 10%, 85%);    /* #ddd6cc */

  /* ── Extended palette (derived from SPA) ── */
  --t3c-primary:          hsl(30, 5%, 15%);     /* same as fg */
  --t3c-on-primary:       hsl(30, 20%, 95%);    /* same as bg */
  --t3c-surface-dim:      hsl(30, 10%, 85%);
  --t3c-surface-container: hsl(30, 15%, 92%);
  --t3c-surface-container-low: hsl(30, 12%, 93%);
  --t3c-surface-bright:   hsl(30, 20%, 95%);
  --t3c-outline:          hsl(30, 5%, 45%);
  --t3c-outline-variant:  hsl(30, 10%, 82%);
  --t3c-on-surface:       hsl(30, 5%, 15%);
  --t3c-on-surface-variant: hsl(30, 5%, 45%);
  --t3c-highlight:        hsl(30, 5%, 45%);
  --t3c-success:          hsl(30, 5%, 35%);
  --t3c-error:            #ba1a1a;
  --t3c-warning:          hsl(40, 40%, 50%);

  /* ── Typography — EXACT SPA fonts ── */
  --t3c-font:             'Cormorant Garamond', Georgia, serif;
  --t3c-font-headline:    'Cormorant Garamond', Georgia, serif;
  --t3c-font-serif:       'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --t3c-font-body:        'Cormorant Garamond', Georgia, serif;
  --t3c-font-label:       'Cormorant Garamond', Georgia, serif;
  --t3c-font-cjk:         'Noto Serif TC', serif;
  --t3c-font-mono:        'JetBrains Mono', 'Fira Code', monospace;

  /* Font sizes */
  --t3c-fs-2xs:      10px;
  --t3c-fs-xs:       11px;
  --t3c-fs-sm:       12px;
  --t3c-fs-base:     14px;   /* SPA body = 14px */
  --t3c-fs-md:       15px;
  --t3c-fs-lg:       18px;
  --t3c-fs-xl:       24px;
  --t3c-fs-2xl:      30px;
  --t3c-fs-3xl:      36px;
  --t3c-fs-4xl:      42px;
  --t3c-fs-5xl:      54px;
  --t3c-fs-6xl:      64px;
  --t3c-fs-7xl:      80px;

  /* Line heights */
  --t3c-lh-tight:    1.15;
  --t3c-lh-heading:  1.25;   /* SPA h1 leading = 1.25 */
  --t3c-lh-body:     1.85;   /* SPA body = 1.85 */
  --t3c-lh-relaxed:  2;

  /* Font weights */
  --t3c-fw-light:    300;    /* SPA default */
  --t3c-fw-regular:  400;
  --t3c-fw-medium:   500;

  /* Letter spacing */
  --t3c-ls-tight:    -0.02em;
  --t3c-ls-normal:   0.04em;
  --t3c-ls-editorial:0.05em;
  --t3c-ls-wide:     0.08em;
  --t3c-ls-wider:    0.15em;
  --t3c-ls-widest:   0.22em;
  --t3c-ls-label:    0.35em;
  --t3c-ls-mega:     0.5em;

  /* ── Spacing — EXACT SPA values ── */
  --t3c-px:          24px;   /* SPA px-6 = 24px */
  --t3c-px-md:       48px;   /* SPA md:px-12 = 48px */
  --t3c-px-lg:       64px;   /* SPA lg:px-16 = 64px */
  --t3c-section-py:  64px;   /* SPA py-16 = 64px */
  --t3c-section-py-md: 96px; /* SPA md:py-24 = 96px */

  --t3c-space-xs:    8px;
  --t3c-space-sm:    16px;
  --t3c-space-md:    24px;
  --t3c-space-lg:    40px;
  --t3c-space-xl:    64px;
  --t3c-space-2xl:   96px;
  --t3c-space-3xl:   128px;

  /* ── Layout — EXACT SPA values ── */
  --t3c-content-max: 1440px;  /* SPA max-w-[1440px] */
  --t3c-wide-max:    1440px;
  --t3c-narrow-max:  800px;

  /* ── Borders & Radius ── */
  --t3c-radius-none: 0px;
  --t3c-radius-sm:   4px;
  --t3c-radius-md:   8px;

  /* ── Transitions — SPA easing ── */
  --t3c-ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t3c-ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --t3c-ease-in:     cubic-bezier(0.55, 0.085, 0.68, 0.53);
  --t3c-duration-sm: 0.3s;
  --t3c-duration:    0.45s;
  --t3c-duration-md: 0.7s;
  --t3c-duration-lg: 1s;

  /* ── Shadows ── */
  --t3c-shadow-sm:   0 1px 3px rgba(39, 37, 36, 0.04);
  --t3c-shadow:      0 4px 12px rgba(39, 37, 36, 0.06);
  --t3c-shadow-lg:   0 8px 24px rgba(39, 37, 36, 0.08);
}


/* ══════════════════════════════════════════════════════════════════════
   B. Global Reset / Base — matching SPA body styles
   ══════════════════════════════════════════════════════════════════════ */

body,
body.flavor-flavor,
body.flavor-flavor .ast-container,
.ast-separate-container,
.ast-plain-container,
#page,
.site {
  background-color: hsl(30, 20%, 95%) !important;
}

body {
  color: var(--t3c-fg);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Override Astra heading defaults */
h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title,
.ast-archive-title,
.site-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  color: var(--t3c-fg);
  letter-spacing: var(--t3c-ls-tight);
  line-height: var(--t3c-lh-heading);
  margin-top: 0;
}

h1, .entry-title {
  font-size: clamp(28px, 5vw, 36px);
}

h2 {
  font-size: clamp(24px, 4vw, 30px);
}

h3 {
  font-size: clamp(18px, 3vw, 24px);
}

h4 {
  font-size: var(--t3c-fs-xl);
}

h5 {
  font-size: var(--t3c-fs-lg);
  font-weight: 400;
}

h6 {
  font-size: var(--t3c-fs-base);
  font-weight: 400;
  letter-spacing: var(--t3c-ls-wider);
  text-transform: uppercase;
}

/* Links */
a {
  color: var(--t3c-fg);
  text-decoration: none;
  transition: color var(--t3c-duration) var(--t3c-ease);
}

a:hover {
  color: var(--t3c-fg);
  opacity: 0.7;
}

/* Override Astra link colors — NO underline (match SPA) */
.ast-single-post a,
.type-page a,
.entry-content a {
  color: var(--t3c-fg);
  text-decoration: none !important;
  transition: opacity var(--t3c-duration) var(--t3c-ease);
}

.ast-single-post a:hover,
.type-page a:hover,
.entry-content a:hover {
  color: var(--t3c-fg);
  opacity: 0.7;
  text-decoration: none !important;
}

/* Override ALL Astra button default hover/focus styles */
button,
.ast-button,
.button,
[type="submit"] {
  background-color: transparent;
  box-shadow: none;
}

button:hover,
button:focus,
button:focus-visible,
button:active,
.ast-button:hover,
.ast-button:focus {
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Selection — EXACT SPA value */
::selection {
  background-color: rgba(0, 0, 0, 0.08);
}

::-moz-selection {
  background-color: rgba(0, 0, 0, 0.08);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--t3c-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--t3c-border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--t3c-muted);
}


/* ══════════════════════════════════════════════════════════════════════
   C. Astra Header / Footer Override
   ══════════════════════════════════════════════════════════════════════ */

.the3c-header {
  background-color: transparent;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.the3c-footer {
  background-color: transparent;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.ast-primary-header-bar,
.ast-mobile-header-wrap {
  background-color: transparent !important;
  border-bottom: none !important;
}

.site-header,
.ast-header-sticked {
  background-color: transparent !important;
}


/* Hide Astra page title — each page has its own hero/title section */
.page .entry-header,
.page .ast-archive-description {
  display: none !important;
}


/* ══════════════════════════════════════════════════════════════════════
   D. Content Area Styling
   ══════════════════════════════════════════════════════════════════════ */

/* Remove Astra container padding — our content handles its own */
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-separate-container .page-content,
.ast-plain-container .site-content .ast-container {
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: 100% !important;
}

.ast-separate-container .ast-article-single .entry-content,
.ast-plain-container .entry-content {
  padding: 0 !important;
}

/* Site content — no extra padding from Astra */
.site-content .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}

.site-content .ast-container,
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single,
.ast-separate-container .page-content,
.ast-separate-container .entry-content {
  background-color: transparent;
}

/* Content max-width = 1440px (SPA) */
.entry-content,
.page-content,
.post-content {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

/* Paragraphs */
.entry-content p,
.page-content p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--t3c-muted);
  margin-bottom: 1.6em;
}

/* Images — GRAYSCALE editorial filter (EXACT SPA) */
.entry-content img:not(.emoji):not(.wp-smiley),
.page-content img:not(.emoji):not(.wp-smiley),
.wp-block-image img {
  filter: grayscale(0.85) contrast(1.08) brightness(1.02);
  object-fit: cover;
  border-radius: 0;
}

/* Figures & captions */
.entry-content figure,
.wp-block-image {
  margin-bottom: var(--t3c-space-lg);
}

.entry-content figcaption,
.wp-block-image figcaption {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t3c-muted);
  text-align: center;
  margin-top: var(--t3c-space-sm);
}

/* Blockquotes */
.entry-content blockquote,
.wp-block-quote {
  border-left: 1px solid var(--t3c-fg);
  padding: 24px 40px;
  margin: 64px 0;
  background: transparent;
}

.entry-content blockquote p,
.wp-block-quote p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.25;
  color: var(--t3c-fg);
}

.entry-content blockquote cite,
.wp-block-quote cite {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--t3c-muted);
  margin-top: 16px;
  font-style: normal;
}

/* Lists */
.entry-content ul,
.entry-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.6em;
}

.entry-content ul {
  list-style: none;
}

.entry-content ul li {
  position: relative;
  padding-left: 1em;
  font-size: 14px;
  line-height: 1.85;
  color: var(--t3c-muted);
  margin-bottom: 0.5em;
}

.entry-content ul li::before {
  content: '\2014';
  position: absolute;
  left: -0.5em;
  color: var(--t3c-border);
  font-size: 0.85em;
}

.entry-content ol li {
  font-size: 14px;
  line-height: 1.85;
  color: var(--t3c-muted);
  margin-bottom: 0.5em;
}

/* Horizontal rule — BLACK line, full-width (EXACT SPA) */
.entry-content hr,
.wp-block-separator {
  border: none;
  border-top: 1px solid black;
  opacity: 1;
  margin: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
}

/* Tables */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--t3c-space-lg);
  font-size: 14px;
}

.entry-content table th,
.entry-content table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--t3c-border);
  text-align: left;
}

.entry-content table th {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--t3c-muted);
}

/* Code */
.entry-content code,
.entry-content pre {
  font-family: var(--t3c-font-mono);
  font-size: 0.85em;
  background: var(--t3c-accent);
  border-radius: 4px;
}

.entry-content code {
  padding: 2px 6px;
}

.entry-content pre {
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 1.6em;
}

/* Buttons / CTA */
.entry-content .wp-block-button__link,
.ast-button,
button[type="submit"],
input[type="submit"] {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t3c-fg);
  background: transparent;
  border: 1px solid var(--t3c-fg);
  padding: 14px 32px;
  border-radius: 0;
  cursor: pointer;
  transition:
    background-color var(--t3c-duration) var(--t3c-ease),
    color var(--t3c-duration) var(--t3c-ease);
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
}

.entry-content .wp-block-button__link:hover,
.ast-button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--t3c-fg);
  color: var(--t3c-bg);
  opacity: 1;
}

/* Filled button variant */
.wp-block-button.is-style-fill .wp-block-button__link {
  background: var(--t3c-fg);
  color: var(--t3c-bg);
}

.wp-block-button.is-style-fill .wp-block-button__link:hover {
  background: transparent;
  color: var(--t3c-fg);
}

/* Gallery */
.wp-block-gallery {
  gap: 8px !important;
}

.wp-block-gallery .wp-block-image img {
  border-radius: 0;
}


/* ══════════════════════════════════════════════════════════════════════
   E. WooCommerce Overrides (basic)
   ══════════════════════════════════════════════════════════════════════ */

.woocommerce-store-notice,
.demo_store {
  background-color: var(--t3c-fg) !important;
  color: var(--t3c-bg) !important;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.woocommerce-breadcrumb {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--t3c-muted);
  margin-bottom: 40px;
}

.woocommerce-breadcrumb a {
  color: var(--t3c-muted);
  text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
  color: var(--t3c-fg);
  opacity: 1;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
  background-color: var(--t3c-card) !important;
  border-top-color: var(--t3c-border) !important;
  border-left: none;
  border-right: none;
  border-bottom: none;
  color: var(--t3c-fg);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 14px;
  padding: 24px;
  border-radius: 0;
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--t3c-muted) !important;
}

.woocommerce-error::before {
  color: var(--t3c-error) !important;
}

.woocommerce span.onsale,
.onsale {
  background-color: var(--t3c-fg) !important;
  color: var(--t3c-bg) !important;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 0;
  padding: 6px 14px;
  min-width: auto;
  min-height: auto;
  line-height: 1.4;
}

.star-rating,
.woocommerce .star-rating {
  color: var(--t3c-muted) !important;
}

.star-rating span::before,
.woocommerce .star-rating span::before {
  color: var(--t3c-muted) !important;
}

.woocommerce nav.woocommerce-pagination {
  border: none;
}

.woocommerce nav.woocommerce-pagination ul {
  border: none;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--t3c-muted);
  border: 1px solid var(--t3c-border);
  background: transparent;
  padding: 8px 14px;
  border-radius: 0;
  transition: all var(--t3c-duration) var(--t3c-ease);
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--t3c-fg);
  color: var(--t3c-bg);
  border-color: var(--t3c-fg);
  opacity: 1;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--t3c-fg);
  color: var(--t3c-bg);
  border-color: var(--t3c-fg);
}


/* ══════════════════════════════════════════════════════════════════════
   F. Elementor Overrides
   ══════════════════════════════════════════════════════════════════════ */

.elementor-widget-heading .elementor-heading-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  color: var(--t3c-fg);
  letter-spacing: var(--t3c-ls-tight);
}

.elementor-widget-text-editor {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--t3c-muted);
}

.elementor-widget-button .elementor-button {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: transparent;
  color: var(--t3c-fg);
  border: 1px solid var(--t3c-fg);
  border-radius: 0;
  padding: 14px 32px;
  transition:
    background-color var(--t3c-duration) var(--t3c-ease),
    color var(--t3c-duration) var(--t3c-ease);
}

.elementor-widget-button .elementor-button:hover {
  background: var(--t3c-fg);
  color: var(--t3c-bg);
}

.elementor-section {
  background-color: transparent;
}

.elementor-divider-separator {
  border-top-color: black !important;
}

.elementor-icon {
  color: var(--t3c-fg);
}

/* Elementor images — GRAYSCALE */
.elementor-widget-image img {
  filter: grayscale(0.85) contrast(1.08) brightness(1.02);
  object-fit: cover;
}

.elementor-form .elementor-field {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--t3c-fg);
  background: transparent;
  border: 1px solid var(--t3c-border);
  border-radius: 0;
  padding: 12px 16px;
  transition: border-color var(--t3c-duration) var(--t3c-ease);
}

.elementor-form .elementor-field:focus {
  border-color: var(--t3c-fg);
  outline: none;
  box-shadow: none;
}

.elementor-form label,
.elementor-form .elementor-field-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--t3c-muted);
}

.elementor-widget-testimonial .elementor-testimonial-content {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 24px;
  color: var(--t3c-fg);
}

.elementor-widget-testimonial .elementor-testimonial-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--t3c-muted);
}

.elementor-tab-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 300 !important;
  color: var(--t3c-fg) !important;
  letter-spacing: 0.04em !important;
}

.elementor-tab-content {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--t3c-muted);
}


/* ══════════════════════════════════════════════════════════════════════
   G. Plugin Shortcode Styling
   ══════════════════════════════════════════════════════════════════════ */

.the3c-podcast-embed {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.the3c-podcast-embed .the3c-podcast-label,
.the3c-podcast-embed .the3c-podcast-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.the3c-instagram-feed {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.the3c-instagram-feed .the3c-ig-label,
.the3c-instagram-feed .the3c-ig-handle {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.the3c-mediakit {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--t3c-fg);
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px;
}

.the3c-mediakit h2,
.the3c-mediakit h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
}


/* ══════════════════════════════════════════════════════════════════════
   H. Core Utility Classes — matching SPA exactly
   ══════════════════════════════════════════════════════════════════════ */

/* ── Editorial image filter — GRAYSCALE (EXACT SPA) ── */
.editorial-img,
.t3c-editorial-img {
  filter: grayscale(0.85) contrast(1.08) brightness(1.02);
  object-fit: cover;
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Font editorial ── */
.font-editorial {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

/* ── Image container ── */
.t3c-image-container {
  background-color: var(--t3c-card);
  position: relative;
  overflow: hidden;
}

/* ── Container — 1440px max, SPA padding ── */
.t3c-container {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {
  .t3c-container {
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media (min-width: 1025px) {
  .t3c-container {
    padding-left: 64px;
    padding-right: 64px;
  }
}

.t3c-container--narrow {
  max-width: 800px;
}

.t3c-container--wide {
  max-width: 1440px;
}

/* ── Section padding — EXACT SPA: py-16 / md:py-24 = 64px / 96px ── */
.t3c-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

@media (min-width: 768px) {
  .t3c-section {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}


/* ══════════════════════════════════════════════════════════════════════
   I. Typography Utility Classes
   ══════════════════════════════════════════════════════════════════════ */

/* ── Hero title ── */
.t3c-hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 300;
  line-height: 1.25;
  font-style: italic;
  letter-spacing: var(--t3c-ls-tight);
  color: var(--t3c-fg);
  margin-bottom: 24px;
}

/* ── Serif italic ── */
.t3c-serif-italic {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
}

/* ── Serif regular ── */
.t3c-serif-regular {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ── Label small ── */
.t3c-label-sm {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t3c-muted);
  display: block;
}

/* ── Label medium ── */
.t3c-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--t3c-muted);
}

/* ── Quote editorial ── */
.t3c-quote-editorial {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(18px, 2.5vw, 30px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--t3c-muted);
}

/* ── Bilingual pattern: EN italic + CN ── */
.t3c-bilingual {
  display: block;
}

.t3c-bilingual .t3c-bilingual__en {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.25;
  letter-spacing: var(--t3c-ls-tight);
  color: var(--t3c-fg);
  margin-bottom: 8px;
}

.t3c-bilingual .t3c-bilingual__cn {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--t3c-muted);
  line-height: 1.4;
}

/* ── Editorial heading ── */
.t3c-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: var(--t3c-ls-tight);
  color: var(--t3c-fg);
}

.t3c-heading--italic {
  font-style: italic;
}

.t3c-heading--sm {
  font-size: clamp(18px, 2.5vw, 30px);
}

.t3c-heading--md {
  font-size: clamp(24px, 3.5vw, 36px);
}

.t3c-heading--lg {
  font-size: clamp(28px, 4vw, 42px);
}

.t3c-heading--xl {
  font-size: clamp(36px, 5vw, 54px);
}

/* ── Body text — EXACT SPA: 14px / 1.85 ── */
.t3c-body-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--t3c-muted);
}

/* ── CJK body text ── */
.t3c-body-cjk {
  font-family: 'Noto Serif TC', serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--t3c-muted);
}


/* ══════════════════════════════════════════════════════════════════════
   J. Grid Layout Systems — matching SPA proportions
   ══════════════════════════════════════════════════════════════════════ */

/* ── 50/50 split (PortraitIntro) ── */
.t3c-grid-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

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

/* ── 28/72 split (HeadlineImageSection) ── */
.t3c-grid-headline {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .t3c-grid-headline {
    grid-template-columns: 28% 72%;
  }
}

/* ── 30/70 split (CardGallery) ── */
.t3c-grid-gallery {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .t3c-grid-gallery {
    grid-template-columns: 30% 1fr;
  }
}

/* ── Hero grid: 7/5 split ── */
.t3c-grid-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1025px) {
  .t3c-grid-hero {
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
  }

  .t3c-grid-hero > :first-child {
    grid-column: span 7;
  }

  .t3c-grid-hero > :last-child {
    grid-column: span 5;
  }
}

/* ── Content grid: 8/4 split ── */
.t3c-grid-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .t3c-grid-content {
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
  }

  .t3c-grid-content > :first-child {
    grid-column: span 8;
  }

  .t3c-grid-content > :last-child {
    grid-column: span 4;
  }
}

/* ── Values grid: 4-col ── */
.t3c-grid-values {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--t3c-border);
}

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

@media (min-width: 1025px) {
  .t3c-grid-values {
    grid-template-columns: repeat(4, 1fr);
  }
}

.t3c-grid-values > * {
  padding: 40px;
  border-right: 1px solid var(--t3c-border);
  border-bottom: 1px solid var(--t3c-border);
  transition: background-color 0.7s ease;
}

.t3c-grid-values > *:hover {
  background-color: var(--t3c-card);
}

.t3c-grid-values > *:last-child {
  border-right: none;
}

@media (max-width: 1024px) {
  .t3c-grid-values > *:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 767px) {
  .t3c-grid-values > * {
    border-right: none;
    padding: 24px;
  }
}

/* ── Service grid: 5-col ── */
.t3c-grid-services {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--t3c-border);
}

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

@media (min-width: 1025px) {
  .t3c-grid-services {
    grid-template-columns: repeat(5, 1fr);
  }
}

.t3c-grid-services > * {
  padding: 40px 24px;
  border-right: 1px solid var(--t3c-border);
  border-bottom: 1px solid var(--t3c-border);
  transition: background-color 0.7s ease;
}

.t3c-grid-services > *:hover {
  background-color: var(--t3c-card);
}

@media (min-width: 1025px) {
  .t3c-grid-services > *:last-child {
    border-right: none;
  }
}


/* ══════════════════════════════════════════════════════════════════════
   K. Component Classes
   ══════════════════════════════════════════════════════════════════════ */

/* ── Floating decorative card ── */
.t3c-floating-card {
  position: absolute;
  bottom: -2.5rem;
  left: -2.5rem;
  background: var(--t3c-bg);
  padding: 40px;
  border: 1px solid var(--t3c-border);
  z-index: 2;
}

.t3c-floating-card span {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 54px;
  font-weight: 300;
  color: var(--t3c-fg);
}

@media (max-width: 767px) {
  .t3c-floating-card {
    display: none;
  }
}

/* ── Inverted accent panel ── */
.t3c-inverted {
  background-color: var(--t3c-fg);
  color: var(--t3c-bg);
}

.t3c-inverted h1,
.t3c-inverted h2,
.t3c-inverted h3,
.t3c-inverted h4,
.t3c-inverted h5,
.t3c-inverted h6 {
  color: var(--t3c-bg);
}

.t3c-inverted p {
  color: rgba(255, 255, 255, 0.8);
}

.t3c-inverted .t3c-label-sm {
  color: var(--t3c-border);
}

/* ── CTA link — hover underline (EXACT SPA .hover-line) ── */
.t3c-cta-link,
.hover-line {
  position: relative;
  display: inline-block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t3c-muted);
  text-decoration: none;
}

.hover-line {
  font-size: 14px;
}

.t3c-cta-link::after,
.hover-line::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.t3c-cta-link:hover,
.hover-line:hover {
  color: var(--t3c-fg);
  opacity: 1;
}

.t3c-cta-link:hover::after,
.hover-line:hover::after {
  width: 100%;
}

/* ── CTA button — outlined ── */
.t3c-btn {
  display: inline-block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t3c-fg);
  background: transparent;
  border: 1px solid var(--t3c-fg);
  padding: 14px 40px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--t3c-duration) var(--t3c-ease),
    color var(--t3c-duration) var(--t3c-ease);
}

.t3c-btn:hover {
  background: var(--t3c-fg);
  color: var(--t3c-bg);
  opacity: 1;
}

/* ── CTA button — filled ── */
.t3c-btn-filled {
  display: inline-block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t3c-bg);
  background: var(--t3c-fg);
  border: 1px solid var(--t3c-fg);
  padding: 16px 48px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--t3c-duration) var(--t3c-ease),
    color var(--t3c-duration) var(--t3c-ease);
}

.t3c-btn-filled:hover {
  background: transparent;
  color: var(--t3c-fg);
  opacity: 1;
}

/* ── Link with border ── */
.t3c-link-border {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t3c-fg);
  border-bottom: 1px solid var(--t3c-border);
  padding-bottom: 2px;
  text-decoration: none;
  transition: opacity var(--t3c-duration) var(--t3c-ease);
}

.t3c-link-border:hover {
  opacity: 0.7;
}

/* ── Card ── */
.t3c-card {
  background: var(--t3c-card);
  padding: 64px;
  transition: box-shadow var(--t3c-duration) var(--t3c-ease);
}

.t3c-card:hover {
  box-shadow: var(--t3c-shadow);
}

.t3c-card__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 300;
  color: var(--t3c-fg);
  margin-bottom: 16px;
}

.t3c-card__text {
  font-size: 14px;
  color: var(--t3c-muted);
  line-height: 1.85;
}

.t3c-card__img {
  filter: grayscale(0.85) contrast(1.08) brightness(1.02);
  object-fit: cover;
  width: 100%;
  display: block;
  margin-bottom: 24px;
}

/* ── Divider — BLACK line, full-width, draw-from-left (EXACT SPA) ── */
.t3c-divider {
  border: none;
  border-top: 1px solid black;
  margin: 0;
  /* Break out of container to full viewport width (same as SPA) */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  /* Draw-from-left animation by default */
  transform-origin: left center;
  transform: scaleX(0);
  transition: none;
}

.t3c-divider.t3c-visible {
  animation: t3c-line-draw 0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955) forwards;
}

.t3c-divider--dark {
  border-top-color: black;
}


/* ══════════════════════════════════════════════════════════════════════
   L. Page-Specific Layouts
   ══════════════════════════════════════════════════════════════════════ */

/* ── Page hero ── */
.t3c-page-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px 64px;
  overflow: hidden;
}

.t3c-page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.t3c-page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.85) contrast(1.08) brightness(1.02);
}

.t3c-page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    hsla(30, 20%, 95%, 0.4) 0%,
    hsla(30, 20%, 95%, 0.85) 100%
  );
}

.t3c-page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.t3c-page-hero__label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t3c-muted);
  margin-bottom: 24px;
}

.t3c-page-hero__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.25;
  color: var(--t3c-fg);
  margin-bottom: 16px;
}

.t3c-page-hero__subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 14px;
  font-weight: 300;
  font-style: italic;
  color: var(--t3c-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Page content area ── */
.t3c-page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px;
}

@media (min-width: 768px) {
  .t3c-page-content {
    padding: 96px 48px;
  }
}

.t3c-page-content--wide {
  max-width: 1440px;
}

/* ── Timeline ── */
.t3c-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px;
  padding-left: calc(24px + 32px);
}

.t3c-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 64px;
  bottom: 64px;
  width: 1px;
  background: var(--t3c-border);
}

.t3c-timeline__item {
  position: relative;
  margin-bottom: 64px;
}

.t3c-timeline__item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--t3c-fg);
}

.t3c-timeline__year {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--t3c-muted);
  margin-bottom: 8px;
}

.t3c-timeline__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 300;
  color: var(--t3c-fg);
  margin-bottom: 8px;
}

.t3c-timeline__text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--t3c-muted);
  line-height: 1.85;
}

/* ── Two-column layout ── */
.t3c-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 24px;
  align-items: center;
}

@media (min-width: 768px) {
  .t3c-two-col {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 64px 48px;
  }
}

@media (min-width: 1025px) {
  .t3c-two-col {
    padding: 64px;
  }
}

.t3c-two-col--reverse {
  direction: ltr;
}

@media (min-width: 768px) {
  .t3c-two-col--reverse .t3c-two-col__text {
    order: 2;
  }

  .t3c-two-col--reverse .t3c-two-col__image {
    order: 1;
  }
}

.t3c-two-col__text {
  padding: 24px 0;
}

.t3c-two-col__image img {
  width: 100%;
  display: block;
  filter: grayscale(0.85) contrast(1.08) brightness(1.02);
  object-fit: cover;
}

/* ── Quote block ── */
.t3c-quote-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px;
  position: relative;
}

@media (min-width: 768px) {
  .t3c-quote-block {
    padding: 96px 48px;
  }
}

.t3c-quote-block::before {
  content: '\201C';
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 72px;
  font-weight: 300;
  line-height: 1;
  color: var(--t3c-border);
  margin-bottom: 16px;
}

.t3c-quote-block__text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--t3c-fg);
  margin-bottom: 24px;
}

.t3c-quote-block__author {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--t3c-muted);
}

/* ── Centered hero ── */
.t3c-hero-centered {
  text-align: center;
  padding: 96px 24px 64px;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .t3c-hero-centered {
    padding: 96px 48px 64px;
  }
}

/* ── Section with top border (BLACK) ── */
.t3c-section-bordered {
  border-top: 1px solid black;
}

.t3c-section-bordered-y {
  border-top: 1px solid black;
  border-bottom: 1px solid black;
}

/* ── Testimonial ── */
.t3c-testimonial {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 64px 24px;
}

.t3c-testimonial__quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: var(--t3c-fg);
  margin-bottom: 24px;
}

.t3c-testimonial__quote::before {
  content: '\201C';
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 54px;
  font-weight: 300;
  line-height: 1;
  color: var(--t3c-border);
  margin-bottom: 16px;
}

.t3c-testimonial__author {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--t3c-muted);
}

/* ── Service grid ── */
.t3c-service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 24px;
}

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

@media (min-width: 1025px) {
  .t3c-service-grid {
    grid-template-columns: repeat(5, 1fr);
    padding: 64px;
  }
}

.t3c-service-grid__item {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--t3c-border);
  transition: all var(--t3c-duration-md) var(--t3c-ease);
}

.t3c-service-grid__item:hover {
  border-color: var(--t3c-fg);
  box-shadow: var(--t3c-shadow);
}

.t3c-service-grid__number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--t3c-muted);
  margin-bottom: 16px;
}

.t3c-service-grid__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 300;
  font-style: italic;
  color: var(--t3c-fg);
  margin-bottom: 8px;
}

.t3c-service-grid__desc {
  font-size: 14px;
  color: var(--t3c-muted);
  line-height: 1.85;
}


/* ══════════════════════════════════════════════════════════════════════
   M. Responsive Design
   ══════════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .t3c-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .t3c-page-hero {
    min-height: 40vh;
    padding: 64px 24px;
  }

  .t3c-page-content {
    padding: 40px 16px;
  }

  .t3c-timeline {
    padding-left: calc(16px + 24px);
  }

  .t3c-timeline::before {
    left: 16px;
  }

  .t3c-timeline__item::before {
    left: -20px;
  }

  .t3c-quote-block {
    padding: 40px 16px;
  }

  .t3c-quote-block::before {
    font-size: 48px;
  }

  .t3c-two-col {
    padding: 40px 16px;
  }

  .t3c-hero-centered {
    padding: 64px 16px;
  }

  .t3c-service-grid {
    padding: 40px 16px;
  }

  h1, .entry-title {
    font-size: 28px;
  }

  h2 {
    font-size: clamp(22px, 5vw, 28px);
  }

  h3 {
    font-size: 22px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .t3c-page-hero {
    min-height: 45vh;
  }
}


/* ══════════════════════════════════════════════════════════════════════
   N. Animations (CSS-only, for non-SPA pages)
   ══════════════════════════════════════════════════════════════════════ */

/* Fade in up — SPA style: translateY(28px) */
.t3c-animate {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--t3c-duration-lg) var(--t3c-ease),
    transform var(--t3c-duration-lg) var(--t3c-ease);
}

.t3c-animate.t3c-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade in only */
.t3c-animate--fade {
  opacity: 0;
  transform: none;
  transition: opacity var(--t3c-duration-lg) var(--t3c-ease);
}

.t3c-animate--fade.t3c-visible {
  opacity: 1;
}

/* Slide in from left */
.t3c-animate--left {
  opacity: 0;
  transform: translateX(-28px);
  transition:
    opacity var(--t3c-duration-lg) var(--t3c-ease),
    transform var(--t3c-duration-lg) var(--t3c-ease);
}

.t3c-animate--left.t3c-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide in from right */
.t3c-animate--right {
  opacity: 0;
  transform: translateX(28px);
  transition:
    opacity var(--t3c-duration-lg) var(--t3c-ease),
    transform var(--t3c-duration-lg) var(--t3c-ease);
}

.t3c-animate--right.t3c-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale in */
.t3c-animate--scale {
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity var(--t3c-duration-lg) var(--t3c-ease),
    transform var(--t3c-duration-lg) var(--t3c-ease);
}

.t3c-animate--scale.t3c-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.t3c-stagger > .t3c-animate:nth-child(1) { transition-delay: 0s; }
.t3c-stagger > .t3c-animate:nth-child(2) { transition-delay: 0.1s; }
.t3c-stagger > .t3c-animate:nth-child(3) { transition-delay: 0.2s; }
.t3c-stagger > .t3c-animate:nth-child(4) { transition-delay: 0.3s; }
.t3c-stagger > .t3c-animate:nth-child(5) { transition-delay: 0.4s; }
.t3c-stagger > .t3c-animate:nth-child(6) { transition-delay: 0.5s; }
.t3c-stagger > .t3c-animate:nth-child(7) { transition-delay: 0.6s; }
.t3c-stagger > .t3c-animate:nth-child(8) { transition-delay: 0.7s; }
.t3c-stagger > .t3c-animate:nth-child(9) { transition-delay: 0.8s; }
.t3c-stagger > .t3c-animate:nth-child(10) { transition-delay: 0.9s; }

/* Line draw animation */
@keyframes t3c-line-draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Subtle hover transitions */
.t3c-hover-lift {
  transition: transform var(--t3c-duration) var(--t3c-ease);
}

.t3c-hover-lift:hover {
  transform: translateY(-4px);
}

.t3c-hover-glow {
  transition: box-shadow var(--t3c-duration) var(--t3c-ease);
}

.t3c-hover-glow:hover {
  box-shadow: var(--t3c-shadow-lg);
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .t3c-animate,
  .t3c-animate--fade,
  .t3c-animate--left,
  .t3c-animate--right,
  .t3c-animate--scale {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .t3c-divider {
    transform: scaleX(1);
    animation: none;
  }

  .t3c-hover-lift:hover {
    transform: none;
  }
}


/* ══════════════════════════════════════════════════════════════════════
   O. Form Styling
   ══════════════════════════════════════════════════════════════════════ */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea,
select {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--t3c-fg);
  background: transparent;
  border: 1px solid var(--t3c-border);
  border-radius: 0;
  padding: 12px 16px;
  width: 100%;
  transition: border-color var(--t3c-duration) var(--t3c-ease);
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--t3c-fg);
  outline: none;
  box-shadow: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--t3c-border);
  font-weight: 300;
}

label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--t3c-muted);
  display: block;
  margin-bottom: 6px;
}

.search-form {
  display: flex;
  gap: 8px;
}

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

.search-form .search-submit {
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════════════════════
   P. WordPress Block Overrides
   ══════════════════════════════════════════════════════════════════════ */

.wp-block-cover {
  border-radius: 0;
}

.wp-block-cover .wp-block-cover__inner-container {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.wp-block-columns {
  gap: 40px;
  margin-bottom: 40px;
}

.wp-block-group.has-background {
  padding: 40px;
}

.wp-block-pullquote {
  border-top: 1px solid var(--t3c-fg);
  border-bottom: 1px solid var(--t3c-fg);
  padding: 40px 0;
  text-align: center;
}

.wp-block-pullquote blockquote {
  border: none;
  padding: 0;
  margin: 0;
}

.wp-block-pullquote blockquote p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 300;
  font-style: italic;
  color: var(--t3c-fg);
}

.wp-block-pullquote cite {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--t3c-muted);
  font-style: normal;
}

.wp-block-latest-posts__post-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  color: var(--t3c-fg);
}

.wp-block-latest-posts__post-date,
.wp-block-latest-posts__post-excerpt {
  font-size: 14px;
  color: var(--t3c-muted);
}


/* ══════════════════════════════════════════════════════════════════════
   Q. Blog / Archive Overrides (Astra)
   ══════════════════════════════════════════════════════════════════════ */

.ast-archive-description {
  text-align: center;
  padding: 64px 24px;
}

.ast-archive-description .page-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 300;
}

.ast-article-post {
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--t3c-border);
}

.ast-article-post:last-child {
  border-bottom: none;
}

.ast-article-post .entry-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  margin-bottom: 8px;
}

.ast-article-post .entry-title a {
  text-decoration: none;
}

.ast-blog-meta-container,
.entry-meta,
.entry-meta * {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--t3c-muted);
}

.entry-meta a {
  color: var(--t3c-muted);
  text-decoration: none;
}

.entry-meta a:hover {
  color: var(--t3c-fg);
}

/* Featured image — GRAYSCALE */
.ast-article-post .post-thumb-img-content img,
.post-thumbnail img {
  filter: grayscale(0.85) contrast(1.08) brightness(1.02);
  border-radius: 0;
}

/* Read more — hover-line style */
.ast-read-more-container a,
.read-more a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t3c-muted);
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.ast-read-more-container a::after,
.read-more a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ast-read-more-container a:hover::after,
.read-more a:hover::after {
  width: 100%;
}

.ast-read-more-container a:hover,
.read-more a:hover {
  color: var(--t3c-fg);
  opacity: 1;
}

/* Sidebar */
.widget-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--t3c-muted);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--t3c-border);
}

.widget ul li {
  font-size: 14px;
  color: var(--t3c-muted);
  padding: 6px 0;
  border-bottom: 1px solid hsla(30, 10%, 82%, 0.3);
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: var(--t3c-muted);
  text-decoration: none;
}

.widget ul li a:hover {
  color: var(--t3c-fg);
  opacity: 1;
}


/* ══════════════════════════════════════════════════════════════════════
   R. 404 Page
   ══════════════════════════════════════════════════════════════════════ */

.error-404 {
  text-align: center;
  padding: 96px 24px;
}

.error-404 .page-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(54px, 8vw, 96px);
  font-weight: 300;
  color: var(--t3c-border);
  margin-bottom: 24px;
}

.error-404 .page-content p {
  font-size: 18px;
  color: var(--t3c-muted);
  max-width: 480px;
  margin: 0 auto 40px;
}


/* ══════════════════════════════════════════════════════════════════════
   S. Comments
   ══════════════════════════════════════════════════════════════════════ */

.comments-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 40px;
}

.comment-reply-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 300;
}

.comment-author .fn {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  font-weight: 400;
}

.comment-metadata {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--t3c-muted);
}

.comment-body {
  padding: 24px 0;
  border-bottom: 1px solid var(--t3c-border);
  margin-bottom: 24px;
}

.comment-content p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--t3c-muted);
}
