:root {
  --header-h: 90px;
  --gold: #BD9869;
  --purple: #4A1C60;
  --font-serif: "Merriweather", serif;
  --font-sans: "Open Sans", sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: #000;
  width: 100%;
  overflow-x: hidden;
}

body {
  padding-top: var(--header-h);
}

.container {
  width: 98%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .container { width: 94%; padding: 0 20px; }
}

@media (max-width: 767px) {
  .container { width: 100%; padding: 0 15px; }
}

/* ==============================
   HEADER (no background here!)
============================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  background: #ffffff;
}

/* Container inside header */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}

/* ==============================
   LOGO
============================== */

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo {
  width: 406px;
  height: auto;
  max-height: 70px;
  object-fit: contain;
  display: block;
}

/* ==============================
   MOBILE MENU TOGGLE
============================== */

.nav-toggle {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000 !important;
}

/* ==============================
   SLIDE-IN MOBILE MENU
============================== */

.main-navigation {
  position: fixed;
  top: 0;
  right: 0;
  width: 365px;
  height: 0;
  background: #ffffff;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: height 0.4s ease-in-out, opacity 0.3s ease-in-out;
  z-index: 1200;
}

.main-navigation.is-open {
  height: 406px;
  opacity: 1;
  visibility: visible;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 100px 40px 50px 40px;
  text-align: left;
}

.nav-menu li { margin-bottom: 10px; }

.nav-menu a {
  display: block;
  padding: 10px 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-menu a:hover { color: var(--purple); }

@media (max-width: 1024px) {
  .site-logo { width: 280px; }
  .main-navigation { width: 100%; }
}

@media (max-width: 767px) {
  .site-logo { width: 220px; }
}

/* ==============================
   HAMBURGER + CLOSE X
============================== */

.hamburger { display: block; }
.close-x { display: none; }

body.nav-open .hamburger { display: none; }
body.nav-open .close-x { display: block; }

.close-x {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  font-size: 32px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  transition: color 0.4s ease, transform 0.8s cubic-bezier(0.25,1.6,0.45,1);
}

.nav-toggle:hover .close-x {
  color: var(--purple);
  transform: translate(-50%, -50%) scale(1.5);
}

.hamburger {
  position: relative;
  display: block;
  width: 34px;
  height: 20px;
}

.hamburger .middle-bar {
  display: block;
  width: 34px;
  height: 3px;
  background: var(--gold);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.hamburger::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 3px;
  background: var(--gold);
  transition: all 0.3s ease;
}

.hamburger::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 26px;
  height: 3px;
  background: var(--gold);
  transition: all 0.3s ease;
}

.nav-toggle:hover .hamburger::before,
.nav-toggle:hover .middle-bar,
.nav-toggle:hover .hamburger::after {
  background: var(--purple);
}

.nav-toggle:hover .hamburger::after { width: 32px; }

@media (min-width: 1025px) {
  .nav-toggle {
    position: fixed !important;
    top: 28px !important;
    right: 50px !important;
    transform: none !important;
  }
}

/* ==============================
   HOMEPAGE HEADER BEHAVIOUR
============================== *
/* FORCE HOMEPAGE TO BE TRANSPARENT UNTIL SCROLL */
body.home .site-header {
    background: transparent !important;
}

/* ON SCROLL */
body.home .site-header.scrolled {
    background: #ffffff !important;
}

/* Remove body top padding on homepage so hero sits behind header */
body.home {
  padding-top: 0 !important;
}


/* ============================================================
   FOOTER — CLEAN + FONT-SYNCED
============================================================ */

.site-footer {
    background: var(--purple);
    color: #fff;
    text-align: left;
    position: relative;
}

/* Wrapper */
.footer-inner {
    background: var(--purple);
    padding: 60px 0 40px;
}

.footer-inner .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* GRID */
.footer-grid {
    display: grid;
    grid-template-columns: 320px 480px 160px;
    column-gap: 80px;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 0;
}

/* LOGO */
.footer-logo {
    width: 240px;
    max-width: 100%;
    height: auto;
}

