/*
Theme Name:   Annex Divi Child
Theme URI:    https://annexfashionbd.com/
Description:  Child theme for Annex Fashion Limited. Adds the transparent sticky header, garment-inspired details (stitch outlines, outlined step numbers, hang-tag labels), performance and security hardening. All colours, images and text stay editable in the Divi Builder.
Author:       Annex Fashion Limited
Template:     Divi
Version:      1.0.0
Requires PHP: 7.4
Text Domain:  annex-divi-child
*/

/* ==========================================================================
   1. Brand tokens — change a colour here to update every accent at once
   ========================================================================== */
:root {
	--annex-red: #b1112b;
	--annex-ink: #141414;
	--annex-graphite: #3c3c3b;
	--annex-muted: #6e6b66;
	--annex-stone: #f2efea;
	--annex-sand: #e5dfd4;
	--annex-gold: #c8ae80;
	--annex-ease: cubic-bezier(.22, .61, .36, 1);
	--annex-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--annex-sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 110px; }
::selection { background: var(--annex-red); color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 2px solid var(--annex-red);
	outline-offset: 3px;
}

/* ==========================================================================
   2. Transparent header → solid on scroll  (Theme Builder header section: class "annex-header")
   ========================================================================== */
.et_pb_section.annex-header {
	position: fixed !important;
	top: 0; left: 0; right: 0;
	width: 100%;
	z-index: 9999;
	background-color: transparent !important;
	-webkit-transition: background-color .35s var(--annex-ease), padding .35s var(--annex-ease), box-shadow .35s var(--annex-ease);
	transition: background-color .35s var(--annex-ease), padding .35s var(--annex-ease), box-shadow .35s var(--annex-ease);
}
.et_pb_section.annex-header::before {             /* soft shade keeps white menu readable on light photos */
	content: "";
	position: absolute; left: 0; right: 0; top: 0;
	height: 160%;
	background: -webkit-linear-gradient(top, rgba(20,20,20,.55), rgba(20,20,20,0));
	background: linear-gradient(180deg, rgba(20,20,20,.55), rgba(20,20,20,0));
	pointer-events: none;
	-webkit-transition: opacity .35s; transition: opacity .35s;
}
.et_pb_section.annex-header.is-scrolled {
	background-color: rgba(20,20,20,.96) !important;
	padding-top: 8px !important;
	padding-bottom: 8px !important;
	box-shadow: 0 12px 30px -12px rgba(0,0,0,.35);
}
.et_pb_section.annex-header.is-scrolled::before { opacity: 0; }
@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
	.et_pb_section.annex-header.is-scrolled {
		background-color: rgba(20,20,20,.86) !important;
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
	}
}
.annex-header .et_pb_row { position: relative; z-index: 1; }
.annex-header .et_pb_menu__logo img { -webkit-transition: max-height .35s var(--annex-ease); transition: max-height .35s var(--annex-ease); }
.annex-header.is-scrolled .et_pb_menu__logo img { max-height: 46px !important; }
body.admin-bar .et_pb_section.annex-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .et_pb_section.annex-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .et_pb_section.annex-header { top: 0; } }
/* keep the header in normal flow while editing it in the Visual Builder */
.et-fb .et_pb_section.annex-header { position: relative !important; }

