/* Twogether Brand Palette */
:root {
  --wineDark: #451C24;    /* Text Primary (headings, primary text) */
  --wine: #8A244B;        /* Main background or prominent panels */
  --redBright: #F63049;   /* Accents: icons, selected states, small highlights */
  --redMedium: #CF2753;   /* Primary buttons */
  --bloodRed: #94080D;    /* Danger / destructive actions, errors */
  
  --white: #FFFFFF;
  --offWhite: #FAF9F9;
  --grayLight: #E0E0E0;
  --textDark: var(--wineDark);
  --textLight: var(--white);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--offWhite);
  color: var(--textDark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--wineDark);
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: var(--spacing-md); }

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.text-center { text-align: center; }
.text-wine { color: var(--wine); }
.text-red { color: var(--redBright); }
.text-white { color: var(--white); }

.bg-wine { background-color: var(--wine); color: var(--white); }
.bg-white { background-color: var(--white); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md) var(--spacing-lg);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  min-height: 48px; /* Accessible touch target */
}

.btn:focus-visible {
  outline: 2px solid var(--wineDark);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--redMedium);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--redBright);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--wine);
  color: var(--wine);
}

.btn-secondary:hover {
  background-color: rgba(138, 36, 75, 0.05); /* --wine with opacity */
}

.btn-text {
  background: none;
  color: var(--wine);
  padding: var(--spacing-sm);
}

.btn-text:hover {
  text-decoration: underline;
}

/* Sections */
section {
  padding: var(--spacing-xxl) 0;
}

/* Header/Nav */
.site-header {
  padding: var(--spacing-md) 0;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--wine);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo img {
  height: 32px;
  width: auto;
}

/* Footer */
.site-footer {
  background-color: var(--wineDark);
  color: var(--white);
  padding: var(--spacing-xl) 0;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  align-items: center;
}

.footer-links {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a:hover {
  color: var(--redBright);
}

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}
