/*
  Global styles and variables
  Our palette draws on teal and orange tones to evoke calm and vitality. Fonts
  Montserrat and Open Sans provide a clean, friendly feel. Headings follow
  proper hierarchy (H1, H2, H3) to satisfy search engines and readers【79232585995407†L239-L268】.
*/

:root {
  --color-primary: #0a7d8c; /* deep teal */
  --color-secondary: #f29d4c; /* warm orange */
  --color-accent: #f7f9fc; /* light background */
  --color-dark: #093e43;
  --color-light: #ffffff;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --max-width: 1140px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-accent);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  margin-top: 0;
  color: var(--color-dark);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5em;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 0.6em;
  text-align: center;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4em;
}

/* Container utility */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  background-color: var(--color-light);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
}
.logo {
  width: 40px;
  height: 40px;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  font-weight: 600;
  color: var(--color-dark);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--color-primary);
}

/* Active link styling */
.nav-links a.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
}

/* Hero */
.hero {
  background-color: var(--color-light);
  padding: 3rem 0;
}
.hero-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.hero-text {
  flex: 1 1 360px;
}
.hero-image {
  flex: 1 1 360px;
}
.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s;
}
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-light);
}
/* On hover, slightly darken primary button */
.btn-primary:hover {
  background-color: #065f69;
}

/*
  Team page styling
  The team page introduces our specialists in a friendly grid format. A hero
  section headlines the purpose of the page, followed by cards for each
  team member. The layout adapts responsively to various screen sizes.
*/
.team-hero {
  background-color: var(--color-light);
  padding: 3rem 0;
  text-align: center;
}
.team-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}
.team-hero p {
  font-size: 1.1rem;
  color: var(--color-dark);
}

.team {
  padding: 4rem 0;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.team-member {
  background-color: var(--color-light);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}
.team-member:hover {
  transform: translateY(-4px);
}
.team-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
}
.team-member .title {
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 0.3rem;
}
.team-member .specialty {
  font-size: 0.9rem;
  color: var(--color-dark);
}

/* About */
.about {
  padding: 4rem 0;
}
.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.about-text {
  flex: 1 1 380px;
}
.about-image {
  flex: 1 1 380px;
}

/* Services */
.services {
  background-color: var(--color-light);
  padding: 4rem 0;
}
.services-image {
  max-width: 500px;
  margin: 1.5rem auto;
  text-align: center;
}
.services-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.service-card {
  background-color: var(--color-accent);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
}
.service-icon {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* Press */
.press {
  padding: 4rem 0;
}
.press-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.rating-box {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.rating-box .stars {
  color: #ffd700;
  font-size: 1.5rem;
}
.rating-text {
  font-weight: 600;
  color: var(--color-dark);
}

/* Reviews */
.reviews {
  background-color: var(--color-light);
  padding: 4rem 0;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.review {
  background-color: var(--color-accent);
  padding: 1.5rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.review-text {
  font-style: italic;
  margin-bottom: 0.5rem;
}
.review-author {
  font-weight: 600;
  text-align: right;
  color: var(--color-primary);
}

/* Contact */
.contact {
  padding: 4rem 0;
}
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}
.contact-details {
  flex: 1 1 300px;
}
.contact-details p {
  margin-bottom: 0.5rem;
}
.contact-form {
  flex: 1 1 300px;
  background-color: var(--color-accent);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.form-group input,
.form-group textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-body);
}
.form-group textarea {
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 3rem 0 0;
}

/* New footer layout */
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-col {
  flex: 1 1 250px;
  min-width: 200px;
}
.brand-col .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.brand-col .logo {
  width: 40px;
  height: 40px;
}
.brand-col .brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-light);
}
.footer-tagline {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  color: #d2e6e9;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
  font-size: 1.4rem;
}
.footer-social a {
  color: var(--color-light);
  transition: color 0.2s;
}
.footer-social a:hover {
  color: var(--color-secondary);
}
.links-col h4,
.contact-col h4 {
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
  color: var(--color-light);
}
.links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.links-col li {
  margin-bottom: 0.4rem;
}
.links-col a {
  color: #d2e6e9;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.links-col a:hover {
  color: var(--color-secondary);
}
.contact-col p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: #d2e6e9;
}
.contact-col a {
  color: #d2e6e9;
  text-decoration: underline;
}
.footer-bottom {
  background-color: #072d30;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.85rem;
  color: #a9c7c9;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--color-light);
    flex-direction: column;
    align-items: flex-start;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}