/* menu: animated red underline */
.annex-menu .et-menu > li > a { position: relative; padding-bottom: 8px !important; }
.annex-menu .et-menu > li > a::after {
	content: "";
	position: absolute; left: 0; right: 0; bottom: 0;
	height: 2px;
	background: var(--annex-red);
	-webkit-transform: scaleX(0); transform: scaleX(0);
	-webkit-transform-origin: left; transform-origin: left;
	-webkit-transition: -webkit-transform .35s var(--annex-ease); transition: transform .35s var(--annex-ease);
}
.annex-menu .et-menu > li > a:hover { opacity: 1 !important; }
.annex-menu .et-menu > li > a:hover::after,
.annex-menu .et-menu > li.current-menu-item > a::after { -webkit-transform: scaleX(1); transform: scaleX(1); }
.annex-menu .et-menu > li > a { white-space: nowrap; }
/* last menu item ("Contact us") becomes the red call-to-action button */
.annex-menu .et-menu > li:last-child > a {
	background-color: var(--annex-red);
	color: #fff !important;
	padding: 14px 26px !important;
	margin-left: 8px;
	-webkit-transition: background-color .3s, color .3s; transition: background-color .3s, color .3s;
}
.annex-menu .et-menu > li:last-child > a::after { display: none; }
.annex-menu .et-menu > li:last-child > a:hover { background-color: #fff; color: var(--annex-ink) !important; }
@media (min-width: 981px) and (max-width: 1240px) {
	.annex-menu .et-menu > li { padding-left: 7px !important; padding-right: 7px !important; }
	.annex-menu .et-menu > li > a { font-size: 12px !important; letter-spacing: 1px !important; }
}
.annex-menu .et_mobile_menu { border-top: 3px solid var(--annex-red) !important; max-height: calc(100vh - 100px); overflow-y: auto; }
.annex-menu .et_mobile_menu li a { border-bottom: 1px solid rgba(255,255,255,.08); letter-spacing: 1px; }
@media (max-width: 980px) {
	.annex-header .et_pb_menu__logo img { max-height: 44px !important; }
}

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */
@media (min-width: 981px) {
	.et_pb_row.annex-vcenter { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; }
	.et_pb_row.annex-vend { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: end; -ms-flex-align: end; align-items: flex-end; }
	.annex-sticky { position: -webkit-sticky; position: sticky; top: 120px; }
}
.annex-right { text-align: right; }
@media (max-width: 980px) { .annex-right { text-align: left; } }

/* eyebrow labels with a line that follows the text colour set in Divi */
.annex-eyebrow p {
	display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex;
	-webkit-box-align: center; -ms-flex-align: center; align-items: center;
	padding-bottom: 0 !important;
}
.annex-eyebrow p::before,
.annex-eyebrow.annex-center p::after {
	content: "";
	-webkit-box-flex: 0; -ms-flex: 0 0 34px; flex: 0 0 34px;
	height: 2px;
	background: currentColor;
	margin-right: 14px;
}
.annex-eyebrow.annex-center p::after { margin: 0 0 0 14px; }

/* ==========================================================================
   4. Hero slider (home) & inner-page heroes
   ========================================================================== */
.annex-hero-slider .et_pb_container {
	width: 90% !important;
	max-width: 1240px !important;
	height: 100vh !important;
	min-height: 640px !important;
}
.annex-hero-slider .et_pb_slide_description {
	text-align: left !important;
	max-width: 820px;
	margin: 0 !important;
	padding: 150px 0 140px !important;
}
.annex-hero-slider .et_pb_slide_title { padding-bottom: 0 !important; }
.annex-hero-slider .et_pb_slide_title::after {
	content: "";
	display: block;
	width: 72px; height: 3px;
	background: var(--annex-red);
	margin: 30px 0 26px;
}
.annex-hero-slider .et_pb_slide_content { max-width: 620px; }
.annex-hero-slider .et_pb_button_wrapper,
.annex-hero-slider .et_pb_more_button { margin-top: 30px; }
.annex-hero-slider .et-pb-controllers {
	width: 90%; max-width: 1240px;
	left: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%);
	bottom: 56px;
	text-align: left;
}
.annex-hero-slider .et-pb-controllers a {
	width: 46px; height: 3px;
	border-radius: 0;
	margin-right: 10px;
	background-color: rgba(255,255,255,.35);
	-webkit-transition: background-color .3s, width .3s; transition: background-color .3s, width .3s;
}
.annex-hero-slider .et-pb-controllers .et-pb-active-control { background-color: #fff; width: 72px; }
.annex-hero-slider::after {                    /* scroll cue */
	content: "";
	position: absolute; right: 5%; bottom: 0;
	width: 1px; height: 90px;
	background: -webkit-linear-gradient(top, rgba(255,255,255,0), #fff);
	background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
	z-index: 5;
	-webkit-animation: annexCue 2.4s var(--annex-ease) infinite; animation: annexCue 2.4s var(--annex-ease) infinite;
}
@-webkit-keyframes annexCue { 0% { -webkit-transform: scaleY(0); -webkit-transform-origin: top; } 50% { -webkit-transform: scaleY(1); -webkit-transform-origin: top; } 51% { -webkit-transform-origin: bottom; } 100% { -webkit-transform: scaleY(0); -webkit-transform-origin: bottom; } }
@keyframes annexCue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 767px) {
	.annex-hero-slider .et_pb_container { height: 92vh !important; min-height: 560px !important; }
	.annex-hero-slider .et_pb_slide_description { padding: 120px 0 110px !important; }
	.annex-hero-slider .et-pb-slider-arrows { display: none; }
}

.annex-hero { overflow: hidden; }
.annex-hero::before {                          /* red selvedge stripe */
	content: "";
	position: absolute; left: 0; top: 0; bottom: 0;
	width: 6px;
	background: var(--annex-red);
	z-index: 3;
}
.annex-hero .et_pb_row, .annex-hero .et_pb_column { position: static !important; }
.annex-watermark {
	position: absolute !important;
	right: 4%; bottom: -.16em;
	margin: 0 !important;
	white-space: nowrap;
	pointer-events: none;
	z-index: 1;
}
.annex-watermark p { padding: 0 !important; -webkit-text-stroke: 1px rgba(255,255,255,.28); letter-spacing: .02em; }
.annex-hero .et_pb_module:not(.annex-watermark) { position: relative; z-index: 2; }

/* ==========================================================================
   5. Cards, images & garment details
   ========================================================================== */
.annex-card { -webkit-transition: box-shadow .45s var(--annex-ease), -webkit-transform .45s var(--annex-ease); transition: transform .45s var(--annex-ease), box-shadow .45s var(--annex-ease); }
.annex-card:hover { -webkit-transform: translateY(-6px); transform: translateY(-6px); box-shadow: 0 26px 50px -26px rgba(20,20,20,.38); }
.annex-stitch { position: relative; }
.annex-stitch::after {                         /* dashed stitch line, like a garment label */
	content: "";
	position: absolute; top: 10px; right: 10px; bottom: 10px; left: 10px;
	border: 1px dashed rgba(177,17,43,.55);
	opacity: 0;
	pointer-events: none;
	-webkit-transition: opacity .4s; transition: opacity .4s;
}
.annex-stitch:hover::after { opacity: 1; }

.annex-zoom .et_pb_image_wrap { display: block; overflow: hidden; }
.annex-zoom img { -webkit-transition: -webkit-transform 1s var(--annex-ease); transition: transform 1s var(--annex-ease); }
.annex-zoom:hover img { -webkit-transform: scale(1.05); transform: scale(1.05); }
.annex-tall img { width: 100%; aspect-ratio: 5 / 6; -o-object-fit: cover; object-fit: cover; }
.annex-ratio img, .annex-gallery img { width: 100%; aspect-ratio: 4 / 3; -o-object-fit: cover; object-fit: cover; }
.annex-gallery-tall img { aspect-ratio: 3 / 4; }
.annex-gallery .et_pb_image_wrap { position: relative; }
.annex-gallery .et_pb_image_wrap::after {
	content: "+";
	position: absolute; right: 14px; bottom: 14px;
	width: 42px; height: 42px;
	line-height: 40px; text-align: center;
	font: 300 28px/40px var(--annex-sans);
	color: #fff; background: var(--annex-red);
	opacity: 0;
	-webkit-transform: translateY(8px); transform: translateY(8px);
	-webkit-transition: all .35s var(--annex-ease); transition: all .35s var(--annex-ease);
}
.annex-gallery:hover .et_pb_image_wrap::after { opacity: 1; -webkit-transform: none; transform: none; }
.annex-portrait img { width: 100%; aspect-ratio: 4 / 5; -o-object-fit: cover; object-fit: cover; }

.annex-product img { width: 100%; height: 300px; -o-object-fit: contain; object-fit: contain; }
.annex-product-photo img { -o-object-fit: cover; object-fit: cover; }
@media (max-width: 767px) { .annex-product img { height: 260px; } }

.annex-tag, .annex-role, .annex-term-l {
	font-family: var(--annex-sans);
	font-weight: 600;
	font-size: 11px !important;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--annex-red);
	padding-bottom: 6px !important;
}
.annex-tag-light, .annex-term-l { color: var(--annex-gold); }
.annex-role { font-size: 13px !important; padding-bottom: 18px !important; }
.annex-partner { font-family: var(--annex-serif) !important; font-size: 22px !important; font-weight: 400 !important; line-height: 1.25 !important; }
.annex-partner-card { min-height: 150px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -ms-flex-direction: column; flex-direction: column; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; }

