/*
Theme Name: Telley Madina
Theme URI: https://telleymadina.com
Author: ECC Media Pro, LLC
Description: Header, footer and page shell for telleymadina.com, replacing the Elementor Pro Theme Builder templates. Page bodies continue to render through Elementor.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: telley-madina
*/

:root {
	--tm-gold: #A98C63;
	--tm-gold-light: #C4A77C;
	--tm-bar: #393939;
	--tm-bg: #454545;
	--tm-line: rgba(255,255,255,.14);
	--tm-text: #F1EEEA;
	--tm-head: "Belleza", "Optima", "Gill Sans", sans-serif;
	--tm-body: "Raleway", -apple-system, "Segoe UI", Arial, sans-serif;
	--tm-header-h: 104px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* clip, not hidden: overflow-x:hidden breaks the sticky header */
body { margin: 0; overflow-x: clip; background: var(--tm-bg); color: var(--tm-text); font-family: var(--tm-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--tm-gold-light); }
h1, h2, h3, h4 { font-family: var(--tm-head); font-weight: 400; line-height: 1.15; color: #fff; }
:focus-visible { outline: 2px solid var(--tm-gold-light); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tm-skip:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: #fff; color: #222; padding: 10px 14px; }
[id] { scroll-margin-top: calc(var(--tm-header-h) + 8px); }

/* Header */
.tm-header { position: sticky; top: 0; z-index: 100; background: var(--tm-bar); box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.admin-bar .tm-header { top: 32px; }
.tm-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--tm-header-h); padding: 0 56px; }
.tm-logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--tm-gold); line-height: 1; }
.tm-logo img { display: block; width: auto; height: 68px; max-height: 68px; }
.tm-logo__a { font-family: var(--tm-body); font-weight: 300; font-size: 25px; letter-spacing: .62em; margin-right: -.62em; text-transform: uppercase; }
.tm-logo__b { font-family: var(--tm-head); font-size: 50px; letter-spacing: .01em; text-transform: uppercase; margin-top: 2px; }
.tm-nav ul { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; }
.tm-nav a { font-family: var(--tm-head); font-size: 19px; color: #fff; text-decoration: none; padding: 8px 0; transition: color .15s; }
.tm-nav a:hover, .tm-nav .current-menu-item > a, .tm-nav a.is-current { color: var(--tm-gold); }
.tm-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.tm-toggle span { display: block; width: 26px; height: 2px; background: var(--tm-gold); margin: 6px 0; }

/* Inner (non-Elementor) pages */
.tm-page { max-width: 860px; margin: 0 auto; padding: 72px 24px 88px; }
.tm-page h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 28px; }
.tm-page h2 a { color: #fff; text-decoration: none; }

/* Footer */
.tm-footer { background: var(--tm-bg); padding: 100px 24px 0; }
.tm-footer__in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.12fr 1fr; text-align: center; }
.tm-footer__col { padding: 0 20px 20px; }
.tm-footer__col--mid { border-left: 1px solid var(--tm-line); border-right: 1px solid var(--tm-line); }
.tm-footer h4 { font-size: 26px; margin: 0 0 34px; padding-bottom: 6px; display: inline-block; position: relative; }
.tm-footer h4::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 68px; height: 2px; margin-left: -34px; background: var(--tm-gold); }
.tm-footer p { margin: 0 0 22px; }
.tm-footer .tm-logo { margin-bottom: 26px; }
.tm-footer .tm-logo img { height: 96px; max-height: 96px; }
.tm-footer .tm-logo__a { font-size: 36px; }
.tm-footer .tm-logo__b { font-size: 76px; }
.tm-contact { list-style: none; margin: 0; padding: 0; font-size: 16.5px; line-height: 2; }
.tm-contact a { color: var(--tm-text); text-decoration: none; display: inline-flex; align-items: center; gap: 16px; }
.tm-contact a:hover { color: var(--tm-gold-light); }
.tm-contact svg { width: 16px; height: 16px; flex: 0 0 16px; }

.tm-news input[type="email"] { width: 100%; background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; font: inherit; padding: 15px 16px; border-radius: 0; margin-bottom: 20px; }
.tm-news input::placeholder { color: #BDB9B3; }
.tm-news button { width: 100%; background: #fff; color: #333; border: 0; border-radius: 0; font-family: var(--tm-head); font-size: 18px; letter-spacing: .04em; text-transform: uppercase; padding: 17px 16px; cursor: pointer; transition: background-color .15s, color .15s; }
.tm-news button:hover { background: var(--tm-gold); color: #fff; }
.tm-news__hp { position: absolute !important; left: -9999px; }
.tm-news__msg { color: var(--tm-gold-light); }

.tm-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tm-thumbs a { display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.tm-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tm-thumbs a:hover img { transform: scale(1.06); }

.tm-copy { background: var(--tm-bar); margin: 90px -24px 0; padding: 22px 24px; }
.tm-copy__in { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.tm-copy p { margin: 0; }
.tm-social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tm-social a { display: flex; align-items: center; justify-content: center; width: 40px !important; height: 40px !important; border-radius: 50%; background: var(--tm-gold); color: #fff; transition: background-color .15s; }
.tm-social a:hover { background: var(--tm-gold-light); }
.tm-social svg { width: 19px; height: 19px; }

.tm-top { position: fixed; right: 52px; bottom: 52px; z-index: 90; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #555; background: #000; color: #fff; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; display: flex; align-items: center; justify-content: center; }
.tm-top.is-on { opacity: 1; visibility: visible; }
.tm-top svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
	:root { --tm-header-h: 80px; }
	.admin-bar .tm-header { top: 46px; }
	.tm-header__in { padding: 0 22px; }
	.tm-logo img { height: 52px; }
	.tm-logo__a { font-size: 18px; }
	.tm-logo__b { font-size: 36px; }
	.tm-toggle { display: block; }
	.tm-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--tm-bar); border-top: 1px solid var(--tm-line); padding: 6px 22px 18px; }
	.tm-nav.is-open { display: block; }
	.tm-nav ul { flex-direction: column; gap: 0; }
	.tm-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--tm-line); }
	.tm-footer { padding-top: 64px; }
	.tm-footer__in { grid-template-columns: 1fr; gap: 52px; max-width: 460px; }
	.tm-footer__col { padding: 0; }
	.tm-footer__col--mid { border: 0; order: -1; }
	.tm-footer .tm-logo__a { font-size: 28px; }
	.tm-footer .tm-logo__b { font-size: 58px; }
	.tm-copy { margin-top: 60px; }
	.tm-copy__in { justify-content: center; text-align: center; }
	.tm-top { right: 18px; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
