/*
=======================================================
  TI CATERING — Static Site Stylesheet
  Version: 1.0
  
  HOW TO EDIT:
  - Colors: see "CSS VARIABLES" section below
  - Fonts: see "TYPOGRAPHY" section
  - Navbar height: change --nav-height variable
  - Section spacing: change --section-pad variable
=======================================================
*/

/* ─────────────────────────────────────────
   CSS VARIABLES  (edit here to retheme)
───────────────────────────────────────── */
:root {
  --color-black:      #000;
  --color-dark:       #212121;
  --color-dark-alt:   #141212;  /* What We Do tile bg */
  --color-white:      #fff;
  --color-light-bg:   #f4f4f4;
  --color-border:     #ddd;
  --color-muted:      #999;

  --font-body:        'Barlow', sans-serif;
  --font-heading:     'Barlow Condensed', sans-serif;
  --font-semi:        'Barlow Semi Condensed', sans-serif;

  --nav-height:       80px;
  --section-pad:      70px;
  --section-pad-sm:   40px;
  --container-width:  1360px;

  --transition:       0.2s ease-in-out;
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-y: scroll; font-size: 15px; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-black);
  background: var(--color-white);
  letter-spacing: 0.9px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-semi);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-black);
  letter-spacing: 1px;
}
h1 { font-size: 35px; line-height: 1.15; letter-spacing: 2px; }
h2 { font-size: 36px; letter-spacing: 2px; }
h3 { font-size: 26px; }
h4 { font-size: 22px; }
p  { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.heading-condensed {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.075rem;
}
.small-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 4.84px;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────
   LAYOUT UTILITIES
───────────────────────────────────────── */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}
.section { padding: var(--section-pad) 0; }
.section-sm { padding: var(--section-pad-sm) 0; }
.section-dark { background: var(--color-black); color: var(--color-white); }
.section-dark h1,.section-dark h2,.section-dark h3,.section-dark h4 { color: var(--color-white); }
.section-grey { background: var(--color-light-bg); }
.text-center { text-align: center; }
.text-white  { color: var(--color-white) !important; }
.text-muted  { color: var(--color-muted); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-30 { gap: 30px; }
.gap-20 { gap: 20px; }

/* ─────────────────────────────────────────
   GRID
───────────────────────────────────────── */
.grid { display: grid; }
.grid-2 { grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 30px; }
.grid-6 { grid-template-columns: repeat(6, 1fr); gap: 20px; }

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0 15px;
  line-height: 38px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid var(--color-black);
  background: transparent;
  color: var(--color-black);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: var(--color-dark); color: var(--color-white); border-color: var(--color-dark); }
.btn-white {
  border-color: var(--color-white);
  color: var(--color-white);
  background: transparent;
}
.btn-white:hover { background: var(--color-white); color: var(--color-black); }
.btn-solid {
  background: var(--color-dark);
  color: var(--color-white);
  border-color: transparent;
}
.btn-solid:hover { background: var(--color-white); color: var(--color-dark); border-color: var(--color-dark); }
.btn-wide { width: 160px; }

/* ─────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 15px 0 15px;
}
.navbar-logo img { max-height: 60px; margin: 5px; }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.navbar-nav a {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  padding: 0 30px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--color-black);
  position: relative;
  transition: color var(--transition);
}
.navbar-nav a::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: var(--color-dark);
  transition: height 0.2s ease-in-out;
  z-index: -1;
}
.navbar-nav a:hover { color: var(--color-white); }
.navbar-nav a:hover::before { height: var(--nav-height); }
.navbar-nav a.active { color: var(--color-white); }
.navbar-nav a.active::before { height: var(--nav-height); }

/* Contact toggle button in navbar */
.navbar-contact-btn {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  padding: 0 30px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--color-black);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.navbar-contact-btn:hover { background: var(--color-dark); color: var(--color-white); }

/* Mobile hamburger */
.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
  background: none;
  border: none;
}
.navbar-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-black);
  transition: var(--transition);
}

/* ─────────────────────────────────────────
   MOBILE NAV DRAWER
───────────────────────────────────────── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
}
.mobile-nav-overlay.open { display: block; }
.mobile-nav-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 270px;
  height: 100vh;
  background: var(--color-dark);
  z-index: 1200;
  overflow-y: auto;
  transition: right 0.3s ease;
  padding: 30px 20px;
}
.mobile-nav-drawer.open { right: 0; }
.mobile-nav-drawer .close-btn {
  color: rgba(255,255,255,0.7);
  font-size: 24px;
  float: right;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
}
.mobile-nav-drawer ul { margin-top: 40px; }
.mobile-nav-drawer ul li a {
  display: block;
  padding: 12px 0;
  color: var(--color-white);
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.9px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.mobile-nav-drawer ul li a:hover { color: rgba(255,255,255,0.7); }

/* ─────────────────────────────────────────
   CONTACT OFFCANVAS PANEL
   (slides from right, replaces Joomla form)
───────────────────────────────────────── */
.contact-panel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1300;
}
.contact-panel-overlay.open { display: block; }
.contact-panel {
  position: fixed;
  top: 0; right: -420px;
  width: 400px;
  height: 100vh;
  background: var(--color-dark);
  z-index: 1400;
  overflow-y: auto;
  transition: right 0.3s ease;
  padding: 40px;
  color: var(--color-white);
}
.contact-panel.open { right: 0; }
.contact-panel .panel-close {
  position: absolute;
  top: 20px; right: 20px;
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  cursor: pointer;
  background: none;
  border: none;
  color: white;
}
.contact-panel h3 {
  color: var(--color-white);
  margin-bottom: 30px;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.contact-panel p { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.8); margin-bottom: 25px; }

