/* ============================================================
   SAI4RAI — Global Stylesheet
   Shared across every page. Do not duplicate these styles.
   ============================================================ */

/* --- Google Fonts ----------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Nunito+Sans:wght@300;400;600;700&display=swap');

/* --- Design Tokens (CSS Variables) ------------------------ */
:root {
  --cream:   #faf7f2;
  --saffron: #c8771a;
  --teal:    #1a5f6e;
  --ink:     #1a1410;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Nunito Sans', Arial, sans-serif;

  --max-width: 1100px;
  --nav-height: 70px;
}

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--saffron);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--ink);
}

/* --- Navigation ------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--cream);
  border-bottom: 2px solid var(--saffron);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--saffron);
}

.nav-logo:hover {
  color: var(--teal);
  opacity: 0.85;
}

/* Desktop links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--saffron);
}

/* CTA button in nav */
.nav-links .nav-cta {
  background-color: var(--saffron);
  color: var(--cream) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.nav-links .nav-cta:hover {
  background-color: var(--teal);
  color: var(--cream) !important;
}

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger → X animation when open */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Mobile Navigation ------------------------------------ */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: var(--cream);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    padding: 1.5rem 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-top: 1px solid rgba(200, 119, 26, 0.2);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(26, 20, 16, 0.08);
  }

  .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
  }

  .nav-links .nav-cta {
    margin-top: 1rem;
    display: inline-block;
    padding: 0.6rem 1.3rem;
  }
}

/* --- Footer ----------------------------------------------- */
.site-footer {
  background-color: var(--ink);
  color: var(--cream);
  padding: 3.5rem 1.5rem 2rem;
  margin-top: 5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand .footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--cream);
  font-weight: 700;
}

.footer-brand .footer-logo span {
  color: var(--saffron);
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.5rem;
}

.footer-links a {
  color: rgba(250, 247, 242, 0.75);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.footer-contact p {
  font-size: 0.95rem;
  opacity: 0.75;
  line-height: 1.8;
}

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

.footer-contact a:hover {
  opacity: 0.8;
}

/* Footer bottom bar */
.footer-bottom {
  max-width: var(--max-width);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 247, 242, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  opacity: 0.55;
}

/* --- Footer Mobile ---------------------------------------- */
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* --- Utility Classes -------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 1.5rem;
}

.section-sm {
  padding: 3rem 1.5rem;
}

.text-center {
  text-align: center;
}

.text-saffron {
  color: var(--saffron);
}

.text-teal {
  color: var(--teal);
}
