/* ===================================
   TASTIC LLC - Swiss Style Theme
   International Typographic Style
   Version: 1.0
   ================================= */

/* Import Inter font (Swiss minimal) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===================================
   SWISS DESIGN SYSTEM
   Based on ui-ux-pro-max research:
   - Grid-based layout (12-column)
   - Monochrome palette + single accent
   - Inter typeface (Swiss minimal)
   - Mathematical spacing (8px base)
   - Asymmetric layouts
   - Functional, reduced design
   ================================= */

:root {
  /* TASTIC Brand Colors - Swiss Style with Brand Green */
  --swiss-black: #000000;
  --swiss-white: #FFFFFF;
  --swiss-gray-100: #F5F5F5;
  --swiss-gray-200: #E5E5E5;
  --swiss-gray-300: #D4D4D4;
  --swiss-gray-400: #A3A3A3;
  --swiss-gray-600: #525252;
  --swiss-gray-700: #343a40;
  --swiss-gray-900: #171717;
  
  /* TASTIC Brand Green - Primary Accent */
  --swiss-accent: #95C047;           /* Brand Green */
  --swiss-accent-dark: #7BA538;      /* Hover states */
  --swiss-accent-light: #B8D85A;     /* Light accents */
  --swiss-accent-hover: rgba(149, 192, 71, 0.08);
  --swiss-accent-active: rgba(149, 192, 71, 0.15);
  
  /* Typography Scale - Inter */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Mathematical Spacing System (8px base) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-16: 128px;
  --space-20: 160px;
  
  /* Grid System */
  --grid-columns: 12;
  --grid-gap: var(--space-3);
  --grid-max-width: 1440px;
  
  /* Typography Scale */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */
  --text-7xl: 4.5rem;    /* 72px */
  
  /* Line Heights - Tight for Swiss style */
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  
  /* Letter Spacing */
  --tracking-tight: -0.05em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  
  /* Borders - Sharp, no rounded corners */
  --border-width: 1px;
  --border-width-thick: 2px;
  --border-radius: 0px;
  
  /* Transitions - Minimal, fast */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
}

/* ===================================
   BASE RESET - SWISS STYLE
   ================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--leading-normal);
  color: var(--swiss-black);
  background: var(--swiss-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   TYPOGRAPHY - SWISS HIERARCHY
   Clear, mathematical hierarchy
   ================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-3);
  color: var(--swiss-black);
}

h1 {
  font-size: var(--text-7xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-5xl);
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-semibold);
}

h4 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
}

h5 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-medium);
}

h6 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
}

p {
  margin-bottom: var(--space-3);
  line-height: var(--leading-relaxed);
}

/* Small text / captions */
.text-small {
  font-size: var(--text-sm);
  color: var(--swiss-gray-600);
}

.text-xs {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: var(--font-weight-semibold);
}

/* ===================================
   12-COLUMN GRID SYSTEM
   Foundation of Swiss design
   ================================= */

.swiss-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
  max-width: var(--grid-max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* Grid column spans */
.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* Responsive grid */
@media (max-width: 768px) {
  .swiss-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
  }
  
  .col-1, .col-2, .col-3, .col-4,
  .col-5, .col-6, .col-7, .col-8,
  .col-9, .col-10, .col-11, .col-12 {
    grid-column: span 4;
  }
  
  .col-md-12 {
    grid-column: span 4;
  }
}

/* ===================================
   SWISS LAYOUT PATTERNS
   Asymmetric, grid-based
   ================================= */

