/*
Theme Name: Tales of Tattva
Theme URI: https://talesoftattva.com
Author: Tales of Tattva
Description: Luxury destination wedding atelier theme — ivory parchment, deep ink and brass gold. Includes a full-width homepage and an enquiry page template.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: tales-of-tattva
*/

/* ---------- tokens ---------- */
:root {
  --background: #fbf8f2;
  --foreground: #362d24;
  --card: #fffdf8;
  --secondary: #f2ece0;
  --muted-foreground: #7b6f61;
  --border: #e3dbcc;
  --gold: #c39b57;
  --gold-soft: #e3c893;
  --ink: #2a231c;
  --rose: #b4643f;
  --ivory: #fbf8f2;
  --shadow-soft: 0 24px 60px -30px rgba(60, 47, 33, .45);
  --overlay-ink: linear-gradient(to top, rgba(38,31,24,.9), rgba(38,31,24,.62) 55%, rgba(38,31,24,.55));
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", -apple-system, "Segoe UI", sans-serif;
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 300; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.tt-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: .7rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.gold-rule { height: 1px; width: 4rem; background: linear-gradient(100deg, var(--gold-soft), var(--gold)); }
.btn-solid {
  display: inline-block; background: var(--gold); color: #241d16;
  padding: 16px 44px; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  border: 1px solid var(--gold); cursor: pointer; transition: opacity .3s;
}
.btn-solid:hover { opacity: .88; }
.btn-ghost {
  display: inline-block; border: 1px solid rgba(251,248,242,.5); color: var(--ivory);
  padding: 16px 44px; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; transition: .3s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline {
  display: inline-block; border: 1px solid var(--foreground); padding: 14px 36px;
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; transition: .3s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- header ---------- */
.tt-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 24px 0; transition: all .5s; }
.tt-header.is-scrolled { background: rgba(251,248,242,.95); backdrop-filter: blur(8px); padding: 12px 0; box-shadow: var(--shadow-soft); }
.tt-header .tt-wrap { display: flex; align-items: center; justify-content: space-between; }
.tt-brand span { display: block; }
.tt-brand .name { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .18em; color: var(--ivory); transition: color .4s; }
.tt-header.is-scrolled .tt-brand .name { color: var(--foreground); }
.tt-brand .tag { margin-top: 4px; }
.tt-nav { display: flex; align-items: center; gap: 36px; }
.tt-nav a { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(251,248,242,.85); transition: color .3s; }
.tt-header.is-scrolled .tt-nav a { color: var(--muted-foreground); }
.tt-nav a:hover { color: var(--gold); }
.tt-nav .tt-cta, .tt-cta-mobile {
  border: 1px solid var(--gold); color: var(--gold); padding: 10px 24px;
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; transition: .3s;
}
.tt-nav .tt-cta:hover, .tt-cta-mobile:hover { background: var(--gold); color: #241d16; }
.tt-cta-mobile { display: none; }

/* ---------- hero ---------- */
.tt-hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; }
.tt-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: slow-zoom 12s ease-out both; }
.tt-overlay { position: absolute; inset: 0; background-image: var(--overlay-ink); }
.tt-hero-inner { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px; }
.tt-hero h1 { margin-top: 24px; max-width: 900px; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.05; color: var(--ivory); }
.tt-hero h1 em { display: block; font-style: italic; color: var(--gold-soft); }
.tt-hero p.lede { margin-top: 28px; max-width: 620px; font-size: .98rem; line-height: 1.8; color: rgba(251,248,242,.8); }
.tt-hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.fade-up { animation: fade-up 1s cubic-bezier(.22,1,.36,1) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes slow-zoom { from { transform: scale(1.06); } to { transform: none; } }

/* ---------- sections ---------- */
.tt-section { padding: 96px 0; }
.tt-section.alt { background: var(--secondary); }
.tt-section.dark { background: var(--ink); color: var(--ivory); }
.tt-section h2 { margin-top: 16px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.tt-head { max-width: 640px; }

.tt-stats { border-bottom: 1px solid var(--border); background: var(--secondary); }
.tt-stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 0; padding: 56px 24px; max-width: var(--maxw); margin: 0 auto; }
.tt-stats .num { font-family: var(--font-display); font-size: 2.4rem; }
.tt-stats .lbl { margin-top: 8px; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-foreground); }
.tt-stats > .grid > div { text-align: center; }

.tt-about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tt-about .media { position: relative; }
.tt-about .media img { width: 100%; object-fit: cover; box-shadow: var(--shadow-soft); }
.tt-badge { position: absolute; bottom: -32px; right: -16px; background: var(--card); padding: 32px 40px; box-shadow: var(--shadow-soft); }
.tt-badge .t { font-family: var(--font-display); font-size: 1.9rem; }
.tt-badge .s { margin-top: 4px; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-foreground); }
.tt-prose { margin-top: 28px; display: grid; gap: 20px; color: var(--muted-foreground); line-height: 1.85; font-size: .95rem; }
.tt-prose strong { color: var(--foreground); font-weight: 500; }

