/* ==========================================================================
   Base & Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors matched to the TAL Lubricants logo */
  --primary-slate: #627b94;
  --deep-navy: #3b5066;
  --soft-periwinkle: #a9bce2;
  --text-dark: #1e293b;
  --text-muted: #475569;
  --bg-light: #f8fafc;
}

html,
body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Full-height Flexbox wrapper to push footer down and center main content */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  text-align: center;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
}

.site-header nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   Main Landing Page Content
   ========================================================================== */
#landing-page {
  flex: 1; /* Grows to fill available space, centering vertically */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Fluid Typography using clamp(min, preferred, max) */
#landing-page h1 {
  font-size: clamp(1.85rem, 4.5vw, 3.25rem);
  font-weight: 700;
  color: var(--deep-navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

#landing-page h2 {
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  font-weight: 500;
  color: var(--primary-slate);
  margin-bottom: 0.75rem;
}

#landing-page h3 {
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
}

/* ==========================================================================
   Logo Container
   ========================================================================== */
.tal-large-logo {
  width: 100%;
  max-width: 680px;
  margin: 0 auto 2rem auto;
  display: flex;
  justify-content: center;
}

.tal-large-logo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ==========================================================================
   Copy / Disruptive Technology Section
   ========================================================================== */
.disruptive-technology {
  max-width:900px;
  margin: 0 auto;
}

.disruptive-technology p {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

/* Emphasize the lead-in sentence right below the logo */
.disruptive-technology p:first-child {
  font-weight: 500;
  color: var(--deep-navy);
 font-size: clamp(1.75rem, 5vw, 1.4rem);
}

.disruptive-technology p:last-child {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  width: 100%;
  padding: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(98, 123, 148, 0.15);
}

/* ==========================================================================
   Adaptive Breakpoints (Mobile / Small Screens)
   ========================================================================== */
@media (max-width: 600px) {
  #landing-page {
    padding: 1.5rem 1.25rem;
  }

  #landing-page h3 {
    letter-spacing: 0.06em;
    margin-bottom: 1.75rem;
  }

  .tal-large-logo {
    margin-bottom: 1.5rem;
  }

  /* Allow natural text wrapping on narrow mobile screens instead of forcing a break */
  .disruptive-technology br {
    display: none;
  }
}

:root {
  --primary: #1b4332;
  --primary-light: #2d6a4f;
  --accent: #40916c;
  --bg: #f8faf9;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #52606d;
  --border: #d9e2ec;
  --radius: 10px;
  --space-sm: clamp(0.75rem, 2vw, 1rem);
  --space-md: clamp(1.25rem, 3vw, 2rem);
  --space-lg: clamp(1.75rem, 4vw, 2.75rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: clamp(0.95rem, 1vw + 0.7rem, 1.05rem);
  overflow-x: hidden;
}

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

/* Header */
.site-header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-sm) var(--space-md);
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.site-logo {
  max-height: clamp(48px, 8vw, 68px);
  width: auto;
  flex-shrink: 0;
}

.header-titles h1 {
  font-size: clamp(1.3rem, 2.5vw + 0.6rem, 1.85rem);
  color: var(--primary);
  line-height: 1.2;
}

.header-titles h2 {
  font-size: clamp(0.9rem, 1.2vw + 0.6rem, 1.05rem);
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Main Container */
main {
  max-width: 1040px;
  margin: var(--space-md) auto;
  padding: 0 var(--space-sm) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  border: none;
}

.hero .subtitle {
  font-size: clamp(0.95rem, 1.3vw + 0.6rem, 1.15rem);
  font-weight: 600;
  color: #d8f3dc;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.hero h2 {
  font-size: clamp(1.5rem, 3vw + 0.7rem, 2.15rem);
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.hero p {
  color: #f1faee;
  max-width: 68ch;
}

/* FAB Pillar Badges & Headings */
.fab-pill {
  display: inline-block;
  background-color: #d8f3dc;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

h3 {
  color: var(--primary);
  font-size: clamp(1.2rem, 2vw + 0.6rem, 1.45rem);
  margin-bottom: 0.65rem;
  border-bottom: 2px solid #d8f3dc;
  padding-bottom: 0.4rem;
}

.section-lead {
  font-size: 1.03rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Responsive Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.15rem;
  margin-top: 0.75rem;
}

.feature-item {
  background: var(--bg);
  border-left: 4px solid var(--accent);
  padding: 1.15rem 1.25rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
}

.feature-item h4 {
  color: var(--primary);
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
}

/* Comparison Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
  font-size: 0.96rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.comparison-table th {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
}

.comparison-table th.highlight-col {
  background-color: var(--primary-light);
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--primary);
  width: 24%;
  background-color: var(--bg);
}

.comparison-table td.highlight-col {
  background-color: #f0fdf4;
  font-weight: 500;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* Ordered Takeaways / Benefits List */
.takeaways-list {
  margin: 0.75rem 0 1.25rem 1.25rem;
  padding-left: 0.25rem;
}

.takeaways-list li {
  margin-bottom: 0.9rem;
}

/* Callout Banner */
.callout {
  background-color: #edf6f9;
  border: 1px solid #cce3de;
  border-radius: 8px;
  padding: 1.15rem 1.35rem;
  color: var(--primary);
  margin-top: 1.35rem;
}

.closing-tagline {
  margin-top: 1rem;
  font-style: italic;
  color: var(--primary);
  font-weight: 500;
}

/* Contact / Inquiry Box */
#inquire-wrapper {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  text-align: center;
}

.dl_vcf {
  display: inline-block;
  margin-top: 0.25rem;
  color: var(--primary-light);
  font-weight: 700;
  text-decoration: underline;
  padding: 0.25rem 0.5rem;
}

.dl_vcf:hover,
.dl_vcf:focus-visible {
  color: var(--primary);
}

/* Responsive Action Menu */
.flex-grid-thirds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.section-menu-item {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--primary-light);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.section-menu-item:hover,
.section-menu-item:focus-visible {
  background-color: var(--primary);
}

.section-menu-item:active {
  transform: translateY(1px);
}

/* Tablet & Mobile Breakpoints */
@media (max-width: 768px) {
  .flex-grid-thirds {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .takeaways-list {
    margin-left: 1.1rem;
  }
}
