/* =============================================
   LAYOUT PATTERNS — Header, Footer, Newsletter
   ============================================= */

/* ─── HEADER ─────────────────────────────────── */
.hdr {
     position: sticky;
     top: 0;
     background: rgba(253, 240, 242, .95);
     backdrop-filter: blur(14px);
     -webkit-backdrop-filter: blur(14px);
     z-index: 100;
     border-bottom: 1px solid rgba(212, 86, 106, .13);
}

.hdr-in {
     max-width: 1240px;
     margin: 0 auto;
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 0 24px;
     height: 72px;
}

/* ─── LOGO ───────────────────────────────────── */
.logo {
     font-family: var(--serif);
     font-weight: 600;
     font-size: 28px;
     color: var(--ink);
     letter-spacing: -0.01em;
     text-decoration: none;
     display: inline-flex;
     align-items: baseline;
     transition: opacity 0.3s ease;
}

.logo:hover {
     opacity: 0.85;
}

.logo em {
     font-family: var(--serif);
     font-style: italic;
     font-weight: 400;
     font-size: 34px;
     margin-left: 2px;
     color: var(--r6);
}

.logo .logo-dot {
     color: var(--r4);
     font-size: 38px;
     line-height: 0;
     margin-left: 1px;
}

/* ─── NAV ────────────────────────────────────── */
.nav {
     display: flex;
     align-items: center;
     gap: 28px;
     list-style: none;
     height: 100%;
}

.nav > li {
     position: relative;
     display: flex;
     align-items: center;
     height: 100%;
}

.nav a {
     font-family: var(--sans);
     font-size: 11.5px;
     font-weight: 600;
     letter-spacing: .05em;
     line-height: 1;
     text-transform: uppercase;
     color: var(--ink2);
     text-decoration: none;
     white-space: nowrap;
     transition: color .2s;
     padding: 10px 0;
}

.nav a:hover,
.nav li:hover > a,
.nav a.on {
     color: var(--r5);
}

/* ─── DROPDOWN / MEGA MENU ───────────────────── */
.nav .sub-menu {
     position: absolute;
     top: calc(100% - 10px);
     left: 50%;
     transform: translateX(-50%) translateY(10px);
     background: #fff;
     min-width: 340px;
     list-style: none;
     padding: 12px;
     border-radius: 20px;
     box-shadow: 0 20px 50px rgba(158, 32, 56, 0.15);
     border: 1px solid rgba(212, 86, 106, 0.1);
     opacity: 0;
     visibility: hidden;
     transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
     z-index: 1000;
}

.nav li:hover > .sub-menu {
     opacity: 1;
     visibility: visible;
     transform: translateX(-50%) translateY(0);
}

.nav .sub-menu li {
     width: 100%;
     margin-bottom: 2px;
}

.nav .sub-menu li:last-child {
     margin-bottom: 0;
}

.nav .sub-menu a {
     padding: 12px 14px;
     border-radius: 14px;
     display: block;
     transition: all 0.25s ease;
}

.nav .sub-menu a:hover {
     background: var(--r1);
     color: var(--r5);
}

/* Mega Item Inner Structure */
.mega-item {
     display: flex;
     align-items: center;
     gap: 16px;
}

.mega-icon {
     width: 42px;
     height: 42px;
     background: rgba(212, 86, 106, 0.08); /* super elegant, soft warm rose tint */
     border-radius: 12px; /* modern squircle */
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
     transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
     padding: 6px;
     border: 1px solid rgba(212, 86, 106, 0.04);
}

.mega-icon img {
     width: 100%;
     height: 100%;
     object-fit: contain;
     mix-blend-mode: multiply; /* blends any white/grey image backgrounds transparently */
     filter: contrast(1.15) brightness(0.96); /* sharpens the lineart to make it highly visible on desktop */
     opacity: 0.85;
     transition: all 0.3s ease;
}

.mega-content {
     display: flex;
     flex-direction: column;
     gap: 1px;
}

.mega-title {
     font-size: 13.5px;
     font-weight: 700;
     color: var(--ink);
     letter-spacing: -0.01em;
     line-height: 1.2;
     text-transform: none;
}

.mega-desc {
     font-size: 11.5px;
     font-weight: 400;
     color: var(--ink2);
     opacity: 0.65;
     line-height: 1.3;
     text-transform: none;
}

.nav .sub-menu a:hover .mega-icon {
     transform: scale(1.06) translateY(-1px);
     background: rgba(212, 86, 106, 0.12); /* slightly deeper pink tint on hover */
     box-shadow: 0 4px 12px rgba(212, 86, 106, 0.1);
}

