/* === Global Reset & Base Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================
   Design Tokens (Colors, Fonts)
   ============================ */
:root {
  --primary: #004e55;   /* Deep teal – trustworthy and professional */
  --accent: #293d8b;    /* Bright accent for hover states or highlights */
  --neutral: #faf9f6; /* #f7f7f7;   /* Background gray */
  --text: #333333;      /* Primary text */
  --light-text: #555555;/* Secondary text */
  --shadow: rgba(0, 0, 0, 0.1);
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--neutral);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.2;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--primary);
}


/* === Header === */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 16px 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap; /* allows wrapping on narrow screens */
}

nav .logo img {
  max-height: 90px;
  width: auto;
  height: auto;
}

nav .nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
}

nav .nav-links li {
  margin-left: 30px;
}

nav .nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: bold;
  transition: color 0.3s ease;
}

nav .nav-links a:hover {
  color: var(--primary);
}

/* === Hero Section === */
#hero {
  background: #f9f9f9;
  padding: calc(100px + 5vh) 20px 80px;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 10px auto;
  gap: 40px;
  flex-wrap: wrap; /* Important: enables vertical stacking */
}

.hero-text {
  flex: 1 1 60%;
  min-width: 280px;
  text-align: justify;
}

.hero-text h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 10px;
  color: #222;
}

.hero-text h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 300;
  margin: 15px 0 25px;
  color: #444;
}

.hero-text p {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  margin-bottom: 10px;
}

.hero-image {
  flex: 1 1 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: min(250px, 70%);
  filter: grayscale(100%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Default: hide mobile logo */
.hero-logo-mobile {
  display: none;
}

/* === Buttons === */
.cta-btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
  margin-top: 25px;
}

.cta-btn:hover {
  background: var(--accent);
  color: white;
}

/* === Contact Section === */
#contact {
  background: #dde0e1;
  padding: 60px 20px;
  font-family: var(--font-body);
}

#contact .container {
  max-width: 1200px;
  margin: 0 auto;
}

#contact h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.6rem);
  margin-bottom: 20px;
  font-weight: 600;
  color: #333;
}

#contact p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 800px;
  color: #555;
}

.contact-info-container {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
  max-width: 100%;
}

.contact-info {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  font-size: 1.1rem;
}

.contact-item .icon {
  font-size: 1.5rem;
  margin-right: 12px;
  color: #005f6a;
}

.contact-item strong {
  margin-right: 6px;
  min-width: 70px;
  display: inline-block;
  color: #007a8a;
}

.contact-item a {
  color: #007a8a;
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-item address {
  font-style: normal;
  margin-left: 6px;
  line-height: 1.4;
}

.contact-image {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-image img {
  width: 150px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16 / 9; /* maintains a nice rectangular proportion */
  margin: 20px auto;
  box-shadow: 0 4px 8px var(--shadow);
  border-radius: 8px;
  overflow: hidden; /* for rounded corners */
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* === Footer === */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 20px 0;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
  #header {
    padding: 10px 0;
  }

  nav {
    flex-direction: column;
    align-items: center;
  }

  nav .logo:nth-of-type(1) {
    display: none; /* Hide secondary logo */
  }

  nav .logo img {
    display: block;           /* removes inline baseline gap */
    margin: 0 auto;           /* horizontally centers within container */
    max-height: 90px;
    width: 90%;
  }

  nav .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
  }

  nav .nav-links li {
    margin: 6px 12px;
  }

  /* Hero stacks vertically */
  #hero {
    padding-top: 20vh;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .hero-logo-mobile {
    display: block;
    margin-top: 5px;
  }

  .hero-logo-mobile img {
    width: clamp(190px, 50vw, 200px);  /* Flexible but never tiny */
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px var(--shadow);
  }

  .hero-text {
    width: 100%;
    text-align: left;
    padding: 0 10px;
  }

  .hero-image {
    order: 2; /* Push image below text */
    margin-top: 25px;
    flex: 0 0 auto; /* Prevent shrinkage */
  }

  .hero-image img {
    width: clamp(190px, 50vw, 200px);  /* Flexible but never tiny */
    height: auto;
    }

  .contact-info-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-info,
  .contact-image {
    width: 100%;
    justify-content: center;
  }

  .contact-image img {
    width: 120px;
  }

  .contact-info,
  .map {
    width: 100%;            /* take full width */
    height: auto;
    max-width: 600px;
  }

  .map {
    margin-top: 20px;       /* spacing between text and map */
  }
}
