/* ==========================================================================
   Campetti Architects - Under Construction Landing Page
   Fluid Design System & Architectural Aesthetic
   ========================================================================== */

:root {
  /* Brand Typography */
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Architectural Grayscale Palette */
  --color-primary: #2b2e30;         /* Deep architectural slate charcoal */
  --color-primary-dark: #191b1c;    /* High contrast dark */
  --color-secondary: #4a4e52;       /* Medium body neutral */
  --color-tertiary: #71767b;        /* Subdued metadata neutral */
  --color-hairline: rgba(43, 46, 48, 0.18);
  --color-hairline-subtle: rgba(43, 46, 48, 0.08);
  --color-card-bg: rgba(255, 255, 255, 0.45);
  --color-card-border: rgba(255, 255, 255, 0.65);
  --color-pill-bg: rgba(255, 255, 255, 0.75);
  --color-pill-hover: rgba(255, 255, 255, 0.95);
  
  /* Fluid Sizing via clamp() formulas */
  --header-clamp: clamp(1.15rem, 1.8vw + 0.6rem, 1.95rem);
  --subtext-clamp: clamp(0.92rem, 0.6vw + 0.75rem, 1.15rem);
  --domain-clamp: clamp(0.85rem, 0.4vw + 0.72rem, 1.05rem);
  --section-padding-v: clamp(2rem, 5vh, 4.5rem);
  --section-padding-h: clamp(1.25rem, 4vw, 3rem);
}

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

html, body {
  min-height: 100%;
  width: 100%;
}

body {
  font-family: var(--font-secondary);
  color: var(--color-secondary);
  background-color: #dedfde;
  background-image: 
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.4) 0%, rgba(220, 222, 222, 0.2) 100%),
    url('assets/concrete_bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Concrete texture blend overlay for richness */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.5) 0%, rgba(230, 232, 232, 0.6) 80%),
    repeating-linear-gradient(0deg, transparent, transparent 40px, var(--color-hairline-subtle) 40px, var(--color-hairline-subtle) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, var(--color-hairline-subtle) 40px, var(--color-hairline-subtle) 41px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}

/* ==========================================================================
   Architectural Perimeter Frame & Registration Marks
   ========================================================================== */
.arch-frame {
  position: fixed;
  inset: clamp(14px, 2.5vw, 28px);
  pointer-events: none;
  z-index: 2;
  border: 1px solid var(--color-hairline-subtle);
}

.corner {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--color-tertiary);
  opacity: 0.75;
  user-select: none;
}

.corner-cross {
  display: inline-block;
  width: 9px;
  height: 9px;
  position: relative;
}

.corner-cross::before,
.corner-cross::after {
  content: "";
  position: absolute;
  background: var(--color-primary);
  opacity: 0.45;
}

.corner-cross::before {
  top: 4px;
  left: 0;
  width: 9px;
  height: 1px;
}

.corner-cross::after {
  left: 4px;
  top: 0;
  width: 1px;
  height: 9px;
}

.corner-tl { top: -5px; left: -5px; }
.corner-tr { top: -5px; right: -5px; flex-direction: row-reverse; }
.corner-bl { bottom: -5px; left: -5px; }
.corner-br { bottom: -5px; right: -5px; flex-direction: row-reverse; }

/* Responsive hiding of fine corner metadata on small screens */
@media (max-width: 680px) {
  .arch-frame {
    inset: 10px;
  }
  .corner-tag {
    display: none;
  }
}

/* ==========================================================================
   Main Layout Container
   ========================================================================== */
.page-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1180px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-padding-v) var(--section-padding-h);
}

.card-wrapper {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeInDown 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Brand Logo Section
   ========================================================================== */
.brand-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: clamp(1.8rem, 3.5vh, 2.8rem);
}

.brand-link {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.brand-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: clamp(260px, 42vw, 460px);
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.04));
  transition: filter 0.3s ease;
}

/* ==========================================================================
   Architectural Illustration Section
   ========================================================================== */
.illustration-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: clamp(2rem, 4vh, 3.2rem);
}

.illustration-canvas {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: clamp(280px, 48vw, 440px);
}

.illustration-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: contrast(1.05) brightness(0.98);
  transition: transform 0.4s ease;
}

.illustration-canvas:hover .illustration-img {
  transform: scale(1.015);
}

/* Architectural Datum Baseline */
.ground-datum {
  width: 120%;
  max-width: 580px;
  height: 1px;
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    var(--color-hairline) 20%, 
    var(--color-primary) 50%, 
    var(--color-hairline) 80%, 
    transparent 100%
  );
  margin-top: -1px;
  position: relative;
}

.ground-datum::before,
.ground-datum::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-tertiary);
  opacity: 0.5;
}

.ground-datum::before { left: 15%; }
.ground-datum::after { right: 15%; }

/* ==========================================================================
   Content & Status Section
   ========================================================================== */
.content-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 1.5vh, 1.15rem);
  width: 100%;
}

.main-headline {
  font-family: var(--font-primary);
  font-size: var(--header-clamp);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.25;
  color: var(--color-primary);
  text-transform: uppercase;
  max-width: 820px;
  margin: 0;
  padding: 0 10px;
}

.sub-headline {
  font-family: var(--font-secondary);
  font-size: var(--subtext-clamp);
  font-weight: 400;
  color: var(--color-secondary);
  line-height: 1.5;
  max-width: 600px;
  margin: 0;
}

/* ==========================================================================
   Action Bar & Links
   ========================================================================== */
.action-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  margin-top: clamp(0.8rem, 1.6vh, 1.4rem);
}

.domain-link {
  font-family: var(--font-secondary);
  font-size: var(--domain-clamp);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-tertiary);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.25s ease;
}

.domain-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.domain-link:hover {
  color: var(--color-primary-dark);
}

.domain-link:hover::after {
  transform: scaleX(1);
}

/* Contact Pill Bar */
.contact-pill-container {
  display: inline-flex;
  align-items: center;
  background: var(--color-pill-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(43, 46, 48, 0.12);
  border-radius: 40px;
  padding: 4px 6px 4px 14px;
  box-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.03),
    0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.contact-pill-container:hover {
  background: var(--color-pill-hover);
  border-color: rgba(43, 46, 48, 0.22);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.03);
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-family: var(--font-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  padding-right: 8px;
  transition: color 0.2s ease;
}

.pill-icon {
  width: 15px;
  height: 15px;
  stroke: var(--color-primary);
  opacity: 0.75;
}

.contact-pill:hover {
  color: #000;
}

.copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--color-secondary);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.copy-btn:hover {
  background-color: rgba(43, 46, 48, 0.08);
  color: var(--color-primary-dark);
}

.copy-btn:active {
  transform: scale(0.92);
}

.copy-icon {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  background: rgba(25, 27, 28, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-family: var(--font-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 10px 22px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.toast-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #34d399;
  display: inline-block;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

/* ==========================================================================
   Mobile & Breakpoint Adjustments
   ========================================================================== */
@media (max-width: 540px) {
  .brand-logo {
    max-width: 290px;
  }

  .illustration-canvas {
    max-width: 320px;
  }

  .ground-datum {
    width: 100%;
  }

  .action-bar {
    gap: 1.1rem;
  }

  .contact-pill {
    font-size: 0.8rem;
  }
}
