/* ============================
   AMCC Consulting Group Ltd
   Global Stylesheet
   ============================ */

:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card: #101827;
  --accent: #00e6a4;
  --accent-soft: #1fbf7a;
  --text: #f9fafb;
  --muted: #9ca3af;
  --border: #1f2937;
  --danger: #ef4444;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
  color: var(--text);
}

/* ============================
   HEADER
   ============================ */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand-logo {
  height: 64px;
}

.brand-logo img {
  height: 64px;
  width: auto;
}

/* Navigation */

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent);
}

/* ============================
   LAYOUT
   ============================ */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.page {
  padding: 2.5rem 0 3.5rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.6);
}

.page:last-of-type {
  border-bottom: none;
}

.page h1 {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
}

/* ============================
   HOME PAGE
   ============================ */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 3.4vw, 3.2rem);
  margin-bottom: 0.75rem;
}

.hero-copy p {
  color: var(--muted);
  max-width: 560px;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  gap: 1rem;
}

.hero-image {
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* Cards */

.cards-row {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--card);
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--muted);
}


/* ============================
   TRUSTED SECTION
   ============================ */

.trusted-section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}

.trusted-section h2 {
  text-align: center;
  margin-bottom: 20px;
}

.trusted-lead {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.trusted-points {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

/* IMPORTANT: centre-align the text inside each point */
.trusted-point {
  flex: 1;
  text-align: center;
}

/* MOBILE OPTIMISATION FOR TRUSTED SECTION */
@media (max-width: 768px) {

  .trusted-section {
    padding: 40px 15px;
  }

  .trusted-lead {
    margin-bottom: 30px;
    padding: 0 10px;
    font-size: 1rem;
  }

  .trusted-points {
    flex-direction: column;
    gap: 30px;
  }

  .trusted-point {
    text-align: center;
    padding: 0 10px;
  }

  .trusted-point h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
  }

  .trusted-point p {
    font-size: 1rem;
    line-height: 1.5;
  }
}


/* ============================
   BUTTONS
   ============================ */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #020617;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary:hover {
  background: rgba(34, 197, 94, 0.12);
}

.full-width {
  width: 100%;
}

/* ============================
   BOOKING PAGE
   ============================ */

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.booking-info p,
.booking-info ul {
  color: var(--muted);
}

.booking-info ul {
  padding-left: 1.25rem;
}

.price {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--accent-soft);
}

/* Booking table */

.booking-table-wrapper {
  margin-top: 2.5rem;
}

.booking-table-wrapper h2 {
  margin-bottom: 1rem;
}

.booking-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

.booking-table th,
.booking-table td {
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
}

.booking-table th {
  background: #020617;
  text-align: left;
}

.booking-table tr:nth-child(even) td {
  background: #0b1120;
}

.booking-table td {
  color: var(--muted);
}

/* Form cards */

.form-card {
  background: var(--card);
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
}

.form-card h2 {
  margin-top: 0;
}

/* Forms */

form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: var(--muted);
}

input,
select,
textarea {
  margin-top: 0.3rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: #020617;
  color: var(--text);
  font-size: 0.9rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

textarea {
  resize: vertical;
}

/* Purchase price input with £ */

.input-with-prefix {
  display: flex;
  align-items: center;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: #020617;
}

.input-prefix {
  padding: 0.6rem 0.75rem;
  border-right: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.input-with-prefix input {
  border: none;
  margin-top: 0;
  width: 100%;
}

/* Messages */

.form-message {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  color: var(--muted);
}

.form-message.error {
  color: var(--danger);
}

.form-message.success {
  color: var(--accent-soft);
}

/* ============================
   ABOUT PAGE
   ============================ */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.about-grid p {
  color: var(--muted);
}

.about-image {
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* ============================
   CONTACT PAGE
   ============================ */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.contact-details p {
  color: var(--muted);
}

.contact-map iframe {
  width: 100%;
  min-height: 280px;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
}

/* Contact popup */

.contact-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.contact-popup {
  background: var(--card);
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid var(--border);
  max-width: 420px;
  width: 90%;
  text-align: center;
}

.contact-popup h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.contact-popup p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ============================
   FOOTER
   ============================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 3rem;
  background: #020617;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  text-align: right;
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 1024px) {
  main {
    padding-inline: 1.75rem;
  }

  .top-bar {
    padding-inline: 1.75rem;
  }

  .hero-grid,
  .booking-layout,
  .about-grid,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  .footer-copy {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav {
    gap: 1rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
  }

  main {
    padding-inline: 1.25rem;
  }

  .hero-image img {
    height: 360px;
  }
}

@media (max-width: 480px) {
  .hero-image img {
    height: 260px;
  }

  .cards-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .top-bar {
    padding-inline: 1rem;
  }

  main {
    padding-inline: 1rem;
  }
}

.footer-large {
  padding: 60px 20px;
  background: #111;
  color: #fff;
}

.footer-large .footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-col {
  flex: 1 1 200px;
}

.footer-col h3 {
  margin-bottom: 10px;
}

.footer-logo {
  width: 140px;
  margin-bottom: 15px;
}

.cta-banner {
  background: #0a0a0a;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.cta-banner .btn-large {
  padding: 15px 30px;
  font-size: 1.2rem;
}

