/* ============================================================
   RADICK CORPORATION — Global Stylesheet
   Design system based on taste-skill / redesign-skill
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
  --bg:          #f7f5f2;
  --bg-alt:      #eeebe6;
  --bg-dark:     #18100e;
  --bg-dark-2:   #231510;
  --accent:      #a52828;
  --accent-dark: #7f1e1e;
  --text:        #1a1210;
  --text-muted:  #7a6f68;
  --border:      #e0d9d0;
  --white:       #ffffff;
  --nav-h:       90px;
  --max-w:       1280px;
  --radius:      8px;
  --shadow:      0 4px 24px -8px rgba(26, 18, 16, 0.12);
}

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

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

/* ── Skip to content (accessibility) ─────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Focus ring ───────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Grain overlay ────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.03;
  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)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
address { font-style: normal; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 62px; width: auto; display: block; }

.nav-logo-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.nav-logo-sub {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.1s !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }
.nav-cta:active { transform: scale(0.97) translateY(1px); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all 0.2s;
  border-radius: 2px;
}

/* ── Hero Animations ──────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-label    { animation: fadeUp 0.7s ease both; animation-delay: 0.1s; }
.hero h1       { animation: fadeUp 0.7s ease both; animation-delay: 0.35s; }
.hero-sub      { animation: fadeUp 0.7s ease both; animation-delay: 0.6s; }
.hero-actions  { animation: fadeUp 0.7s ease both; animation-delay: 0.85s; }

/* ── Home Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  max-height: 900px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--white) 0%, transparent 15%),
    linear-gradient(to top, var(--white) 0%, transparent 20%),
    rgba(0,0,0,0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 4rem;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.hero-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 52ch;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* ── Services Strip ───────────────────────────────────────── */
.services-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.services-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.service-item {
  padding: 2.25rem 2rem;
  border-right: 1px solid var(--border);
}
.service-item:last-child { border-right: none; }

.service-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  color: var(--accent);
}
.service-item h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.service-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Section Base ─────────────────────────────────────────── */
.section { padding: 5rem 2rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-dark {
  background: var(--bg-dark);
  color: var(--white);
}
.section-alt { background: var(--bg-alt); }

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: block;
}

.section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

.section-body {
  margin-top: 1.25rem;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.8;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:active { transform: scale(0.97) translateY(1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--text-muted); }
.btn-outline:active { transform: scale(0.97) translateY(1px); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.7); }

/* ── Gallery Grid ─────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  display: block;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-card:hover img { transform: scale(1.04); }

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,18,16,0.75) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
}
.gallery-card-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.3rem;
}
.gallery-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
}

/* ── Split Layout (about preview, etc.) ───────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.split-image {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

/* ── Team Cards ───────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
}
.team-card { }
.team-card-image {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  margin-bottom: 1.25rem;
  background: var(--bg-alt);
}
.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.team-card-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.team-card-role {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.2rem;
  margin-bottom: 0.75rem;
}
.team-card-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Product List ─────────────────────────────────────────── */
.product-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 3rem;
}
.product-item {
  background: var(--white);
  padding: 2rem 2.25rem;
  transition: background 0.2s;
}
.product-item:hover { background: var(--bg); }

.product-item-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 1rem;
}
.product-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.product-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}
.testimonial-quote {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  position: relative;
}
.testimonial-quote::before {
  content: '\201C';
  font-size: 3.5rem;
  line-height: 0;
  vertical-align: -0.55em;
  color: var(--accent);
  margin-right: 0.15rem;
  font-weight: 700;
}
.testimonial-author {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-size: 0.85rem;
}
.testimonial-author-name {
  font-weight: 600;
  color: var(--text);
}
.testimonial-author-loc {
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* ── Contact Form ─────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.contact-info-block {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.contact-info-item h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.contact-info-item p,
.contact-info-item a {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
  transition: color 0.2s;
}
.contact-info-item a:hover { color: var(--accent); }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  background: var(--bg-dark);
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/Radick%20Commerical%20Photos/bucks-physical-therapy-3-richboro-pa.jpg') center/cover no-repeat;
  opacity: 0.2;
}
.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.page-hero-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}
.page-hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white);
  max-width: 700px;
  text-wrap: balance;
}
.page-hero p {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  max-width: 58ch;
  line-height: 1.75;
}

/* ── Gallery Page ─────────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.photo-grid img {
  border-radius: 8px;
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}
.photo-grid img:hover { opacity: 0.88; }

/* ── Lightbox ─────────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 500;
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
#lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.15s;
}
#lightbox-close:hover { opacity: 1; }
#lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.85rem;
  opacity: 0.75;
  white-space: nowrap;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: var(--accent);
  padding: 4rem 2rem;
  text-align: center;
}
.cta-banner h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 1rem;
  text-wrap: balance;
}
.cta-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  max-width: 52ch;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.btn-white {
  background: var(--white);
  color: var(--accent);
  font-weight: 700;
}
.btn-white:hover { background: #f0ebe8; }
.btn-white:active { transform: scale(0.97) translateY(1px); }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.5);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo-img { height: 52px; width: auto; display: block; margin-bottom: 1rem; }

.footer-logo-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
}
.footer-logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-top: 0.15rem;
  margin-bottom: 1rem;
}
.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.75;
}
.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.1rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-col address {
  font-size: 0.875rem;
  line-height: 1.9;
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { max-height: none; min-height: 75vw; }
  .hero-content { padding: 4rem 2rem 3rem; max-width: 100%; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .services-strip-inner { grid-template-columns: 1fr; }
  .service-item { border-right: none; border-bottom: 1px solid var(--border); }
  .service-item:last-child { border-bottom: none; }

  .gallery-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split-reverse { direction: ltr; }
  .split-image { aspect-ratio: 16/9; }
  .team-grid { grid-template-columns: 1fr; }
  .product-list { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .section { padding: 3.5rem 1.25rem; }
  .hero-content { padding: 3rem 1.25rem; }
  .photo-grid { grid-template-columns: 1fr; }
}
