/*
Theme Name: TerraNest
Template: storefront
Description: TerraNest brand theme - plastic-free personal care.
Version: 1.0
*/
:root {
	--forest: #1f3d2b;
	--forest-2: #2c523c;
	--sage: #8fa882;
	--sage-soft: #e4eadd;
	--terra: #c4704b;
	--terra-dark: #a85a38;
	--cream: #f7f2e9;
	--ink: #1d241f;
	--muted: #5d6a60;
	--radius: 18px;
	--serif: "Fraunces", Georgia, serif;
	--sans: "Inter", system-ui, -apple-system, sans-serif;
}

body { background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 16px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .site-title, .woocommerce-loop-product__title, .product_title { font-family: var(--serif); color: var(--forest); font-weight: 500; letter-spacing: -0.01em; }
a { color: var(--forest); }
a:hover { color: var(--terra); }
img { border-radius: 0; }

/* Buttons - scoped to real CTA buttons only (not quantity steppers, remove icons, toggles) */
a.button, button.button, input[type="submit"], .added_to_cart,
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button {
	background: var(--forest) !important; color: #fff !important; border-radius: 999px !important;
	padding: .85em 1.8em !important; font-weight: 600; font-size: 15px; line-height: 1.4 !important; letter-spacing: .02em;
	border: 0 !important; text-decoration: none !important; display: inline-flex !important; align-items: center; justify-content: center;
	min-height: 48px; box-sizing: border-box; transition: background .2s, transform .2s;
}
a.button:hover, button.button:hover, input[type="submit"]:hover, .wc-block-components-button:not(.is-link):hover { background: var(--terra) !important; transform: translateY(-1px); }
.wc-block-components-button:not(.is-link) .wc-block-components-button__text { text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
.tn-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 2em; line-height: 1.4; border-radius: 999px; font-weight: 600; text-decoration: none; transition: all .2s; box-sizing: border-box; }
.tn-btn--primary { background: var(--terra); color: #fff; }
.tn-btn--primary:hover { background: var(--terra-dark); color: #fff; transform: translateY(-2px); }
.tn-btn--ghost { border: 1.5px solid currentColor; color: inherit; }
.tn-btn--ghost:hover { background: #fff; color: var(--forest); }

/* Announcement bar */
.tn-announce { background: var(--forest); color: var(--cream); text-align: center; font-size: 13px; letter-spacing: .06em; padding: 9px 16px; }
.tn-announce strong { color: #f0c9a8; }

/* Header */
.site-header { background: var(--cream) !important; border-bottom: 1px solid rgba(31,61,43,.1); padding-top: 1.2em !important; margin-bottom: 0 !important; }
.site-header .site-branding { margin-bottom: 1em; }
.site-title a { color: var(--forest) !important; font-size: 30px; font-weight: 600; }
.site-title a::before { content: "\1F33F"; margin-right: 8px; font-size: 24px; }
.site-description { color: var(--muted) !important; font-size: 13px; }
.storefront-primary-navigation { background: var(--cream) !important; }
.main-navigation ul li a, .site-header-cart .cart-contents { color: var(--forest) !important; font-weight: 500; font-size: 15px; }
.main-navigation ul li a:hover { color: var(--terra) !important; }
.site-search { display: none; }
.site-header-cart .cart-contents .amount { font-weight: 600; }

/* One container width everywhere so header, content and footer share a left edge */
.col-full { max-width: 1192px !important; padding-left: 24px !important; padding-right: 24px !important; box-sizing: content-box; }
.site-footer .col-full { max-width: none !important; padding: 0 !important; }

/* Mobile menu toggle */
button.menu-toggle, button.menu-toggle:hover, .main-navigation.toggled button.menu-toggle {
	background: transparent !important; color: var(--forest) !important; border: 1.5px solid var(--forest) !important;
	border-radius: 999px; padding: .6em 1.2em .6em 2.6em !important; font-weight: 600; box-shadow: none; outline: none;
}
button.menu-toggle::before, button.menu-toggle::after, button.menu-toggle span::before { background-color: var(--forest) !important; }
.handheld-navigation { background: var(--cream); }

/* Mobile bottom bar (account + cart) */
.storefront-handheld-footer-bar { background: var(--forest) !important; border-top: 0 !important; }
.storefront-handheld-footer-bar ul li > a { background: var(--forest) !important; color: var(--cream) !important; border: 0 !important; }
.storefront-handheld-footer-bar ul li > a::before { color: var(--cream) !important; }
.storefront-handheld-footer-bar ul li.cart .count { background: var(--terra) !important; color: #fff !important; border-color: var(--forest) !important; }

/* Full width on home */
.tn-home .site-content > .col-full { max-width: none !important; padding: 0 !important; margin: 0; }
.tn-home .storefront-breadcrumb { display: none; }
.tn-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.tn-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 600; color: var(--terra); margin-bottom: 14px; display: block; }
.tn-section { padding: 96px 0; }
.tn-section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.tn-section__head h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 14px; line-height: 1.1; }
.tn-section__head p { color: var(--muted); font-size: 17px; margin: 0; }

/* Hero */
.tn-hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.tn-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.tn-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,40,28,.88) 0%, rgba(20,40,28,.6) 45%, rgba(20,40,28,.05) 100%); }
.tn-hero .tn-wrap { position: relative; z-index: 2; width: 100%; }
.tn-hero__content { max-width: 600px; }
.tn-hero .tn-eyebrow { color: #f0c9a8; }
.tn-hero h1 { color: #fff; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; margin: 0 0 22px; }
.tn-hero h1 em { font-style: italic; color: #f0c9a8; }
.tn-hero p { font-size: 19px; line-height: 1.6; opacity: .92; margin-bottom: 34px; }
.tn-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.tn-hero__stats { display: flex; gap: 40px; margin-top: 52px; flex-wrap: wrap; }
.tn-hero__stats div { font-size: 13px; opacity: .85; }
.tn-hero__stats strong { display: block; font-family: var(--serif); font-size: 32px; font-weight: 500; opacity: 1; color: #fff; }

/* Marquee */
.tn-marquee { background: var(--terra); color: #fff; overflow: hidden; white-space: nowrap; padding: 16px 0; font-family: var(--serif); font-size: 20px; }
.tn-marquee__track { display: inline-block; animation: tn-scroll 35s linear infinite; }
.tn-marquee span { margin: 0 28px; }
.tn-marquee span::after { content: "\2726"; margin-left: 56px; opacity: .6; }
@keyframes tn-scroll { to { transform: translateX(-50%); } }

/* Value props */
.tn-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tn-value { background: #fff; border-radius: var(--radius); padding: 34px 28px; transition: transform .25s, box-shadow .25s; }
.tn-value:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31,61,43,.08); }
.tn-value__icon { width: 54px; height: 54px; border-radius: 50%; background: var(--sage-soft); display: grid; place-items: center; margin-bottom: 20px; }
.tn-value__icon svg { width: 26px; height: 26px; stroke: var(--forest); fill: none; stroke-width: 1.7; }
.tn-value h3 { font-size: 21px; margin: 0 0 8px; }
.tn-value p { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.6; }

/* Products grid (shop + home) */
ul.products { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0 !important; }
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; background: #fff; border-radius: var(--radius); overflow: hidden; padding-bottom: 24px !important; text-align: left !important; transition: transform .25s, box-shadow .25s; }
ul.products li.product:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(31,61,43,.12); }
ul.products li.product img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; margin: 0 0 20px !important; transition: transform .5s; }
ul.products li.product:hover img { transform: scale(1.04); }
ul.products li.product .woocommerce-loop-product__link { display: block; overflow: hidden; }
ul.products li.product .woocommerce-loop-product__title { font-size: 20px !important; padding: 0 24px; margin-bottom: 6px; }
ul.products li.product .price { padding: 0 24px; color: var(--terra) !important; font-weight: 600; font-size: 17px; display: block; margin-bottom: 16px; }
ul.products li.product .button { margin: 0 24px !important; font-size: 14px; }
.tn-badge { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; margin: 0 24px 10px; font-size: 12px; background: var(--sage-soft); color: var(--forest); padding: 4px 10px; border-radius: 999px; font-weight: 600; }

/* Impact band */
.tn-impact { background: var(--forest); color: var(--cream); text-align: center; position: relative; overflow: hidden; }
.tn-impact::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: var(--forest-2); right: -200px; top: -250px; }
.tn-impact .tn-wrap { position: relative; }
.tn-impact h2 { color: var(--cream); font-size: clamp(28px, 4vw, 42px); }
.tn-impact__num { font-family: var(--serif); font-size: clamp(64px, 11vw, 140px); line-height: 1; color: #f0c9a8; margin: 10px 0; }
.tn-impact p { opacity: .8; max-width: 560px; margin: 0 auto; font-size: 17px; }
.tn-impact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.tn-impact__grid div { border-top: 1px solid rgba(255,255,255,.2); padding-top: 20px; }
.tn-impact__grid strong { font-family: var(--serif); font-size: 34px; font-weight: 500; display: block; color: #fff; }

/* Split feature */
.tn-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tn-split__img { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; }
.tn-split__img img { width: 100%; height: 100%; object-fit: cover; }
.tn-split h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; margin: 0 0 18px; }
.tn-split p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.tn-checks { list-style: none; margin: 24px 0 32px; padding: 0; }
.tn-checks li { padding: 8px 0 8px 34px; position: relative; font-weight: 500; }
.tn-checks li::before { content: "\2713"; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--sage); color: #fff; font-size: 12px; display: grid; place-items: center; }

/* Journal */
.tn-posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tn-post { text-decoration: none; display: block; }
.tn-post__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 16px; }
.tn-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tn-post:hover img { transform: scale(1.06); }
.tn-post h3 { font-size: 19px; line-height: 1.3; margin: 6px 0 0; }
.tn-post span { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--terra); font-weight: 600; }

/* Community CTA */
.tn-cta { background: var(--sage-soft); border-radius: 28px; padding: 72px 48px; text-align: center; }
.tn-cta h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 12px; }
.tn-cta p { color: var(--muted); font-size: 17px; margin-bottom: 30px; }