.tt-services { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.tt-service { background: var(--background); padding: 40px; transition: background .3s; }
.tt-service:hover { background: var(--card); }
.tt-service h3 { font-size: 1.55rem; }
.tt-service .gold-rule { margin-top: 16px; width: 2.5rem; transition: width .4s; }
.tt-service:hover .gold-rule { width: 5rem; }
.tt-service p { margin-top: 20px; font-size: .9rem; line-height: 1.8; color: var(--muted-foreground); }

.tt-dest-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.tt-dest-head p.note { max-width: 420px; font-size: .9rem; line-height: 1.8; color: var(--muted-foreground); }
.tt-dest-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tt-dest { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--ink); }
.tt-dest img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .7s; }
.tt-dest:hover img { transform: scale(1.1); }
.tt-dest span { position: absolute; left: 20px; bottom: 20px; font-family: var(--font-display); font-size: 1.5rem; color: var(--ivory); }
.tt-tags { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tt-tags .tag { border: 1px solid var(--border); padding: 8px 20px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-foreground); }

.tt-journey { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; }
.tt-journey > div { border-top: 1px solid rgba(251,248,242,.2); padding-top: 24px; }
.tt-journey .step { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold-soft); }
.tt-journey h3 { margin-top: 16px; font-size: 1.5rem; }
.tt-journey p { margin-top: 12px; font-size: .88rem; line-height: 1.8; color: rgba(251,248,242,.7); }

.tt-gallery { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tt-gallery .lead { grid-column: span 2; grid-row: span 2; height: 100%; width: 100%; object-fit: cover; }
.tt-gallery img.small { height: 288px; width: 100%; object-fit: cover; }

.tt-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.tt-quotes .mark { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold); }
.tt-quotes blockquote { margin: 8px 0 0; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.55; }
.tt-quotes figcaption { margin-top: 24px; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-foreground); }

.tt-cta { position: relative; overflow: hidden; }
.tt-cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tt-cta .inner { position: relative; max-width: 760px; margin: 0 auto; padding: 112px 24px; text-align: center; }
.tt-cta h2 { margin-top: 16px; font-size: clamp(2rem, 4vw, 3rem); color: var(--ivory); }
.tt-cta p { margin: 24px auto 0; max-width: 560px; font-size: .92rem; line-height: 1.8; color: rgba(251,248,242,.8); }
.tt-cta .btn-solid { margin-top: 40px; }

/* ---------- contact ---------- */
.tt-page { padding: 160px 0 96px; }
.tt-page h1 { margin-top: 16px; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1.05; max-width: 800px; }
.tt-page .lede { margin-top: 24px; max-width: 640px; color: var(--muted-foreground); line-height: 1.8; }
.tt-contact { margin-top: 64px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; }
.tt-form .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tt-form label { display: block; }
.tt-form input, .tt-form textarea {
  margin-top: 12px; width: 100%; border: 0; border-bottom: 1px solid var(--border);
  background: transparent; padding-bottom: 12px; color: var(--foreground);
  font-family: var(--font-sans); font-size: .95rem; outline: none; transition: border-color .3s;
}
.tt-form input:focus, .tt-form textarea:focus { border-color: var(--gold); }
.tt-form .full { margin-top: 24px; }
.tt-form .btn-solid { margin-top: 32px; }
.tt-note { margin-top: 16px; font-size: .88rem; color: var(--rose); }
.tt-aside { border: 1px solid var(--border); background: var(--card); padding: 40px; box-shadow: var(--shadow-soft); align-self: start; }
.tt-aside .place { margin-top: 16px; font-family: var(--font-display); font-size: 1.5rem; }
.tt-aside p { margin-top: 24px; font-size: .9rem; line-height: 1.8; color: var(--muted-foreground); }
.tt-aside .links { margin-top: 32px; display: grid; gap: 8px; font-size: .9rem; }
.tt-aside .links a:hover { color: var(--gold); }

.tt-entry { padding: 160px 0 96px; }
.tt-entry .content { max-width: 760px; line-height: 1.9; color: var(--muted-foreground); }
.tt-entry .content p { margin-bottom: 20px; }

/* ---------- footer ---------- */
.tt-footer { background: var(--ink); color: var(--ivory); }
.tt-footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding: 80px 24px; max-width: var(--maxw); margin: 0 auto; }
.tt-footer .name { font-family: var(--font-display); font-size: 1.85rem; letter-spacing: .16em; }
.tt-footer .blurb { margin-top: 20px; max-width: 320px; font-size: .88rem; line-height: 1.8; color: rgba(251,248,242,.7); }
.tt-footer ul { margin-top: 20px; display: grid; gap: 12px; font-size: .9rem; color: rgba(251,248,242,.75); }
.tt-footer a:hover { color: var(--gold); }
.tt-footer .base { border-top: 1px solid rgba(251,248,242,.1); padding: 24px; text-align: center; font-size: .7rem; letter-spacing: .2em; color: rgba(251,248,242,.5); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .tt-services, .tt-journey { grid-template-columns: repeat(2, 1fr); }
  .tt-about, .tt-contact, .tt-quotes { grid-template-columns: 1fr; }
  .tt-badge { display: none; }
}
@media (max-width: 768px) {
  .tt-nav { display: none; }
  .tt-cta-mobile { display: inline-block; }
  .tt-section { padding: 72px 0; }
  .tt-stats .grid, .tt-dest-grid { grid-template-columns: repeat(2, 1fr); }
  .tt-services, .tt-journey, .tt-gallery, .tt-form .fields, .tt-footer .cols { grid-template-columns: 1fr; }
  .tt-gallery .lead { grid-column: auto; grid-row: auto; height: 320px; }
}