/*
  ── CONTACT FORM FIELDS ──
  To customise the form action, update the <form action=""> in each HTML file.
  For static hosting, use Netlify Forms (add netlify attribute) or Formspree.
  See README.md for full instructions.
*/
.contact-panel .form-group { margin-bottom: 20px; }
.contact-panel input[type="text"],
.contact-panel input[type="email"],
.contact-panel input[type="tel"],
.contact-panel textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.9px;
  padding: 8px 0;
  text-align: center;
  outline: none;
}
.contact-panel input::placeholder,
.contact-panel textarea::placeholder { color: rgba(255,255,255,0.7); }
.contact-panel textarea { min-height: 80px; resize: none; text-align: left; }
.contact-panel .form-submit {
  border: 1px solid var(--color-white);
  background: transparent;
  color: var(--color-white);
  padding: 8px 25px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.9px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}
.contact-panel .form-submit:hover { background: var(--color-white); color: var(--color-black); }
.form-success { display: none; color: #43feae; padding: 15px 0; font-weight: 500; }

/* ─────────────────────────────────────────
   HERO / BANNER SECTIONS
───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
}
.hero-content h1 { color: var(--color-white); margin-bottom: 30px; }
.hero-content p  { color: rgba(255,255,255,0.9); margin-bottom: 30px; }

/* Specific hero backgrounds (desktop) */
.hero-home      { background-image: url('../images/covers/desktop/Home.jpg'); }
.hero-about     { background-image: url('../images/covers/desktop/About.jpg'); }
.hero-whatwedo  { background-image: url('../images/covers/desktop/WhatWeDo.jpg'); }
.hero-menus     { background-image: url('../images/covers/desktop/Menu.jpg'); }

/* Scroll indicator arrow */
.scroll-arrow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-arrow img {
  max-height: 50px;
  animation: bounce 2s infinite;
  cursor: pointer;
}
@keyframes bounce {
  0%,20%,50%,80%,100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

/* ─────────────────────────────────────────
   ABOUT SECTION
───────────────────────────────────────── */
.about-intro { max-width: 760px; margin: 0 auto; }
.about-intro .section-label { margin-bottom: 20px; }
.about-stats { margin-top: 50px; }
.stat-item { text-align: center; }
.stat-num {
  font-size: 48px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -1px;
  display: block;
}
.stat-label { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--color-muted); }

/* ─────────────────────────────────────────
   WHAT WE DO / SERVICES GRID
───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.service-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.service-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-tile:hover img { transform: scale(1.05); }
.service-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.61);
  color: var(--color-white);
  padding: 20px;
  transform: translateY(calc(100% - 70px));
  transition: transform 0.3s ease;
  min-height: 70px;
}
.service-tile:hover .service-overlay { transform: translateY(0); }
.service-overlay h3 {
  font-size: 20px;
  color: var(--color-white);
  letter-spacing: 1.68px;
  font-weight: 500;
  margin-bottom: 10px;
}
.service-overlay p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
  letter-spacing: 1.08px;
  color: rgba(255,255,255,0.9);
}
.service-tile:hover .service-overlay p { opacity: 1; }

/* Dark content panel (What We Do page) */
.offering-panel {
  background: var(--color-dark-alt);
  color: var(--color-white);
  padding: 70px 90px;
}
.offering-panel h2,.offering-panel h3 { color: var(--color-white); }
.offering-panel .hr-line {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.3);
  margin: 30px 0 50px;
}
.offering-panel a { font-weight: 600; color: var(--color-white); text-decoration: none; }
.offering-panel a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────
   MENUS SECTION
───────────────────────────────────────── */
/* 
  ── MENU ITEMS ──
  To add/remove menu items, edit the .menu-items grid in menus.html.
  Each .menu-card consists of:
    - An image (images/ti/menu/*.jpg)
    - A title (h3)
    - A download link pointing to images/ti/downloads/*.pdf
*/
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.menu-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.menu-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.menu-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.menu-card:hover .menu-card-img img { transform: scale(1.04); }
.menu-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.61);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}
.menu-card:hover .menu-card-overlay { opacity: 1; }
.menu-card-overlay a {
  border: 1px solid var(--color-white);
  color: var(--color-white);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  margin-bottom: 10px;
}
.menu-card-overlay a:hover { background: var(--color-white); color: var(--color-black); }
.menu-card-body { padding: 20px; }
.menu-card-body h3 {
  font-size: 20px;
  letter-spacing: 1.68px;
  font-weight: 500;
  color: var(--color-black);
}

