/* ==========================================================
   2ND STITCH HAUS — HOME PAGE
========================================================== */

.hero { position: relative; min-height: 100vh; padding: 145px 8% 90px; overflow: hidden; }
.hero-container { position: relative; z-index: 1; width: min(1400px, 100%); min-height: calc(100vh - 235px); margin: 0 auto; display: grid; grid-template-columns: .94fr 1.06fr; gap: clamp(35px, 5vw, 80px); align-items: center; }
.hero-copy { animation: home-rise .85s ease both; margin-top: auto;}
.hero-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 70px; }
.hero-brand img { width: 75px; }
.hero-brand p { font-size: 10px; font-weight: 600; letter-spacing: 3px; }
.hero-copy h1 { max-width: 650px; margin-bottom: 27px; font-size: clamp(75px, 9vw, 142px); line-height: .84; letter-spacing: -4px; }
.hero-text { max-width: 500px; color: rgba(81,43,28,.8); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.82; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-buttons .btn { min-width: 172px; }
.hero-image-wrap { position: relative; animation: home-image .95s .12s ease both; }
.hero-image-wrap::before { position: absolute; inset: 8% 7%; z-index: -1; border-radius: 50%; content: ""; background: rgba(255,255,255,.24); filter: blur(45px); }
.hero-image-wrap img { max-height: 730px; margin: 0 auto; border-radius: 27px; object-fit: cover; box-shadow: 0 48px 80px rgba(45,27,17,.17); animation: gentle-float 7s ease-in-out infinite; }
.hero-light { position: absolute; top: var(--light-y, 0); left: var(--light-x, 0); width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.34), transparent 68%); filter: blur(65px); pointer-events: none; transform: translate(-50%, -50%); }

.about-section { position: relative; overflow: hidden; text-align: center; }
.about-section::before { position: absolute; inset: 0; content: ""; background: url("../assets/images/homepage/fabric-pattern.png") center / min(1100px, 90%) no-repeat; opacity: .25; pointer-events: none; }
.about-container { position: relative; max-width: 760px; margin: auto; }
.about-container h2 { margin-bottom: 22px; font-size: clamp(52px, 6vw, 78px); line-height: .95; }
.about-container > p:last-child { color: rgba(81,43,28,.8); font-size: 18px; line-height: 1.95; }

