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

@import url('./variables.css');


*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Reserve scrollbar space so pages don't shift on content changes
     (e.g. when a long section lazy-paints in). */
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: #2A3A8C;
  background: #f1f3f5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif {
  font-family: var(--font-serif);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* ── Section-level rendering hints ──
   content-visibility: auto skips rendering for off-screen sections,
   which is the single biggest win for long pages on scroll. The
   contain-intrinsic-size keeps the scrollbar stable.

   1px 800px is enough for a normal-density section, but very tall
   sections (hero with calc(100vh - 72px), contact-hero with
   height: 45vh) need a larger intrinsic on large screens so the
   browser doesn't recompute scrollbar length mid-scroll. */
main > section,
main > .container > section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

@media (min-width: 2560px) {
  main > section,
  main > .container > section {
    contain-intrinsic-size: 1px 1400px;
  }
}

@media (min-width: 3840px) {
  main > section,
  main > .container > section {
    contain-intrinsic-size: 1px 2000px;
  }
}

/* Reduce motion safety net for the compositor hints above. */
@media (prefers-reduced-motion: reduce) {
  body { transform: none; }
  main > section,
  main > .container > section { content-visibility: visible; }
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.1;
  color: #2A3A8C;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* ============================================
   UTILITIES
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 1920px) {
  .container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 2560px) {
  .container {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   BORDERS
   ============================================ */

.border {
  border: 1px solid #E48A24;
}

.border-t {
  border-top: 1px solid #E48A24;
}

.border-b {
  border-bottom: 1px solid #E48A24;
}

.border-l {
  border-left: 1px solid #E48A24;
}

.border-r {
  border-right: 1px solid #E48A24;
}

.divide-y > * + * {
  border-top: 1px solid #E48A24;
}

.divide-x > * + * {
  border-left: 1px solid #E48A24;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #E48A24;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2A3A8C;
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
  background: rgba(228, 138, 36, 0.15);
  color: #2A3A8C;
}

/* ============================================
   GRAIN TEXTURE OVERLAY
   ============================================ */

.grain-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ============================================
   ANIMATION UTILITIES
   ============================================ */

.transition-all {
  transition: all 0.3s ease;
}

.transition-colors {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.transition-transform {
  transition: transform 0.3s ease;
}

.transition-opacity {
  transition: opacity 0.3s ease;
}

.transition-shadow {
  transition: box-shadow 0.3s ease;
}

/* ============================================
   FOCUS STATES
   ============================================ */

:focus-visible {
  outline: 2px solid #E48A24;
  outline-offset: 2px;
}

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

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ============================================
   FLEXBOX UTILITIES
   ============================================ */

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

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

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* ============================================
   SPACING UTILITIES
   ============================================ */

.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.pt-16 { padding-top: 4rem; }
.pt-24 { padding-top: 6rem; }
.pt-\[72px\] { padding-top: 72px; }
.pt-\[100px\] { padding-top: 100px; }
.pt-\[110px\] { padding-top: 60px; }
.pb-8 { padding-bottom: 2rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-24 { padding-bottom: 6rem; }

.m-0 { margin: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-auto { margin-top: auto; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

@media (min-width: 768px) {
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .md\:py-36 { padding-top: 9rem; padding-bottom: 9rem; }
  .md\:pt-\[88px\] { padding-top: 88px; }
}

/* ============================================
   WIDTH & HEIGHT
   ============================================ */

.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }
.min-h-\[320px\] { min-height: 320px; }

.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }

/* ============================================
   POSITION
   ============================================ */

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 { inset: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; }
.z-\[100\] { z-index: 100; }

/* ============================================
   DISPLAY
   ============================================ */

.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-flex { display: inline-flex; }

@media (min-width: 640px) {
  .sm\:flex { display: flex; }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:hidden { display: none; }
  .sm\:block { display: block; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:block { display: block; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================
   TEXT
   ============================================ */

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

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }

@media (min-width: 768px) {
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; }
}

.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }

.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-\[1\.85\] { line-height: 1.85; }

/* ============================================
   COLORS
   ============================================ */

.text-foreground { color: #2A3A8C; }
.text-primary { color: #E48A24; }
.text-muted-foreground { color: #2A3A8C; opacity: 0.7; }
.text-white { color: #FFFFFF; }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }

.bg-background { background-color: #f1f3f5; }
.bg-card { background-color: #f1f3f5; }
.bg-primary { background-color: #E48A24; }
.bg-primary\/5 { background-color: rgba(228, 138, 36, 0.05); }
.bg-primary\/10 { background-color: rgba(228, 138, 36, 0.1); }
.bg-foreground { background-color: #2A3A8C; }
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }
.bg-black\/65 { background-color: rgba(0, 0, 0, 0.65); }
.bg-black\/95 { background-color: rgba(0, 0, 0, 0.95); }

.bg-card\/40 { background-color: rgba(241, 243, 245, 0.4); }
.bg-background\/80 { background-color: rgba(241, 243, 245, 0.8); }
.bg-background\/98 { background-color: rgba(241, 243, 245, 0.98); }

/* ============================================
   BACKDROP
   ============================================ */

.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); }

/* ============================================
   OVERFLOW
   ============================================ */

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-y-auto { overflow-y: auto; }

/* ============================================
   CURSOR
   ============================================ */

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* ============================================
   OPACITY
   ============================================ */

.opacity-0 { opacity: 0; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-100 { opacity: 1; }

/* ============================================
   SIZING UTILITIES
   ============================================ */

.h-\[72px\] { height: 72px; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.w-11 { width: 2.75rem; }
.h-11 { height: 2.75rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }

.rounded-sm { border-radius: var(--radius); }
.rounded-full { border-radius: 9999px; }

/* ============================================
   INTERACTIVE STATES
   ============================================ */

.hover\:translate-y-0 { transform: translateY(0); }
.hover\:border-primary\/40:hover { border-color: rgba(228, 138, 36, 0.4); }
.hover\:border-primary:hover { border-color: #E48A24; }
.hover\:text-primary:hover { color: #E48A24; }
.hover\:text-foreground:hover { color: #2A3A8C; }
.hover\:text-white:hover { color: #FFFFFF; }
.hover\:shadow-lg:hover { box-shadow: var(--shadow-lg); }
.hover\:shadow-xl:hover { box-shadow: var(--shadow-xl); }
.hover\:shadow-md:hover { box-shadow: var(--shadow-md); }
.hover\:bg-primary:hover { background-color: #E48A24; }
.hover\:bg-primary\/90:hover { background-color: rgba(228, 138, 36, 0.9); }
.hover\:bg-muted:hover { background-color: #E48A24; }
.hover\:scale-1\.03:hover { transform: scale(1.03); }
.hover\:scale-\[1\.05\]:hover { transform: scale(1.05); }
.hover\:scale-\[1\.06\]:hover { transform: scale(1.06); }

.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:translate-x-0 { transform: translateX(0); }
.group:hover .group-hover\:gap-3 { gap: 0.75rem; }
.group:hover .group-hover\:text-primary { color: #E48A24; }
.hover\:bg-card\/50:hover { background-color: rgba(241, 243, 245, 0.5); }

.hover\:scale-1\.02:hover { transform: scale(1.02); }
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }

.active\:translate-y-0:active { transform: translateY(0); }

/* ============================================
   DISABLED STATE
   ============================================ */

.disabled\:opacity-40:disabled { opacity: 0.4; }
.disabled\:opacity-60:disabled { opacity: 0.6; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

/* ============================================
   GLOW EFFECTS
   ============================================ */

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

/* ============================================
   OBJECT FIT
   ============================================ */

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* ============================================
   GRADIENTS
   ============================================ */

.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

/* ============================================
   COL SPAN
   ============================================ */

.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }

@media (min-width: 768px) {
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:row-span-2 { grid-row: span 2 / span 2; }
}

/* ============================================
   GRID GAP
   ============================================ */

.gap-1\.5 { gap: 0.375rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.gap-24 { gap: 6rem; }

@media (min-width: 768px) {
  .md\:gap-8 { gap: 2rem; }
  .md\:gap-24 { gap: 6rem; }
}

@media (min-width: 1024px) {
  .lg\:gap-8 { gap: 2rem; }
  .lg\:gap-24 { gap: 6rem; }
}

/* ============================================
   SPACE BETWEEN
   ============================================ */

.space-y-0 > * + * { gap: 0; }
.space-y-3 > * + * { gap: 0.75rem; }
.space-y-4 > * + * { gap: 1rem; }
.space-y-6 > * + * { gap: 1.5rem; }
.space-y-8 > * + * { gap: 2rem; }