/* "Established" style badge overlapping an image */
.annex-badge { position: absolute !important; left: -28px; bottom: -28px; z-index: 5; margin: 0 !important; min-width: 190px; }
.annex-badge-right { left: auto; right: -28px; }
.annex-badge h3 { padding-bottom: 8px !important; }
.annex-badge p { padding-bottom: 0 !important; }
@media (max-width: 980px) {
	.annex-badge, .annex-badge-right { position: relative !important; left: auto; right: auto; bottom: auto; display: inline-block; margin: -36px 0 0 20px !important; }
}

/* features & numbered steps */
.annex-feature { border-top: 2px solid var(--annex-sand); padding-top: 34px !important; -webkit-transition: border-color .4s; transition: border-color .4s; }
.annex-feature:hover { border-top-color: var(--annex-red); }
.annex-blurb .et_pb_main_blurb_image { margin-bottom: 22px; text-align: left; }
.annex-blurb-contact .et_pb_main_blurb_image { margin-bottom: 0; }
.annex-blurb-contact a { color: #fff; }
.annex-contact-card .et_pb_blurb { margin-bottom: 30px !important; }
.annex-num {
	font-family: var(--annex-serif);
	font-size: 58px !important;
	line-height: 1 !important;
	color: transparent !important;
	-webkit-text-stroke: 1px rgba(255,255,255,.55);
	padding-bottom: 22px !important;
	-webkit-transition: color .4s, -webkit-text-stroke-color .4s; transition: color .4s, -webkit-text-stroke-color .4s;
}
.annex-num-dark { -webkit-text-stroke-color: var(--annex-red); }
.annex-step-col, .annex-step-col + .annex-step-col { border-left: 1px solid rgba(255,255,255,.14); padding-left: 22px !important; }
.annex-step-col:hover .annex-num, .annex-feature:hover .annex-num { color: var(--annex-red) !important; -webkit-text-stroke-color: var(--annex-red); }
.annex-step h4 { padding-bottom: 10px !important; }

/* number counters */
.annex-counter .title::before { content: ""; display: block; width: 28px; height: 2px; background: var(--annex-red); margin: 16px 0 14px; }
.annex-counter[style*="center"] .title::before, .et_pb_text_align_center.annex-counter .title::before { margin-left: auto; margin-right: auto; }
@media (max-width: 479px) {        /* keep stat counters two-up on phones */
	.annex-stats .et_pb_row .et_pb_column_1_4 { width: 47% !important; margin-right: 6% !important; float: left; clear: none !important; }
	.annex-stats .et_pb_row .et_pb_column_1_4:nth-child(2n) { margin-right: 0 !important; }
	.annex-stats .et_pb_row .et_pb_column_1_4:nth-child(2n+1) { clear: left !important; }
}
.annex-stats-foot { border-top: 1px solid rgba(255,255,255,.14); }
.annex-stats-foot strong { color: #fff; font-weight: 500; }

/* bar counters (machinery) */
.annex-bars .et_pb_counter_title { font-size: 15px; padding-bottom: 6px; display: block; }
.annex-bars li { margin-bottom: 16px; }
.annex-bars .et_pb_counter_amount_number { display: none; }

/* chips */
.annex-chips { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; gap: 10px; padding-bottom: 0 !important; }
.annex-chips span {
	display: inline-block;
	border: 1px solid var(--annex-ink);
	color: var(--annex-ink);
	padding: 9px 18px;
	font: 500 13px/1.2 var(--annex-sans);
	letter-spacing: .1em;
	text-transform: uppercase;
	-webkit-transition: background-color .3s, color .3s; transition: background-color .3s, color .3s;
}
.annex-chips span:hover { background: var(--annex-ink); color: #fff; }
.annex-chips-dark span { background: var(--annex-ink); color: #fff; }
.annex-chips-dark span:hover { background: var(--annex-red); border-color: var(--annex-red); }

/* lists */
.annex-list { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.annex-list li { position: relative; padding: 0 0 12px 30px; }
.annex-list li::before { content: ""; position: absolute; left: 0; top: .85em; width: 16px; height: 2px; background: var(--annex-red); }
.annex-list-light strong { color: #fff; }

.annex-stages { list-style: none !important; counter-reset: annex-st; padding: 0 !important; margin: 30px 0 0 17px !important; border-left: 1px solid var(--annex-sand); }
.annex-stages li { counter-increment: annex-st; position: relative; padding: 0 0 24px 36px; }
.annex-stages li:last-child { padding-bottom: 0; }
.annex-stages li::before {
	content: counter(annex-st, decimal-leading-zero);
	position: absolute; left: -17px; top: -2px;
	width: 34px; height: 34px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--annex-red);
	color: var(--annex-red);
	font: 600 12px/32px var(--annex-sans);
	text-align: center;
}
.annex-stages strong { display: block; color: var(--annex-ink); font-weight: 600; }
.annex-stages span { display: block; }

/* company facts table */
.annex-table { width: 100%; border-collapse: collapse; border: 0 !important; margin: 0 !important; }
.annex-table th, .annex-table td { padding: 15px 0 !important; border: 0 !important; border-bottom: 1px solid var(--annex-sand) !important; text-align: left; vertical-align: top; }
.annex-table th { width: 34%; padding-right: 20px !important; font: 600 12px/1.6 var(--annex-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--annex-muted); }
.annex-table td { color: var(--annex-ink); font-weight: 500; }
@media (max-width: 767px) { .annex-table th, .annex-table td { display: block; width: 100%; } .annex-table th { border-bottom: 0 !important; padding-bottom: 0 !important; } }

.annex-mv { border-left: 2px solid var(--annex-red); }
.annex-aql h3 { padding-bottom: 12px !important; }
.annex-aql { margin-bottom: 30px !important; }

/* order terms strip */
.annex-term { border-right: 1px solid rgba(255,255,255,.14); padding: 4px 26px !important; }
.annex-term:first-child { padding-left: 0 !important; }
.annex-term:last-child { border-right: 0; }
.annex-term h3 { padding-bottom: 6px !important; }
@media (max-width: 980px) { .annex-term { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); padding: 18px 0 !important; } }

/* CTA band: dashed stitch frame */
.annex-cta { overflow: hidden; }
.annex-cta::before { content: ""; position: absolute; top: 16px; right: 16px; bottom: 16px; left: 16px; border: 1px dashed rgba(255,255,255,.4); pointer-events: none; }
.annex-cta .annex-btn { margin-bottom: 14px !important; }
@media (max-width: 980px) { .annex-cta .et_pb_button_module_wrapper { text-align: left !important; } }

/* ==========================================================================
   6. Forms, map, FAQ
   ========================================================================== */
.annex-form .input, .annex-form input.input, .annex-form textarea.input {
	border: 1px solid transparent !important;
	padding: 17px 18px !important;
	-webkit-transition: border-color .3s, background-color .3s; transition: border-color .3s, background-color .3s;
}
.annex-form .input:focus { border-color: var(--annex-red) !important; background-color: #fff !important; }
.annex-form .et_pb_contact_captcha_question { color: var(--annex-ink); }
.annex-map iframe { display: block; width: 100%; -webkit-filter: grayscale(1) contrast(1.05); filter: grayscale(1) contrast(1.05); -webkit-transition: -webkit-filter .6s; transition: filter .6s; }
.annex-map:hover iframe { -webkit-filter: none; filter: none; }
.annex-faq .et_pb_toggle { margin-bottom: 12px !important; padding: 24px 30px !important; border: 0 !important; -webkit-transition: box-shadow .3s; transition: box-shadow .3s; }
.annex-faq .et_pb_toggle_open { box-shadow: inset 3px 0 0 var(--annex-red); }

/* ==========================================================================
   7. Footer
   ========================================================================== */
.annex-footer a { -webkit-transition: color .3s; transition: color .3s; }
.annex-footer a:hover { color: #fff !important; }
.annex-foot-links { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.annex-foot-links li { padding: 0 0 10px; }
.annex-foot-links a { position: relative; }
.annex-foot-links a::before { content: ""; display: inline-block; width: 0; height: 1px; background: var(--annex-red); vertical-align: middle; margin-right: 0; -webkit-transition: width .3s, margin .3s; transition: width .3s, margin .3s; }
.annex-foot-links a:hover::before { width: 14px; margin-right: 8px; }
.annex-foot-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.annex-foot-logo { margin-bottom: 24px !important; }

/* ==========================================================================
   8. Accessibility & motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { -webkit-animation-duration: .01ms !important; animation-duration: .01ms !important; -webkit-transition-duration: .01ms !important; transition-duration: .01ms !important; }
	.et_animated { opacity: 1 !important; }
	.annex-zoom:hover img, .annex-card:hover { -webkit-transform: none; transform: none; }
}
