/*
Theme Name: Angkor Marine Solutions
Theme URI: https://angkor-marine.com.kh
Author: Angkor Marine Solutions
Author URI: https://angkor-marine.com.kh
Description: Official website theme for Angkor Marine Solutions — Cambodia's authorized Yamaha Marine distributor. Single-page layout with bilingual English/Khmer support.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ams
Tags: one-page, business, marine, bilingual
*/

/* ============================================================
   BASE RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Barlow', sans-serif; line-height: 1.6; background: #FAFBFD; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; cursor: pointer; }
ul { list-style: none; }

/* ============================================================
   CONTAINER
============================================================ */
.ams-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================================
   NAVIGATION
============================================================ */
.ams-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #E0E8F2;
  height: 72px;
  transition: box-shadow 0.3s ease;
}
.ams-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.12);
}
.ams-nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ams-logo { height: 46px; display: block; }
.ams-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.ams-nav-link {
  color: #0D1B4B;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.ams-nav-link:hover { opacity: 1; }
.ams-nav-cta {
  background: #D41B2C;
  color: #ffffff;
  padding: 9px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  transition: background 0.2s ease;
}
.ams-nav-cta:hover { background: #B8141F; color: #ffffff; }
.ams-lang-btn {
  background: transparent;
  border: 1.5px solid #0D1B4B;
  color: #0D1B4B;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans Khmer', 'Barlow', sans-serif;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1.4;
}
.ams-lang-btn:hover { background: #0D1B4B; color: #ffffff; }
.ams-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.ams-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #0D1B4B;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.ams-mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ams-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.ams-mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
============================================================ */
.ams-hero {
  background: #0D1B4B;
  min-height: 100vh;
  padding-top: 72px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.ams-hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.ams-hero-accent-slab {
  position: absolute; top: 0; right: 0;
  width: 52%; height: 100%;
  background: linear-gradient(150deg, transparent 40%, rgba(212,27,44,0.07) 100%);
  pointer-events: none;
}
.ams-hero-glow {
  position: absolute; bottom: -120px; left: -120px;
  width: 550px; height: 550px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,46,122,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.ams-hero-layout {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 300px);
  gap: 48px;
  align-items: center;
  padding: 80px 0;
  position: relative;
  z-index: 1;
}
.ams-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(212,27,44,0.12);
  border: 1px solid rgba(212,27,44,0.28);
  border-radius: 4px;
  padding: 6px 12px;
  margin-bottom: 32px;
  overflow: hidden;
}
.ams-hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #D41B2C; flex-shrink: 0;
}
.ams-hero-badge-text {
  color: #FF7080;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
}
.ams-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.08;
  margin-bottom: 28px;
  text-wrap: balance;
}
.ams-accent-text { color: #D41B2C; }
.ams-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.62);
  line-height: 1.8;
  margin-bottom: 44px;
  max-width: 480px;
}
.ams-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.ams-btn-primary {
  background: #D41B2C;
  color: #ffffff;
  padding: 14px 30px;
  border-radius: 4px;
  font-size: 15px; font-weight: 600;
  display: inline-block;
  transition: background 0.2s ease;
}
.ams-btn-primary:hover { background: #B8141F; color: #ffffff; }
.ams-btn-outline-light {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.42);
  padding: 13px 30px;
  border-radius: 4px;
  font-size: 15px; font-weight: 600;
  display: inline-block;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ams-btn-outline-light:hover {
  border-color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.05);
  color: #ffffff;
}
.ams-hero-card-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ams-hero-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}
.ams-hero-card-logo { width: 100%; max-width: 240px; }
.ams-hero-card-footer {
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid #E8EEF8;
  text-align: center;
}
.ams-hero-card-footer p:first-child {
  font-size: 11px; color: #8899BB; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.ams-hero-card-footer p:last-child { font-size: 11px; color: #AABBD0; margin-top: 3px; }

/* ============================================================
   TAGS
============================================================ */
.ams-tag {
  display: inline-block;
  background: rgba(212,27,44,0.08); color: #C01525;
  border: 1px solid rgba(212,27,44,0.2);
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 18px;
}
.ams-tag-dark {
  display: inline-block;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 18px;
}

/* ============================================================
   ABOUT
============================================================ */
.ams-about { background: #FAFBFD; padding: 100px 0; }
.ams-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.ams-about-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 50px; font-weight: 800;
  color: #0D1B4B; line-height: 1.08; margin-bottom: 28px;
}
.ams-about-body {
  font-size: 17px; color: #3D4E6A; line-height: 1.85;
  padding-left: 20px; border-left: 3px solid #1E2E7A; font-style: italic;
}
.ams-about-logo-wrap { margin-top: 36px; }
.ams-about-logo { height: 52px; }
.ams-stats { display: flex; flex-direction: column; gap: 16px; }
.ams-stat {
  background: #0D1B4B;
  border-radius: 8px; padding: 24px 28px;
  display: flex; align-items: center; gap: 24px;
  box-shadow: 0 2px 16px rgba(13,27,75,0.07);
}
.ams-stat.highlight { background: #D41B2C; }
.ams-stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 34px; font-weight: 800; color: #ffffff; min-width: 100px;
}
.ams-stat-label { color: rgba(255,255,255,0.85); font-size: 15px; font-weight: 500; line-height: 1.4; }

/* ============================================================
   PRODUCTS
============================================================ */
.ams-products { background: #EEF1F8; padding: 100px 0; }
.ams-section-header { text-align: center; margin-bottom: 60px; }
.ams-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 48px; font-weight: 800;
  color: #0D1B4B; line-height: 1.1; margin-bottom: 16px;
}
.ams-section-sub {
  font-size: 16px; color: #3D4E6A;
  max-width: 620px; margin: 0 auto; line-height: 1.7;
}
.ams-prod-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.ams-prod-card {
  background: #ffffff; border: 1px solid #E0E8F2;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 16px rgba(13,27,75,0.07);
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ams-prod-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(13,27,75,0.13); }
.ams-prod-img {
  height: 190px;
  background: repeating-linear-gradient(135deg,#e4eaf4 0px,#e4eaf4 8px,#edf1f8 8px,#edf1f8 16px);
  display: flex; align-items: center; justify-content: center;
}
.ams-prod-img-label {
  font-family: monospace; font-size: 11px; color: #7A8EAA;
  background: rgba(255,255,255,0.85); padding: 5px 10px;
  border-radius: 3px; text-align: center; max-width: 80%;
}
.ams-prod-body { padding: 20px 22px 26px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.ams-prod-range {
  display: inline-block;
  background: rgba(212,27,44,0.08); color: #C01525;
  border: 1px solid rgba(212,27,44,0.2);
  border-radius: 4px; padding: 2px 9px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  align-self: flex-start;
}
.ams-prod-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 700; color: #0D1B4B;
}
.ams-prod-desc { font-size: 14px; color: #3D4E6A; line-height: 1.65; }
.ams-products-divider { margin-top: 64px; padding-top: 56px; border-top: 1px solid #E0E8F2; }
.ams-sub-section-header { margin-bottom: 36px; }
.ams-sub-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 34px; font-weight: 800; color: #0D1B4B; margin-bottom: 8px;
}
.ams-sub-section-sub { font-size: 15px; color: #3D4E6A; line-height: 1.65; }
.ams-section-cta { text-align: center; margin-top: 48px; }

/* ============================================================
   SERVICES
============================================================ */
.ams-services { background: #FAFBFD; padding: 100px 0; }
.ams-svc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.ams-svc-card {
  background: #ffffff; border: 1px solid #E0E8F2;
  border-radius: 8px; padding: 32px 24px;
  box-shadow: 0 2px 16px rgba(13,27,75,0.07);
  border-top: 3px solid #D41B2C;
}
.ams-svc-icon {
  width: 46px; height: 46px; border-radius: 8px;
  background: rgba(212,27,44,0.08); color: #D41B2C;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.ams-svc-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 21px; font-weight: 700; color: #0D1B4B;
  margin-bottom: 12px; line-height: 1.25;
}
.ams-svc-desc { font-size: 14px; color: #3D4E6A; line-height: 1.65; }

/* ============================================================
   CONTACT
============================================================ */
.ams-contact { background: #0A1628; padding: 100px 0; }
.ams-contact-header { margin-bottom: 56px; }
.ams-contact-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 48px; font-weight: 800; color: #ffffff; line-height: 1.1; margin-bottom: 12px;
}
.ams-contact-sub { font-size: 16px; color: rgba(255,255,255,0.62); line-height: 1.7; max-width: 520px; }
.ams-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.ams-contact-details { display: flex; flex-direction: column; gap: 30px; }
.ams-contact-row-label {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.42);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px;
}
.ams-contact-address { font-size: 15px; color: #ffffff; line-height: 1.75; }
.ams-contact-phones { display: flex; flex-direction: column; gap: 5px; }
.ams-contact-phone {
  font-size: 17px; color: #ffffff; font-weight: 600;
  transition: color 0.15s ease;
}
.ams-contact-phone:hover { color: rgba(255,255,255,0.75); }
.ams-contact-email {
  font-size: 15px; color: #FF8090; font-weight: 500;
  word-break: break-all; transition: color 0.15s ease;
}
.ams-contact-email:hover { color: #ffaab5; }
.ams-contact-hours { font-size: 15px; color: #ffffff; }
.ams-map-placeholder {
  height: 380px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; overflow: hidden; position: relative;
}
.ams-map-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(100,130,180,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.ams-map-pin-outer {
  width: 40px; height: 40px; border-radius: 50%;
  background: #D41B2C; opacity: 0.25; z-index: 1;
}
.ams-map-pin-inner {
  width: 16px; height: 16px; border-radius: 50%;
  background: #D41B2C; opacity: 0.6; margin-top: -28px; z-index: 1;
}
.ams-map-label {
  font-family: monospace; font-size: 12px;
  color: rgba(255,255,255,0.25); text-align: center; z-index: 1;
}

/* ============================================================
   FOOTER
============================================================ */
.ams-footer { background: #060E22; padding: 60px 0 28px; color: #ffffff; }
.ams-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 60px; margin-bottom: 44px;
}
.ams-footer-logo-wrap {
  background: #ffffff; display: inline-block;
  border-radius: 6px; padding: 6px 12px; margin-bottom: 20px;
}
.ams-footer-logo { height: 50px; }
.ams-footer-tagline { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.75; max-width: 300px; }
.ams-footer-col-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35); text-transform: uppercase; margin-bottom: 20px;
}
.ams-footer-links { display: flex; flex-direction: column; gap: 12px; }
.ams-footer-link { color: rgba(255,255,255,0.65); font-size: 14px; transition: color 0.15s ease; }
.ams-footer-link:hover { color: #ffffff; }
.ams-footer-contact-list { display: flex; flex-direction: column; gap: 10px; }
.ams-footer-divider {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.ams-footer-copy { font-size: 13px; color: rgba(255,255,255,0.35); }
.ams-footer-sub { font-size: 12px; color: rgba(255,255,255,0.25); }

/* ============================================================
   KHMER MODE
============================================================ */
body.is-kh {
  font-family: 'Noto Sans Khmer', sans-serif;
}
body.is-kh .ams-hero-title,
body.is-kh .ams-about-title,
body.is-kh .ams-section-title,
body.is-kh .ams-contact-title,
body.is-kh .ams-sub-section-title {
  font-family: 'Noto Sans Khmer', sans-serif;
}
body.is-kh .ams-hero-title    { font-size: 38px; }
body.is-kh .ams-about-title   { font-size: 40px; }
body.is-kh .ams-section-title { font-size: 38px; }
body.is-kh .ams-contact-title { font-size: 38px; }
body.is-kh .ams-svc-title     { font-family: 'Noto Sans Khmer', sans-serif; font-size: 17px; }
body.is-kh .ams-prod-title    { font-family: 'Noto Sans Khmer', sans-serif; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .ams-prod-grid  { grid-template-columns: repeat(2,1fr); }
  .ams-svc-grid   { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .ams-container { padding: 0 24px; }

  /* Nav */
  .ams-nav-links {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #ffffff; border-bottom: 1px solid #E0E8F2;
    flex-direction: column; align-items: flex-start;
    padding: 20px 24px; gap: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .ams-nav-links.open { display: flex; }
  .ams-mobile-toggle  { display: flex; }

  /* Hero */
  .ams-hero-layout        { grid-template-columns: 1fr; }
  .ams-hero-card-wrap     { display: none; }
  .ams-hero-title         { font-size: clamp(28px, 6vw, 42px); }

  /* About */
  .ams-about-grid  { grid-template-columns: 1fr; gap: 48px; }
  .ams-about-title { font-size: 36px; }

  /* Products */
  .ams-prod-grid    { grid-template-columns: 1fr; }
  .ams-section-title { font-size: 34px; }

  /* Services */
  .ams-svc-grid { grid-template-columns: 1fr; }

  /* Contact */
  .ams-contact-grid  { grid-template-columns: 1fr; gap: 40px; }
  .ams-contact-title { font-size: 34px; }
  .ams-map-placeholder { height: 260px; }

  /* Footer */
  .ams-footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .ams-about, .ams-products, .ams-services, .ams-contact { padding: 72px 0; }
  .ams-footer { padding: 48px 0 24px; }
}