/* Footer */
.site-footer { background: var(--ink) !important; color: rgba(255,255,255,.7) !important; padding: 0 !important; }
.site-footer a { color: rgba(255,255,255,.85) !important; text-decoration: none !important; }
.site-footer a:hover { color: #f0c9a8 !important; }
.tn-post, .tn-post:hover { text-decoration: none !important; }
.tn-post h3 { transition: color .2s; }
.tn-post:hover h3 { color: var(--terra); }
.tn-post__excerpt { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 8px 0 0; }
.site-info { display: none; }
.tn-footer { padding: 72px 0 32px; }
.tn-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.tn-footer h4 { color: #fff; font-size: 18px; margin: 0 0 16px; }
.tn-footer ul { list-style: none; margin: 0; padding: 0; }
.tn-footer li { margin-bottom: 10px; font-size: 15px; }
.tn-footer__brand { font-family: var(--serif); font-size: 28px; color: #fff; margin-bottom: 12px; }
.tn-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; font-size: 13px; flex-wrap: wrap; gap: 12px; }

/* Inner pages */
.page:not(.home) .entry-header .entry-title, .woocommerce-products-header__title { font-size: clamp(34px, 5vw, 52px); }
.site-main { padding-top: 24px; }
.single-product div.product .product_title { font-size: 40px; }
.single-product div.product .price { color: var(--terra) !important; font-size: 26px !important; font-weight: 600; }
.single-product div.product .woocommerce-product-gallery img { border-radius: 24px; aspect-ratio: 1 / 1; object-fit: cover; }
.single-product div.product form.cart { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.single-product div.product form.cart .quantity { margin: 0 !important; float: none !important; }
.quantity .qty { height: 48px; width: 4.5em; border-radius: 999px; border: 1.5px solid rgba(31,61,43,.2); background: #fff; text-align: center; font-weight: 600; box-shadow: none; }
.single-product div.product form.cart .button { float: none !important; margin: 0 !important; }
.single-product div.product .woocommerce-product-details__short-description { background: var(--sage-soft); display: inline-block; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--forest); }
.single-product div.product .woocommerce-product-details__short-description p { margin: 0; }
.single-product .product_meta { font-size: 14px; color: var(--muted); }
.woocommerce-tabs ul.tabs li a { text-decoration: none; }
.related.products > h2, .upsells > h2 { font-size: 30px; margin-bottom: 28px; }

/* Cart & checkout (block-based) */
.wc-block-cart-item__remove-link { text-decoration: underline; color: var(--muted) !important; font-size: 13px !important; }
.wc-block-components-quantity-selector { border-radius: 999px !important; overflow: hidden; background: #fff; }
.wc-block-components-product-name { text-decoration: none !important; font-family: var(--serif); font-size: 17px !important; color: var(--forest) !important; }
.wp-block-woocommerce-checkout-order-summary-block { background: #fff; border-radius: var(--radius); }

/* Content pages */
.tn-page-lead { font-size: 19px; line-height: 1.7; color: var(--muted); max-width: 720px; }
.tn-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0; }
.tn-page-grid > div { background: #fff; border-radius: var(--radius); padding: 28px; }
.tn-page-grid h3 { font-size: 20px; margin: 0 0 8px; }
.tn-page-grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.entry-content img.tn-page-img { border-radius: 24px; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; margin: 16px 0 8px; }
.entry-content h2 { font-size: 28px; margin-top: 1.6em; }
.single-post .entry-content { max-width: 760px; font-size: 17px; line-height: 1.8; }
.single-post .entry-header .entry-title { font-size: clamp(34px, 5vw, 50px); }
.post-navigation { display: none; }
.tn-posts--index { margin-bottom: 64px; }
.woocommerce-tabs { background: #fff; border-radius: var(--radius); padding: 32px; }
.storefront-sorting { font-size: 14px; }
.right-sidebar .content-area { width: 100%; float: none; margin: 0; }
.right-sidebar .widget-area { display: none; }
.hentry .wp-post-image { border-radius: 24px; }

@media (max-width: 900px) {
	.tn-values, .tn-posts { grid-template-columns: repeat(2, 1fr); }
	ul.products { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.tn-split { grid-template-columns: 1fr; gap: 32px; }
	.tn-footer__grid { grid-template-columns: 1fr 1fr; }
	.tn-section { padding: 64px 0; }
	.tn-page-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.tn-wrap { padding: 0 16px; }
	.col-full { padding-left: 16px !important; padding-right: 16px !important; }
	.tn-hero__ctas .tn-btn { width: 100%; }
	.tn-values, .tn-posts, .tn-impact__grid { grid-template-columns: 1fr; }
	ul.products { grid-template-columns: 1fr; }
	.tn-hero { min-height: 560px; padding: 56px 0; }
	.tn-hero::after { background: rgba(20,40,28,.78); }
	.tn-hero h1 { font-size: 38px; }
	.tn-hero p { font-size: 16px; }
	.tn-hero__stats { gap: 24px; }
	.tn-cta { padding: 48px 20px; }
	.tn-footer__grid { grid-template-columns: 1fr; }
}
