@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --bg: #F7F4EF;
  --surface: #FFFFFF;
  --border: #E4DDD3;
  --text: #1A1714;
  --text-muted: #756B61;
  --highlite: #852A3A;
  --accent: #274B79;
  --accent-light: #EAEEF3;
  --accent-hover: #1E2A45;
  --radius: 14px;
  --radius-sm: 8px;
}

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
}

a { text-decoration: none; color: inherit; }

/* ── Header ── */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.logo img { border-radius: 6px; }

.nav-links { display: flex; gap: 2rem; }

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
}

/* ── Page Layout ── */
.page-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  gap: 2rem;
  align-items: start;
}

.main-column { min-width: 0; }

/* ── Hero ── */
.hero {
  text-align: center;
  margin-bottom: 4rem;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero p {
  font-size: 1.05rem;
  color: var(--highlite);

  max-width: 680px;
  margin: 0 auto;
  font-weight: 300;
}

.text-about {
  font-size: 1.0rem;
  color: var(--text-muted);
  max-width: 880px;
  margin: 0 auto;
  font-weight: 500;
  text-align:justify;
}

/* ── Card Grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
  border-color: #C8BFB3;
  transform: translateY(-2px);
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 1rem;
  width: fit-content;
}

.card h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

/* ── Button ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  width: fit-content;
}

.btn::after {
  content: "→";
  font-size: 1rem;
  transition: transform 0.2s;
}

.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn:hover::after { transform: translateX(3px); }

/* Override: all category btn variants use the same base style */
.btn-email,
.btn-security,
.btn-cloud,
.btn-pdf,
.btn-support,
.btn-integration { background: var(--text); color: var(--bg); }

.btn-email:hover,
.btn-security:hover,
.btn-cloud:hover,
.btn-pdf:hover,
.btn-support:hover,
.btn-integration:hover { background: var(--accent); color: #fff; }

/* ── Ad Sidebars ── */
.ad-sidebar {
  position: sticky;
  top: 5rem;
}

.ad-unit {
  background: #F0EDE8;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Footer ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .page-layout {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.25rem 3rem;
  }
  .ad-sidebar { display: none; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.25rem;
  }

  .nav-links.active { display: flex; }

  .hero { margin-bottom: 2.5rem; }

  .card-grid { grid-template-columns: 1fr; }
}

.flex-container {
    display: flex;
}
.flex-child {
    flex: 1;
}  
.flex-child:first-child {
    margin-right: 10px;
} 
