/*
 * Solara Aesthetic Medicine
 *
 * This stylesheet defines the core look and feel for the Solara site.  The
 * design draws from high‑end med‑spa examples identified during research:
 * generous white space, muted neutrals paired with a rich emerald accent,
 * elegant typography, and clear hierarchy.  It is mobile‑first and
 * responsive, with accessible contrast and large tappable targets.
 */

/* CSS custom properties make it easy to tweak the palette or fonts
   throughout the site. */
:root {
  --color-base: #f7f5f2;      /* warm off‑white background */
  --color-neutral: #eae6df;   /* light taupe for subtle panels */
  --color-accent: #1f3d36;    /* deep emerald green used for calls to action */
  --color-secondary: #2c2c2c; /* dark charcoal for text and headings */
  --color-highlight: #c6b8a3; /* soft gold used sparingly */

  --font-heading: 'Tenor Sans', serif;
  --font-body: 'Josefin Sans', sans-serif;
}

/* Reset some default styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-secondary);
  background-color: var(--color-base);
  line-height: 1.6;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: normal;
  color: var(--color-secondary);
  letter-spacing: 0.02em;
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

/* Generic button styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #183027;
}

.btn-nav {
  background-color: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 0.5rem 1rem;
}

.btn-nav:hover,
.btn-nav:focus {
  background-color: var(--color-accent);
  color: #fff;
}

/* Layout container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header and navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(247, 245, 242, 0.95);
  border-bottom: 1px solid var(--color-neutral);
  z-index: 1000;
}

/* When the page is scrolled, the header receives a subtle shadow for better separation */
header.scrolled {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
}

/* The logo image preceding the site name.  Constrain the height so
   it aligns neatly with the heading text and leave horizontal space. */
.logo-img {
  height: 40px;
  width: auto;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.logo span {
  font-weight: 300;
  font-size: 1rem;
  color: var(--color-secondary);
  margin-left: 0.25rem;
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-right: 1rem;
}

.nav-links li a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--color-secondary);
  transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a:focus {
  color: var(--color-accent);
}

/* Hero section */
/* Hero section: use a gradient instead of a photograph.
   The gradient subtly evokes lush greenery and water without
   implying a physical office. */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Emerald gradient blended over a custom hero image. The linear gradient uses
     semi‑transparent hues to keep type legible while letting the artwork
     peek through. */
  background-image: linear-gradient(180deg, rgba(31,61,54,0.6) 0%, rgba(14,28,23,0.8) 100%), url('images/hero-bg.png');
  background-size: cover;
  background-position: center;
}

/* Remove unused hero image; previously we had an image here */
.hero-img {
  display: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Dark overlay gradient for improved contrast */
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.55) 100%);
  color: #fff;
  padding: 0 1rem;
}

.hero-overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-overlay p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 700px;
  color: #f0f0f0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Section generic styles */
.section {
  padding: 4rem 0;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.subtitle {
  font-style: italic;
  font-size: 1rem;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 1.5rem;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.8;
}

/* Services grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background-color: var(--color-neutral);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.service-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-card h3 {
  font-size: 1.2rem;
  margin: 1rem;
  color: var(--color-accent);
}

.service-card p {
  margin: 0 1rem 1rem;
  font-size: 0.9rem;
  color: var(--color-secondary);
}

.learn-more {
  display: inline-block;
  margin: 0 1rem 1rem;
  font-size: 0.9rem;
  color: var(--color-accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.learn-more:hover,
.learn-more:focus {
  border-color: var(--color-accent);
}

/* Doctor section */
.doctor-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.doctor-photo {
  flex: 1 1 300px;
}

.doctor-photo img {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.doctor-info {
  flex: 2 1 350px;
}

.doctor-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--color-accent);
}

.doctor-info p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: var(--font-heading);
  margin-bottom: 0.3rem;
  color: var(--color-secondary);
}

.form-group input,
.form-group textarea {
  padding: 0.7rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 0.3rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(31, 61, 54, 0.2);
}

footer {
  background-color: var(--color-neutral);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  nav {
    flex-direction: column;
    align-items: flex-end;
  }
  .btn-nav {
    margin-top: 0.5rem;
  }
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-overlay h2 {
    font-size: 2rem;
  }
  .doctor-container {
    flex-direction: column;
  }
}