/*
Theme Name: Thousand Spices
Theme URI: https://thousandspices.com.au
Author: Thousand Spices
Description: Custom theme for Thousand Spices - family-run Indian & Sri Lankan restaurant in Canning Vale, Perth. Includes Home, Our Story, Find Us and Menu templates with one online-ordering link.
Version: 1.6.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thousand-spices
*/

/* ============ BASE (shared) ============ */
html, body { margin: 0; padding: 0; }
.ts, .ts * { box-sizing: border-box; margin: 0; padding: 0; }
.ts { font-family: 'Source Sans 3', sans-serif; color: #33241A; background: #FBF4E8; -webkit-font-smoothing: antialiased; }
.ts a { text-decoration: none; }
.ts h1, .ts h2, .ts h3 { font-family: Poppins, sans-serif; font-weight: 600; color: #33241A; }
.ts .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2.6px; text-transform: uppercase; color: #E84808; margin-bottom: 14px; }
.ts .wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.ts .btn { display: inline-flex; align-items: center; height: 54px; padding: 0 30px; border-radius: 4px; font-size: 17px; font-weight: 700; }
.ts .btn-primary { background: #E84808; color: #FFF8ED; }
.ts .btn-primary:hover { background: #C23A05; }
.ts .btn-ghost { border: 2px solid rgba(255,246,232,0.85); color: #FFF6E8; }
.ts .btn-ghost:hover { background: rgba(255,246,232,0.14); }
.ts .btn-sm { height: 46px; padding: 0 22px; font-size: 15px; }
.ts .btn-outline { border: 2px solid #1F5F5B; color: #1F5F5B; }
.ts .btn-outline:hover { background: #1F5F5B; color: #FBF4E8; }
.ts .textlink { font-size: 17px; font-weight: 700; color: #1F5F5B; border-bottom: 2px solid #1F5F5B; padding-bottom: 2px; }
.ts .textlink:hover { color: #E84808; border-color: #E84808; }
.ts .center { text-align: center; }
.ts .mt36 { margin-top: 36px; }
.ts .mt40 { margin-top: 40px; }
.ts .photo-ph { background: #EAD9BE; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #8A7461; font-size: 15px; font-style: italic; text-align: center; padding: 20px; }
.ts-section { padding: 96px 32px; }

/* ============ TOPBAR + HEADER (shared) ============ */
.ts-topbar { background: #241811; color: rgba(255,246,232,0.85); font-size: 14px; }
.ts-topbar .wrap { height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ts-topbar a { color: #F0B45B; font-weight: 700; }
.ts-topbar a:hover { color: #FFF6E8; }
.ts-header { position: sticky; top: 0; z-index: 50; background: rgba(251,244,232,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(51,36,26,0.12); }
body.admin-bar .ts-header { top: 32px; }
.ts-header .wrap { height: 78px; display: flex; align-items: center; gap: 40px; }
.ts-brand { display: flex; flex-direction: column; line-height: 1; }
.ts-brand img { height: 26px; width: auto; display: block; }
.ts-brand span { font-size: 11px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase; color: #1F5F5B; margin-top: 6px; }
.ts-nav { display: flex; gap: 30px; margin-left: auto; align-items: center; }
.ts-nav a { color: #33241A; font-size: 16px; font-weight: 600; }
.ts-nav a:hover { color: #E84808; }
.ts-nav a.active { color: #E84808; font-weight: 700; border-bottom: 2px solid #E84808; padding-bottom: 2px; }
.ts-header .ctas { display: flex; gap: 12px; }

/* ============ FOOTER (shared) ============ */
.ts-footer { background: #241811; padding: 64px 32px 56px; text-align: center; }
.ts-footer .in { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ts-footer img { height: 24px; width: auto; }
.ts-footer p { font-size: 16px; color: rgba(255,246,232,0.8); }
.ts-footer .dim { color: rgba(255,246,232,0.7); }
.ts-footer a { color: #F0B45B; }
.ts-footer .note { font-size: 15px; font-style: italic; color: rgba(255,246,232,0.6); max-width: 520px; margin-top: 6px; }

/* ============ PAGE HEADER BAND (story + find us) ============ */
.ts-pagehead { background: #1F5F5B; text-align: center; }
.ts--story .ts-pagehead { padding: 88px 32px; }
.ts--findus .ts-pagehead { padding: 80px 32px; }
.ts-pagehead .eyebrow { color: #F0B45B; }
.ts-pagehead h1 { font-size: 52px; color: #FFF6E8; text-wrap: pretty; }

/* ============ HOME: HERO ============ */
.ts-hero { position: relative; height: 90vh; min-height: 640px; background: #1C120B; overflow: hidden; }
.ts-hero .slides { position: absolute; top: 0; left: 0; right: 0; height: 130%; will-change: transform; }
.ts-hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 2s ease; }
.ts-hero .slide.on { opacity: 1; }
.ts-hero .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: ts-kenburns 22s ease-in-out infinite alternate; }
.ts-hero .flip { position: absolute; inset: 0; transform: scaleX(-1); }
.ts-hero .scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(22,12,6,0.82) 0%, rgba(22,12,6,0.55) 45%, rgba(22,12,6,0.12) 75%); }
.ts-hero .content { position: absolute; inset: 0; display: flex; align-items: center; }
.ts-hero h1 { font-size: 62px; line-height: 1.08; color: #FFF6E8; max-width: 620px; text-wrap: pretty; }
.ts-hero .sub { margin-top: 22px; font-size: 21px; line-height: 1.55; color: rgba(255,242,222,0.92); max-width: 540px; text-wrap: pretty; }
.ts-hero .ctas { display: flex; gap: 14px; margin-top: 34px; }
.ts-hero .dots { position: absolute; right: 40px; bottom: 30px; display: flex; gap: 10px; }
.ts-hero .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,246,232,0.3); transition: background 0.6s ease; }
.ts-hero .dot.on { background: #FFF6E8; }
.ts-hero .cue { position: absolute; left: 50%; bottom: 26px; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translate(-50%, 0); animation: ts-cue 2.2s ease-in-out infinite; }
.ts-hero .cue b { font-size: 11px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: rgba(255,246,232,0.75); }
.ts-hero .cue i { width: 1px; height: 28px; background: rgba(255,246,232,0.6); }
@keyframes ts-kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes ts-cue { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 9px); } }
@media (prefers-reduced-motion: reduce) {
  .ts-hero .slide, .ts-hero .slide img { animation: none !important; transition: none !important; }
  .ts-hero .dots, .ts-hero .cue { display: none !important; }
}

/* ============ HOME: SECTIONS ============ */
.ts-story .grid { display: grid; grid-template-columns: 480px 1fr; gap: 72px; align-items: center; max-width: 1180px; margin: 0 auto; }
.ts-story .caption { margin-top: 14px; font-family: Fraunces, serif; font-style: italic; font-size: 18px; color: #8A7461; text-align: center; }
.ts-story h2, .ts-dishes h2 { font-size: 40px; line-height: 1.15; margin-bottom: 24px; text-wrap: pretty; }
.ts--home p.body { font-size: 18px; line-height: 1.7; color: #5A4636; margin-bottom: 18px; text-wrap: pretty; }
.ts-dishes { background: #F4E8D4; }
.ts-dishes .head { text-align: center; margin-bottom: 56px; }
.ts-dishes .head h2 { margin-bottom: 0; }
.ts-dishes .grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; max-width: 1180px; margin: 0 auto; }
.ts-card { background: #FFFCF5; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 10px rgba(51,36,26,0.08); display: flex; flex-direction: column; }
.ts-card .photo-ph { height: 250px; border-radius: 0; }
.ts-card .pad { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ts-card h3 { font-size: 24px; }
.ts-card p { font-size: 16px; line-height: 1.6; color: #5A4636; flex: 1; text-wrap: pretty; }
.ts-heat { max-width: 760px; margin: 56px auto 0; text-align: center; background: #FFFCF5; border: 1px solid rgba(51,36,26,0.1); border-radius: 6px; padding: 34px 40px; }
.ts-heat .q { font-family: Fraunces, serif; font-style: italic; font-size: 26px; line-height: 1.4; color: #1F5F5B; text-wrap: pretty; }
.ts-heat .s { margin-top: 10px; font-size: 15px; color: #8A7461; }
.ts-trad { background: #1F5F5B; }
.ts-trad .box { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255,246,232,0.25); border-radius: 6px; overflow: hidden; max-width: 1180px; margin: 0 auto; }
.ts-trad .col { padding: 48px 52px 56px; display: flex; flex-direction: column; gap: 26px; }
.ts-trad .col:first-child { border-right: 1px solid rgba(255,246,232,0.25); }
.ts-trad .photo-ph { height: 220px; background: rgba(255,246,232,0.12); color: rgba(255,246,232,0.7); }
.ts-trad .eyebrow { color: #F0B45B; margin-bottom: 12px; }
.ts-trad h3 { font-size: 32px; color: #FFF6E8; margin-bottom: 18px; }
.ts-trad p { font-size: 18px; line-height: 1.7; color: rgba(255,246,232,0.88); text-wrap: pretty; }
.ts-cta { padding: 110px 32px; text-align: center; }
.ts-cta h2 { font-size: 48px; }
.ts-cta .sub { margin-top: 18px; font-size: 20px; color: #5A4636; }
.ts-cta .phone { display: inline-block; margin-top: 30px; font-family: Poppins, sans-serif; font-size: 44px; font-weight: 700; color: #E84808; }
.ts-cta .phone:hover { color: #C23A05; }
.ts-cta .order { margin-top: 18px; font-size: 17px; }

/* ============ OUR STORY ============ */
.ts--story .grid2 { display: grid; gap: 72px; align-items: center; max-width: 1180px; margin: 0 auto; }
.ts--story .grid2.txt-photo { grid-template-columns: 1fr 480px; }
.ts--story .grid2.photo-txt { grid-template-columns: 480px 1fr; }
.ts--story .photo-ph { height: 440px; }
.ts--story p.body { font-size: 19px; line-height: 1.75; color: #5A4636; margin-bottom: 18px; text-wrap: pretty; }
.ts--story h2 { font-size: 36px; line-height: 1.2; margin-bottom: 22px; text-wrap: pretty; }
.ts-quote { padding: 96px 32px; text-align: center; }
.ts-quote .mark { font-family: Fraunces, serif; font-size: 88px; line-height: 0.4; color: #E84808; }
.ts-quote p { margin-top: 18px; font-family: Fraunces, serif; font-size: 34px; line-height: 1.35; font-weight: 500; font-style: italic; max-width: 880px; margin-left: auto; margin-right: auto; text-wrap: pretty; }
.ts .sand { background: #F4E8D4; }
.ts .signoff { font-family: Fraunces, serif; font-size: 22px; font-style: italic; color: #E84808; }
.ts-band { background: #1F5F5B; padding: 90px 32px; text-align: center; }
.ts-band h2 { font-size: 42px; color: #FFF6E8; margin-bottom: 0; }
.ts-band .ctas { display: flex; gap: 14px; justify-content: center; margin-top: 32px; }

/* ============ FIND US ============ */
.ts-main { padding: 88px 32px; }
.ts-main .grid { display: grid; grid-template-columns: 440px 1fr; gap: 64px; align-items: start; max-width: 1180px; margin: 0 auto; }
.ts-main .left { display: flex; flex-direction: column; gap: 36px; }
.ts-main h2 { font-size: 30px; margin-bottom: 16px; }
.ts-main p { font-size: 18px; line-height: 1.6; color: #5A4636; }
.ts-main .phone a { color: #E84808; font-weight: 700; }
.ts-main .phone a:hover { color: #C23A05; }
.ts-main .phone small { font-size: 15px; color: #8A7461; }
.ts-main h3.label { font-family: 'Source Sans 3', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 2.6px; text-transform: uppercase; color: #E84808; margin-bottom: 12px; }
.ts-main .hours { display: flex; flex-direction: column; gap: 8px; font-size: 17px; color: #5A4636; }
.ts-main .hours .row { display: flex; justify-content: space-between; gap: 24px; max-width: 320px; }
.ts-main .hours b { font-weight: 600; }
.ts-book { background: #F4E8D4; border-radius: 6px; padding: 26px 28px; }
.ts-book h3 { font-size: 22px; margin-bottom: 10px; }
.ts-book p { font-size: 17px; line-height: 1.65; margin-bottom: 18px; text-wrap: pretty; }
.ts-book .btn { height: 50px; padding: 0 26px; font-size: 16px; }
.ts-main .right { display: flex; flex-direction: column; gap: 28px; }
.ts-main iframe { width: 100%; height: 420px; border: 0; border-radius: 6px; box-shadow: 0 2px 10px rgba(51,36,26,0.12); }
.ts--findus .right .photo-ph { height: 300px; }

/* ============ MENU ============ */
.ts--menu .ts-pagehead { padding: 80px 32px; }
.ts-menu .in { max-width: 760px; margin: 0 auto; text-align: center; }
.ts-menu p.body { font-size: 19px; line-height: 1.75; color: #5A4636; text-wrap: pretty; }
.ts-menu .ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.ts-menu .call { margin-top: 30px; font-size: 17px; color: #5A4636; }
.ts-menu .call a { color: #E84808; font-weight: 700; }
.ts-menu .call a:hover { color: #C23A05; }

/* ============ GENERIC FALLBACK PAGES ============ */
.ts-generic { max-width: 880px; margin: 0 auto; padding: 88px 32px; }
.ts-generic h1 { font-size: 44px; margin-bottom: 28px; }
.ts-generic p { font-size: 18px; line-height: 1.7; color: #5A4636; margin-bottom: 18px; }

/* ============ MOBILE / RESPONSIVE ============ */
@media (max-width: 1080px) {
  .ts-header .wrap { height: auto; flex-wrap: wrap; padding: 14px 20px; gap: 16px; justify-content: center; }
  .ts-nav { margin-left: 0; width: 100%; justify-content: center; order: 3; gap: 22px; }
  .ts-header .ctas { order: 2; margin-left: auto; }
  .ts-story .grid, .ts--story .grid2.txt-photo, .ts--story .grid2.photo-txt, .ts-main .grid { grid-template-columns: 1fr; gap: 40px; }
  .ts--story .grid2.photo-txt > .photo-ph, .ts--story .grid2.photo-txt > img { order: -1; }
}
@media (max-width: 860px) {
  .ts-section { padding: 64px 20px; }
  .ts-main { padding: 64px 20px; }
  .ts-hero { min-height: 560px; height: 80vh; }
  .ts-hero h1 { font-size: 40px; }
  .ts-hero .sub { font-size: 18px; }
  .ts-hero .ctas { flex-wrap: wrap; }
  .ts-dishes .grid { grid-template-columns: 1fr; }
  .ts-trad .box { grid-template-columns: 1fr; }
  .ts-trad .col:first-child { border-right: 0; border-bottom: 1px solid rgba(255,246,232,0.25); }
  .ts-story h2, .ts-dishes h2 { font-size: 30px; }
  .ts--story h2 { font-size: 28px; }
  .ts-pagehead h1 { font-size: 36px; }
  .ts-quote p { font-size: 25px; }
  .ts-quote { padding: 64px 20px; }
  .ts-cta { padding: 72px 20px; }
  .ts-cta h2 { font-size: 34px; }
  .ts-cta .phone { font-size: 26px; }
  .ts-heat { padding: 26px 22px; }
  .ts-heat .q { font-size: 21px; }
  .ts-trad .col { padding: 36px 26px 44px; }
  .ts-band h2 { font-size: 30px; }
  .ts-band .ctas { flex-wrap: wrap; }
  .ts-main iframe { height: 320px; }
  .ts-topbar .wrap { font-size: 13px; padding: 0 16px; }
}
@media (max-width: 560px) {
  .ts-header .ctas { margin-left: 0; width: 100%; order: 2; justify-content: center; }
  .ts-header .ctas .btn { flex: 1; justify-content: center; }
  .ts-hero h1 { font-size: 33px; }
  .ts-hero .ctas .btn { width: 100%; justify-content: center; }
  .ts-hero .dots { right: 20px; }
  .ts-menu .ctas .btn { width: 100%; justify-content: center; }
  /* Phone top bar: let hours + phone wrap cleanly instead of squeezing into one fixed-height row */
  .ts-topbar .wrap { height: auto; min-height: 38px; padding: 7px 16px; flex-wrap: wrap; justify-content: center; gap: 2px 14px; text-align: center; }
  .ts-topbar a { white-space: nowrap; }
  /* Phone header: the logo row scrolls away; only the buttons + page links stay stuck (about 100px, was 172px) */
  .ts-header, body.admin-bar .ts-header { top: -65px; }
  .ts-header .wrap { padding: 12px 16px 6px; gap: 12px 16px; }
  .ts-brand { width: 100%; align-items: center; }
  .ts-brand img { height: 24px; }
  .ts-header .ctas .btn { height: 42px; padding: 0 12px; white-space: nowrap; }
  .ts-main .hours b { text-align: right; }
  .ts-nav { gap: 10px; }
  .ts-nav a { padding: 9px 8px; }
  .ts-nav a.active { padding-bottom: 7px; }
}
/* Short screens (phones held sideways): don't pin the header at all */
@media (max-height: 520px) and (min-width: 561px) {
  .ts-header { position: static; }
}
