/* ═══════════════════════════════════════════════════════
   TAYLORED INNOVATIONS INC. — GLOBAL STYLESHEET
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Outfit:wght@200;300;400;500;600;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --white: #ffffff;
  --off-white: #f7f7f7;
  --light-gray: #e8e8e8;
  --mid-gray: #999;
  --dark-gray: #333;
  --near-black: #1a1a1a;
  --black: #0a0a0a;
  --accent: #c8a96e;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Outfit', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--sans); color: var(--near-black); background: var(--white); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ─── PRELOADER ─── */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo { width: 260px; animation: pulse 1.2s ease-in-out infinite alternate; filter: brightness(0) invert(1); }
@keyframes pulse { from { opacity: 0.4; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 22px 60px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
nav.scrolled {
  background: rgba(255,255,255,0.97);
  padding: 14px 60px;
  box-shadow: 0 1px 30px rgba(0,0,0,0.08);
}
nav.scrolled .nav-logo { filter: none; }
nav.scrolled .nav-links a { color: var(--near-black); }
nav.scrolled .nav-links a::after { background: var(--near-black); }
nav.scrolled .nav-cta { background: transparent; color: var(--black); border-color: var(--black); }
nav.scrolled .nav-cta:hover { background: var(--black); color: var(--white); border-color: var(--black); }
nav.scrolled .hamburger span { background: var(--black); }

/* Inner page nav — solid white from the start */
nav.nav-inner {
  background: rgba(255,255,255,0.97);
  padding: 14px 60px;
  box-shadow: 0 1px 30px rgba(0,0,0,0.08);
}
nav.nav-inner .nav-logo { filter: none; }
nav.nav-inner .nav-links a { color: var(--near-black); }
nav.nav-inner .nav-links a::after { background: var(--near-black); }
nav.nav-inner .nav-links a.active { color: var(--black); font-weight: 500; }
nav.nav-inner .nav-links a.active::after { width: 100%; }
nav.nav-inner .nav-cta {
  background: transparent; color: var(--black); border-color: var(--black);
}
nav.nav-inner .nav-cta:hover { background: var(--black); color: var(--white); border-color: var(--black); }
nav.nav-inner .hamburger span { background: var(--black); }

.nav-logo { height: 52px; filter: brightness(0) invert(1); transition: filter 0.4s ease; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: var(--sans); font-weight: 400; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--white);
  position: relative; transition: color 0.3s ease;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--white);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-family: var(--sans); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 12px 28px; border: 1px solid rgba(255,255,255,0.6);
  color: var(--white); background: transparent;
  transition: all 0.3s ease; cursor: pointer;
}
.nav-cta:hover { background: var(--white); color: var(--black); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.hamburger span { width: 28px; height: 1.5px; background: var(--white); transition: all 0.3s ease; }

/* ─── MOBILE MENU ─── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--serif); font-size: 2rem; font-weight: 300;
  color: var(--white); letter-spacing: 0.04em;
}

/* ─── HERO (Home page) ─── */
.hero {
  position: relative; height: 100vh; min-height: 700px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.3) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 60px 80px;
  max-width: 900px;
}
.hero-tag {
  font-family: var(--sans); font-weight: 400; font-size: 0.75rem;
  letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s 1.6s ease forwards;
}
.hero h1 {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 5.5vw, 5rem);
  line-height: 1.08; color: var(--white); letter-spacing: -0.02em;
  margin-bottom: 24px;
  opacity: 0; transform: translateY(30px);
  animation: fadeUp 0.8s 1.8s ease forwards;
}
.hero > .hero-content > p {
  font-family: var(--sans); font-weight: 300; font-size: 1.05rem;
  line-height: 1.7; color: rgba(255,255,255,0.8);
  max-width: 560px; margin-bottom: 36px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s 2s ease forwards;
}
.hero-btns {
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s 2.2s ease forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.btn-primary {
  display: inline-block; padding: 16px 40px;
  font-family: var(--sans); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--white); color: var(--black);
  transition: all 0.35s ease;
}
.btn-primary:hover { background: var(--accent); color: var(--white); }
.btn-outline {
  display: inline-block; padding: 16px 40px;
  font-family: var(--sans); font-weight: 400; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.5); color: var(--white);
  transition: all 0.35s ease;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-dark {
  display: inline-block; padding: 16px 40px;
  font-family: var(--sans); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--black); color: var(--white);
  border: 1px solid var(--black); transition: all 0.35s ease;
}
.btn-dark:hover { background: transparent; color: var(--black); }

