/* =========================
   Nota Clara — portfolio.css
   ========================= */

/* 1) Fonts (Headings + Body) */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@300;400;500;600&display=swap");

/* 2) Variables */
:root {
  --nc-navy: #103c55;
  --nc-gold: #b7a02d;

  --nc-text: #0f2230;
  --nc-muted: rgba(15, 34, 48, 0.72);

  --nc-radius: 18px;
  --nc-shadow: 0 10px 30px rgba(16, 60, 85, 0.12);

  --nc-heading-font: "Playfair Display", Georgia, "Times New Roman", serif;
  --nc-body-font:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* 3) Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--nc-body-font);
  color: var(--nc-text);
  background: #ffffff;
  line-height: 1.6;
}

/* 4) Typography */
h1,
h2,
h3 {
  font-family: var(--nc-heading-font);
  color: var(--nc-navy);
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1rem;
}

/* 5) Links */
a {
  color: var(--nc-navy);
  text-decoration: none;
}

a:hover {
  color: var(--nc-gold);
  text-decoration: underline;
}

/* 6) Header */
header {
  background: #fff;
  border-bottom-color: rgba(16, 60, 85, 0.12);
}

/* Reduce default navbar vertical padding so tall logo doesn't feel "broken" */
header .navbar {
  padding-top: 0;
  padding-bottom: 0;
}

/* Brand container: keep clean alignment even with a larger logo */
.navbar-brand {
  text-decoration: none;
}

/* Logo */
.logo-img {
  height: 120px; /* was 140px — still big, but won't wreck navbar layout */
  width: auto;
  display: block;
}

/* --- Responsive logo swap (large vs small) --- */
/* Default: show the large logo, hide the small one */
.logo-img--small {
  display: none;
}

/* Header text */
header span {
  font-family: var(--nc-heading-font);
  color: var(--nc-navy);
  letter-spacing: 0.01em;
  margin-top: 0.2rem; /* subtle optical alignment */
}

/* --- Navbar styling --- */

/* Ensure navbar lists never show bullets (fixes mobile bullets) */
.navbar-nav {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

/* Nav links: keep Nota Clara palette + stop global underline */
.navbar .nav-link {
  color: var(--nc-text);
  font-weight: 500;
  text-decoration: none;
}

/* Hover/focus states (no underline) */
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--nc-gold);
  text-decoration: none;
}

/* Active link (if you add it later) */
.navbar .nav-link.active {
  color: var(--nc-navy);
  font-weight: 600;
}

/* --- Footer link styling --- */
footer nav a {
  color: var(--nc-text);
  text-decoration: none;
}

footer nav a:hover,
footer nav a:focus {
  color: var(--nc-gold);
  text-decoration: none;
}

footer nav a.active {
  font-weight: 600;
  color: var(--nc-navy);
  text-decoration: none;
}

/* Mobile toggler: visible + tidy */
.navbar-toggler {
  border: 1px solid rgba(16, 60, 85, 0.25);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Ensure icon has size even if navbar theme classes aren't used */
.navbar-toggler-icon {
  width: 1.5em;
  height: 1.5em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(16,60,85,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Optional: keep the collapsed menu feeling clean */
.navbar-collapse {
  padding-bottom: 0.25rem;
}

/* 7) Hero */
.hero {
  background: #fff;
}

.hero-card {
  max-width: 760px;
  background: linear-gradient(
    180deg,
    rgba(183, 160, 45, 0.08),
    rgba(16, 60, 85, 0.04)
  );
  border: 1px solid rgba(16, 60, 85, 0.12);
  border-radius: var(--nc-radius);
  box-shadow: var(--nc-shadow);
  padding: 2rem;
}

/* Layout helpers */
section {
  scroll-margin-top: 120px;
}

/* Work page: keep project card images consistent */
.card-img-top {
  height: 180px;
  object-fit: cover;
}

/* Button */
.btn-nc {
  background: var(--nc-navy);
  border: 1px solid var(--nc-navy);
  color: #fff;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
}

.btn-nc:hover {
  background: #0c2e42;
  border-color: #0c2e42;
  color: #fff;
  text-decoration: none;
}

/* 8) Main spacing */
main {
  padding-top: 0;
}

/* 9) Responsive tweaks */
@media (max-width: 576px) {
  /* Make the header/nav feel calmer on phones */
  header {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  /* Swap logos on phones */
  .logo-img--large {
    display: none;
  }

  .logo-img--small {
    display: block;
  }

  /* Smaller logo on phones */
  .logo-img {
    height: 44px; /* reduced from 64px */
  }

  header span {
    margin-top: 0.1rem;
  }

  /* Reduce brand text size on mobile so it doesn't crowd the toggler */
  .navbar-brand span {
    font-size: 1.1rem; /* overrides Bootstrap fs-4 on mobile */
    line-height: 1.1;
  }

  /* Leave room for the hamburger */
  .navbar-brand {
    max-width: calc(100% - 64px);
  }

  /* Prevent awkward wrapping */
  .navbar-brand span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Give the collapsed menu a bit of breathing room */
  .navbar-collapse {
    padding-top: 0.75rem;
  }

  .navbar-nav .nav-link {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  /* Navbar CTA: keep it separated from links (fixes overlap) */
  .navbar-nav .btn {
    display: inline-block;
    margin-top: 0.75rem;
  }

  /* Hero spacing */
  .hero-card {
    padding: 1.4rem;
  }

  /* Reduce visual weight of section images on mobile */
  section img {
    max-width: 88%;
    margin: 0 auto;
    display: block;
  }

  /* Add breathing room between image + text when stacked */
  section .row {
    row-gap: 1.5rem;
  }

  /* Slightly smaller rounding feels nicer on mobile */
  section img.rounded {
    border-radius: 12px;
  }

  /* Home page: align stacked sections more calmly on mobile */
  main > .row {
    justify-content: center;
  }

  main > .row > [class*="col-"] {
    max-width: 92%;
  }

  /* Home page topics: soften image-first spacing a touch */
  #topics img {
    margin-bottom: 0.5rem;
  }
}

/* Optional: hide brand text on tiny screens (uncomment if desired) */
/*
@media (max-width: 380px) {
  .navbar-brand span {
    display: none;
  }
}
*/
