/* i.nyla PHP site additions (loaded after homepage.css). */

/* Every "i.nyla" on the site uses the Goodly brand font (Bold, trimmed to Latin letters) */
@font-face {
  font-family: 'Goodly';
  src: url('../fonts/goodly-bold.woff2') format('woff2'), url('../fonts/goodly-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
.brand-word {
  font-family: 'Goodly', 'Comfortaa', system-ui, sans-serif !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Navbar colour options (set in Admin, Navbar layout) */
.site-nav.nav-style-grey { background: #E6E7EA !important; border-bottom: 1px solid #D3D5DB; }
.site-nav.nav-style-white { background: #FFFFFF !important; border-bottom: 1px solid #E6E7EA; }
.site-nav.nav-style-cream { background: #F6F3EC !important; border-bottom: 1px solid #DDD7CA; }
@media (min-width: 992px) {
  .site-nav.nav-logo-right .container { flex-direction: row-reverse; }
  .site-nav.nav-logo-right .navbar-brand { margin-right: 0 !important; margin-left: 1.5rem; }
}
.site-nav .brand-logo { width: auto; }
.site-footer .brand-logo { width: auto; }

/* Social icons in the footer */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #DDD7CA;
  color: #1C1F22;
  font-size: 18px;
  transition: background-color .15s ease, color .15s ease;
}
.social-icons a:hover, .social-icons a:focus-visible { background: #1C1F22; color: #FFFFFF; }

/* Contact form spam trap (hidden from people, visible to bots) */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.skip-link { position: absolute; top: 8px; left: 8px; z-index: 3000; background: #FFFFFF; padding: 8px 12px; border-radius: 6px; }

/* Step and feature icons (Bootstrap Icons) */
.hiw-icon i, .core-feature-icon i { font-size: 28px; line-height: 1; }

.contact-info a { color: #4D5BB5; }

/* Reserve space for images so the page does not jump while loading */
.feature-pack, .shop-media img { height: auto; }
.shop-media img { height: 100%; }

/* Hero label in capitals, as in the approved design */
.hero-eyebrow { text-transform: uppercase; }

/* Hero heading: keep the two set lines on wide screens only; allow wrapping below 1200px */
@media (max-width: 1199.98px) {
  .hero h1 { white-space: normal !important; }
}

/* Hero, 992-1199px: the 16:9 shape plus the 600px minimum height made the section
   wider than the screen. Use the minimum height only at these widths. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero { aspect-ratio: auto !important; width: 100%; }
}

/* Age pop-up: country code picker, required marks, consent checkbox */
.age-dialog .iti { width: 100%; display: block; }
.age-dialog .iti .form-control { width: 100%; }
.age-dialog .iti.is-invalid .form-control { border-color: #dc3545; }
.age-dialog .iti__country-list { max-width: min(420px, calc(100vw - 48px)); white-space: normal; z-index: 2100; }
.age-dialog .iti__selected-flag { border-radius: 6px 0 0 6px; }
.age-dialog .req { color: #B42318; }
.age-consent { background: #F7F5EF; border: 1px solid #ECE7DA; border-radius: 8px; padding: 12px 14px 12px 38px; }
.age-consent .form-check-input { margin-left: -24px; margin-top: 3px; width: 18px; height: 18px; }
.age-consent .form-check-label { font-size: 14px; line-height: 1.45; color: #1C1F22; }
.age-consent .form-check-input.is-invalid { border-color: #dc3545; }
.age-fine { line-height: 1.5; }
@media (max-height: 760px) { .age-overlay { align-items: flex-start; } }

/* Age pop-up, two-panel layout: brand panel on the left, form on the right.
   On phones the brand panel becomes a short header above the form. */
.age-overlay .age-dialog {
  max-width: 940px; padding: 0; display: grid; grid-template-columns: 5fr 7fr;
  overflow: hidden; border-radius: 20px;
}
.age-brand {
  background: radial-gradient(120% 90% at 0% 0%, #FFFFFF 0%, #F6F3EC 45%, #EFEBE1 100%);
  border-right: 1px solid #E4DED0; padding: 40px 34px; display: flex; flex-direction: column;
}
.age-brand .age-logo { margin: 0 0 22px; height: 60px; width: auto; max-width: 100%; align-self: flex-start; object-fit: contain; }
.age-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  background: #1C1F22; color: #FFFFFF; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; border-radius: 999px; padding: 6px 12px; margin-bottom: 14px;
}
.age-brand .age-title { text-align: left; font-size: 32px !important; line-height: 1.15; margin-bottom: 10px; }
.age-brand .age-text { text-align: left; font-size: 15px; line-height: 1.55; margin-bottom: 22px; }
.age-points { margin: 0 0 24px; display: grid; gap: 12px; }
.age-points li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #2A2E32; font-weight: 500; }
.age-points i {
  flex: 0 0 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: #FFFFFF; border: 1px solid #E4DED0; color: #4D5BB5; font-size: 16px;
}
.age-brand .age-warning { margin: auto 0 0; text-align: left; font-size: 12.5px; line-height: 1.45; padding: 12px 14px; }
.age-main { padding: 40px 38px 30px; display: flex; flex-direction: column; justify-content: center; }
.age-main .form-label { font-size: 13px; font-weight: 600; color: #2A2E32; margin-bottom: 6px; }
.age-main .form-control { height: 48px; border-radius: 10px; border-color: #DDD7CA; }
.age-main .form-control:focus { border-color: #7B8CD9; box-shadow: 0 0 0 .2rem rgba(123,140,217,.18); }
.age-main .form-control::placeholder { color: #9A9EA3; }
.age-main .iti__selected-flag { border-radius: 10px 0 0 10px; }
.age-main .age-consent { border-radius: 10px; }
.age-main .age-submit { height: 52px; border-radius: 999px; font-weight: 600; }
.age-main .age-fine { text-align: left; margin-top: 14px; font-size: 11.5px; }

@media (max-width: 767.98px) {
  .age-overlay .age-dialog { grid-template-columns: 1fr; max-width: 520px; border-radius: 16px; }
  .age-brand { border-right: 0; border-bottom: 1px solid #E4DED0; padding: 22px 22px 18px; align-items: center; text-align: center; }
  .age-brand .age-logo { margin: 0 auto 12px; height: 48px; align-self: center; }
  .age-badge { align-self: center; margin-bottom: 10px; }
  .age-brand .age-title, .age-brand .age-text { text-align: center; }
  .age-brand .age-title { font-size: 26px !important; }
  .age-brand .age-text { font-size: 14px; margin-bottom: 14px; }
  .age-points { display: none; }
  .age-brand .age-warning { margin: 0; text-align: center; width: 100%; }
  .age-main { padding: 22px 22px 22px; }
  .age-main .age-fine { text-align: center; }
}

/* Age check page (served instead of every page until the visitor passes) */
.age-page { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #2A2E3A center top / cover no-repeat fixed; }
.age-page .age-overlay { position: relative; inset: auto; flex: 1 0 auto; z-index: 0; overflow: visible; padding-block: 28px; }
.age-noscript { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2002; background: #FFFFFF; color: #1C1F22; border-radius: 10px; padding: 12px 18px; font: 600 14px Inter, system-ui, sans-serif; max-width: calc(100% - 32px); text-align: center; }

/* Newsletter subscribe box (above the footer on every page) */
.subscribe-band { background: var(--cream, #F6F3EC); padding-block: 64px 72px; }
.subscribe-panel {
  position: relative; overflow: hidden; border-radius: 24px; padding: clamp(28px, 5vw, 56px);
  background: radial-gradient(90% 140% at 100% 0%, rgba(123,140,217,.45) 0%, rgba(123,140,217,0) 55%),
              radial-gradient(70% 120% at 0% 100%, rgba(28,217,197,.16) 0%, rgba(28,217,197,0) 60%),
              linear-gradient(135deg, #1C1F22 0%, #2A2F45 100%);
  color: #FFFFFF; box-shadow: 0 24px 60px rgba(28,31,34,.18);
}
.subscribe-panel::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 40px rgba(255,255,255,.03); pointer-events: none;
}
.subscribe-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #B9C3F0; margin-bottom: 12px; }
.subscribe-title { font-family: Inter, system-ui, sans-serif !important; font-weight: 700 !important; font-size: clamp(28px, 3.4vw, 40px) !important; letter-spacing: -.02em; color: #FFFFFF !important; margin: 0 0 12px; }
.subscribe-text { color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.6; max-width: 46ch; }
.subscribe-form { position: relative; z-index: 1; }
.subscribe-field {
  display: flex; align-items: center; gap: 8px; background: #FFFFFF; border-radius: 999px; padding: 6px 6px 6px 20px;
  border: 2px solid transparent; transition: border-color .15s, box-shadow .15s;
}
.subscribe-field:focus-within { border-color: #7B8CD9; box-shadow: 0 0 0 4px rgba(123,140,217,.3); }
.subscribe-field > .bi { color: #5E6267; font-size: 18px; }
.subscribe-input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; height: 46px; font-size: 16px; color: #1C1F22; }
.subscribe-input::placeholder { color: #8A8E93; }
.subscribe-btn {
  flex: 0 0 auto; border: 0; border-radius: 999px; height: 48px; padding: 0 24px; font-weight: 600; font-size: 15px;
  background: #7B8CD9; color: #FFFFFF; display: inline-flex; align-items: center; gap: 8px; transition: background .15s, transform .15s;
}
.subscribe-btn:hover { background: #4D5BB5; }
.subscribe-btn:disabled { opacity: .7; }
.subscribe-field.is-invalid { border-color: #F28B82; }
.subscribe-status { min-height: 0; margin: 10px 4px 0; font-size: 14px; font-weight: 500; }
.subscribe-status:empty { display: none; }
.subscribe-status.is-error { color: #FFB4AB; }
.subscribe-status.is-ok { color: #9FF0E4; }
.subscribe-note { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,.62); padding-left: 4px; }
.subscribe-band + .site-footer { border-top: 0; }
@media (max-width: 575.98px) {
  .subscribe-band { padding-block: 40px 48px; }
  .subscribe-field { flex-wrap: wrap; border-radius: 18px; padding: 8px; }
  .subscribe-field > .bi { display: none; }
  .subscribe-input { flex-basis: 100%; padding: 0 12px; }
  .subscribe-btn { width: 100%; justify-content: center; }
}

/* Contact form */
.contact-card { border-radius: 20px; border-color: #E4DED0; padding: clamp(24px, 4vw, 40px) !important; box-shadow: 0 20px 50px rgba(28,31,34,.08); position: relative; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #7B8CD9, #1CD9C5); }
.contact-card-head { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid #EFEBE1; }
.contact-card-icon { flex: 0 0 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: #FFFFFF; background: linear-gradient(135deg, #7B8CD9, #4D5BB5); box-shadow: 0 8px 20px rgba(77,91,181,.3); }
.contact-card-title { font-family: Inter, system-ui, sans-serif !important; font-size: 24px !important; font-weight: 700 !important; letter-spacing: -.01em; color: #1C1F22 !important; margin: 0 0 4px; }
.contact-card-sub { font-size: 14.5px; color: #5E6267; }
.contact-form .form-label { font-size: 13px; font-weight: 600; color: #2A2E32; margin-bottom: 6px; }
.contact-form .req { color: #B42318; }
.contact-form .form-control { height: 50px; border-radius: 12px; background: #FAF8F3 !important; border: 1px solid #DDD7CA; font-size: 15px; color: #1C1F22; transition: border-color .15s, box-shadow .15s, background .15s; }
.contact-form textarea.form-control { height: auto; min-height: 150px; padding-top: 14px; resize: vertical; }
.contact-form .form-control::placeholder { color: #9A9EA3; }
.contact-form .form-control:focus { background: #FFFFFF !important; border-color: #7B8CD9; box-shadow: 0 0 0 4px rgba(123,140,217,.18); }
.contact-form .form-control.is-invalid { border-color: #dc3545; background-image: none; }
.cf-field { position: relative; }
.cf-field > .bi { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #8A8E93; font-size: 17px; pointer-events: none; transition: color .15s; }
.cf-field > .form-control { padding-left: 46px; }
.cf-field:focus-within > .bi { color: #4D5BB5; }
.cf-count { font-weight: 500; color: #8A8E93; font-size: 12px; }
.contact-form .iti { width: 100%; display: block; }
.contact-form .iti .form-control { width: 100%; }
.contact-form .iti__selected-flag { border-radius: 12px 0 0 12px; padding: 0 10px 0 14px; }
.contact-form .iti.is-invalid .form-control { border-color: #dc3545; }
.contact-form .iti__country-list { max-width: min(420px, calc(100vw - 48px)); white-space: normal; z-index: 30; }
.cf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding-top: 6px; }
.cf-submit { height: 52px; padding: 0 30px; border-radius: 999px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
.cf-submit .bi { transition: transform .2s; }
.cf-submit:hover .bi { transform: translate(2px, -2px); }
.cf-privacy { font-size: 13px; color: #5E6267; }
@media (max-width: 575.98px) {
  .contact-card-head { gap: 12px; }
  .contact-card-icon { flex-basis: 42px; height: 42px; font-size: 19px; }
  .cf-submit { width: 100%; justify-content: center; }
}

/* Contact: photo matches the form card (same height, corners and shadow) */
.contact-media { border-radius: 20px; box-shadow: 0 20px 50px rgba(28,31,34,.08); }
.contact-media:last-child { margin-bottom: 0 !important; }
@media (min-width: 992px) {
  #contact-form .row > .col-lg-5 { display: flex; flex-direction: column; }
  #contact-form .contact-media { flex: 1 1 auto; min-height: 420px; position: relative; }
  #contact-form .contact-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
}
