/* ============================================================
   ANA — AJAY NIRMAL ARCHITECTS
   Swiss Design / Bento Grid Architecture Theme
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800;900&family=Questrial&family=Jost:wght@300;400;500;600;700&display=swap");

/* ---- RESET ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: "Questrial", "Inter", sans-serif;
  background: var(--white);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-top: 80px; /* Default for inner pages (nav--solid is 80px tall) */
}

body.home {
  padding-top: 0; /* Home page transparent header overlays hero */
}

@media (max-width: 768px) {
  body {
    padding-top: 68px; /* Mobile inner pages */
  }
  body.home {
    padding-top: 0; /* Mobile home page */
  }
}

/* Force global premium Swiss typography, overriding third-party resets */
body,
body p,
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body a,
body span,
body li,
body input,
body textarea,
body button {
  font-family: "Questrial", "Inter", sans-serif !important;
}

/* Remove all italics globally as per request */
* {
  font-style: normal !important;
}
img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  font-family: inherit;
}

/* ---- VARIABLES ---- */
:root {
  --white: #ffffff; /* Pure White for main background */
  --off-white: #ffffff;
  --light-bg: #ffffff;
  --border: rgba(51, 51, 51, 0.15);
  --border-light: rgba(51, 51, 51, 0.08);
  --text-primary: #333333; /* Deep Charcoal */
  --text-secondary: #333333;
  --text-light: #777777;
  --dark-bg: #ffffff;
  --dark-card: #ffffff;

  --brand-red: #cb0000; /* vibrant swiss red */
  --brand-blue: #4a6da7; /* deep soft blue */
  --brand-yellow: #f4c430; /* lively yellow */
  --brand-green: #47b39d; /* Mint Green from poster */
  --brand-beige: #e5d9c4; /* Warm Beige from poster */

  --serif: "Questrial", "Inter", sans-serif;
  --sans: "Questrial", "Inter", sans-serif;
  --nav-h: 70px;
  --ease: linear;
  --ease-out: linear;
  --max-w: 1440px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
main {
  width: 100%;
  display: block;
}

.subpage {
  padding-top: 0;
}



.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

/* ============================================================
   FLOATING GEOMETRY UTILITIES
   ============================================================ */
.geom-bg-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.geom-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.8;
  filter: blur(2px);
  mix-blend-mode: multiply;
}
.geom-circle-red {
  background: var(--brand-red);
}
.geom-circle-blue {
  background: var(--brand-blue);
}
.geom-circle-yellow {
  background: var(--brand-yellow);
}
.geom-circle-green {
  background: var(--brand-green);
}
.geom-circle-beige {
  background: var(--brand-beige);
}
.geom-circle-light {
  background: var(--light-bg);
}

/* Glassmorphism Class */
.glass-effect {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 {
  font-size: 53px;
}
h2 {
  font-size: 40px;
}
h3 {
  font-size: 35px;
  line-height: 1.6;
}
p {
  font-size: 20px;
}

.section-label,
.label {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--brand-red);
  display: block;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--sans);
  font-size: 53px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-align: left;
}
/* Force left alignment universally on big typography */
.center-text {
  text-align: left !important;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: auto;
  background: transparent;
  display: flex;
  align-items: center;
  padding: 32px 64px;
  justify-content: space-between;
  transition:
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    background 0.4s ease,
    padding 0.4s ease;
  border-bottom: none;
}

.nav--solid {
  background: var(--white) !important; /* Clean Solid White Background */
  backdrop-filter: none;
  border-bottom: 1px solid var(--border);
  padding: 18px 64px;
}

.nav--hidden {
  transform: translateY(-100%);
}

.nav--visible {
  transform: translateY(0);
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.nav-logo-brand {
  max-height: 52px !important;
  width: auto;
  display: block;
  transition: max-height 0.4s ease;
}

.nav--solid .nav-logo-brand {
  max-height: 44px !important;
}

.nav-logo-text {
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.05em;
  transition: color 0.3s ease;
}
.nav--solid .nav-logo-text {
  color: var(--text-primary);
}
.nav-cta:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

/* Nav links container */
.nav-right-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 48px; /* Elegant wide gap from screenshot */
  padding-bottom: 12px; /* Breathing room exactly like screenshot */
}

.nav-line {
  width: 100%;
  height: 1px; /* Super thin, elegant horizontal line */
  background-color: rgba(255, 255, 255, 0.35);
  transition: background-color 0.3s ease;
}

