/* =========================================================================
   Grawity — shared styles for every page (index, products, about, contact).

   This file holds what the whole site has in common: the palette, the base
   typography, the navbar, the section primitives, the buttons and the footer.
   Anything used by a single page stays in that page's own <style> block.
   ========================================================================= */


/* =========================
   RESET
========================== */

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


/* =========================
   VARIABLES
========================== */

:root {

  --bg: #080b11;
  --surface: #101620;
  --surface-soft: #0d121a;

  --border: rgba(255,255,255,.09);
  --border-hover: rgba(255,255,255,.17);

  --text: #f3f0e8;
  --text-soft: #b9bec8;
  --text-muted: #737b88;

  --accent: #d5a451;
  --accent-soft: rgba(213,164,81,.10);

  --green: #63b17c;

  --max-width: 1080px;
}


/* =========================
   BASE
========================== */

html {
  scroll-behavior: smooth;
}

body {

  min-height: 100vh;

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(213,164,81,.08),
      transparent 36%
    ),
    var(--bg);

  color: var(--text);

  font-family:
    "DM Sans",
    sans-serif;

  line-height: 1.6;

  opacity: 0;

  animation:
    pageIn .5s ease forwards;
}

@keyframes pageIn {
  to {
    opacity: 1;
  }
}

::selection {
  background: var(--accent);
  color: #080b11;
}

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

img {
  display: block;
  max-width: 100%;
}

.display {
  font-family: "Fraunces", serif;
}

.mono {
  font-family: "JetBrains Mono", monospace;
}


/* =========================
   NAVBAR
========================== */

header {

  position: sticky;
  top: 0;
  z-index: 100;

  background:
    rgba(8,11,17,.82);

  backdrop-filter:
    blur(18px);

  -webkit-backdrop-filter:
    blur(18px);

  border-bottom:
    1px solid var(--border);
}

.nav {

  max-width: var(--max-width);
  min-height: 72px;

  margin: auto;
  padding: 0 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {

  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-logo {

  width: 36px;
  height: 36px;

  object-fit: contain;
}

.brand-name {

  font-family:
    "Fraunces",
    serif;

  font-size: 22px;
  font-weight: 600;

  letter-spacing: -.4px;
}

.nav-links {

  display: flex;
  align-items: center;

  gap: 25px;
}

.nav-links a {

  color: var(--text-soft);

  font-size: 13px;

  transition:
    color .2s ease;
}

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

/* The page you're on, so the navbar says where you are. */
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-contact {

  padding: 9px 15px;

  border:
    1px solid var(--border-hover);

  border-radius: 8px;

  color: var(--text) !important;
}

.nav-contact:hover {

  background: var(--text);

  color: var(--bg) !important;
}


/* =========================
   MAIN
========================== */

main {

  max-width: var(--max-width);

  margin: auto;

  padding: 0 24px;
}

section {

  border-bottom:
    1px solid var(--border);
}


/* =========================
   SECTIONS
========================== */

.section {
  padding: 95px 0;
}

.section-label {

  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: var(--accent);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 10px;
  font-weight: 600;

  letter-spacing: .1em;
  text-transform: uppercase;

  margin-bottom: 18px;
}

.section-label::before {

  content: "";

  width: 18px;
  height: 1px;

  background:
    var(--accent);
}

.section-title {

  max-width: 720px;

  font-family:
    "Fraunces",
    serif;

  font-size:
    clamp(34px,5vw,50px);

  line-height: 1.12;

  font-weight: 600;

  letter-spacing: -.6px;
}

.section-description {

  max-width: 650px;

  margin-top: 18px;

  color: var(--text-soft);

  font-size: 16px;

  line-height: 1.75;
}


/* =========================
   BUTTONS
========================== */

.button {

  padding: 12px 20px;

  border-radius: 9px;

  font-size: 13px;
  font-weight: 600;

  transition:
    all .2s ease;
}

.button-primary {

  background: var(--text);

  color: var(--bg);
}

.button-primary:hover {

  transform:
    translateY(-2px);

  background: #fff;
}

.button-secondary {

  border:
    1px solid var(--border-hover);

  color: var(--text-soft);
}

.button-secondary:hover {

  color: var(--text);

  border-color:
    rgba(255,255,255,.3);
}


/* =========================
   FOOTER
========================== */

footer {

  max-width: var(--max-width);

  margin: auto;

  padding:
    55px 24px 30px;
}

.footer-top {

  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 40px;

  padding-bottom: 45px;
}

.footer-brand {

  display: flex;

  align-items: center;

  gap: 11px;
}

.footer-logo {

  width: 38px;
  height: 38px;

  object-fit: contain;
}

.footer-brand-name {

  font-family:
    "Fraunces",
    serif;

  font-size: 24px;

  font-weight: 600;
}

.footer-description {

  max-width: 370px;

  margin-top: 13px;

  color: var(--text-muted);

  font-size: 13px;

  line-height: 1.75;
}

/* Two labelled columns — the company's own pages, and the products. */
.footer-nav {

  display: flex;

  gap: 60px;
}

.footer-column {

  display: flex;

  flex-direction: column;

  gap: 11px;

  color: var(--text-soft);

  font-size: 13px;
}

.footer-column-title {

  color: var(--text-muted);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 10px;
  font-weight: 600;

  letter-spacing: .09em;
  text-transform: uppercase;

  margin-bottom: 3px;
}

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

.footer-bottom {

  padding-top: 22px;

  border-top:
    1px solid var(--border);

  display: flex;

  justify-content: space-between;

  gap: 15px;

  color: var(--text-muted);

  font-size: 11px;
}

.footer-contact {

  display: flex;

  gap: 20px;
}

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


/* =========================
   RESPONSIVE
========================== */

@media (max-width: 760px) {

  .nav {
    min-height: 65px;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 12.5px;
  }

  .nav-contact {
    padding: 8px 13px;
  }

  .section {
    padding: 75px 0;
  }

  .footer-top {

    flex-direction: column;

    gap: 30px;
  }

  .footer-nav {
    gap: 45px;
  }

  .footer-bottom {

    flex-direction: column;

    gap: 15px;
  }

  .footer-contact {
    flex-wrap: wrap;
  }
}


@media (max-width: 480px) {

  main {
    padding: 0 18px;
  }

  .nav {
    padding: 0 18px;
  }

  .brand-name {
    font-size: 20px;
  }

  /* Narrow phones: the brand keeps the first row, the links wrap onto the second —
     every page stays reachable instead of the links being hidden. */
  .nav {

    flex-wrap: wrap;

    justify-content: center;

    gap: 4px 14px;

    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-links {

    width: 100%;

    justify-content: center;

    gap: 16px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .nav-contact {
    padding: 7px 12px;
  }

  footer {
    padding-left: 18px;
    padding-right: 18px;
  }
}
