/* ================================================
   Dumfries Dietitian - Main Stylesheet
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-dark: #1a4a6b;
  --primary-teal: #20c4a8;
  --primary-teal-dark: #178f7a;
  --primary-teal-light: #e0f7f4;
  --hero-gradient: linear-gradient(150deg, #c5e8f5 0%, #cceee8 35%, #d8f5ee 65%, #eafffe 100%);
  --light-bg: #f0f9fb;
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --border-radius: 16px;
}

/* ---- Base ---- */
body {
  font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
  color: #4a5568;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-dark);
}

/* ---- Navbar ---- */
.navbar {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.navbar-brand img {
  height: 60px;
  width: auto;
}

.brand-text .brand-main {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.brand-text .brand-sub {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-teal);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.nav-link {
  color: #555 !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem !important;
  transition: color 0.2s;
  border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-teal) !important;
}

/* ---- Buttons ---- */
.btn-teal {
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
  color: white !important;
  border: none;
  border-radius: 50px;
  font-weight: 500;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(32, 196, 168, 0.35);
}

.btn-teal:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(32, 196, 168, 0.45);
  color: white !important;
}

.btn-outline-teal {
  background: transparent;
  color: var(--primary-teal) !important;
  border: 2px solid var(--primary-teal);
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-outline-teal:hover {
  background: var(--primary-teal);
  color: white !important;
}

/* ---- Hero Section ---- */
.hero-section {
  background: var(--hero-gradient);
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -5%;
  right: -5%;
  height: 90px;
  background: #fcfafe;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-title .teal {
  color: var(--primary-teal);
}

.hero-text {
  font-size: 1.0rem;
  color: #5a7080;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-wrap img {
  max-height: 420px;
  width: 100%;
  object-fit: contain;
  object-position: right center;
  /* border-radius: 24px; */
  filter: drop-shadow(0 8px 30px rgba(32, 196, 168, 0.2));
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: var(--hero-gradient);
  padding: 60px 0 100px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -5%;
  right: -5%;
  height: 80px;
  background: #f0f9fb;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.page-hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}

.page-hero-sub {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.page-hero-text {
  color: #5a7080;
  font-size: 0.97rem;
  line-height: 1.7;
  max-width: 460px;
}

/* ---- Section Headings ---- */
.section-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.section-lead {
  color: #5a7080;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

/* ---- Why Choose Section ---- */
.why-section {
  padding: 40px 0 70px;
  background-color: #fcfafe;
}

.why-section .container {
  position: relative;
  z-index: 1;
  background-image:
    linear-gradient(to left, #fcfafe 0%, transparent 1%),
    linear-gradient(to right, #fcfafe 0%, transparent 10%),
    linear-gradient(to top, #fcfafe 0%, transparent 10%),
    url('../images/foodimage.png');
  background-size: contain;
  background-position: right bottom;
  background-repeat: no-repeat;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.75rem;
}

.why-list li {
  padding: 0.55rem 0 0.55rem 2.25rem;
  position: relative;
  color: #5a7080;
  line-height: 1.7;
  font-size: 0.97rem;
}

.why-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--primary-teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}



/* ---- Services Section ---- */
.services-section {
  padding: 70px 0 80px;
  background: var(--light-bg);
}

.service-card {
  background: white;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  color: white;
  flex-shrink: 0;
}

.service-card h5 {
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.service-card p.service-intro {
  color: #6a8090;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  padding: 0.3rem 0 0.3rem 1.3rem;
  position: relative;
  color: #6a8090;
  font-size: 0.88rem;
  line-height: 1.5;
}

.service-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-teal);
  font-weight: 700;
  font-size: 1rem;
}

/* ---- Not Sure CTA ---- */
.not-sure-banner {
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  color: white;
  text-align: center;
}

.not-sure-banner h4 {
  color: white;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.not-sure-banner p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.btn-white {
  background: white;
  color: var(--primary-teal) !important;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  background: #f0fffe;
  transform: translateY(-1px);
}

/* ---- Pricing Section ---- */
.pricing-section {
  padding: 30px 0 80px;
  background: var(--light-bg);
}

.pricing-card {
  background: white;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.pricing-card .pricing-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.pricing-card .pricing-header-text {
  display: flex;
  flex-direction: column;
}

.pricing-title {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.price-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  flex-shrink: 0;
}

.pricing-price {
  color: var(--primary-teal);
  font-weight: 700;
  font-size: 1.3rem;
}

.pricing-desc {
  color: #6a8090;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 0.75rem;
}

.pricing-examples {
  color: #6a8090;
  font-size: 0.88rem;
  margin-top: 0.5rem;
}

/* ---- Face-to-Face Banner ---- */
.ftf-banner {
  background: linear-gradient(135deg, #d4eef5 0%, #d0f0ea 100%);
  border-radius: var(--border-radius);
  padding: 2rem 2.5rem;
}

.ftf-banner h5 {
  color: var(--primary-dark);
  font-weight: 700;
}

.ftf-banner p {
  color: #5a7080;
  font-size: 0.95rem;
  margin: 0;
}

/* ---- Calculator Section ---- */
.calculator-section {
  padding: 30px 0 80px;
  background: var(--light-bg);
}

.calc-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 2.5rem;
}

.calc-card label {
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.calc-card .form-control,
.calc-card .form-select {
  border-radius: 10px;
  border: 1.5px solid #dde4ea;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.calc-card .form-control:focus,
.calc-card .form-select:focus {
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(32, 196, 168, 0.15);
  outline: none;
}

.calc-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-teal);
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--primary-teal-light);
}

.result-box {
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
  border-radius: var(--border-radius);
  padding: 2rem;
  color: white;
  text-align: center;
}

.result-box h4 {
  color: white;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.result-greeting {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.result-main {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.result-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: white;
}

.result-unit {
  font-size: 1rem;
  opacity: 0.85;
  margin-top: 0.3rem;
}

.result-breakdown {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.breakdown-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.breakdown-item span:last-child {
  font-weight: 700;
}

.result-disclaimer {
  font-size: 0.78rem;
  opacity: 0.75;
  margin-top: 1.25rem;
  line-height: 1.5;
}

/* ---- Privacy Section ---- */
.privacy-section {
  background: var(--light-bg);
  padding: 30px 0 70px;
}

/* ---- Contact Section ---- */
.contact-section {
  background: var(--hero-gradient);
  padding: 80px 0;
  position: relative;
}

.contact-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 2.5rem;
}

.contact-card .form-control,
.contact-card textarea.form-control {
  border-radius: 10px;
  border: 1.5px solid #dde4ea;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-card .form-control:focus,
.contact-card textarea.form-control:focus {
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(32, 196, 168, 0.15);
  outline: none;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-text strong {
  display: block;
  color: var(--primary-dark);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.contact-info-text span {
  color: #6a8090;
  font-size: 0.9rem;
}

/* ---- Footer ---- */
footer {
  background: var(--primary-dark);
  color: #a8c5d5;
  padding: 1.25rem 0;
}

footer a {
  color: #9edde8;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: white;
}

footer .copyright {
  font-size: 0.82rem;
  color: #7ab0c0;
}

/* ---- Utility ---- */
.text-teal { color: var(--primary-teal) !important; }
.text-dark-teal { color: var(--primary-dark) !important; }
.bg-light-teal { background-color: var(--light-bg) !important; }
.badge-teal {
  background: var(--primary-teal-light);
  color: var(--primary-teal);
  font-weight: 600;
  border-radius: 50px;
  padding: 0.3em 0.85em;
  font-size: 0.82rem;
}

/* ---- Alert / Form feedback ---- */
.alert-teal {
  background: var(--primary-teal-light);
  border: 1px solid rgba(32, 196, 168, 0.3);
  color: var(--primary-teal-dark);
  border-radius: 10px;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .why-section .container { background-image: none; }
  .hero-section { padding: 60px 0 100px; }
  .hero-title { font-size: 2.2rem; }
  .page-hero-title { font-size: 1.9rem; }
}

@media (max-width: 767px) {
  .hero-title { font-size: 1.9rem; }
  .hero-section { padding: 50px 0 90px; }
  .hero-section::after { height: 60px; }
  .section-heading { font-size: 1.7rem; }
  .calc-card { padding: 1.5rem; }
  .contact-card { padding: 1.5rem; }
  .navbar-nav { padding: 1rem 0; gap: 0.25rem; }
  .navbar-nav .btn-teal { margin-top: 0.5rem; }
}
