/* Flo-Gistics - static site rebuild
   Fonts: Yeseva One (display), Lusitana (sub-headings), Lato (body) */

:root {
  --text-dark: #1b1b1b;
  --text-body: #3a3a3a;
  --accent: #7f7654;
  --accent-hover: #51470d;
  --accent-active: #38300b;
  --gold: #d0b831;
  --gold-light: #ebd46b;
  --gold-lighter: #fcf0d6;
  --bg-dark: #1c1b19;
  --bg-light: #f7f7f7;
  --border: #e2e2e2;
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Lato', Arial, sans-serif;
  color: var(--text-body);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, h5 {
  font-family: 'Yeseva One', Georgia, serif;
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 20px;
}

h1 { font-size: clamp(30px, 5vw, 48px); }
h2 { font-size: clamp(24px, 4vw, 32px); }

h4, .subheading {
  font-family: 'Lusitana', Georgia, serif;
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-dark);
}

p { margin: 0 0 16px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
}

.logo {
  font-family: 'Yeseva One', Georgia, serif;
  font-size: 28px;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.main-nav { display: none; }

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav a, .main-nav > ul > li > span.top-link {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
}

.main-nav a:hover, .main-nav > ul > li:hover > span.top-link,
.main-nav > ul > li.open > span.top-link {
  color: var(--accent-hover);
}

.main-nav .has-children > .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  min-width: 260px;
  padding: 8px 0;
  z-index: 10;
}

.main-nav .has-children:hover > .submenu,
.main-nav .has-children.open > .submenu {
  display: block;
}

.main-nav .submenu li a {
  padding: 10px 20px;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  font-size: 14px;
}

.main-nav .current > a, .main-nav .current > span.top-link {
  color: var(--accent-hover);
  font-weight: 900;
}

/* Hamburger (mobile) */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--text-dark);
  display: block;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }

.mobile-nav > li > a, .mobile-nav > li > span.top-link {
  display: block;
  padding: 14px 24px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.mobile-nav .submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  background: var(--bg-light);
}
.mobile-nav .has-children.open .submenu { display: block; }
.mobile-nav .submenu a {
  display: block;
  padding: 12px 40px;
  font-size: 14px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .hamburger, .mobile-nav { display: none !important; }
}

/* ---------- Hero / rotating carousel ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
  padding: 90px 24px;
  text-align: center;
}
.hero h1 { color: #fff; }
.hero p.tagline {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto;
}
.hero-dots {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: rgba(255,255,255,0.3);
  padding: 0;
  cursor: pointer;
}
.hero-dots button.active { background: #fff; }

.section-tagline {
  padding: 40px 24px 0;
}
.section-tagline h2 {
  color: #9e9470;
  text-align: left;
  font-size: clamp(20px, 3vw, 28px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin: 0 auto;
  max-width: var(--max-width);
}

.page-hero {
  padding: 60px 24px;
  text-align: center;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin: 0; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Sections ---------- */
section.block {
  padding: 56px 0;
}
section.block.alt { background: var(--bg-light); }

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 48px; }
  .two-col.reverse > *:first-child { order: 2; }
}
.two-col img { border-radius: 6px; width: 100%; object-fit: cover; }

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
}
.product-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  background: #fff;
}
.product-card h4 { text-transform: uppercase; letter-spacing: 1px; }
.product-card img { border-radius: 6px; margin-bottom: 20px; width: 100%; height: 200px; object-fit: cover; }

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--text-dark);
  padding: 12px 28px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: var(--gold-light); color: var(--text-dark); }

ul.bullet-list { padding-left: 22px; }
ul.bullet-list li { margin-bottom: 10px; }

.apps-list {
  columns: 2;
  padding-left: 20px;
}
@media (max-width: 600px) { .apps-list { columns: 1; } }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 32px;
}
.testimonial-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
a.testimonial-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
a.testimonial-card:hover .letter-link { color: var(--accent-hover); }
.testimonial-card img {
  max-height: 90px;
  width: auto;
  margin: 0 auto 16px;
  object-fit: contain;
}
.testimonial-card h4 { margin-bottom: 8px; font-size: 17px; }
.testimonial-card .letter-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

/* ---------- Gallery ---------- */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.photo-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 24px;
}
@media (min-width: 900px) {
  .video-grid.two { grid-template-columns: 1fr 1fr; }
}
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- Specs / tables ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
}
.spec-table td, .spec-table th {
  border-bottom: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  font-size: 15px;
}

.cut-sheet {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 32px;
  background: var(--bg-light);
}

.callout {
  background: var(--gold-lighter);
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: 4px;
  margin: 20px 0;
}

/* ---------- Contact ---------- */
.contact-center {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.contact-center img { margin-left: auto; margin-right: auto; }
.contact-center h4 { margin-bottom: 4px; }
.contact-center p { margin-bottom: 4px; }

/* ---------- Testimonial letter pages ---------- */
.letter-page {
  text-align: center;
  padding: 80px 24px;
  max-width: 560px;
  margin: 0 auto;
}
.letter-page .btn { font-size: 15px; padding: 16px 36px; margin-top: 8px; }
.letter-page .back-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
}

.letter-view { max-width: 820px; }
.letter-view h1 { margin-top: 24px; }
.back-to-top {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.back-to-top:hover { background: var(--accent); color: #fff; }
.letter-images { margin: 32px 0; text-align: left; }
.letter-images img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.1);
  margin-bottom: 24px;
}
.letter-images img:last-child { margin-bottom: 0; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dark);
}
.btn-outline:hover { background: var(--bg-light); color: var(--text-dark); }

/* ---------- Subscribe ---------- */
.subscribe {
  background: #fff;
  color: var(--text-body);
  text-align: center;
  padding: 56px 24px;
  border-top: 1px solid var(--border);
}
.subscribe h2 { color: var(--text-dark); }
.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 480px;
  margin: 24px auto 0;
}
.subscribe-form input[type="email"] {
  flex: 1 1 240px;
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 15px;
}
.subscribe-msg { margin-top: 12px; font-size: 14px; color: var(--accent-hover); min-height: 20px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #fff;
  color: var(--text-body);
  text-align: center;
  padding: 28px 24px 16px;
  font-size: 14px;
  border-top: 1px solid var(--border);
}
.site-footer a { color: var(--accent); }
.site-footer .powered { margin-top: 6px; font-size: 12px; color: #999; }
