/* ==========================================================================
   Loperfido Dance Academy - site styles (Bootstrap 5.3 conversion)
   Loaded AFTER plugins/bootstrap/bootstrap.min.css. Replaces /stylelop.css.

   LAYOUT BREAKPOINTS
     Desktop            >= 992px   identical to the original fixed layout
     Tablet / landscape  576-991px  fluid width, scaled images, hamburger nav
     Phone (portrait)   <  576px   stacked, smaller headings, cropped hero
   ========================================================================== */

:root {
	--lda-gold: #DAA520;
	--lda-gold-page: #D39F21;      /* home page body colour */
	--lda-black: #000;
	--lda-font: 'Raleway', sans-serif;
	--lda-script: 'Niconne', cursive;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background-color: #000;
	font-family: var(--lda-font);
	font-size: 16px;
	line-height: 24px;
	color: #000;
}
body.page-home { background-color: var(--lda-gold-page); }
img { max-width: 100%; }
a { color: inherit; }

/* Full-window fixed photo (replaces jquery.backstretch). A fixed layer works on
   iPhone/iPad, where background-attachment:fixed is ignored. */
.bg-photo {
	position: fixed;
	inset: 0;
	z-index: -1;
	background: url(/newimages/2026/background-2026.jpg) center center / cover no-repeat;
}

/* Bootstrap container widths for this site */
.container.lda-narrow,
.container.lda-wide,
.container.lda-header-w,
.container.lda-footer-w {
	--bs-gutter-x: 20px;           /* 10px each side = the old cellpadding="10" */
}
.container.lda-narrow   { max-width: 1050px; }
.container.lda-wide     { max-width: 1100px; }
.container.lda-header-w { max-width: 900px; --bs-gutter-x: 16px; }  /* old cellspacing="8" */
.container.lda-footer-w { max-width: 800px; --bs-gutter-x: 0; }