.collection-preview { width: min(1360px, 88%); margin: 0 auto; padding: 135px 0; }
.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.product-card { height: 100%; overflow: hidden; border: 1px solid rgba(255,255,255,.55); border-radius: 26px; background: rgba(255,255,255,.42); box-shadow: 0 18px 42px rgba(45,27,17,.07); transition: transform .35s ease, box-shadow .35s ease; }
.product-card:hover { transform: translateY(-9px); box-shadow: 0 30px 62px rgba(45,27,17,.14); }
.product-image { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: rgba(81,43,28,.08); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.product-card:hover .product-image img { transform: scale(1.07); }
.badge { position: absolute; top: 15px; left: 15px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.9); font-size: 9px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; }
.product-info { padding: 21px; }
.product-category { margin-bottom: 6px; font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; opacity: .63; }
.product-info h3 { margin-bottom: 8px; font-size: 30px; line-height: 1.05; }
.product-material { min-height: 40px; font-size: 12px; line-height: 1.6; opacity: .74; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(81,43,28,.1); }
.price { font-size: 18px; font-weight: 600; }.original-card-price{display:block;color:rgba(81,43,28,.5);font-size:10px;font-weight:400;text-decoration:line-through}
.view-btn { padding: 8px 12px; border-radius: 999px; color: var(--maroon); font: inherit; font-size: 11px; font-weight: 600; transition: background .25s ease, color .25s ease; }
.view-btn:hover, .view-btn:focus-visible { background: var(--maroon); color: #fff; }
.collection-button { margin-top: 55px; text-align: center; }

.values-section { width: min(1360px, 88%); margin: 0 auto; padding: 130px 0; }
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.value-card { min-height: 280px; padding: 35px; border: 1px solid rgba(255,255,255,.44); border-radius: 26px; background: linear-gradient(145deg, rgba(255,255,255,.44), rgba(255,255,255,.16)); transition: transform .3s ease, background .3s ease; }
.value-card:hover { transform: translateY(-7px); background: rgba(255,255,255,.45); }
.value-card span { display: block; margin-bottom: 42px; color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: 2px; }
.value-card h3 { margin-bottom: 13px; font-size: 38px; line-height: 1; }
.value-card p { max-width: 270px; font-size: 15px; opacity: .76; }

.order-section { position: relative; min-height: 610px; display: grid; place-items: center; overflow: hidden; text-align: center; color: #fff; background: linear-gradient(rgba(35,21,14,.58), rgba(35,21,14,.58)), url("../assets/images/collectionfooter.webp") center / cover no-repeat; }
.order-content { width: min(660px, 100%); }
.order-section .section-tag { color: rgba(255,255,255,.84); }
.order-section h2 { margin-bottom: 22px; font-size: clamp(60px, 7vw, 96px); line-height: .88; }
.order-content > p:not(.section-tag) { max-width: 520px; margin: 0 auto 32px; color: rgba(255,255,255,.88); font-size: 17px; }
.order-section .btn { background: #fff; color: var(--maroon); }

.product-modal { width: min(970px, 92vw); padding: 0; overflow: visible; border: 0; border-radius: 25px; background: var(--paper, #f8f4ee); box-shadow: 0 35px 100px rgba(0,0,0,.3); }
.product-modal::backdrop { background: rgba(25,15,10,.66); backdrop-filter: blur(8px); }
.product-modal[open] { display: grid; grid-template-columns: 1fr 1fr; animation: modal-enter .25s ease both; }
.modal-image { min-height: 460px; overflow: hidden; border-radius: 25px 0 0 25px; background: rgba(81,43,28,.1); }
.modal-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-details { display: flex; flex-direction: column; justify-content: center; padding: 56px; }
.modal-label { margin-bottom: 14px; font-size: 10px; letter-spacing: 3px; opacity: .65; }
.modal-details h2 { margin-bottom: 18px; font-size: clamp(46px, 5vw, 66px); line-height: .91; }
.modal-details > p:not(.modal-label) { color: rgba(81,43,28,.78); font-size: 15px; line-height: 1.85; }
.modal-meta { margin: 26px 0; padding: 17px 0; border-top: 1px solid rgba(81,43,28,.13); border-bottom: 1px solid rgba(81,43,28,.13); }
.modal-meta p:first-child { margin-bottom: 5px; font-size: 13px; opacity: .72; }.modal-meta p:last-child { font-size: 23px; font-weight: 600; }
.modal-actions { display: grid; gap: 10px; }.modal-actions .btn { width: 100%; min-height: 52px; font-size: 13px; }.modal-actions .btn-secondary { border-color: rgba(81,43,28,.35); }
.close-modal { position: absolute; z-index: 1; top: 14px; right: 14px; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: #fff; color: var(--maroon); font-size: 25px; box-shadow: 0 7px 18px rgba(0,0,0,.14); }

@keyframes home-rise { from { opacity: 0; transform: translateY(35px); } to { opacity: 1; transform: translateY(0); } }
@keyframes home-image { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes gentle-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes modal-enter { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 950px) { .hero { padding-top: 130px; }.hero-container { grid-template-columns: 1fr; }.hero-image-wrap { order: -1; width: min(610px, 100%); }.hero-image-wrap img { max-height: 510px; }.collection-grid, .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.product-modal[open] { grid-template-columns: 1fr; }.modal-image { min-height: 330px; border-radius: 25px 25px 0 0; } }
@media (max-width: 620px) { .hero { padding: 125px 6% 76px; }.hero-container { min-height: auto; }.hero-copy h1 { font-size: 69px; letter-spacing: -3px; }.hero-buttons { display: grid; }.hero-buttons .btn { width: 100%; }.collection-preview, .values-section { width: 90%; padding-block: 95px; }.collection-grid, .values-grid { grid-template-columns: 1fr; }.value-card { min-height: auto; }.value-card span { margin-bottom: 28px; }.order-section { min-height: 540px; padding-inline: 7%; }.modal-details { padding: 36px 26px; }.modal-image { min-height: 280px; }.modal-actions { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
