/* ============================================
   WORCESTER COWORKING — DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Colour */
  --navy: #1f2940;
  --navy-deep: #161e30;
  --teal: #4ca8c8;
  --teal-light: #e8f3f7;
  --terracotta: #d97757;
  --cream: #fdfcfa;
  --paper: #f6f4f0;
  --ink: #1f2940;
  --grey: #6b6f76;
  --grey-light: #c9cbcf;
  --line: #e3e1dc;
  --white: #ffffff;

  /* Type */
  --display: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;

  /* Layout */
  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--display);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

p { margin: 0; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================
   SIGNATURE ELEMENT: the "credit stub"
   A torn-ticket / desk-pass shape used for pricing,
   nav current-page marker, and section eyebrows —
   echoes the literal credit-pass system the business runs on.
   ============================================ */

.stub {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  position: relative;
  padding-left: 1.1rem;
}

.stub::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand img { height: 52px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.main-nav a {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 0.4rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.main-nav a[aria-current="page"] {
  color: var(--teal);
}

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--teal); }
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.25s ease;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 78px;
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 var(--pad);
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav a { width: 100%; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 1rem 0; text-align: center; }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: #c2643f; }

.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-deep); }

.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }

.btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }

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

.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  min-height: 560px;
}

.hero-copy .stub { color: var(--teal); margin-bottom: 1.2rem; }
.hero-copy .stub::before { background: var(--teal); }

.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  margin-bottom: 1.1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero-copy p {
  font-size: 1.08rem;
  color: #c4ccd9;
  max-width: 480px;
  margin-bottom: 1.8rem;
}

.hero-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 2rem;
  }
  .hero-copy p { max-width: none; }
  .hero-image { aspect-ratio: 16/11; }
}

.hero-badge {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  background: var(--cream);
  color: var(--navy);
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4caf72;
  flex-shrink: 0;
}

/* Sub-hero for non-home pages */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 3.5rem);
}
.page-hero .stub { margin-bottom: 1rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.8rem; }
.page-hero p { color: #c4ccd9; max-width: 560px; font-size: 1.05rem; }

/* ============================================
   SECTIONS
   ============================================ */

section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }

.section-head { max-width: 640px; margin-bottom: 2.8rem; }
.section-head .stub { margin-bottom: 0.9rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 0.8rem; }
.section-head p { color: var(--grey); font-size: 1.05rem; }

