/* ============================================
   Reset & fluid base
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: #333;
  background: #f7f5f2;
  line-height: 1.65;

  /* Fluid type: scales between 16px on small phones and 18px on PCs */
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.125rem);
}

/* Defines the top picture and text areas */
.container {
            width: 100%;
            max-width: 800px;
            margin: 0 auto;
        }

        /* Defines the picture areas */
        .left-image {
            /* This floats the image to the top left and pushes text to the right */
            float: left; 
            
            /* Adjust the size as you wish; the text will automatically adapt */
            width: 200px; 
            height: auto;
            
            /* Adds spacing between the image and the text so they don't touch */
            margin-right: 20px;
            margin-bottom: 15px; 
        }

        /* Prevents layout issues with elements that follow this text block */
        .clearfix::after {
            content: "";
            clear: both;
            display: table;
        }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============================================
   Header — scales down gracefully on phones
   ============================================ */
.site-header {
  text-align: center;
  padding: clamp(1.25rem, 3vw, 2.5rem) 1rem 1rem;
  background: #fff;
}
.logo { height: clamp(44px, 7vw, 64px); margin-bottom: 0.5rem; }
.site-header h1 { font-size: clamp(1.5rem, 4.5vw, 2.25rem); }
.tagline { color: #5a7d7c; font-style: italic; }

/* ============================================
   Tab navigation
   - Sticky on all sizes
   - Horizontally scrollable on narrow screens
   ============================================ */
.tab-nav {
  display: flex;
  position: sticky;
  top: 0;
  background: #5a7d7c;
  z-index: 10;
}

.tab-normal
{
  display: inline-block;
    margin-left: 40px;
}

.tab-link {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  font-family: inherit;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;          /* prevents awkward two-line tabs */
}

.tab-link:hover { color: #fff; background: #4c6b6a; }
.tab-link.active { color: #fff; box-shadow: inset 0 -4px 0 #e8c07a; }

.tab-link:focus-visible {
  outline: 3px solid #e8c07a;
  outline-offset: -3px;
}

/* Medium PC resolution (~1024–1440px): center the tabs, cap content width */
@media (min-width: 900px) {
  .tab-nav { justify-content: center; }
}

/* Small screens: let the tab bar scroll sideways with a fade hint */
@media (max-width: 640px) {
  .tab-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;               /* Firefox */
  }
  .tab-nav::-webkit-scrollbar { display: none; }  /* Chrome/Safari */

  .tab-link {
    flex: 1 0 auto;
    padding: 0.9rem 1.1rem;   /* keeps ~44px+ tap height */
    font-size: 0.98rem;
  }
}

/* Phones in LANDSCAPE: height is scarce, so slim the tab bar
   and don't let the sticky bar eat the viewport */
@media (max-width: 920px) and (orientation: landscape) {
  .tab-link { padding: 0.55rem 1.25rem; font-size: 0.95rem; }
  .site-header { padding: 0.75rem 1rem 0.5rem; }
  .hero { max-height: 180px; }
}

/* ============================================
   Tab content
   ============================================ */
.tab-content {
  display: none;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2rem) 3rem;
}
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Headings */

/* Used for title next to photo */
h2 {
  color: #5a7d7c;
  margin-bottom: 0.5rem;
  font-size: clamp(1.35rem, 3vw, 2.0rem);
}

/* Used for titles under photo */
h3 {
    color: #5a7d7c;
    margin-top: 0.05em; 
    margin-bottom: 0.05em; 
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

/* Used for text next to photo */
h4 {
    margin-top: 0.05em; 
    margin-bottom: 0.05em; 
    font-size: clamp(1.2rem, 2vw, 1.0rem);
}

/* Used for a gap between sections */
h5 {
    margin-top: 0.5em; 
    margin-bottom: 0.25em; 
    font-size: clamp(1.1rem, 2vw, 1.25rem);
}

.spaced-paragraph {
    margin-bottom: 0.18em; /* Adjust this value to make the blank line larger or smaller */
  }
 
/* Hero image */
.hero {
  width: 150%;
  max-height: clamp(180px, 30vw, 340px);
  border-radius: 8px;
  margin-bottom: 1.0rem;
}

/* Services cards: single column on phones, multi-column above ~640px */
.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
.card-grid article {
  background: #fff;
  padding: 1.5;
  border-radius: 8px;
}

.notice {
  background: #fdf3e3;
  border-left: 4px solid #e8c07a;
  padding: 1rem;
  margin-top: 1.5rem;
  border-radius: 0 8px 8px 0;
}
/* ============================================
   Social Content
   ============================================ */
/* Container */
.social-links {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: left;
}

.social-links li {
    margin: 0;
}

/* Link styling */
.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 1px solid #ddd;
}

/* Icon sizing */
.social-links i {
    font-size: 1.25rem;
    color: #6d4aff;
}

/* Hover effects */
.social-links a:hover {
    background-color: #6d4aff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 76, 255, 0.25);
}

.social-links a:hover i {
    color: #fff;
}

/* Focus for accessibility */
.social-links a:focus {
    outline: 2px solid #6d4aff;
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 480px) {
    .social-links {
        flex-direction: column;
        align-items: stretch;
    }
    
    .social-links a {
        justify-content: center;
    }
}

/* ============================================
   Team grid
   1 column on phones, 2+ on larger screens
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
.team-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;          /* consistent photo shape at any size */
  object-fit: cover;
  border-radius: 8px;
}
.team-grid figcaption { margin-top: 0.5rem; text-align: center; }

/* ============================================
   Contact
   ============================================ */
.contact-list { list-style: none; margin-bottom: 1.5rem; }
.contact-list a { color: #5a7d7c; }

.appointment-form {
  display: grid;
  gap: 0.75rem;
  background: #fff;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 8px;
}

/* Inputs: 16px font prevents iOS zoom-on-focus */
.appointment-form input,
.appointment-form textarea {
  font-size: 1rem;
  font-family: inherit;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
}

/* Landscape phones: save vertical space */
@media (max-width: 920px) and (orientation: landscape) {
  .appointment-form textarea { rows: auto; min-height: 4em; }
}

.appointment-form button {
  background: #5a7d7c;
  color: #fff;
  border: none;
  padding: 0.85rem;
  font-size: 1.05rem;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 0.5rem;
}
.appointment-form button:hover { background: #4c6b6a; }
.appointment-form button:focus-visible,
.appointment-form input:focus-visible,
.appointment-form textarea:focus-visible {
  outline: 3px solid #e8c07a;
  outline-offset: 2px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.85rem;
  color: #777;
  border-top: 1px solid #ddd;
}