.swiss-container {
  max-width: var(--grid-max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.swiss-section {
  padding: var(--space-16) 0;
  border-bottom: var(--border-width) solid var(--swiss-gray-200);
}

.swiss-section-header {
  margin-bottom: var(--space-10);
}

/* Asymmetric two-column layout (classic Swiss) */
.swiss-layout-asymmetric {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .swiss-layout-asymmetric {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ===================================
   SWISS COMPONENTS
   Minimal, functional
   ================================= */

/* Cards - Sharp corners, clear borders */
.swiss-card {
  background: var(--swiss-white);
  border: var(--border-width) solid var(--swiss-black);
  padding: var(--space-4);
  transition: none; /* No hover effects - static */
}

.swiss-card-header {
  border-bottom: var(--border-width) solid var(--swiss-gray-200);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-3);
}

/* Buttons - Functional, minimal */
.swiss-btn {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  padding: var(--space-2) var(--space-4);
  background: var(--swiss-black);
  color: var(--swiss-white);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background var(--transition-fast);
  display: inline-block;
  text-decoration: none;
}

.swiss-btn:hover {
  background: var(--swiss-gray-900);
}

.swiss-btn-outline {
  background: transparent;
  color: var(--swiss-black);
  border: var(--border-width-thick) solid var(--swiss-black);
}

.swiss-btn-outline:hover {
  background: var(--swiss-black);
  color: var(--swiss-white);
}

.swiss-btn-accent {
  background: var(--swiss-accent);
  color: var(--swiss-white);
}

.swiss-btn-accent:hover {
  background: var(--swiss-accent-dark);
}

/* Filter Buttons - Swiss Style */
.swiss-btn-filter {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  padding: var(--space-1) var(--space-3);
  background: transparent;
  color: var(--swiss-gray-600);
  border: var(--border-width) solid var(--swiss-gray-300);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-block;
}

.swiss-btn-filter:hover {
  border-color: var(--swiss-black);
  color: var(--swiss-black);
}

.swiss-btn-filter.active {
  background: var(--swiss-black) !important;
  color: var(--swiss-white) !important;
  border-color: var(--swiss-black) !important;
}

/* Links - Minimal underline */
a {
  color: var(--swiss-black);
  text-decoration: none;
  border-bottom: var(--border-width) solid var(--swiss-black);
  transition: border-color var(--transition-fast);
}

a:hover {
  border-bottom-color: var(--swiss-accent);
  color: var(--swiss-accent);
}

/* Tables - Grid-like structure */
.swiss-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.swiss-table thead {
  border-bottom: var(--border-width-thick) solid var(--swiss-black);
}

.swiss-table th {
  text-align: left;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  padding: var(--space-2);
  font-size: var(--text-xs);
}

.swiss-table td {
  padding: var(--space-2);
  border-bottom: var(--border-width) solid var(--swiss-gray-200);
}

.swiss-table tbody tr:hover {
  background: var(--swiss-gray-100);
}

/* Table container with horizontal scroll on mobile */
.swiss-table-container {
  overflow-x: auto;
  margin: 0 calc(-1 * var(--space-3));
  padding: 0 var(--space-3);
}

@media (max-width: 768px) {
  .swiss-table-container {
    margin: 0 calc(-1 * var(--space-2));
    padding: 0 var(--space-2);
  }
  
  .swiss-table {
    min-width: 600px;
  }
}

/* ===================================
   NAVIGATION - SWISS STYLE
   Fixed, minimal, functional
   ================================= */

.swiss-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--swiss-white);
  border-bottom: var(--border-width) solid var(--swiss-black);
  z-index: 1000;
}

.swiss-nav-container {
  max-width: var(--grid-max-width);
  margin: 0 auto;
  padding: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.swiss-nav-logo {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-tight);
}

.swiss-nav-logo img {
  height: 32px;
  width: auto;
  display: block;
  transition: opacity var(--transition-fast);
}

.swiss-nav-logo a:hover img {
  opacity: 0.8;
}

.swiss-nav-links {
  display: flex;
  gap: var(--space-5);
}

.swiss-nav-links a {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  border-bottom: none;
  transition: color var(--transition-fast);
}

.swiss-nav-links a:hover {
  color: var(--swiss-accent);
}

/* Account for fixed nav */
body.swiss-style {
  padding-top: var(--space-8);
}

/* ===================================
   HERO SECTION - SWISS STYLE
   Large type, asymmetric
   ================================= */

.swiss-hero {
  padding: var(--space-20) 0 var(--space-16) 0;
  border-bottom: var(--border-width-thick) solid var(--swiss-black);
}

.swiss-hero h1 {
  font-size: clamp(var(--text-5xl), 8vw, var(--text-7xl));
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
  max-width: 12ch; /* Swiss style: short lines */
}

.swiss-hero p {
  font-size: var(--text-xl);
  color: var(--swiss-gray-600);
  max-width: 50ch;
  line-height: var(--leading-relaxed);
}

/* ===================================
   UTILITY CLASSES
   ================================= */

/* Spacing utilities */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.pt-6 { padding-top: var(--space-6); }
.pt-8 { padding-top: var(--space-8); }
.pt-10 { padding-top: var(--space-10); }
.pt-16 { padding-top: var(--space-16); }

.pb-6 { padding-bottom: var(--space-6); }
.pb-8 { padding-bottom: var(--space-8); }
.pb-10 { padding-bottom: var(--space-10); }
.pb-16 { padding-bottom: var(--space-16); }

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.uppercase { text-transform: uppercase; }

.font-light { font-weight: var(--font-weight-light); }
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* Color utilities */
.text-black { color: var(--swiss-black); }
.text-gray { color: var(--swiss-gray-600); }
.text-accent { color: var(--swiss-accent); }

.bg-white { background: var(--swiss-white); }
.bg-gray { background: var(--swiss-gray-100); }
.bg-black { background: var(--swiss-black); color: var(--swiss-white); }

/* Border utilities */
.border-t { border-top: var(--border-width) solid var(--swiss-gray-200); }
.border-b { border-bottom: var(--border-width) solid var(--swiss-gray-200); }
.border-l { border-left: var(--border-width) solid var(--swiss-gray-200); }
.border-r { border-right: var(--border-width) solid var(--swiss-gray-200); }
.border-black { border-color: var(--swiss-black); }

/* ===================================
   RESPONSIVE TYPOGRAPHY
   ================================= */

@media (max-width: 768px) {
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
  h3 { font-size: var(--text-2xl); }
  
  .swiss-hero h1 {
    font-size: var(--text-5xl);
  }
  
  .swiss-hero p {
    font-size: var(--text-lg);
  }
}

/* ===================================
   PRINT OPTIMIZATION
   Swiss design translates perfectly to print
   ================================= */

@media print {
  body {
    background: white;
    color: black;
  }
  
  .swiss-nav,
  .theme-toggle,
  .mobile-menu-btn {
    display: none !important;
  }
  
  .swiss-section {
    page-break-inside: avoid;
  }
}