/* ---------- Tiled bands ---------- */
.bg-gold-tile  { background: #fff url(/newimages/gold1.jpg); }
.bg-gold2-tile { background: url(/newimages/gold2.jpg); }
.bg-brick      { background: #000 url(/newimages/brick1.jpg); }
.rule-gold     { height: 2px; background: var(--lda-gold); }
.rule-gold-page{ height: 2px; background: var(--lda-gold-page); }
.rule-white    { height: 1px; background: #fff; }

/* ---------- Header ---------- */
.site-header { min-height: 188px; padding: 8px 0; }
.site-header .header-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}
.site-header .logo img { display: block; height: 166px; width: auto; }
.header-info {
	text-align: right;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	width: 394px;
}
.header-info .social { display: flex; gap: 6px; margin-top: 19px; margin-right: 4px; }
.header-info .social a { display: block; line-height: 0; }
.header-info .social img { width: 50px; height: 50px; }
.header-info .contact { margin: 24px 0 0; }   /* phone + email, see .bodyBOLD */

/* Home page has the larger logo and lower contact block */
.page-home .site-header { min-height: 239px; }
.page-home .site-header .logo img { height: 219px; width: 328px; }
.page-home .header-info .social  { margin-top: 8.5px; }
.page-home .header-info .contact { margin-top: 96px; }

/* ---------- Navigation ---------- */
.lda-nav {
	background: #000;
	border-top: 1px solid #fff;
	border-bottom: 1px solid #fff;
	height: 50px;
	padding: 0;
	position: relative;
	z-index: 1000;
}
.lda-nav .container-fluid { padding: 0; }
.lda-nav .navbar-nav { margin: 0 auto; flex-direction: row; align-items: center; }
.lda-nav .nav-item { position: relative; display: flex; align-items: center; }
.lda-nav .navbar-nav .nav-link {
	padding: 8px 17px;             /* 16px + the old 1px side borders */
	font-size: 16px;
	line-height: 19px;
	font-weight: 400;
	color: #fff;
	white-space: nowrap;
}
.lda-nav .navbar-nav .nav-link:hover,
.lda-nav .navbar-nav .nav-link:focus-visible { background: var(--lda-gold); color: #000; }
.lda-nav .navbar-collapse { justify-content: center; }
.lda-nav button.nav-link { background: none; border: 0; border-radius: 0; font-family: inherit; text-align: left; cursor: pointer; }
.lda-nav button.nav-link:focus-visible { outline: 2px solid var(--lda-gold); outline-offset: -2px; }

/* drop-down (desktop: opens on hover / keyboard focus) */
.lda-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: calc(120% + 34px);  /* same width the old menu had */
	background: #000;
	visibility: hidden;
	opacity: 0;
	z-index: 9999;
}
.lda-nav .nav-item:hover > .sub-menu,
.lda-nav .nav-item:focus-within > .sub-menu,
.lda-nav .nav-item.open > .sub-menu { visibility: visible; opacity: 1; }   /* .open = tapped on a touch screen */
.lda-nav .sub-menu a {
	display: block;
	padding: 8px 17px;
	font-size: 16px;
	line-height: 19px;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
}
.lda-nav .sub-menu a:hover,
.lda-nav .sub-menu a:focus { background: var(--lda-gold); color: #000; }

/* tighten the menu so all 7 items fit on 992-1199px screens */
@media (min-width: 992px) and (max-width: 1199.98px) {
	.lda-nav .navbar-nav .nav-link,
	.lda-nav .sub-menu a { font-size: 14px; padding-left: 9px; padding-right: 9px; }
	.lda-nav .sub-menu { min-width: 100%; }
}

/* hamburger / stacked menu below 992px */
@media (max-width: 991.98px) {
	.lda-nav { height: auto; min-height: 50px; }
	.lda-nav .container-fluid { display: block; }
	.lda-nav .navbar-toggler {
		display: flex; align-items: center; gap: 10px;
		margin: 0 auto; padding: 10px 16px;
		border: 0; border-radius: 0;
		color: #fff; font-size: 16px; line-height: 30px; letter-spacing: 2px;
		box-shadow: none;
	}
	.lda-nav .navbar-toggler:focus { box-shadow: none; outline: 2px solid var(--lda-gold); }
	.lda-nav .navbar-nav { flex-direction: column; align-items: stretch; margin: 0; }
	.lda-nav .nav-item { flex-wrap: wrap; border-top: 1px solid #333; }
	.lda-nav .navbar-nav .nav-link { flex: 1 1 0; padding: 12px 20px; font-size: 16px; }
	.lda-nav .navbar-nav .nav-link:hover,
	.lda-nav .navbar-nav .nav-link:focus-visible { background: none; color: #fff; }
	.lda-nav .navbar-nav .nav-link:active { background: #1a1a1a; }
	.lda-nav .has-sub > .nav-link { position: relative; padding-right: 56px; }
	.lda-nav .has-sub > .nav-link::after {
		content: ""; position: absolute; right: 24px; top: 50%;
		width: 9px; height: 9px; margin-top: -7px;
		border-right: 2px solid var(--lda-gold); border-bottom: 2px solid var(--lda-gold);
		transform: rotate(45deg); transition: transform .2s;
	}
	.lda-nav .has-sub.open > .nav-link::after { transform: rotate(-135deg); margin-top: -3px; }
	.lda-nav .sub-menu {
		position: static; flex: 0 0 100%; min-width: 0;
		visibility: visible; opacity: 1; display: none;
		background: #111;
	}
	.lda-nav .nav-item.open > .sub-menu { display: block; }
	/* hover must not open the list on touch screens */
	.lda-nav .nav-item:hover > .sub-menu,
	.lda-nav .nav-item:focus-within > .sub-menu { display: none; }
	.lda-nav .nav-item.open:hover > .sub-menu,
	.lda-nav .nav-item.open:focus-within > .sub-menu { display: block; }
	.lda-nav .sub-menu a { padding: 11px 20px 11px 40px; font-size: 15px; border-top: 1px solid #222; }
}

/* ---------- Hero (home) ---------- */
.hero { background: #000; text-align: center; padding-bottom: 4px; }
.hero img { display: block; margin: 0 auto; max-width: 100%; height: auto; }

/* ---------- Home: quote band, photo window ---------- */
.quote-band { padding: 1px 0 10px; text-align: center; }
.quote-band img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.quote-band picture { display: block; }
.photo-window { height: 654px; }

/* ---------- Content panels ---------- */
.panel { padding: 10px 0; min-height: 364px; }   /* the old page body was never shorter than 364px */
.lda-content p { margin: 16px 0; }
.sp { height: 18px; margin: 16px 0; }   /* replaces the old <p>&nbsp;</p> spacers */

/* ---------- Typography (same look as the old stylelop.css) ---------- */
.bodytext, .bodyITALICS, .bodyBOLD {
	font-family: var(--lda-font); font-size: 16px; line-height: 24px; color: #000;
}
.bodyITALICS { font-style: italic; }
.bodyBOLD    { font-weight: bold; }
.bodytext a, .bodyBOLD a, .bodytextsm a, .footer a { color: #000; text-decoration: underline; }
.bodytext a:hover { color: var(--lda-gold); text-decoration: none; }
.bodyBOLD a:hover, .bodytextsm a:hover, .footer a:hover { text-decoration: none; }
.bodytextsm { font-family: var(--lda-font); font-size: 14px; line-height: 19px; color: #000; }
.footer     { font-family: var(--lda-font); font-size: 12px; line-height: 18px; color: #000; }

.bodygold   { font-family: var(--lda-font); font-size: 22px; line-height: 40px; color: var(--lda-gold); }
.bodygold a { color: var(--lda-gold); text-decoration: underline; }
.bodygold a:hover { color: #fff; }
.bodygoldITALICS { font-size: 19px; line-height: 28px; font-style: italic; color: var(--lda-gold); }
.bodygoldXL { font-size: 28px; line-height: 35px; color: var(--lda-gold); }

.whitebody, .whitebodynews {
	font-family: var(--lda-font); font-size: 16px; line-height: 24px; color: #fff;
}
.whitebodynews { line-height: 22px; }
.whitebody a, .whitebodynews a { color: #fff; text-decoration: underline; }
.whitebody a:hover, .whitebodynews a:hover { color: var(--lda-gold); text-decoration: none; }
.whitebody2 { font-size: 13px; line-height: 18px; color: #fff; }
.whitebody2 a { color: #fff; text-decoration: underline; }
.whitebody2 a:hover { color: var(--lda-gold); text-decoration: none; }
.whitebodybolder     { font-size: 17px; line-height: 26px; font-weight: bold; color: var(--lda-gold); }
.whitegoldbodybolder { font-size: 18px; line-height: 26px; font-weight: bold; color: var(--lda-gold); }
.whitebigbodybolder  { font-size: 19px; line-height: 26px; font-weight: bold; color: #fff; }
.greenbodybolder     { font-size: 17px; line-height: 26px; font-weight: bold; color: #146B3A; }

.headergold, .headergoldsm, .headergoldmed, .headergoldxl, .headergoldXXL,
.headergold-cursive, .headergold-cursivexl {
	font-family: var(--lda-font); font-style: normal; font-weight: normal; color: var(--lda-gold);
}
.headergold        { font-size: 38px; line-height: 45px; }
.headergoldsm      { font-size: 18px; line-height: 28px; }
.headergoldmed     { font-size: 30px; line-height: 50px; font-weight: bold; }
.headergoldmed a   { color: var(--lda-gold); text-decoration: underline; }
.headergoldxl      { font-size: 42px; line-height: 45px; }
.headergoldXXL     { font-size: 44px; line-height: 45px; }
.headergold-cursive   { font-family: var(--lda-script); font-size: 36px; line-height: 40px; }
.headergold-cursivexl { font-family: var(--lda-script); font-size: 48px; line-height: 50px; }
.headerblack, .headerblackmed { font-family: var(--lda-font); color: #000; }
.headerblack    { font-size: 36px; line-height: 38px; }
.headerblackmed { font-size: 28px; line-height: 36px; }
.headerwhitelg  { font-size: 42px; line-height: 50px; color: #fff; }
.headerwhitemed { font-size: 30px; line-height: 50px; font-weight: bold; color: #fff; }
.widebodytext {
	font-family: var(--lda-font); font-size: 13px; line-height: 23px;
	color: var(--lda-gold); letter-spacing: 3px;
}
.textgoldsm a { font-size: 14px; line-height: 20px; color: var(--lda-gold); text-decoration: underline; }
.textgoldsm a:hover { color: #f1d746; text-decoration: none; }

/* ---------- Home page sections ---------- */
.welcome { padding: 32px 0 62px; }
.welcome .headergold { margin-bottom: 38px; }
.welcome .gap-lg { margin-top: 22px; }
@media (min-width: 992px) { .welcome .join-line { line-height: 40px; position: relative; top: 3px; } }
.welcome .family-badge { display: block; width: 284px; height: 284px; margin: 0 0 16px; }

.register { padding: 10px 0 14px; }
.register .reg-text { padding-top: 14px; }
.register .reg-text .whitebodybolder { margin-top: 30px; }
.register .row { --bs-gutter-x: 20px; }
.register .reg-photo img { display: block; width: 350px; height: auto; margin: 16px auto; }
@media (min-width: 992px) {
	.register .reg-text  { flex: 0 0 auto; width: 711px; }
	.register .reg-photo { flex: 0 0 auto; width: 389px; }
}

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 5px 0 0; min-height: 220px; }
.site-footer .foot-logo { display: block; margin: 0 auto; height: 129px; width: auto; }
.site-footer .container > a > .foot-logo { position: relative; left: 4px; }
.site-footer .foot-contact { margin: 30px 0 16px; }
.site-footer .foot-contact a { color: #000; text-decoration: underline; }
.site-footer .foot-contact a:hover { text-decoration: none; }
.site-footer .statcounter { display: none; }

.page-home .site-footer { padding: 20px 0 0; min-height: 224px; }
.page-home .site-footer .foot-cols { align-items: flex-start; text-align: center; line-height: 18px; }
.site-footer .foot-cols { --bs-gutter-x: 0; padding-bottom: 25px; }
.site-footer .copyright { margin: 16px 0; line-height: 18px; }
.site-footer .counter { margin: 16px 0; }
.page-home .site-footer .foot-cols > div { padding: 0 20px; }

@media (min-width: 768px) {
	.page-home .site-footer .foot-cols > .fc-1 { flex: 0 0 auto; width: 35.75%; }
	.page-home .site-footer .foot-cols > .fc-2 { flex: 0 0 auto; width: 29.15%; }
	.page-home .site-footer .foot-cols > .fc-3 { flex: 0 0 auto; width: 35.1%; }
}

/* ==========================================================================
   TABLET / LANDSCAPE PHONE  (576 - 991px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 991.98px) {
	.welcome .family-badge { margin: 0 0 16px 16px; }
}
@media (max-width: 767.98px) {
	.welcome .family-badge { margin: 8px auto 16px; width: 240px; height: 240px; }
}
@media (max-width: 991.98px) {
	.container.lda-narrow,
	.container.lda-wide,
	.container.lda-header-w { --bs-gutter-x: 40px; }
	.site-header,
	.page-home .site-header { min-height: 0; }
	.site-header .logo img { height: auto; width: 100%; max-width: 249px; }
	.page-home .site-header .logo img { height: auto; width: 100%; max-width: 249px; }
	.header-info { width: 50%; }
	.page-home .header-info .contact { margin-top: 24px; }
	.photo-window { height: 380px; }
	.welcome { padding-top: 20px; }
	.register .reg-photo img { width: 100%; max-width: 350px; }
	.headergold { font-size: 34px; line-height: 42px; }
}

/* ==========================================================================
   PHONE, PORTRAIT  (< 576px)
   ========================================================================== */
@media (max-width: 575.98px) {
	/* header stacks and centres */
	.site-header .header-row { flex-direction: column; align-items: center; }
	.site-header .logo img,
	.page-home .site-header .logo img { max-width: 240px; margin: 0 auto; }
	.header-info { width: 100%; align-items: center; text-align: center; }
	.header-info .social { margin-top: 12px; }
	.header-info .contact,
	.page-home .header-info .contact { margin: 10px 0 4px; }

	/* hero: keep the centre panel of the 3-panel strip at full size */
	.hero { padding-bottom: 0; }
	.hero img { width: 100%; height: 350px; object-fit: cover; object-position: center; }

	.photo-window { height: 240px; }
	.quote-band { padding: 8px 8px; }

	/* type scales down a little */
	.headergold        { font-size: 28px; line-height: 34px; }
	.headergoldmed     { font-size: 24px; line-height: 34px; }
	.headergoldxl      { font-size: 32px; line-height: 38px; }
	.headergoldXXL     { font-size: 32px; line-height: 38px; }
	.headergold-cursive   { font-size: 32px; line-height: 38px; }
	.headergold-cursivexl { font-size: 38px; line-height: 44px; }
	.bodygold          { font-size: 20px; line-height: 30px; }
	.widebodytext      { letter-spacing: 2px; }

	.register .reg-text { padding-top: 0; }
	.register .reg-text p { text-align: center; }

	.site-footer .foot-cols > div { padding: 12px 20px; }
	.site-footer .copyright { padding: 0 20px; }
	.site-footer .foot-logo { height: auto; width: 193px; max-width: 70%; }
}

/* Phone numbers are tap-to-call links on phones; they keep the surrounding text style */
a.tel, .bodytextsm a.tel, .bodyBOLD a.tel, .site-footer a.tel, .whitebody a.tel, .lda-content a.tel { color: inherit; text-decoration: none; }
a.tel:hover, .bodytextsm a.tel:hover, .site-footer a.tel:hover, .whitebody a.tel:hover { text-decoration: none; }

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.lda-body .lda-content p { margin: 1em 0; }   /* the browser default: margin scales with the paragraph's own font size */
.lda-content ul { margin: 16px 0; padding-left: 40px; }
.lda-content blockquote { margin: 16px 40px; }
.lda-content li { margin: 0; }
.whitebodybolder, .whitegoldbodybolder, .whitebigbodybolder, .greenbodybolder { text-decoration: none; }

/* banner photo at the top of a page */
.has-hero { padding-top: 0; }
.has-hero .lda-body { padding-top: 10px; }
.container.lda-hero { max-width: 1050px; --bs-gutter-x: 0; }
.container.lda-hero.lda-hero-wide { max-width: 1070px; --bs-gutter-x: 20px; padding-top: 10px; }
.container.lda-wide-1070 { max-width: 1070px; --bs-gutter-x: 20px; }
.page-hero { display: block; width: 100%; height: auto; margin-bottom: 4px; }
.hero-gap { height: 18px; }
.lda-hero-wide .page-hero { margin-bottom: 14px; }
.lda-content img { max-width: 100%; height: auto; vertical-align: baseline; }
.headerLobsterLg, .headerLobster, .headerSanchez { color: #fff; font-style: normal; font-weight: normal; line-height: 38px; }
.headerLobsterLg { font-family: 'Lobster', cursive; font-size: 62px; }
.headerLobster   { font-family: 'Lobster', cursive; font-size: 48px; }
.headerSanchez   { font-family: 'Sanchez', serif; font-size: 36px; }

/* contact page */
.map-frame { display: block; width: 100%; max-width: 1000px; height: 350px; border: 0; margin: 0 auto 4px; }
.contact-row { --bs-gutter-x: 20px; }
@media (min-width: 992px) {
	.contact-left  { flex: 0 0 auto; width: 50.667%; }
	.contact-right { flex: 0 0 auto; width: 49.333%; }
}
.social-row { display: flex; gap: 6px; padding: 4px 0 0 4px; }
.social-row a { display: block; line-height: 0; }

/* calendar placeholder: keeps the page height until the dates are added */
.cal-spacer { height: 204px; margin: 16px 0; }

/* class schedule: one card per day, two across on desktop, stacked below 992px */
.sched-title { padding-bottom: 10px; }
.sched-foot { padding-top: 10px; }
.sched-row { --bs-gutter-x: 20px; justify-content: space-between; }
.sched-row > .sched-left, .sched-row > .sched-right { padding-left: 0; padding-right: 0; }
@media (min-width: 992px) {
	.sched-left  { flex: 0 0 auto; width: 47.4%; }
	.sched-right { flex: 0 0 auto; width: 47.1%; }
}
.day-head { background: var(--lda-gold); padding: 10px; }
.day-head .headerblackmed { display: block; }
.day-body { padding: 10px; }

/* rates & costume tables */
.lda-table-wrap { margin: 0; }
.lda-w70 { width: 70%; }
.lda-w60 { width: 60%; }
.lda-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #fff; margin: 0; }
.lda-table th, .lda-table td { border: 1px solid #fff; padding: 6px; text-align: center; vertical-align: middle; }
.lda-w60 .lda-table th, .lda-w60 .lda-table td { padding: 4px; }
.lda-table .lda-th { background: var(--lda-gold); font-weight: normal; }

/* log-in forms */
.flow-root { display: flow-root; }
.lda-form { line-height: normal; }
.lda-form label { display: inline; }
.lda-form input { margin: 0; font: 13.3333px Arial; line-height: normal; }
.lda-form input[type="submit"] { cursor: pointer; }

/* company members area */
.members { width: 90%; padding: 8px; }
.member-links { padding: 8px; margin-bottom: 8px; }
.members-row { display: flex; gap: 8px; }
.member-col { flex: 1 1 0; min-width: 0; padding: 8px; }

@media (max-width: 991.98px) {
	.container.lda-wide-1070 { --bs-gutter-x: 40px; }
	.container.lda-hero.lda-hero-wide { --bs-gutter-x: 0; padding-top: 0; }
	.lda-hero-wide .page-hero { margin-bottom: 4px; }
	.lda-table-wrap, .lda-w70, .lda-w60 { width: 100%; }
	.lda-table { min-width: 560px; }
	.members { width: 100%; }
	.members-row { flex-direction: column; gap: 0; }
	.sched-left, .sched-right { width: 100%; }
	.sched-row { --bs-gutter-x: 0; }
}
@media (max-width: 575.98px) {
	.page-hero { height: 350px; object-fit: cover; object-position: center; }
	.map-frame { height: 300px; }
	.lda-content ul { padding-left: 28px; }
	.lda-content blockquote { margin: 16px 0 16px 20px; }
	.lda-form input[type="password"], .lda-form input[type="submit"] { display: block; width: 100%; margin-top: 8px; padding: 10px; font-size: 16px; }
}