.nav .sub-menu a:hover .mega-icon img {
     opacity: 1;
     transform: scale(1.05);
}

.nav .sub-menu a:hover .mega-title {
     color: var(--r5);
}

/* Arrow indicator for parents */
.nav .menu-item-has-children > a {
     display: flex;
     align-items: center;
     gap: 6px;
}

.nav .menu-item-has-children > a::after {
     content: '';
     width: 5px;
     height: 5px;
     border-right: 1.5px solid currentColor;
     border-bottom: 1.5px solid currentColor;
     transform: rotate(45deg);
     margin-top: -3px;
     opacity: 0.4;
     transition: transform 0.3s;
}

.nav .menu-item-has-children:hover > a::after {
     transform: rotate(-135deg);
     margin-top: 2px;
}

/* ─── HEADER CTA ─────────────────────────────── */
.hcta {
     display: flex;
     align-items: center;
     justify-content: center;
     text-decoration: none;
     background: var(--r5);
     color: #fff;
     font-family: var(--sans);
     font-size: 11px;
     font-weight: 700;
     letter-spacing: .08em;
     text-transform: uppercase;
     border: none;
     border-radius: 100px;
     cursor: pointer;
     padding: 11px 24px;
     transition: background .2s;
}

.hcta:hover {
     background: var(--r6);
}

/* ─── TRUST STRIP ────────────────────────────── */
.trust {
     display: flex;
     gap: 36px;
     align-items: center;
     flex-wrap: wrap;
}

.trust-n {
     font-family: var(--serif);
     font-size: 38px;
     font-weight: 700;
     color: var(--r5);
     line-height: 1;
}

.trust-l {
     font-size: 11px;
     font-weight: 600;
     letter-spacing: .06em;
     text-transform: uppercase;
     color: var(--ink3);
     margin-top: 2px;
}

/* ─── FOOTER ─────────────────────────────────── */
.ftr {
     background: var(--ink);
     color: rgba(255, 255, 255, .7);
     padding: 72px 0 28px;
}

.ftr-grid {
     max-width: 1180px;
     margin: 0 auto;
     padding: 0 36px;
     display: grid;
     grid-template-columns: 2fr 1fr 1fr 1.4fr;
     gap: 48px;
}

.ftr-logo {
     font-family: var(--serif);
     font-size: 32px;
     font-weight: 600;
     color: rgba(255, 255, 255, 0.9);
     display: inline-flex;
     align-items: baseline;
     text-decoration: none;
     margin-bottom: 14px;
     letter-spacing: -0.01em;
     transition: opacity 0.3s ease;
}

.ftr-logo:hover {
     opacity: 0.85;
}

.ftr-logo em {
     font-family: var(--serif);
     font-style: italic;
     font-weight: 300;
     font-size: 38px;
     color: var(--r4);
     margin-left: 2px;
}

.ftr-logo .logo-dot {
     color: var(--r5);
     font-size: 42px;
     line-height: 0;
     margin-left: 1px;
}

.ftr-desc {
     font-size: 14px;
     line-height: 1.8;
     opacity: .65;
     max-width: 270px;
}

.ftr-col h4 {
     font-family: var(--sans);
     font-size: 10px;
     font-weight: 700;
     letter-spacing: .2em;
     text-transform: uppercase;
     color: var(--r3);
     margin-bottom: 18px;
}

.ftr-col ul {
     list-style: none;
}

.ftr-col li {
     margin-bottom: 9px;
}

.ftr-col a {
     color: rgba(255, 255, 255, .6);
     font-size: 13px;
     text-decoration: none;
     transition: color .2s;
}

.ftr-col a:hover {
     color: var(--r3);
}

.ftr-bottom {
     max-width: 1180px;
     margin: 44px auto 0;
     padding: 22px 36px 0;
     border-top: 1px solid rgba(255, 255, 255, .07);
     display: flex;
     justify-content: space-between;
     align-items: center;
     font-size: 11px;
     color: rgba(255, 255, 255, .35);
}

/* ─── NEWSLETTER SMALL (footer) ──────────────── */
.nl-sm {
     display: flex;
     gap: 8px;
}

.nl-sm input {
     flex: 1;
     padding: 11px 14px;
     background: rgba(0, 0, 0, .2);
     border: 1px solid rgba(255, 255, 255, .15);
     border-radius: 10px;
     color: #fff;
     font-family: var(--sans);
     font-size: 13px;
     outline: none;
     transition: border-color .2s;
}

