/* --------------------------------------------------
   GLOBAL RESET + BASE
-------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #0A0F1F;
  color: #F5F5F7;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Canela", serif;
  font-weight: 300;
  letter-spacing: -0.5px;
}

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

/* --------------------------------------------------
   COLOR TOKENS
-------------------------------------------------- */
:root {
  --midnight: #0A0F1F;
  --graphite: #2C2F36;
  --porcelain: #F5F5F7;
  --pearl: #E6E7EB;
  --gold: #D7C49E;
  --teal: #00D0C6;
  --gold: #d4af37;
  --gold-light: #e6c76b;
  --gold-lighter: #f7e3a1;
}

/* --------------------------------------------------
   SECTIONS
-------------------------------------------------- */
.light-section {
  background: var(--porcelain);
  color: var(--midnight);
  padding: 120px 8%;
}

.dark-section {
  background: var(--midnight);
  color: var(--porcelain);
  padding: 120px 8%;
}

/* --------------------------------------------------
   HEADER + NAVIGATION
-------------------------------------------------- */
.site-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  backdrop-filter: blur(12px);
  background: rgba(10, 15, 31, 0.55);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand a {
  font-family: "Spectral", serif;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  color: var(--porcelain);
}

.brand-light { color: var(--porcelain); }
.brand-dark { color: var(--gold); }

.main-nav {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: var(--porcelain);
  position: relative;
  padding-bottom: 4px;
  transition: 0.3s ease;
}

.nav-link:hover {
  color: var(--gold);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.highlight {
  border: 1px solid var(--gold);
  padding: 6px 14px;
  border-radius: 4px;
}

.nav-link.highlight:hover {
  background: var(--gold);
  color: var(--midnight);
}

/* --------------------------------------------------
   HERO SECTION (FULLSCREEN WATER BACKGROUND)
-------------------------------------------------- */

.hero {
  display: block;
  width: 100%;
  position: relative;
}

.fullscreen-hero {
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 8%;
  text-align: center;
  position: relative;
  color: var(--porcelain);
  overflow: hidden;
}

.hero-water-only {
  background: url('/hero-bkground.png') center center / cover no-repeat;
  position: relative;
}

/* Gradient overlay */
.hero-water-only .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 15, 31, 0.82) 0%,
    rgba(10, 15, 31, 0.69) 40%,
    rgba(10, 15, 31, 0.92) 100%
  );
  z-index: 1;
}

/* Noise texture */
.hero-water-only::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/noise.png');
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

/* Gold shimmer */
.hero-water-only::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--cursor-x, 50%) var(--cursor-y, 50%),
    rgba(215, 196, 158, 0.18) 0%,
    rgba(215, 196, 158, 0.10) 12%,
    rgba(215, 196, 158, 0.04) 26%,
    rgba(215, 196, 158, 0.00) 60%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.55;
  animation: shimmer-drift 18s linear infinite;
  z-index: 0;
}

@keyframes shimmer-drift {
  0% { transform: translate(-10%, -10%) scale(1.1); }
  50% { transform: translate(10%, 10%) scale(1.15); }
  100% { transform: translate(-10%, -10%) scale(1.1); }
}

.hero-content {
  max-width: 900px;
  z-index: 2;
  position: relative;
}

.hero-content h1 {
  font-family: "Spectral", serif;
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 30px;
  text-align: justify;
}

.hero-content .cta {
  padding: 14px 32px;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: 0.3s ease;
}

.hero-content .cta:hover {
  background: var(--gold);
  color: var(--midnight);
}

/* --------------------------------------------------
   SERVICES GRID
-------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.service-item h3 {
  color: var(--midnight);
  margin-bottom: 10px;
}

/* --------------------------------------------------
   QUOTE SECTION
-------------------------------------------------- */
.gradient-threshold {
  padding: 160px 8%;
  background: linear-gradient(
    to bottom,
    var(--porcelain) 0%,
    var(--pearl) 25%,
    var(--graphite) 60%,
    var(--midnight) 100%
  );
  color: var(--porcelain);
  text-align: center;
  position: relative;
}

.gradient-threshold blockquote p {
  font-size: 2rem;
  max-width: 900px;
  margin: 0 auto 20px;
  line-height: 1.4;
}

.gradient-threshold .author {
  font-size: 1rem;
  opacity: 0.8;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}

/* --------------------------------------------------
   PORTFOLIO GRID
-------------------------------------------------- */
.portfolio-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.project-card {
  background: var(--graphite);
  padding: 60px 30px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: 0.3s ease;
}

.project-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
}

/* --------------------------------------------------
   FULLSCREEN CTA SECTION — MATCH HERO WIDTH
-------------------------------------------------- */

.cta-fullscreen {
  height: 100vh;              /* full viewport height */
  width: 100%;                /* full viewport width */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 8%;              /* same horizontal padding as hero */
  position: relative;
  text-align: center;
  color: var(--porcelain);
  overflow: hidden;
  background: var(--midnight);
}