/* ─── SECTION HERO (Sub-pages with image) ─── */
.section-hero {
  position: relative; height: 65vh; min-height: 450px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.section-hero .hero-bg::after {
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.25) 100%);
}
.section-hero .hero-content { padding-bottom: 60px; }
.section-hero h1 {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: var(--white); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 16px;
}
.section-hero p {
  font-family: var(--sans); font-weight: 300; font-size: 1.05rem;
  color: rgba(255,255,255,0.75); max-width: 520px; line-height: 1.7;
}

/* ─── PAGE HEADER (No-image variant for Contact etc) ─── */
.page-header {
  padding: 140px 60px 70px;
  background: var(--white);
}
.page-header h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.08; letter-spacing: -0.02em;
  color: var(--near-black); margin-bottom: 16px;
}
.page-header p {
  font-family: var(--sans); font-weight: 300; font-size: 1.05rem;
  color: var(--mid-gray); max-width: 520px; line-height: 1.7;
}
.page-header .divider { margin-top: 32px; }

/* ─── CONTENT SECTIONS ─── */
.section-pad { padding: 100px 60px; }
.section-pad-lg { padding: 120px 60px; }
.section-dark { background: var(--black); color: var(--white); }
.section-off { background: var(--off-white); }
.section-title-tag {
  font-family: var(--sans); font-weight: 400; font-size: 0.7rem;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--mid-gray);
  margin-bottom: 16px;
}
.section-dark .section-title-tag { color: rgba(255,255,255,0.45); }
.section-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.15;
  letter-spacing: -0.01em; margin-bottom: 20px;
}
.section-text {
  font-weight: 300; font-size: 0.95rem; line-height: 1.8;
  color: var(--dark-gray); max-width: 600px;
}
.section-dark .section-text { color: rgba(255,255,255,0.65); }

/* ─── STATS BAR ─── */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.stat-item {
  padding: 48px 40px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif); font-weight: 300; font-size: 3rem;
  color: var(--white); line-height: 1; margin-bottom: 8px;
}
.stat-label {
  font-weight: 300; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.45);
}

/* ─── TWO COLUMN ─── */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.two-col-img { position: relative; overflow: hidden; }
.two-col-img img { width: 100%; height: 500px; object-fit: cover; }
.two-col-img::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid rgba(0,0,0,0.06);
}

/* ─── THREE GRID ─── */
.three-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-card { position: relative; overflow: hidden; background: var(--white); }
.grid-card-img { height: 320px; overflow: hidden; }
.grid-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.grid-card:hover .grid-card-img img { transform: scale(1.04); }
.grid-card-body { padding: 28px 28px 32px; }
.grid-card-body h4 {
  font-family: var(--serif); font-weight: 500; font-size: 1.3rem;
  margin-bottom: 10px;
}
.grid-card-body p {
  font-weight: 300; font-size: 0.88rem; line-height: 1.7; color: var(--dark-gray);
}
.section-dark .grid-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.section-dark .grid-card-body p { color: rgba(255,255,255,0.6); }
.section-dark .grid-card-body h4 { color: var(--white); }

/* ─── SERVICE LIST ─── */
.service-list { max-width: 800px; }
.service-item {
  display: flex; align-items: flex-start; gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--light-gray);
}
.section-dark .service-item { border-color: rgba(255,255,255,0.1); }
.service-num {
  font-family: var(--serif); font-weight: 300; font-size: 1.8rem;
  color: var(--mid-gray); min-width: 50px;
}
.section-dark .service-num { color: rgba(255,255,255,0.3); }
.service-item h4 {
  font-family: var(--serif); font-weight: 500; font-size: 1.2rem;
  margin-bottom: 6px;
}
.service-item p {
  font-weight: 300; font-size: 0.88rem; line-height: 1.7; color: var(--dark-gray);
}
.section-dark .service-item p { color: rgba(255,255,255,0.55); }

