/* ============================================================
   FAMOUS WIGS — STAGE 1 BRAND DESIGN SYSTEM
   Change brand-wide colors and fonts HERE on future projects.
   Legacy variable names remain unchanged for compatibility.
   ============================================================ */
:root {
  /* Main brand: refined purple + lavender */
  --color-primary: #62358C;       /* accessible text + primary CTAs */
  --color-primary-dark: #442261;  /* deeper contrast, footer and overlays */
  --color-primary-light: #A78ACD; /* soft lavender accent, not body text */
  --color-primary-hover: #74459F;
  --color-primary-faded: #735385;
  --color-primary-soft: #F2EAF8;
  --color-lavender: #EDE4F5;
  --color-lavender-light: #F7F1FB;

  /* Accessible accent purple; pale variant works over deep purple */
  --color-accent: #8552A5;
  --color-accent-dark: #703C92;
  --color-accent-light: #F0DDF9;

  /* Status colors should stay semantic (success != brand accent). */
  --color-success: #19713C;
  --color-success-hover: #145C32;
  --color-error: #C53D50;

  /* Surfaces and typography */
  --color-white: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-bg: #FAF7FC;
  --color-border: #E9E0EF;
  --color-border-strong: #D4C4DF;
  --color-text: #2D2038;
  --color-text-muted: #71667B;

  /* Keep Montserrat to retain text widths and existing layouts. */
  --font-base: 'Montserrat', sans-serif;
  --font-heading: var(--font-base);

  /* Original geometry / component dimensions unchanged */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --radius: 8px;
  --radius-full: 999px;
  --header-row1-bg: var(--color-primary);
  --header-row2-bg: var(--color-primary);
  --container-max-width: 1440px;
  --container-padding: 0.5rem;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}



/* Base type and color — only appearance, no changes to layout or spacing. */
body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

body button,
body input,
body textarea,
body select {
  font-family: var(--font-base);
}

body h1, body h2, body h3,
body h4, body h5, body h6 {
  font-family: var(--font-heading);
}

/* Default links, subordinate to component-specific design rules. */
a { color: var(--color-primary); }
a:hover { color: var(--color-primary-hover); }

/* Low-specificity form focus styling: preserves existing custom controls. */
:where(input, textarea, select):focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(98, 53, 140, 0.12);
}


/* ============================================================
   CAMFORT REUSABLE SECTION SYSTEM
   NO OUTER PADDING
   ============================================================ */

.camfort-section {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}


/* ============================================================
   CONTAINER
   ============================================================ */

.camfort-section__container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 0 0 0;
    padding: 0;
    box-sizing: border-box;
}


/* ============================================================
   HEADER
   ============================================================ */

.camfort-section__header {
    width: 100vw;
    max-width: 100vw;

    

    padding-left: 0;
    padding-right: 0;
}


/* ============================================================
   EYEBROW
   ============================================================ */

.camfort-section__eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;

    margin: 0 0 14px;
    padding: 0;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: var(--color-text-muted, #777);
}


.camfort-section__eyebrow-line {
    width: 22px;
    height: 2px;

    flex: 0 0 auto;

    margin: 0;
    padding: 0;

    background: currentColor;
    border-radius: 10px;
}

/* ============================================================
   FULL-WIDTH HEADER
   ============================================================ */

.camfort-section__header {
    width: 100%;
    margin: 0 0 38px;
    padding: 0;
}


/* Make the header grid span the entire available width */
.camfort-section__header-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(280px, 0.6fr);

    gap: 55px;

    width: 100%;
    max-width: none;

    margin: 0;
    padding: 0;

    align-items: end;
}


/* ============================================================
   TITLE
   ============================================================ */

.camfort-section__title-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
}