/* Gradient overlay (same style family as hero) */
.cta-fullscreen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 15, 31, 0.85) 0%,
    rgba(10, 15, 31, 0.75) 40%,
    rgba(10, 15, 31, 0.90) 100%
  );
  z-index: 0;
}

/* Inner container matches hero-content max-width */
.cta-inner {
  max-width: 900px;           /* same as .hero-content */
  position: relative;
  z-index: 2;
}

/* Title */
.cta-inner h2 {
  font-family: "Spectral", serif;
  font-size: 2.4rem;
  font-weight: 300;
  margin-bottom: 24px;
  color: var(--gold);
}

/* Description text */
.cta-description {
  font-size: 1.05rem;
  line-height: 1.75;
  opacity: 0.85;
  margin-bottom: 40px;
  text-align: justify;
  text-justify: inter-word;
}

/* CTA Actions (dual CTA layout) */
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  margin-top: 40px;
  z-index: 2;
}

/* --------------------------------------------------
   FOOTER (Two-Column RAM Layout)
-------------------------------------------------- */

.site-footer {
  background: var(--midnight);
  padding: 80px 8%;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.footer-brand h3 {
  font-family: "Spectral", serif;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.footer-brand p {
  max-width: 500px;
  opacity: 0.8;
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-self: end;
}

.footer-links a {
  color: var(--porcelain);
  opacity: 0.8;
  transition: 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--gold);
}

.footer-copy {
  grid-column: 1 / -1;
  opacity: 0.6;
  font-size: 0.9rem;
  margin-top: 40px;
  text-align: center;
}

/* ============================================================
   RIGHT AROUND MIDNIGHT — CONTACT FORM (Final Complete CSS)
   ============================================================ */

/* Fade-in wrapper */
.contact-form-wrapper {
  max-width: 900px;
  margin: 0 auto;
  animation: ramFadeIn 1.2s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes ramFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Big graphite panel */
.contact-form-wrapper .form-panel {
  background: var(--graphite);
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  margin-bottom: 40px;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.contact-form-wrapper .form-panel:hover {
  transform: translateY(-4px) rotateX(1deg);
  border-color: var(--gold);
}

/* Two-column rows */
.contact-form-wrapper .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

/* Field wrapper */
.contact-form-wrapper .form-field {
  display: flex;
  flex-direction: column;
}

/* Inputs, selects, textareas */
.contact-form-wrapper .form-field input,
.contact-form-wrapper .form-field select,
.contact-form-wrapper .form-field textarea {
  width: 100%;
  background: var(--graphite);
  color: var(--porcelain);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 14px;
  border-radius: 6px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form-wrapper .form-field input:hover,
.contact-form-wrapper .form-field select:hover,
.contact-form-wrapper .form-field textarea:hover {
  border-color: var(--gold);
}

.contact-form-wrapper .form-field input:focus,
.contact-form-wrapper .form-field select:focus,
.contact-form-wrapper .form-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(215,196,158,0.45);
  outline: none;
}

/* Labels */
.contact-form-wrapper .form-field label {
  font-family: "Spectral", serif;
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 4px;
}

.contact-form-wrapper .form-field label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: var(--gold);
  transition: width 0.35s ease;
}

.contact-form-wrapper .form-field input:focus + label::after,
.contact-form-wrapper .form-field textarea:focus + label::after,
.contact-form-wrapper .form-field select:focus + label::after {
  width: 100%;
}

/* ============================================================
   TOGGLE — MINIMAL ROUNDED-SQUARE, PERFECTLY ALIGNED
   ============================================================ */

/* Row containing Email | toggle | Phone */
.contact-form-wrapper .toggle-row {
  display: flex;
  align-items: center;   /* perfect vertical alignment */
  gap: 20px;
  line-height: 1;        /* prevents text from pushing toggle down */
}

/* Toggle container */
.contact-form-wrapper .ram-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  display: inline-flex;  /* ensures proper centering */
  align-items: center;
  justify-content: center;
}

/* Hide checkbox */
.contact-form-wrapper .ram-toggle input {
  display: none;
}

/* Track */
.contact-form-wrapper .ram-slider {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--graphite);
  border: 2px solid var(--gold);
  border-radius: 10px;   /* rounded square */
  transition: 0.3s ease;
}

/* Knob */
.contact-form-wrapper .ram-slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);  /* perfect vertical centering */
  background: var(--porcelain);
  border-radius: 6px;           /* rounded square knob */
  transition: 0.3s ease;
}

/* Slide right for Phone */
.contact-form-wrapper .ram-toggle input:checked + .ram-slider::before {
  transform: translate(26px, -50%);
}

/* Hover lift */
.contact-form-wrapper .ram-toggle:hover .ram-slider {
  transform: translateY(-1px);
}

