/* ===== SADUAK SUAY MAI — Corporate Website ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700&family=Noto+Serif+JP:wght@300;400;500&family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --light-pink: #FFF5F7;
  --pale-pink: #FFE8EE;
  --rose: #E8A0B0;
  --rose-dark: #C97A90;
  --text-dark: #1A1A1A;
  --text-mid: #4A4A4A;
  --text-soft: #8A8A8A;
  --border: #F0E8EB;
  --shadow: rgba(200, 150, 170, 0.12);
  --shadow-hover: rgba(200, 150, 170, 0.25);
  --gradient: linear-gradient(135deg, #FFF5F7 0%, #FFFFFF 50%, #FFF0F4 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans Thai', 'Sarabun', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.8;
  font-size: 16px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 2px 20px var(--shadow); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.nav-logo .logo-th {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.nav-logo .logo-en {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--rose-dark);
  background: var(--light-pink);
}

.nav-cta {
  background: var(--rose-dark);
  color: var(--white) !important;
  border-radius: 24px !important;
  padding: 8px 20px !important;
}
.nav-cta:hover {
  background: #B5607A !important;
  color: var(--white) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  width: 24px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://www.tamadaclinic.co.th/wp-content/uploads/2024/05/1920x1080-128.png');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.hero-text { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pale-pink);
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 24px;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rose-dark);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.hero h1 .highlight {
  color: var(--rose-dark);
}
.hero-subtitle {
  font-size: 14px;
  color: var(--text-soft);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-desc {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rose-dark);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 32px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(201, 122, 144, 0.3);
}
.btn-primary:hover {
  background: #B5607A;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 122, 144, 0.4);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--rose-dark);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 32px;
  text-decoration: none;
  border: 1.5px solid var(--rose);
  transition: all 0.3s;
}
.btn-secondary:hover {
  background: var(--light-pink);
  border-color: var(--rose-dark);
  transform: translateY(-2px);
}

.hero-image {
  position: relative;
  z-index: 1;
}
.hero-image-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px var(--shadow);
}
.hero-image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}
.hero-stat-card {
  position: absolute;
  background: var(--white);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-stat-card.card-1 { bottom: 24px; left: -20px; }
.hero-stat-card.card-2 { top: 24px; right: -20px; }
.hero-stat-card .stat-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--pale-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.hero-stat-card .stat-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}
.hero-stat-card .stat-label {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 2px;
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px;
}
.trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
}
.trust-item .trust-icon {
  font-size: 22px;
  color: var(--rose-dark);
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 24px;
}
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-dark);
  background: var(--pale-pink);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.9;
  max-width: 600px;
  margin-bottom: 48px;
}
.section-center { text-align: center; }
.section-center .section-desc { margin-left: auto; margin-right: auto; }

/* ===== SERVICE GRID ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--rose-dark));
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-hover);
  border-color: var(--rose);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--pale-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ===== PHOTO GRID ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.photo-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.3s;
}
.photo-grid img:hover { transform: scale(1.03); }
.photo-grid .span-2 { grid-column: span 2; }
.photo-grid .span-2 img { height: 412px; }

/* ===== TEAM / ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image { border-radius: 24px; overflow: hidden; }
.about-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}
.about-content .section-desc { max-width: 100%; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.stat-box {
  background: var(--light-pink);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}
.stat-box .num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--rose-dark);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-box .label {
  font-size: 13px;
  color: var(--text-soft);
}

/* ===== INFO CARD ===== */
.info-card {
  background: var(--light-pink);
  border-radius: 20px;
  padding: 28px;
  margin-top: 24px;
}
.info-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.info-row {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 8px;
  line-height: 1.7;
}
.info-row .info-label {
  font-weight: 600;
  color: var(--text-dark);
  min-width: 120px;
  flex-shrink: 0;
}

/* ===== BRANCHES ===== */
.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.branch-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s;
}
.branch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-hover);
}
.branch-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.branch-card-body { padding: 24px; }
.branch-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: var(--pale-pink);
  color: var(--rose-dark);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.branch-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.branch-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

.affiliate-section {
  background: var(--light-pink);
  border-radius: 24px;
  padding: 48px;
  margin-top: 60px;
}
.affiliate-section h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-dark);
}
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.affiliate-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
}
.affiliate-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--rose-dark);
  margin-bottom: 8px;
}
.affiliate-card p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
}
.branch-list {
  list-style: none;
  margin-top: 8px;
}
.branch-list li {
  font-size: 13px;
  color: var(--text-mid);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.branch-list li::before {
  content: '•';
  color: var(--rose-dark);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-item .contact-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--pale-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-item-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.contact-item-body p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

.contact-form-box {
  background: var(--light-pink);
  border-radius: 24px;
  padding: 40px;
}
.contact-form-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--rose);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ===== MAP ===== */
.map-section { margin-top: 60px; }
.map-section iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 20px;
  box-shadow: 0 8px 32px var(--shadow);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--gradient);
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-size: cover;
  background-position: center;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  position: relative;
}
.page-hero p {
  font-size: 16px;
  color: var(--text-mid);
  position: relative;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 20px;
  position: relative;
}
.breadcrumb a { color: var(--rose-dark); text-decoration: none; }

/* ===== FOOTER ===== */
footer {
  background: #1A1A1A;
  color: var(--white);
  padding: 60px 24px 30px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-th {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}
.footer-brand .logo-en {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--rose); }
.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, #C97A90 0%, #E8A0B0 100%);
  padding: 80px 24px;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 32px;
}
.cta-banner .btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--rose-dark);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 32px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.cta-banner .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .affiliate-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid .span-2 { grid-column: span 1; }
  .photo-grid .span-2 img { height: 200px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    padding: 20px;
    gap: 4px;
    box-shadow: 0 8px 24px var(--shadow);
    border-bottom: 1px solid var(--border);
  }
  .section { padding: 60px 20px; }
  .affiliate-section { padding: 30px 20px; }
  .contact-form-box { padding: 24px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .hero-stat-card { display: none; }
}