.nav--solid .nav-line {
  background-color: var(--border);
}
.nav-links a {
  font-size: 0.8rem; /* Small, minimal link text */
  font-weight: 400; /* Regular Questrial font weight */
  letter-spacing: 0.15em; /* Loose elegant tracking */
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  white-space: nowrap;
}
.nav--solid .nav-links a {
  color: var(--text-primary); /* Links turn black when scrolled */
}

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

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

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  background: none;
  border: none;
  margin-left: 24px;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .nav-hamburger {
    display: flex;
  }
}

.nav-hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--white);
  transition: all 0.3s ease;
}
.nav--solid .nav-hamburger span {
  background: var(--text-primary);
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 48px;
  transform: translateX(100%);
  transition: transform 0.2s var(--ease-out);
  border-left: 4px solid var(--border);
}
.mobile-nav.open {
  transform: translateX(0);
}
.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 40px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 900;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-nav-links a {
  font-family: var(--sans);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  transition: all 0.05s;
}
.mobile-nav-links a:hover {
  color: var(--brand-red);
  padding-left: 20px;
}
.mobile-nav-info {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 2px solid var(--border);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 2;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 20px 48px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-dark {
  background: transparent;
  color: var(--text-primary, #111);
  border-color: var(--text-primary, #111);
}
.btn-dark:hover {
  background: var(--brand-red, #cb0000);
  border-color: var(--brand-red, #cb0000);
  color: var(--white, #fff);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.2);
}

.btn-primary {
  background: transparent;
  color: var(--brand-red, #cb0000);
  border-color: var(--brand-red, #cb0000);
}
.btn-primary:hover {
  background: var(--brand-red, #cb0000);
  border-color: var(--brand-red, #cb0000);
  color: var(--white, #fff);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.2);
}

.btn-outline,
.btn-outline-dark {
  background: transparent;
  color: var(--brand-red, #cb0000);
  border-color: var(--brand-red, #cb0000);
}
.btn-outline:hover,
.btn-outline-dark:hover {
  background: var(--brand-red, #cb0000);
  color: var(--white, #fff);
  border-color: var(--brand-red, #cb0000);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.2);
}

.btn-gold {
  background: transparent;
  color: var(--brand-red, #cb0000);
  border-color: var(--brand-red, #cb0000);
}
.btn-gold:hover {
  background: var(--brand-red, #cb0000);
  color: var(--white, #fff);
  border-color: var(--brand-red, #cb0000);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.2);
}

.btn-outline-white,
.btn-ghost-white {
  background: transparent;
  color: var(--white, #fff);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline-white:hover,
.btn-ghost-white:hover {
  background: var(--white, #fff);
  color: var(--text-primary, #111);
  border-color: var(--white, #fff);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}
.btn-arrow::after {
  content: "→";
  font-style: normal;
  transition: none;
  font-weight: 900;
}
.btn-arrow:hover::after {
  color: inherit;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--white);
  border-top: 2px solid var(--border);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.footer-graphic {
  position: absolute;
  bottom: 0;
  right: 0;
  width: clamp(350px, 35vw, 750px);
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
  z-index: 0;
}
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 80px;
}
.f-brand-name {
  font-family: var(--sans);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
  text-transform: uppercase;
}
.f-brand-sub {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-top: 8px;
  margin-bottom: 24px;
}
.f-tagline {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary);
  max-width: 320px;
}
.f-col-title {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.f-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.f-links li {
  margin-bottom: 12px;
}
.f-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.f-links a:hover {
  color: var(--brand-red);
}

.f-contact-item {
  margin-bottom: 16px;
}
.f-contact-lbl {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.f-contact-val {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary);
}
.f-contact-val a {
  color: var(--text-primary);
  transition: all 0.05s;
}
.f-contact-val a:hover {
  color: var(--brand-red);
}

.f-social {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
.f-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.05s;
}
.f-social a:hover {
  color: var(--brand-red);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 60px;
}
.footer-bottom-line {
  grid-column: 1 / 4;
  border-top: 2px solid var(--border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-right: 80px;
}
.f-copy {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
}
.f-bottom-links {
  display: flex;
  gap: 32px;
}
.f-bottom-links a {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  transition: all 0.05s;
}
.f-bottom-links a:hover {
  color: var(--brand-red);
}

/* ============================================================
   SCROLL ANIMATIONS (Snappy and instant instead of smooth fading)
   ============================================================ */
.fade-up {
  opacity: 1;
  transform: none; /* Disabled smooth panning to favor brutalism */
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .studio-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .studio-desc {
    max-width: 100% !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .team-inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .projects-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .posts-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .process-steps {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .process-step {
    padding: 40px !important;
    border-bottom: 2px solid var(--border);
    border-right: none !important;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .stat-item {
    border-right: none !important;
    border-bottom: 2px solid var(--border);
  }
  .projects-page-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .blog-page-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .subpage {
    padding-top: 0;
  }
  h1 { font-size: 36px; }
  h2 { font-size: 32px; }
  h3 { font-size: 28px; }
  p { font-size: 16px; }

  .nav {
    padding: 0 16px;
    height: 64px;
  }
  .nav--solid {
    padding: 12px 16px;
  }
  .nav.scrolled {
    height: 60px;
    padding: 0 20px;
  }
  .nav-right-container {
    display: none;
  }
  .nav-logo-text {
    display: none;
  }
  .nav-links {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .nav-logo-brand {
    max-height: 40px !important;
    max-width: 180px !important;
  }
  .nav-hamburger {
    margin-left: 12px;
  }
  .nav-hamburger span {
    width: 24px;
    height: 2px;
  }

  .mobile-nav {
    padding: 60px 24px;
  }
  .mobile-nav-close {
    top: 16px;
    right: 20px;
    font-size: 2rem;
  }
  .mobile-nav-links a {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
  .mobile-nav-info {
    margin-top: 40px;
    font-size: 0.85rem;
    line-height: 2;
  }

  .section-label,
  .label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
  }
  .section-title {
    font-size: 36px;
  }

  .btn {
    padding: 16px 32px;
    font-size: 1rem;
    gap: 8px;
  }
  .btn-capsule-red, .btn-capsule-white {
    padding: 16px 32px;
    font-size: 1rem;
  }

  .footer {
    padding: 48px 0 130px; /* Reduced bottom padding for graphic */
  }
  .footer-graphic {
    width: 250px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
  }
  .f-brand-name {
    font-size: 2.5rem;
  }
  .f-tagline {
    font-size: 0.85rem;
  }
  .f-col-title {
    font-size: 0.8rem;
    margin-bottom: 16px;
  }
  .f-links a {
    font-size: 0.85rem;
  }
  .f-contact-val {
    font-size: 0.85rem;
  }
  .footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .footer-bottom-line {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    padding-top: 24px;
    margin-right: 0;
  }
  .f-copy {
    font-size: 0.7rem;
  }
  .f-bottom-links {
    position: relative;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    gap: 20px;
    display: flex;
    flex-wrap: wrap;
    margin-right: 0;
  }
  .f-bottom-links a {
    font-size: 0.7rem;
  }
  .f-social {
    gap: 12px;
    margin-top: 16px;
  }
  .f-social a {
    font-size: 0.8rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0 20px 32px;
  }
  .projects-row,
  .posts-row,
  .projects-page-grid,
  .blog-page-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .nav {
    padding: 0 12px;
  }
  .nav-logo-brand {
    max-height: 35px !important;
    max-width: 150px !important;
  }
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 24px; }
  p { font-size: 15px; }
  
  .mobile-nav-links a {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }
  .mobile-nav-info {
    font-size: 0.8rem;
  }
  .section-title {
    font-size: 32px;
  }
  .btn {
    padding: 14px 28px;
    font-size: 0.95rem;
  }
  .f-brand-name {
    font-size: 2rem;
  }
  .footer-logo {
    max-width: 200px !important;
  }
}

/* ============================================================
   LOADING ANIMATION
   ============================================================ */
.loading-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-logo {
  font-family: "Questrial", "Inter", sans-serif !important;
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  text-transform: uppercase;
  animation: pulse-architectural 2s infinite ease-in-out;
  position: relative;
}

.loader-logo::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  animation: draw-line 2s infinite ease-in-out;
}

@keyframes pulse-architectural {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.98);
    letter-spacing: -0.05em;
  }
  50% {
    opacity: 1;
    transform: scale(1);
    letter-spacing: 0.05em;
  }
}

@keyframes draw-line {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }
  45%,
  55% {
    transform: scaleX(1);
    transform-origin: left;
  }
  50% {
    transform-origin: right;
  }
  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

.loader-text {
  margin-top: 24px;
  font-family: "Questrial", "Inter", sans-serif !important;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-light);
  animation: fade-pulse 2s infinite;
}

@keyframes fade-pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
