/* ============================================
   First FRP Thailand — shared stylesheet
   ============================================ */

:root{
  --navy:        #0b2545;
  --blue:        #0b63ab;
  --blue-dark:   #084a80;
  --blue-light:  #eaf3fb;
  --steel:       #5b6b7c;
  --steel-light: #f4f6f8;
  --border:      #e3e8ee;
  --orange:      #e8792a;
  --orange-dark: #c9631d;
  --text:        #23303f;
  --text-muted:  #5b6b7c;
  --white:       #ffffff;
  --radius:      10px;
  --shadow:      0 4px 18px rgba(11,37,69,0.08);
  --shadow-lg:   0 12px 34px rgba(11,37,69,0.14);
  --maxw:        1140px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a{ color: var(--blue); text-decoration: none; }
a:hover{ color: var(--blue-dark); }

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4{
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 700;
}

h1{ font-size: clamp(2rem, 4vw, 2.9rem); }
h2{ font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3{ font-size: 1.25rem; }

p{ margin: 0 0 16px; color: var(--text-muted); }

.eyebrow{
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 10px;
}

.section{ padding: 72px 0; }
.section-alt{ background: var(--steel-light); }
.section-navy{ background: var(--navy); color: var(--white); }
.section-navy p{ color: #c6d3e3; }
.section-navy h2{ color: var(--white); }

.center{ text-align: center; }
.lede{ max-width: 720px; margin: 0 auto 44px; text-align: center; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary{
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover{
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-outline{
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline:hover{
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-navy{
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}
.btn-outline-navy:hover{
  background: var(--blue);
  color: var(--white);
}

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 20px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
}
.brand .mark{
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.brand small{
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.main-nav{
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a{
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active{
  color: var(--blue);
  border-bottom-color: var(--orange);
}

.header-cta{
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-phone{
  display: none;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  white-space: nowrap;
}
.header-phone span{
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.nav-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span{
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  color: var(--white);
  display: flex;
  align-items: center;
  min-height: 78vh;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8,25,49,0.92) 0%, rgba(8,25,49,0.78) 42%, rgba(8,25,49,0.4) 100%);
}
.hero-inner{
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
}
.hero-content{ max-width: 640px; }
.hero .eyebrow{ color: #ffb066; }
.hero h1{ color: var(--white); margin-bottom: 18px; }
.hero p{ color: #dbe6f2; font-size: 1.12rem; max-width: 560px; }
.hero-actions{
  display: flex;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-hero{
  position: relative;
  color: var(--white);
  padding: 90px 0 56px;
  background: linear-gradient(120deg, var(--navy), var(--blue-dark));
  text-align: center;
}
.page-hero h1{ color: var(--white); margin-bottom: 10px; }
.page-hero p{ color: #cddcee; max-width: 620px; margin: 0 auto; }

/* ---------- Cards / grids ---------- */
.grid{
  display: grid;
  gap: 28px;
}
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }

.card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card .icon{
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg{ width: 26px; height: 26px; }
.card h3{ margin-bottom: 10px; }
.card p{ margin-bottom: 0; }

.img-card{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
}
.img-card img{ width: 100%; height: 220px; object-fit: cover; }
.img-card .img-card-body{ padding: 22px 24px; }
.img-card h3{ margin-bottom: 8px; }
.img-card p{ margin-bottom: 0; }

/* ---------- Split / two-column feature ---------- */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.split img{
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}
.split.reverse .split-media{ order: 2; }
.split.reverse .split-text{ order: 1; }

.check-list{
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.check-list li{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--text);
}
.check-list li svg{
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--orange);
}

/* ---------- Stats ---------- */
.stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .num{
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--white);
}
.stat .label{
  color: #b9c9dc;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ---------- Certifications strip ---------- */
.cert-strip{
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.cert-strip figure{
  margin: 0;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  width: 190px;
}
.cert-strip img{
  border-radius: 4px;
  margin-bottom: 8px;
}
.cert-strip figcaption{
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ---------- Size table ---------- */
.size-table{
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.size-table th, .size-table td{
  padding: 16px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.size-table th{
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.size-table tr:last-child td{ border-bottom: none; }
.size-table tr:nth-child(even) td{ background: var(--steel-light); }

/* ---------- Clients ---------- */
.client-strip{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.client-strip span{
  background: var(--white);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
}

/* ---------- CTA banner ---------- */
.cta-banner{
  background: linear-gradient(120deg, var(--blue), var(--navy));
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2{ color: var(--white); margin-bottom: 6px; }
.cta-banner p{ color: #d7e3f1; margin-bottom: 0; }

/* ---------- Contact page ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-card{
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.contact-card .icon{
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card .icon svg{ width: 22px; height: 22px; }
.contact-card h3{ margin-bottom: 4px; font-size: 1.05rem; }
.contact-card p{ margin-bottom: 0; }
.contact-card a{ font-weight: 600; }

.map-frame{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 380px;
}
.map-frame iframe{ width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--navy);
  color: #b9c9dc;
  padding: 56px 0 24px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4{
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-grid p{ color: #9db0c7; font-size: 0.92rem; }
.footer-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.footer-links{ list-style: none; margin: 0; padding: 0; }
.footer-links li{ margin-bottom: 10px; }
.footer-links a{ color: #b9c9dc; font-size: 0.92rem; }
.footer-links a:hover{ color: var(--white); }
.footer-bottom{
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #8398b2;
}

/* ---------- Responsive ---------- */
@media (min-width: 860px){
  .header-phone{ display: block; }
}

@media (max-width: 860px){
  .main-nav{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 24px 20px;
    gap: 6px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open{ display: flex; }
  .main-nav a{ width: 100%; padding: 10px 0; border-bottom: none; }
  .nav-toggle{ display: block; }
  .split{ grid-template-columns: 1fr; }
  .split.reverse .split-media{ order: 1; }
  .split.reverse .split-text{ order: 2; }
  .grid-3{ grid-template-columns: 1fr 1fr; }
  .grid-4{ grid-template-columns: 1fr 1fr; }
  .stats{ grid-template-columns: 1fr 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .grid-3, .grid-4, .grid-2{ grid-template-columns: 1fr; }
  .section{ padding: 52px 0; }
  .cta-banner{ padding: 32px; }
  .hero{ min-height: 84vh; }
}