.nl-sm input::placeholder {
     color: rgba(255, 255, 255, .35);
}

.nl-sm input:focus {
     border-color: rgba(255, 255, 255, .4);
}

.nl-sm button {
     background: var(--r4);
     border: none;
     border-radius: var(--r-pill);
     color: #fff;
     padding: 11px 20px;
     cursor: pointer;
     font-size: 11px;
     font-weight: 700;
     letter-spacing: .08em;
     text-transform: uppercase;
     white-space: nowrap;
     transition: background .2s;
}

.nl-sm button:hover {
     background: var(--r5);
}

/* ─── NEWSLETTER SECTION (big) ───────────────── */
.nl-section {
     padding: 80px 0;
}

.nl-card {
     border-radius: 32px;
     overflow: hidden;
}

.nl-inner {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 64px;
     padding: 64px;
     align-items: start;
}

.nl-title {
     font-family: var(--serif);
     font-size: clamp(28px, 3vw, 44px);
     font-weight: 700;
     line-height: 1.12;
     color: #fff;
     letter-spacing: -.015em;
     margin-bottom: 16px;
}

.nl-title em {
     font-style: italic;
     color: var(--r3);
}

.nl-description {
     font-size: 14px;
     color: rgba(255, 255, 255, .7);
     line-height: 1.8;
     margin-bottom: 32px;
     max-width: 440px;
}

.nl-perks {
     display: flex;
     flex-direction: column;
     gap: 14px;
     margin-bottom: 32px;
}

.nl-perk {
     display: flex;
     align-items: center;
     gap: 12px;
     color: rgba(255, 255, 255, .9);
     font-size: 14px;
}

.nl-dot {
     width: 6px;
     height: 6px;
     background: var(--r3);
     border-radius: 50%;
     flex-shrink: 0;
}

.nl-grid-main {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 16px;
     margin-bottom: 16px;
}

.nl-input {
     background: rgba(255, 255, 255, 0.08);
     border: 1px solid rgba(255, 255, 255, 0.15);
     width: 100%;
     padding: 14px 20px;
     border-radius: 12px;
     color: #fff;
     font-family: var(--sans);
     transition: border-color .2s;
}

.nl-input:focus {
     border-color: var(--r3);
     outline: none;
}

.nl-dot {
     width: 6px;
     height: 6px;
     border-radius: 50%;
     background: var(--r3);
     flex-shrink: 0;
}

.nl-form-big {
     display: flex;
     flex-direction: column;
     gap: 12px;
}

.nl-input {
     background: rgba(255, 255, 255, .1);
     border: 1px solid rgba(255, 255, 255, .2);
     border-radius: 12px;
     padding: 16px 20px;
     color: #fff;
     font-family: var(--sans);
     font-size: 14px;
     outline: none;
     transition: border-color .2s;
}

.nl-input::placeholder {
     color: rgba(255, 255, 255, .4);
}

.nl-input:focus {
     border-color: rgba(255, 255, 255, .5);
}

.nl-row {
     display: flex;
     gap: 12px;
}

.nl-row .nl-input {
     flex: 1;
}

.nl-btn {
     background: var(--r4);
     border: none;
     border-radius: 12px;
     color: #fff;
     font-family: var(--sans);
     font-size: 13px;
     font-weight: 700;
     letter-spacing: .06em;
     text-transform: uppercase;
     padding: 16px 28px;
     cursor: pointer;
     white-space: nowrap;
     transition: background .2s;
}

.nl-btn:hover {
     background: var(--r5);
}

.nl-consent {
     font-size: 11px;
     color: rgba(255, 255, 255, .4);
     line-height: 1.6;
     margin-top: 8px;
}

.nl-social-proof {
     margin-top: 28px;
     padding-top: 24px;
     border-top: 1px solid rgba(255, 255, 255, .1);
}

.nl-sp-q {
     font-family: var(--serif);
     font-style: italic;
     font-size: 15px;
     color: rgba(255, 255, 255, .7);
     line-height: 1.6;
     margin-bottom: 8px;
}

.nl-sp-auth {
     font-size: 11px;
     color: rgba(255, 255, 255, .4);
     font-weight: 600;
     letter-spacing: .06em;
     text-transform: uppercase;
}

/* Category capitalization */
.sidebar-cats a, .card-cat, .card-cat a {
     text-transform: capitalize;
}