/* ─── FULL-WIDTH IMAGE BREAK ─── */
.img-break { position: relative; height: 50vh; min-height: 360px; overflow: hidden; }
.img-break img { width: 100%; height: 100%; object-fit: cover; }
.img-break-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
}
.img-break-text {
  text-align: center; max-width: 700px; padding: 0 40px;
}
.img-break-text h3 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--white);
  line-height: 1.2; margin-bottom: 16px;
}
.img-break-text p {
  font-weight: 300; font-size: 0.95rem; color: rgba(255,255,255,0.7); line-height: 1.7;
}

/* ─── GALLERY ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 380px;
  gap: 16px;
}
.gallery-item { position: relative; overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 50%);
  display: flex; align-items: flex-end; padding: 28px;
  opacity: 0; transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span {
  font-family: var(--sans); font-weight: 400; font-size: 0.82rem;
  color: var(--white); letter-spacing: 0.08em; text-transform: uppercase;
}

/* ─── CONTACT ─── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
}
.contact-info h3 {
  font-family: var(--serif); font-weight: 400; font-size: 2.2rem;
  margin-bottom: 28px;
}
.contact-detail { margin-bottom: 28px; }
.contact-detail-label {
  font-weight: 400; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid-gray);
  margin-bottom: 6px;
}
.contact-detail p { font-weight: 300; font-size: 1rem; line-height: 1.7; }
.contact-detail a { border-bottom: 1px solid var(--light-gray); transition: border-color 0.3s ease; }
.contact-detail a:hover { border-color: var(--black); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; }
.form-field label {
  font-weight: 400; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid-gray);
  margin-bottom: 8px;
}
.form-field input, .form-field textarea, .form-field select {
  font-family: var(--sans); font-weight: 300; font-size: 0.95rem;
  padding: 14px 0; border: none; border-bottom: 1px solid var(--light-gray);
  background: transparent; outline: none; color: var(--near-black);
  transition: border-color 0.3s ease; border-radius: 0;
  -webkit-appearance: none;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--black);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-submit {
  align-self: flex-start; margin-top: 10px;
  padding: 16px 48px; background: var(--black); color: var(--white);
  font-family: var(--sans); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--black); cursor: pointer;
  transition: all 0.35s ease;
}
.form-submit:hover { background: transparent; color: var(--black); }

/* ─── FOOTER ─── */
footer {
  background: var(--black); padding: 60px 60px 30px;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p {
  font-weight: 300; font-size: 0.88rem;
  color: rgba(255,255,255,0.45); line-height: 1.7;
  max-width: 320px; margin-top: 16px;
}
.footer-col h5 {
  font-weight: 500; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 18px;
}
.footer-col a {
  display: block; font-weight: 300; font-size: 0.88rem;
  color: rgba(255,255,255,0.6); margin-bottom: 10px;
  transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-weight: 300; font-size: 0.78rem; color: rgba(255,255,255,0.3);
}
.footer-logo { height: 36px; filter: brightness(0) invert(1); opacity: 0.7; }

/* ─── DIVIDER ─── */
.divider { width: 60px; height: 1px; background: var(--light-gray); margin: 24px 0; }
.section-dark .divider { background: rgba(255,255,255,0.15); }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  nav { padding: 18px 30px; }
  nav.scrolled, nav.nav-inner { padding: 14px 30px; }
  .nav-logo { height: 44px; }
  .section-pad { padding: 70px 30px; }
  .section-pad-lg { padding: 90px 30px; }
  .hero-content { padding: 0 30px 60px; }
  .page-header { padding: 120px 30px 60px; }
  .two-col { gap: 40px; }
  .three-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .contact-grid { gap: 50px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-logo { height: 40px; }
  .hero-content { padding: 0 24px 50px; }
  .section-pad { padding: 60px 24px; }
  .section-pad-lg { padding: 80px 24px; }
  .section-hero .hero-content { padding: 0 24px 40px; }
  .page-header { padding: 100px 24px 50px; }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .two-col-img img { height: 350px; }
  .three-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section-hero { height: 50vh; min-height: 360px; }
  footer { padding: 40px 24px 24px; }
}