.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy .section-head p { color: #c4ccd9; }

/* ============================================
   SERVICE / FEATURE CARDS
   ============================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(31,41,64,0.08);
}

.card-tag {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.9rem;
}

.card h3 { font-size: 1.25rem; margin-bottom: 0.7rem; }

.card p { color: var(--grey); font-size: 0.97rem; margin-bottom: 1.3rem; flex-grow: 1; }

.card p.card-price {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.15rem;
  flex-grow: 0;
}
.card-price span { font-size: 0.85rem; font-weight: 500; color: var(--grey); }

.card p.card-price-note {
  font-size: 0.78rem;
  color: var(--grey);
  margin-bottom: 0.9rem;
  flex-grow: 0;
}
.card .card-link {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.card .card-link::after { content: '→'; transition: transform 0.2s ease; }
.card:hover .card-link::after { transform: translateX(3px); }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PHOTO STRIP
   ============================================ */

.photo-strip {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.8rem;
  height: 480px;
}
.photo-strip a, .photo-strip .ph { display: block; overflow: hidden; border-radius: var(--radius); position: relative; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.photo-strip .ph:hover img { transform: scale(1.05); }
.photo-strip .ph-big { grid-row: span 2; }

@media (max-width: 800px) {
  .photo-strip { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
  .photo-strip .ph-big { grid-row: span 1; height: 220px; }
  .photo-strip .ph { height: 220px; }
}

/* ============================================
   DIFFERENCE / WHY SECTION
   ============================================ */

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.diff-item { padding-top: 1.3rem; border-top: 2px solid var(--teal); }
.diff-item h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.diff-item p { color: var(--grey); font-size: 0.97rem; }

@media (max-width: 800px) {
  .diff-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* ============================================
   PRICING TABLE
   ============================================ */

.price-table-wrap { overflow-x: auto; }

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.price-table th, .price-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.price-table thead th {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 600;
  border-bottom: 2px solid var(--navy);
}

.price-table tbody tr:hover { background: var(--paper); }
.price-table td:first-child { font-weight: 600; font-family: var(--display); }

.tick { color: var(--teal); font-weight: 700; }
.dash { color: var(--grey-light); }

/* Pricing cards (credit packs) */
.pack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.pack-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem;
  background: var(--white);
  position: relative;
  color: var(--ink);
}

.pack-card.featured {
  border-color: var(--teal);
  background: var(--teal-light);
}

.pack-credits {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.pack-credits span { font-size: 0.95rem; font-weight: 500; color: var(--grey); }

.pack-price { font-family: var(--display); font-size: 1.4rem; font-weight: 600; margin: 0.6rem 0 0.3rem; color: var(--ink); }
.pack-per { font-size: 0.85rem; color: var(--grey); margin-bottom: 1rem; }

.pack-badge {
  position: absolute;
  top: -10px; right: 1rem;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
}

@media (max-width: 900px) {
  .pack-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .pack-grid { grid-template-columns: 1fr; }
}

.tier-block {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.tier-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.tier-card.highlight { border: 2px solid var(--navy); position: relative; }
.tier-card .stub { margin-bottom: 0.6rem; }
.tier-card h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.tier-name-sub { color: var(--grey); font-size: 0.9rem; margin-bottom: 1.3rem; display: block; }

.tier-price { font-family: var(--display); font-size: 1.55rem; font-weight: 700; margin-bottom: 0.35rem; line-height: 1.25; }
.tier-price small { font-size: 0.85rem; font-weight: 500; color: var(--grey); }

.tier-list { list-style: none; padding: 0; margin: 1.4rem 0; display: flex; flex-direction: column; gap: 0.65rem; }
.tier-list li { font-size: 0.93rem; padding-left: 1.4rem; position: relative; color: var(--ink); }
.tier-list li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--teal);
  font-weight: 700;
}

@media (max-width: 880px) {
  .tier-block { grid-template-columns: 1fr; }
}

/* ============================================
   TESTIMONIAL / QUOTE
   ============================================ */

.quote-block {
  border-left: 3px solid var(--teal);
  padding-left: 1.6rem;
  max-width: 720px;
}
.quote-block p { font-family: var(--display); font-size: 1.3rem; font-weight: 500; line-height: 1.45; margin-bottom: 1rem; }
.quote-block cite { font-style: normal; color: var(--grey); font-size: 0.9rem; }

/* ============================================
   FAQ / ACCORDION (used on spaces & home)
   ============================================ */

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.3rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}
.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--teal);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner { padding-bottom: 1.3rem; color: var(--grey); font-size: 0.97rem; max-width: 680px; }

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info dl { display: flex; flex-direction: column; gap: 1.5rem; margin: 1.8rem 0; }
.contact-info dt {
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.3rem;
}
.contact-info dd { margin: 0; font-size: 1.02rem; }
.contact-info a:hover { color: var(--teal); }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 260px;
  margin-top: 1.5rem;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 0.97rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   CTA BAND
   ============================================ */

.cta-band {
  background: var(--terracotta);
  color: var(--white);
  text-align: center;
  padding: clamp(3rem, 6vw, 4rem) 0;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.8rem; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 1.8rem; font-size: 1.05rem; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-primary { background: var(--navy); }
.cta-band .btn-primary:hover { background: var(--navy-deep); }

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

footer {
  background: var(--navy-deep);
  color: #aab3c2;
  padding: 3.5rem 0 2rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-grid img { height: 44px; margin-bottom: 1rem; }
.footer-grid p { color: #808998; line-height: 1.6; }

.footer-grid h4 {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.1rem;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-grid a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.83rem;
  color: #6b7585;
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   MISC: page-specific
   ============================================ */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.stat-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.stat-row .stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--navy);
}
.stat-row .stat span { font-size: 0.85rem; color: var(--grey); }

.room-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}
.room-card:last-child { border-bottom: none; }
.room-card:nth-child(even) .room-image { order: 2; }
.room-image { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.room-image img { width: 100%; height: 100%; object-fit: cover; }
.room-text .stub { margin-bottom: 0.8rem; }
.room-text h3 { font-size: 1.6rem; margin-bottom: 0.9rem; }
.room-text p { color: var(--grey); margin-bottom: 1.2rem; }
.room-feats { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.room-feats li {
  font-size: 0.82rem;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  color: var(--ink);
}

@media (max-width: 800px) {
  .room-card, .room-card:nth-child(even) { grid-template-columns: 1fr; }
  .room-card:nth-child(even) .room-image { order: 0; }
}
