/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&family=Roboto:wght@400;500&display=swap');

/* General Reset and Fonts */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.6;
  text-align: center;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #000;
  color: #fff;
  position: relative;
  z-index: 1001; /* keeps header above side ads */
}

header .logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif; /* updated to match age calculator pages */
}

header nav {
  display: flex;
  gap: 15px;
}

header nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

header nav a:hover {
  text-decoration: underline;
  color: #ddd;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 50px 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-family: 'Montserrat', sans-serif;
}

.hero p {
  font-size: 1.2rem;
  color: #555;
}

/* Ad Banners */
.ad-banner {
  text-align: center;
  padding: 20px 0;
}

.ad-placeholder {
  background: #f0f0f0;
  padding: 40px;
  border: 1px dashed #ccc;
  font-size: 0.9rem;
  color: #888;
}

/* Calculator Cards */
.tools {
  padding: 40px 20px;
  text-align: center;
}

.tools h2 {
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  display: block;
  padding: 25px 20px;
  background: #f8f8f8;
  border-radius: 12px;
  color: #111;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.card:hover {
  background: #e2e2e2;
  transform: translateY(-5px);
}

.card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: #111;
}

.card p {
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
  margin-top: 0;
}

.card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* FAQs */
.faqs {
  padding: 40px 20px;
}

.faqs h2 {
  text-align: center;
  margin-bottom: 20px;
}

.faq-item {
  margin-bottom: 15px;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 5px;
  font-family: 'Montserrat', sans-serif;
}

.faq-item p {
  font-size: 0.9rem;
  color: #555;
}

/* Footer (Sticky at bottom) */
footer {
  text-align: center;
  padding: 20px;
  background: #000;
  color: #fff;
  font-size: 0.85rem;
  margin-top: auto; /* pushes footer to bottom */
}

footer nav a {
  color: #fff;
  margin: 0 5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

footer nav a:hover {
  text-decoration: underline;
  color: #ddd;
}

/* Responsive Navigation (Hamburger) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 4px 0;
  border-radius: 5px;
}

@media (max-width: 768px) {
  header nav {
    display: none;
    flex-direction: column;
    background: #000;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 10px;
  }

  header nav.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

/* 🚫 Temporary: Hide all ad banners/placeholders until AdSense is live */
.ad-banner,
.ad-left,
.ad-right,
.adsbygoogle,
.ad-placeholder {
  display: none !important;
}
