/* EasySip.in – light theme (logo blue + green) | v1.2.0 */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-hover: #eef1f5;
  --primary: #2A4B8A;
  --primary-hover: #234078;
  --primary-soft: rgba(42, 75, 138, 0.12);
  --accent: #3CB371;
  --accent-hover: #2e9d5c;
  --accent-soft: rgba(60, 179, 113, 0.12);
  --text: #1a2332;
  --text-muted: #5a6b7d;
  --border: #dce1e8;
  --input-bg: #ffffff;
  --radius: 8px;
  --space: 1rem;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 16px;
}

/* ========== Header ========== */
.site-header {
  background: var(--surface);
  border-bottom: 2px solid var(--accent);
  padding: var(--space) 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.site-header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.site-logo img {
  width: 140px;
  height: 36px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.site-logo:hover img {
  opacity: 0.9;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  flex: 1;
}

.site-header nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}

.site-header nav a:hover {
  background: var(--surface-hover);
  color: var(--primary);
}

.site-header nav a.active {
  background: var(--primary);
  color: #fff;
}

.site-header nav a.active:hover {
  background: var(--primary-hover);
  color: #fff;
}

/* ========== Main content ========== */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

h1 + .page-desc,
.page-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* ========== Forms ========== */
.form-grid {
  display: grid;
  gap: var(--space);
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space);
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--primary-hover);
}

.btn:active {
  transform: scale(0.98);
}

.btn-accent {
  background: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-block {
  width: 100%;
}

/* ========== Result cards ========== */
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
  border-left: 4px solid var(--accent);
}

.result-card h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.result-card .value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space);
  margin-top: 1rem;
}

.result-summary .item {
  background: var(--bg);
  padding: 0.75rem;
  border-radius: 6px;
  text-align: center;
  border: 1px solid var(--border);
}

.result-summary .item .label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-summary .item .num {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.25rem;
  color: var(--primary);
}

/* ========== Home cards ========== */
.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.home-cards a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.home-cards a:hover {
  border-color: var(--primary);
  background: var(--surface-hover);
}

.home-cards a h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.home-cards a p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ========== Contact ========== */
.contact-details {
  max-width: 32rem;
  margin-top: 1.5rem;
}

.contact-details.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-box .contact-row {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.contact-box .contact-row:last-child {
  border-bottom: none;
}

.contact-box .contact-row strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-box .contact-row p {
  margin: 0;
  font-size: 1rem;
}

.contact-box .contact-row a {
  color: var(--accent);
  text-decoration: none;
}

.contact-box .contact-row a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.contact-whatsapp {
  margin-left: 0.75rem;
}

.contact-whatsapp .whatsapp-link {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s;
}

.contact-whatsapp .whatsapp-link:hover {
  background: var(--accent-hover);
}

/* ========== Link list (Investing) ========== */
.link-list {
  list-style: none;
}

.link-list li {
  margin-bottom: 0.5rem;
}

.link-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--primary);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.link-list a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.link-list a::after {
  content: "→";
  margin-left: auto;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ========== Tables ========== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

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

.comparison-table th {
  background: var(--bg);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.875rem;
}

.comparison-table .highlight {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

/* ========== Links in content ========== */
main a:not(.btn):not(.whatsapp-link) {
  color: var(--primary);
}

main a:not(.btn):not(.whatsapp-link):hover {
  color: var(--primary-hover);
}

/* ========== Footer ========== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.5rem 2rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.footer-links {
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ========== Disclaimer block ========== */
.disclaimer-block {
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.disclaimer-block p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.disclaimer-block h2 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* ========== Content sections ========== */
.content-section {
  margin-bottom: 2rem;
}

.content-section h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.content-section p {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.content-section ul {
  margin: 0 0 1rem 1.25rem;
}

.content-section li {
  margin-bottom: 0.5rem;
}

/* ========== CTA buttons ========== */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cta-buttons .btn {
  flex-shrink: 0;
}

/* ========== Contact form ========== */
.contact-form {
  max-width: 32rem;
  margin-top: 1.5rem;
}

.contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
}

.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

/* ========== Hamburger button ========== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  margin-left: auto;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: var(--surface-hover);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== Nav overlay (mobile/tablet only) ========== */
@media (max-width: 992px) {
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
  }

  body.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open .site-header {
    z-index: 201;
  }

  body.nav-open .site-header nav {
    transform: translateX(0);
  }
}

/* ========== Responsive nav - sidebar for mobile/tablet ========== */
@media (max-width: 992px) {
  .nav-toggle {
    display: flex;
  }

  .site-header nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1rem 1.5rem;
    gap: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }


  .site-header nav a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 6px;
    margin-bottom: 0.25rem;
  }
}

@media (min-width: 993px) {
  .nav-overlay {
    display: none !important;
  }
}

/* ========== Utilities ========== */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.5rem; }
.text-muted { color: var(--text-muted); }