/* ─────────────────────────────────────────
   CLIENT LOGOS
───────────────────────────────────────── */
/* 
  ── CLIENT LOGOS ──
  To add/remove clients, edit the .client-logos grid in each page.
  Images live in images/ti/clients/ and images/ti/logos/
  Keep file names consistent with what's in those folders.
*/
.client-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  align-items: center;
}
.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.client-logo-item:hover { opacity: 1; }
.client-logo-item img { max-height: 60px; width: auto; filter: grayscale(100%); transition: filter 0.2s; }
.client-logo-item:hover img { filter: none; }

/* Corporate / event client logos (larger) */
.corporate-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: center;
}

/* ─────────────────────────────────────────
   PARALLAX SECTION
───────────────────────────────────────── */
.parallax-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.parallax-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.parallax-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding: 60px 40px;
}
.parallax-content h2,.parallax-content h3 { color: var(--color-white); }

/* ─────────────────────────────────────────
   CONTACT FOOTER SECTION
───────────────────────────────────────── */
.contact-section {
  position: relative;
  min-height: 50vh;
  background-image: url('../images/covers/desktop/Footer.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.contact-section .inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  width: 100%;
  padding: 80px 40px;
}
.contact-section h2 { color: var(--color-white); font-size: 40px; letter-spacing: 2px; }
.contact-section h2 a {
  color: var(--color-white);
  position: relative;
  transition: color 0.3s;
}
.contact-section h2 a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 2px;
  border-bottom: 2px solid var(--color-white);
  transition: border-color 0.3s;
}
.contact-section h2 a:hover { color: rgba(255,255,255,0.7); }
.contact-section h2 a:hover::after { border-color: rgba(255,255,255,0.7); }

/* ─────────────────────────────────────────
   FOOTER BAR
───────────────────────────────────────── */
footer.footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 25px 10px;
}
footer.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  letter-spacing: 0.84px;
  font-weight: 500;
}
footer.footer .footer-logo img { max-width: 125px; }
footer.footer .footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
footer.footer a { color: rgba(255,255,255,0.7); }
footer.footer a:hover { color: var(--color-white); }
footer.footer .copyright { color: rgba(255,255,255,0.5); font-size: 12px; }
.privacy-policy { padding-right: 40px; }

/* ─────────────────────────────────────────
   PAGE TRANSITION (subtle)
───────────────────────────────────────── */
.page-content { opacity: 0; animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { to { opacity: 1; } }

/* ─────────────────────────────────────────
   UTILITY CLASSES
───────────────────────────────────────── */
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.py-60 { padding-top: 60px; padding-bottom: 60px; }

/* Section title (vertical text decoration) */
.section-eyebrow {
  font-size: 15px;
  font-family: var(--font-semi);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-muted);
  margin-bottom: 15px;
}
/* Divider line */
.divider { border: none; border-top: 1px solid var(--color-border); margin: 30px 0; }

/* Two-column content with image */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.split-section .split-image img { width: 100%; height: 100%; object-fit: cover; }
.split-section .split-content {
  padding: 70px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1199px) {
  .offering-panel { padding: 70px 50px; }
  .client-logos   { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 959px) {
  :root { --section-pad: 50px; }
  .navbar-nav  { display: none; }
  .navbar-contact-btn { display: none; }
  .navbar-hamburger { display: flex; }
  .grid-2       { grid-template-columns: 1fr; }
  .grid-3       { grid-template-columns: 1fr 1fr; }
  .grid-4       { grid-template-columns: 1fr 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .split-section .split-content { padding: 50px 30px; }
  .services-grid { grid-template-columns: 1fr; }
  .menu-grid    { grid-template-columns: 1fr 1fr; }
  .corporate-logos { grid-template-columns: repeat(3, 1fr); }
  .contact-panel { width: 100%; right: -100%; }
}

@media (max-width: 767px) {
  :root { --nav-height: 70px; }
  h1 { font-size: 28px; } h2 { font-size: 28px; }
  h1 br, h2 br { display: none; }
  .container { padding: 0 20px; }
  .hero-home      { background-image: url('../images/covers/mobile/Home.jpg'); }
  .hero-about     { background-image: url('../images/covers/mobile/About.jpg'); }
  .hero-whatwedo  { background-image: url('../images/covers/mobile/WhatWeDo.jpg'); }
  .hero-menus     { background-image: url('../images/covers/mobile/Menu.jpg'); }
  .contact-section { background-image: url('../images/covers/mobile/Footer.jpg'); }
  .parallax-section { background-attachment: scroll; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .client-logos { grid-template-columns: repeat(3, 1fr); }
  .corporate-logos { grid-template-columns: repeat(2, 1fr); }
  .scroll-arrow img { max-height: 40px; }
  .hero { min-height: calc(90vh - 120px); }
}

@media (max-width: 639px) {
  .client-logos { grid-template-columns: repeat(2, 1fr); }
  footer.footer .container { flex-direction: column; text-align: center; }
  .privacy-policy { padding-right: 0; }
}