/* CTA button */
.contact-form-wrapper .cta {
  margin-top: 20px;
}
/* ============================================================
   RIGHT AROUND MIDNIGHT — CONTACT FORM (Final Revised CSS)
   ============================================================ */

/* Fade-in wrapper */
.contact-form-wrapper {
  max-width: 900px;
  margin: 0 auto;
  animation: ramFadeIn 1.2s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes ramFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Big graphite panel */
.contact-form-wrapper .form-panel {
  background: var(--graphite);
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  margin-bottom: 40px;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.contact-form-wrapper .form-panel:hover {
  transform: translateY(-4px) rotateX(1deg);
  border-color: var(--gold);
}

/* Two-column rows */
.contact-form-wrapper .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

/* Field wrapper */
.contact-form-wrapper .form-field {
  display: flex;
  flex-direction: column;
}

/* Inputs, selects, textareas */
.contact-form-wrapper .form-field input,
.contact-form-wrapper .form-field select,
.contact-form-wrapper .form-field textarea {
  width: 100%;
  background: var(--graphite);
  color: var(--porcelain);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 14px;
  border-radius: 6px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form-wrapper .form-field input:hover,
.contact-form-wrapper .form-field select:hover,
.contact-form-wrapper .form-field textarea:hover {
  border-color: var(--gold);
}

.contact-form-wrapper .form-field input:focus,
.contact-form-wrapper .form-field select:focus,
.contact-form-wrapper .form-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(215,196,158,0.45);
  outline: none;
}

/* Labels */
.contact-form-wrapper .form-field label {
  font-family: "Spectral", serif;
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 4px;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 6px;
}

.contact-form-wrapper .form-field label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: var(--gold);
  transition: width 0.35s ease;
}

.contact-form-wrapper .form-field input:focus + label::after,
.contact-form-wrapper .form-field textarea:focus + label::after,
.contact-form-wrapper .form-field select:focus + label::after {
  width: 100%;
}

/* ============================================================
   TOGGLE — BIGGER BOX, PERFECT FULL SLIDE
   ============================================================ */

/* Row containing Email | toggle | Phone */
.contact-form-wrapper .toggle-row {
  display: flex;
  align-items: center;
  gap: 20px;
  line-height: 1;
}

/* Toggle container */
.contact-form-wrapper .ram-toggle {
  position: relative;
  width: 90px;          /* track width */
  height: 44px;         /* track height */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hide checkbox */
.contact-form-wrapper .ram-toggle input {
  display: none;
}

/* Track */
.contact-form-wrapper .ram-slider {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--graphite);
  border: 2px solid var(--gold);
  border-radius: 14px;
  transition: 0.3s ease;
}

/* Knob */
.contact-form-wrapper .ram-slider::before {
  content: "";
  position: absolute;
  height: 32px;          /* knob size */
  width: 32px;
  top: 50%;
  left: 6px;             /* starting offset */
  transform: translateY(-50%);
  background: var(--porcelain);
  border-radius: 8px;
  transition: 0.3s ease;
}

/* ⭐ FULL RIGHT SLIDE — CORRECTED MATH */
.contact-form-wrapper .ram-toggle input:checked + .ram-slider::before {
  transform: translateY(-50%) translateX(42px);  
  /* 90(track) - 32(knob) - 6(offset) = 52 */
}

/* Hover lift */
.contact-form-wrapper .ram-toggle:hover .ram-slider {
  transform: translateY(-1px);
}

.contact-form-button {
  display: inline-block;
  padding: 1rem 2.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #1a1a1a;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 30px;
}

.contact-form-button:hover {
  background: linear-gradient(135deg, var(--gold-lighter), var(--gold-light));
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

/* --------------------------------------------------
   LEGAL / TERMS PAGE (RAM STYLING)
-------------------------------------------------- */

.legal-container {
  padding: 160px 8% 120px;
  max-width: 900px;
  margin: 0 auto;
  min-height: 80vh;
  color: var(--porcelain);
}

.section-tag {
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.7;
  display: block;
  margin-bottom: 20px;
}

.legal-container h1 {
  font-family: "Spectral", serif;
  font-size: 2.8rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--porcelain);
}

.legal-effective-date {
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.75;
  margin-bottom: 3rem;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  text-align: justify;
}

.legal-block h3 {
  font-family: "Spectral", serif;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--gold);
}

.legal-block p {
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.7;
  text-justify: inter-word;
  letter-spacing: 0.2px;
  padding-bottom: 1.25rem;
}

.legal-block ul {
  list-style-type: square;
  margin-left: 1.5rem;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0.85;
}

.legal-block ul li {
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal-block.border-top {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
}

.legal-contact-link {
  color: var(--gold);
  text-decoration: none;
  transition: 0.3s ease;
}

.legal-contact-link:hover {
  color: var(--gold-light);
}