/*
 * Global Stylesheet for Longevity Centre London website
 *
 * This stylesheet defines the look and feel of the site, including
 * typography, colour palette, layout structure and responsive
 * behaviour. Colours have been selected to evoke a sense of
 * wellbeing and modernity while maintaining good contrast for
 * accessibility. Flexbox is used extensively to create flexible
 * layouts that respond gracefully on smaller screens.
 */

/* CSS variables define a simple colour palette that can be reused
   throughout the site. Adjusting these values will update the
   entire site colour scheme. */
:root {
  --primary-color: #00695c;       /* deep teal for buttons and highlights */
  --secondary-color: #00897b;     /* secondary teal for accents */
  --accent-color: #00bfa5;        /* brighter accent used on hover states */
  --light-bg: #f7fdfc;            /* very light background used in alternating sections */
  --dark-text: #212121;           /* primary text colour for readability */
  --muted-text: #555;             /* secondary text colour */
  --border-radius: 8px;           /* consistent corner rounding */
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* soft shadow for cards */
}

/* Basic resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: white;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}
a:hover {
  color: var(--accent-color);
}

/* Top bar with address and phone numbers */
.top-bar {
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.top-bar a {
  color: #fff;
  text-decoration: none;
}

/* Navigation bar */
.navbar {
  background-color: #fff;
  box-shadow: var(--box-shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar .logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary-color);
}
.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
}
.navbar li a {
  color: var(--dark-text);
  font-weight: 600;
  padding: 0.3rem 0;
  position: relative;
}
.navbar li a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s;
  position: absolute;
  bottom: -2px;
  left: 0;
}
.navbar li a:hover::after {
  width: 100%;
}

/* Hero section */
.hero {
  position: relative;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}
.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.hero p {
  max-width: 700px;
  margin: 0.5rem auto 1.5rem;
  font-size: 1.1rem;
  color: #e0f2f1;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: var(--secondary-color);
}
.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Section headings */
section {
  padding: 3rem 1rem;
}
section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary-color);
}

/* Services grid */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.service-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  flex: 1 1 280px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
}
.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.service-card h3 {
  font-size: 1.3rem;
  margin: 1rem;
  color: var(--primary-color);
}
.service-card p {
  flex-grow: 1;
  margin: 0 1rem 1rem;
  color: var(--muted-text);
  font-size: 0.95rem;
}
.service-card .btn {
  margin: 0 1rem 1rem;
  align-self: flex-start;
}

/* About clinic */
.about-clinic, .cta {
  background-color: var(--light-bg);
}
.about-clinic p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--muted-text);
}

/* Specialists grid */
.specialist-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.specialist-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  flex: 1 1 260px;
  max-width: 300px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.specialist-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.specialist-card h3 {
  margin-top: 1rem;
  font-size: 1.3rem;
  color: var(--primary-color);
}
.specialist-card p {
  margin: 0.5rem 1rem 1rem;
  font-size: 0.95rem;
  color: var(--muted-text);
  flex-grow: 1;
}
.specialist-card .btn {
  margin-bottom: 1rem;
  align-self: center;
}

/* CTA section */
.cta {
  text-align: center;
}
.cta h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}
.cta p {
  margin-bottom: 1.5rem;
  color: var(--muted-text);
  font-size: 1rem;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}
footer a {
  color: #fff;
  text-decoration: underline;
}

/* Content page specific styles */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
}
.page-hero h1 {
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
  color: var(--muted-text);
  font-size: 1rem;
}
.content-wrapper h2 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.7rem;
}
.content-wrapper ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.content-wrapper li {
  margin-bottom: 0.5rem;
}

/* Case studies */
.case-study {
  margin-bottom: 2rem;
}
.case-study h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}
.case-study p {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Contact form */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.contact-info {
  margin-bottom: 2rem;
  color: var(--muted-text);
  font-size: 1rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-size: 1rem;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form button {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.contact-form button:hover {
  background-color: var(--secondary-color);
}

/* Responsive behaviours */
@media (max-width: 900px) {
  .service-grid, .specialist-grid {
    gap: 1rem;
  }
  .navbar ul {
    gap: 0.8rem;
  }
}
@media (max-width: 700px) {
  .hero h1 {
    font-size: 2rem;
  }
  .page-hero h1 {
    font-size: 2rem;
  }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .navbar ul {
    flex-wrap: wrap;
    margin-top: 0.5rem;
  }
  .specialist-card img {
    height: 180px;
  }
}