/* COLUMN SETTINGS */
.footer-logo-col,
.footer-text-col,
.footer-menu-col {
    padding-top: 22px;
}

/* ============================================================
   FONT SETTINGS — DESKTOP (16px)
============================================================ */

/* Title "Kuber Projects" in bold */
.footer-text .title {
    font-family: "Merriweather", serif;
    font-size: 16px;
    line-height: 22px;
    font-weight: 700;
    color: #BD9869;
    margin-bottom: 12px;
}

/* All footer paragraph text */
.footer-text p {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 12px;
}

/* Address second paragraph spacing */
.footer-text p:nth-of-type(2) {
    margin-bottom: 46px !important;
}

/* Footer links */
.footer-text a {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
}
.footer-text a:hover {
    text-decoration: underline;
}

/* ============================================================
   FOOTER MENU
============================================================ */

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

/* Bold nav items */
.footer-menu a {
    font-family: "Merriweather", serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
}
.footer-menu a:hover {
    color: #BD9869;
}

/* Bottom copyright */
.footer-bottom {
    grid-column: 2;
    text-align: left;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    padding: 60px 0 20px;
}

/* ============================================================
   RESPONSIVE — TABLET & MOBILE (14px)
============================================================ */

@media (max-width: 1024px) {

    .footer-grid {
        grid-template-columns: 1fr !important;
        row-gap: 40px;
        justify-items: center;
        text-align: center;
    }

    .footer-logo-col,
    .footer-text-col,
    .footer-menu-col {
        width: 100%;
        padding-top: 0;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto;
        max-width: 220px;
    }

    /* 14px across all text */
    .footer-text p,
    .footer-text a,
    .footer-bottom,
    .footer-menu a {
        font-size: 14px;
        line-height: 20px;
    }

    .footer-text .title {
        font-size: 14px;
        line-height: 20px;
    }

    .footer-menu li {
        margin: 12px 0;
    }

    .footer-bottom {
        grid-column: 1 !important;
        text-align: center;
        margin-top: 25px;
    }
}

@media (max-width: 767px) {

    .footer-grid {
        row-gap: 30px;
    }

    .footer-logo {
        max-width: 200px;
    }
}

/* Remove unused BG element */
.footer-top-bg {
    display: none !important;
}

/* ============================================
   FOOTER TYPOGRAPHY — GLOBAL SIZES
============================================ */

/* Desktop default: 16px */
.site-footer p,
.site-footer a,
.site-footer .footer-description,
.site-footer .footer-menu a,
.site-footer .title,
.footer-bottom {
    font-size: 16px !important;
    line-height: 22px !important;
}

/* Tablet & Mobile: 14px */
@media (max-width: 1024px) {
    .site-footer p,
    .site-footer a,
    .site-footer .footer-description,
    .site-footer .footer-menu a,
    .site-footer .title,
    .footer-bottom {
        font-size: 14px !important;
        line-height: 20px !important;
    }
}

/* Bold only “Kuber Projects” */
.site-footer .title strong {
    font-weight: 700 !important;
}

/* ============================================
   FOOTER TYPOGRAPHY — GLOBAL SIZES
============================================ */

/* Desktop default: 16px */
.site-footer p,
.site-footer a,
.site-footer .footer-description,
.site-footer .footer-menu a,
.site-footer .title,
.footer-bottom {
    font-size: 16px !important;
    line-height: 22px !important;
}

/* Tablet & Mobile: 14px + center alignment */
@media (max-width: 1024px) {

    .site-footer p,
    .site-footer a,
    .site-footer .footer-description,
    .site-footer .footer-menu a,
    .footer-bottom {
        font-size: 14px !important;
        line-height: 20px !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* “Kuber Projects” title styling */
.site-footer .title strong {
    font-family: "Merriweather", serif !important;
    font-weight: 700 !important;
    color: #BD9869 !important;
    text-align: left;
}

/* Center title only on tablet/mobile (optional) */
@media (max-width: 1024px) {
    .site-footer .title strong {
        text-align: center !important;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        text-align: center !important;
    }

    .nav-menu a {
        text-align: center !important;
        margin: 0 auto !important;
    }
}
