/* ============================================
   PHOENIX FIELD MEDICAL — Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900&family=Open+Sans:ital,wght@0,300;0,400;0,700;1,300;1,400&display=swap');

:root {
  --purple-deep:    #3a2570;
  --purple-brand:   #4b308d;
  --purple-mid:     #5a3da0;
  --purple-light:   #644f96;
  --orange-brand:   #e48a3d;
  --orange-hover:   #f09d55;
  --white:          #ffffff;
  --off-white:      #eaeaea;
  --text-body:      #e8e4f2;

  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  --section-pad: clamp(80px, 10vw, 160px);
  --content-max: 900px;
  --side-pad: clamp(20px, 6vw, 200px);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--purple-brand);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h2.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange-brand);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

h2.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--orange-brand);
  margin-top: 10px;
  border-radius: 2px;
}

p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  margin-bottom: 1rem;
  color: var(--text-body);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--orange-brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--orange-hover);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */

#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--orange-brand);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
}

#scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

#scroll-top:hover {
  transform: translateY(-3px);
  background: var(--orange-hover);
}

#scroll-top svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* ============================================
   HEADER / NAV
   ============================================ */

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--purple-brand);
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.3s;
}

#site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

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

#logo img {
  height: 44px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
  list-style: none;
}

.main-nav a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--orange-brand);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-nav {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--purple-light);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s;
  z-index: 99;
}

.mobile-nav.open {
  max-height: 400px;
  padding: 12px 0 20px;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.mobile-nav a {
  display: block;
  padding: 12px 24px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: var(--orange-brand);
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
}

/* ============================================
   HERO SECTION
   ============================================ */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/skyscrapers-looking-up-scaled.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-icon {
  width: clamp(200px, 32vw, 320px);
  height: auto;
  margin-top: -60px;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.9s ease both;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.4vw, 2.25rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.9s 0.2s ease both;
}

.hero-headline em {
  font-style: normal;
  color: var(--orange-brand);
}

.hero-cta {
  display: inline-block;
  background: var(--orange-brand);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  animation: fadeInUp 0.9s 0.4s ease both;
}

.hero-cta:hover {
  background: var(--orange-hover);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================
   SECTION LAYOUT
   ============================================ */

.section {
  position: relative;
  padding: var(--section-pad) var(--side-pad);
  overflow: hidden;
}

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Motif overlay (orange flash watermark) */
.motif-overlay {
  position: absolute;
  top: 50px;
  left: 80px;
  width: 220px;
  height: auto;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* Europe map overlay */
.europe-overlay {
  position: absolute;
  top: 40px;
  right: -60px;
  width: min(600px, 70vw);
  height: auto;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

/* Divider between sections */
.section-divider {
  width: 60px;
  height: 2px;
  background: rgba(255,255,255,0.15);
  margin: 0 auto;
}

/* Alternating subtle bg tint */
.section--tinted {
  background: rgba(0,0,0,0.12);
}

/* ============================================
   WHO WE ARE
   ============================================ */

#who .section-inner {
  display: grid;
  gap: 2rem;
}

/* ============================================
   WHERE WE COVER
   ============================================ */

#where .section-inner {
  max-width: 1000px;
}

/* ============================================
   WHAT WE DO
   ============================================ */

#what .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  transition: background 0.2s, transform 0.2s;
}

.feature-card:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-3px);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--orange-brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   OUR MISSION
   ============================================ */

#mission blockquote {
  border-left: 3px solid var(--orange-brand);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  opacity: 0.9;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

#testimonials .section-inner {
  max-width: 960px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 2rem 2rem 1.75rem;
  position: relative;
  transition: background 0.2s, transform 0.2s;
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-3px);
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  color: var(--orange-brand);
  opacity: 0.35;
  position: absolute;
  top: -0.5rem;
  left: 1.25rem;
  line-height: 1;
  pointer-events: none;
}

.testimonial-quote {
  font-size: 0.97rem;
  line-height: 1.75;
  font-style: italic;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-attribution {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1rem;
}

.testimonial-role {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-brand);
}

/* ============================================
   CLIENTS
   ============================================ */

#clients .section-inner {
  max-width: 960px;
}

.clients-intro {
  margin-bottom: 2rem;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.client-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 0.7rem 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--off-white);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.client-item:hover {
  background: rgba(228, 138, 61, 0.15);
  border-color: rgba(228, 138, 61, 0.4);
  color: var(--orange-brand);
  transform: translateY(-2px);
}

/* ============================================
   CONTACT FORM
   ============================================ */

#contact {
  background: rgba(0,0,0,0.15);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 680px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contact-info p {
  margin-bottom: 0.75rem;
}

.contact-info .info-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--off-white);
  opacity: 0.7;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 10px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--orange-brand);
  background: rgba(255,255,255,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-group textarea {
  height: 160px;
  resize: vertical;
}

.btn-submit {
  background: var(--orange-brand);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  align-self: flex-start;
}

.btn-submit:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
}

.form-status {
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 4px;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(0, 200, 120, 0.15);
  border: 1px solid rgba(0, 200, 120, 0.4);
  color: #7effc5;
}

.form-status.error {
  display: block;
  background: rgba(220, 60, 60, 0.15);
  border: 1px solid rgba(220, 60, 60, 0.4);
  color: #ffaaaa;
}

/* ============================================
   FOOTER
   ============================================ */

#footer {
  background: var(--purple-deep);
  padding: 28px clamp(16px, 4vw, 48px);
  text-align: center;
}

#footer p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

#footer a {
  color: rgba(255,255,255,0.55);
}

#footer a:hover {
  color: var(--orange-brand);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE TWEAKS
   ============================================ */

@media (max-width: 900px) {
  :root {
    --side-pad: clamp(20px, 5vw, 60px);
    --section-pad: 80px;
  }

  .motif-overlay {
    width: 140px;
    left: 20px;
  }

  .europe-overlay {
    width: min(340px, 80vw);
    right: -20px;
    opacity: 0.3;
  }
}

@media (max-width: 480px) {
  .europe-overlay {
    display: none;
  }
}
