/* =============================================
   3 Ludgate Square — Main Stylesheet
   Edit colours, fonts and layout here
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

/* --- CSS Variables (easy to customise) --- */
:root {
  --cream:        #f5f0e8;
  --parchment:    #ede6d5;
  --stone:        #c8b99a;
  --slate:        #3d3b38;
  --charcoal:     #2a2826;
  --gold:         #9e7c3a;
  --gold-light:   #c4a05c;
  --brick:        #7a3c2e;
  --white:        #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', 'Helvetica Neue', sans-serif;

  --max-width:    1140px;
  --section-gap:  90px;
}

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

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

body {
  background: var(--cream);
  color: var(--slate);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
}

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

a { color: var(--gold); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--gold-light); }

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 32px;
}

/* =============================================
   NAVIGATION
   ============================================= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(42, 40, 38, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(158, 124, 58, 0.3);
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.05em;
}

.nav-brand span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.75);
  transition: color 0.25s;
}

.nav-links a:hover { color: var(--gold-light); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.3s;
}

/* =============================================
   HERO
   ============================================= */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--charcoal);
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(42, 40, 38, 0.88) 0%,
    rgba(42, 40, 38, 0.35) 55%,
    rgba(42, 40, 38, 0.15) 100%
  );
}

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

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.9s 0.3s ease forwards;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s ease forwards;
}

.hero-content h1 em {
  font-style: italic;
  color: var(--stone);
}

.hero-content p {
  font-size: 1.05rem;
  color: rgba(245, 240, 232, 0.8);
  max-width: 480px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.9s 0.7s ease forwards;
}

.hero-cta {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid var(--gold);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  transition: all 0.3s;
  opacity: 0;
  animation: fadeUp 0.9s 0.9s ease forwards;
}

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

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

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  right: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.5);
}

.scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: var(--gold);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%        { opacity: 1;   transform: scaleY(1.1); }
}

/* =============================================
   ABOUT / BUILDING
   ============================================= */
#about {
  padding: var(--section-gap) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  font-size: 1.05rem;
  margin-bottom: 18px;
  color: var(--slate);
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  top: -18px;
  left: -18px;
  right: 18px;
  bottom: 18px;
  border: 1px solid var(--stone);
  z-index: -1;
}

/* Image caption */
.img-caption {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-top: 10px;
  font-style: italic;
}

/* =============================================
   HISTORY TIMELINE
   ============================================= */
#history {
  background: var(--parchment);
  padding: var(--section-gap) 0;
}

.history-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 70px;
  align-items: start;
}

.history-intro p {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 110px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--stone);
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 36px;
  margin-bottom: 52px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 110px;
  top: 8px;
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateX(-50%);
}

.timeline-date {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--gold);
  text-align: right;
  padding-top: 2px;
}

.timeline-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.timeline-body p {
  font-size: 0.95rem;
  line-height: 1.75;
}

/* History image gallery */
.history-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.history-gallery figure {
  position: relative;
  overflow: hidden;
}

.history-gallery img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.history-gallery figure:hover img {
  transform: scale(1.05);
}

.history-gallery figcaption {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-top: 8px;
  font-style: italic;
}

/* =============================================
   TRANSPORT
   ============================================= */
#transport {
  padding: var(--section-gap) 0;
}

.transport-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 56px;
  align-items: start;
}

.transport-intro p { font-size: 1.05rem; }

.transport-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.transport-card {
  background: var(--white);
  border: 1px solid var(--stone);
  padding: 36px 32px;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.transport-card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 32px rgba(158, 124, 58, 0.1);
}

.transport-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transport-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--gold);
}

.transport-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.transport-card .walk-time {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.transport-card ul {
  list-style: none;
  font-size: 0.92rem;
}

.transport-card ul li {
  padding: 5px 0;
  border-bottom: 1px solid var(--parchment);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.transport-card ul li:last-child { border-bottom: none; }

.line-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 2px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  flex-shrink: 0;
}

.badge-central   { background: #E32017; }
.badge-thameslink { background: #E0A619; color: #000; }
.badge-circle    { background: #FFD300; color: #000; }
.badge-district  { background: #00782A; }
.badge-blackfriars { background: #4d6f9c; }
.badge-bus       { background: #E32017; }
.badge-river     { background: #009BC4; }

/* =============================================
   GALLERY
   ============================================= */
#gallery {
  background: var(--charcoal);
  padding: var(--section-gap) 0;
}

#gallery .section-title { color: var(--cream); }

.gallery-note {
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.55);
  margin-bottom: 40px;
  font-style: italic;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 6px;
}

.gallery-item {
  overflow: hidden;
  background: var(--slate);
  position: relative;
  cursor: pointer;
}

.gallery-item.wide  { grid-column: span 2; }
.gallery-item.tall  { grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s;
  filter: brightness(0.85);
}

.gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(1);
}

.gallery-item .gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--stone);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-label { opacity: 1; }

/* Add images placeholder */
.gallery-placeholder {
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(245,240,232,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(245,240,232,0.3);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =============================================
   CONTACT
   ============================================= */
#contact {
  padding: var(--section-gap) 0;
}

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

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item h4 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}

.contact-item p, .contact-item a {
  font-size: 1rem;
  color: var(--slate);
}

.contact-map {
  width: 100%;
  aspect-ratio: 4/3;
  border: 1px solid var(--stone);
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--charcoal);
  padding: 40px 0;
  border-top: 1px solid rgba(158, 124, 58, 0.25);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--stone);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.35);
  letter-spacing: 0.06em;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .about-grid,
  .history-intro,
  .transport-intro,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .timeline::before { left: 70px; }
  .timeline-item { grid-template-columns: 70px 1fr; }
  .timeline-item::before { left: 70px; }

  .history-gallery { grid-template-columns: 1fr 1fr; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .gallery-item.wide  { grid-column: span 1; }
  .gallery-item.tall  { grid-row: span 1; }

  .transport-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }

  nav { padding: 0 20px; }

  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(42, 40, 38, 0.97);
    flex-direction: column;
    padding: 28px 32px;
    gap: 22px;
    border-bottom: 1px solid rgba(158, 124, 58, 0.2);
  }

  .nav-links.open { display: flex; }

  .nav-toggle { display: flex; }

  .history-gallery { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