.camfort-section__title {
    width: 100%;

    margin: 0;
    padding: 0;

    max-width: none;

    font-size: clamp(18px, 2.5vw, 36px);
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 600;

    color: var(--color-text, #17181c);
}


/* ============================================================
   DESCRIPTION
   ============================================================ */

.camfort-section__description-wrap {
    width: 100%;

    margin: 0;
    padding: 0 0 2px;
}

.camfort-section__description {
    width: 100%;

    margin: 0;
    padding: 0;

    max-width: 350px;

    font-size: 12px;
    line-height: 1.6;

    color: var(--color-text-muted, #666);
}


/* ============================================================
   CONTENT
   ============================================================ */

.camfort-section__content {
    width: 100%;

    margin: 0;
    padding: 0;
}


/* ============================================================
   FOOTER
   ============================================================ */

.camfort-section__footer {
    display: grid;

    grid-template-columns: auto 1fr;

    align-items: center;

    gap: 16px;

    width: 100%;

    margin: 38px 0 0;
    padding: 0;
}


.camfort-section__footer-label {
    display: flex;

    align-items: center;

    gap: 7px;

    margin: 0;
    padding: 0;

    white-space: nowrap;

    font-size: 8px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.08em;

    color: #777;
}


.camfort-section__footer-dot {
    width: 6px;
    height: 6px;

    flex: 0 0 auto;

    margin: 0;
    padding: 0;

    border-radius: 50%;

    background: var(--color-text, #17181c);
}


.camfort-section__footer-line {
    width: 100%;
    height: 1px;

    margin: 0;
    padding: 0;

    background: rgba(0, 0, 0, 0.09);
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 991px) {

    .camfort-section {
        margin: 0;
        padding: 0;
    }

    .camfort-section__header {
        width: 100%;
        margin-bottom: 30px;
    }

    .camfort-section__header-grid {
        grid-template-columns: 1fr 0.65fr;
        gap: 35px;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 640px) {

    .camfort-section {
        margin: 0;
        padding: 0;
    }

    .camfort-section__container {
        width: calc(100% - 28px);
        margin: 0 auto;
        padding: 0;
    }

    .camfort-section__header {
        width: 100%;
        margin-bottom: 27px;
    }

    .camfort-section__eyebrow {
        margin-bottom: 12px;
    }

    .camfort-section__header-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .camfort-section__title {
        width: 100%;
        max-width: none;

        font-size: clamp(32px, 9.5vw, 46px);
        line-height: 0.98;
    }

    .camfort-section__description {
        width: 100%;
        max-width: 100%;
        font-size: 11px;
    }

    .camfort-section__footer {
        grid-template-columns: 1fr;
        gap: 10px;

        margin-top: 30px;
    }

    .camfort-section__footer-line {
        width: 100%;
    }

}


/* ============================================================
   VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 380px) {

    .camfort-section__title {
        font-size: 31px;
    }

}


/* ============================================================
   CAMFORT FOOTER — SCROLL ANIMATION
   FINAL STABLE VERSION
   ============================================================ */


/* ============================================================
   FOOTER CONTAINER
   ============================================================ */

.camfort-section__footer {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 16px;

	width: 100%;
	margin: 38px 0 0;
	padding: 0;

	position: relative;

	/*
	 * IMPORTANT:
	 * The footer itself is NEVER hidden or transformed.
	 */
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
}


/* ============================================================
   FOOTER LABEL
   ============================================================ */

.camfort-section__footer-label {
	display: flex;
	align-items: center;
	gap: 7px;

	margin: 0;
	padding: 0;

	white-space: nowrap;

	font-size: 8px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;

	color: #777;

	position: relative;
	overflow: hidden;

	/*
	 * Normal state.
	 */
	opacity: 1;
	transform: none;
}


/* ============================================================
   FOOTER DOT
   ============================================================ */

.camfort-section__footer-dot {
	width: 6px;
	height: 6px;

	flex: 0 0 auto;

	margin: 0;
	padding: 0;

	border-radius: 50%;

	background: var(--color-text, #17181c);

	position: relative;

	transform: none;
}


/* ============================================================
   DOT RING
   ============================================================ */

.camfort-section__footer-dot::after {
	content: "";

	position: absolute;

	top: 50%;
	left: 50%;

	width: 6px;
	height: 6px;

	border: 1px solid currentColor;
	border-radius: 50%;

	transform: translate(-50%, -50%) scale(0.5);

	opacity: 0;
}


/* ============================================================
   FOOTER LINE
   ============================================================ */

.camfort-section__footer-line {
	position: relative;

	width: 100%;
	height: 1px;

	margin: 0;
	padding: 0;

	background: rgba(0, 0, 0, 0.09);

	overflow: hidden;

	transform: none;
	transform-origin: left center;
}


/* ============================================================
   LINE SWEEP
   ============================================================ */

.camfort-section__footer-line::after {
	content: "";

	position: absolute;

	top: 0;
	left: -30%;

	width: 30%;
	height: 100%;

	background: rgba(0, 0, 0, 0.25);

	opacity: 0;
}


/* ============================================================
   ANIMATION TRIGGER
   ============================================================ */

/*
 * NOTICE:
 *
 * We do NOT animate the footer itself.
 *
 * Only its individual elements animate.
 */


/* ============================================================
   DOT POP
   ============================================================ */

.camfort-section__footer.camfort-footer-animate
.camfort-section__footer-dot {
	animation:
		camfortDotPop
		0.55s
		cubic-bezier(0.34, 1.56, 0.64, 1)
		both;
}


.camfort-section__footer.camfort-footer-animate
.camfort-section__footer-dot::after {
	animation:
		camfortDotRing
		0.8s
		ease-out
		0.1s
		both;
}


/* ============================================================
   LABEL REVEAL
   ============================================================ */

.camfort-section__footer.camfort-footer-animate
.camfort-section__footer-label {
	animation:
		camfortLabelReveal
		0.65s
		cubic-bezier(0.22, 1, 0.36, 1)
		0.08s
		both;
}


/* ============================================================
   LINE REVEAL
   ============================================================ */

.camfort-section__footer.camfort-footer-animate
.camfort-section__footer-line {
	animation:
		camfortLineReveal
		0.9s
		cubic-bezier(0.22, 1, 0.36, 1)
		0.18s
		both;
}


/* ============================================================
   LINE SWEEP
   ============================================================ */

.camfort-section__footer.camfort-footer-animate
.camfort-section__footer-line::after {
	animation:
		camfortLineSweep
		0.85s
		ease-out
		0.55s
		both;
}


/* ============================================================
   KEYFRAMES — DOT
   ============================================================ */

@keyframes camfortDotPop {

	0% {
		transform: scale(0.45);
	}

	60% {
		transform: scale(1.3);
	}

	100% {
		transform: scale(1);
	}

}


/* ============================================================
   KEYFRAMES — DOT RING
   ============================================================ */

@keyframes camfortDotRing {

	0% {
		transform: translate(-50%, -50%) scale(0.5);
		opacity: 0.7;
	}

	100% {
		transform: translate(-50%, -50%) scale(3);
		opacity: 0;
	}

}


/* ============================================================
   KEYFRAMES — LABEL
   ============================================================ */

@keyframes camfortLabelReveal {

	0% {
		opacity: 0;
		transform: translateX(-16px);
	}

	100% {
		opacity: 1;
		transform: translateX(0);
	}

}


/* ============================================================
   KEYFRAMES — LINE
   ============================================================ */

@keyframes camfortLineReveal {

	0% {
		transform: scaleX(0);
	}

	100% {
		transform: scaleX(1);
	}

}


/* ============================================================
   KEYFRAMES — LINE SWEEP
   ============================================================ */

@keyframes camfortLineSweep {

	0% {
		left: -30%;
		opacity: 0;
	}

	15% {
		opacity: 1;
	}

	100% {
		left: 100%;
		opacity: 0;
	}

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 640px) {

	.camfort-section__footer {

		grid-template-columns: 1fr;

		gap: 10px;

		margin-top: 30px;

	}

	.camfort-section__footer-line {

		width: 100%;

	}

}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

	.camfort-section__footer,
	.camfort-section__footer-dot,
	.camfort-section__footer-label,
	.camfort-section__footer-line {

		opacity: 1 !important;
		transform: none !important;
		animation: none !important;

	}

}