/*
Theme Name: Altay Global
Theme URI: https://www.altayglobal.com/
Author: Altay Global Trading
Description: Draft corporate site for Altay Global Trading. All visible copy lives in inc/content.php.
Version: 0.2.0
Text Domain: altay-global
*/

:root {
  --navy: #1a4a73;
  --navy-d: #0f2c46;
  --ink: #16324a;
  --cyan: #00b3d7;
  --teal: #12a394;
  --paper: #f6f8fa;
  --white: #ffffff;
  --line: #d7e0e6;
  --muted: #5a6d7a;
  --gold-line: #c4a35a;
  --danger: #9b2c2c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 44, 70, 0.08);
  --max: 1120px;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  padding-bottom: 84px;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 1.05rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--teal); }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 20; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 84px;
}
.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; min-width: 0; flex-shrink: 0; }
/* Keep the logo's native aspect ratio: height is the constraint, width follows.
   Override the global `img { max-width:100%; height:auto }` so the mark cannot be squashed. */
.site-header .brand img,
.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-height: 44px;
  max-width: min(100%, 280px);
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}
.brand-slogan {
  font-family: var(--serif); font-style: italic; font-size: 0.78rem;
  color: var(--navy); letter-spacing: 0.01em; margin: 0;
}
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.92rem;
  padding: 8px 10px; border-radius: 8px;
}
.nav a[aria-current="page"], .nav a:hover { background: var(--paper); color: var(--navy-d); }
.lang { display: flex; gap: 2px; margin-left: 8px; border-left: 1px solid var(--line); padding-left: 10px; }
.lang a { font-size: 0.8rem; letter-spacing: 0.06em; font-weight: 700; color: var(--muted); }
.lang a[aria-current="true"] { color: var(--navy); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font: inherit; font-weight: 700;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #f3f7f9 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 10px;
}
.hero h1, .page-hero h1 {
  font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 8px;
  font-size: clamp(2rem, 4.4vw, 3.1rem); color: var(--navy-d); letter-spacing: -0.02em;
}
.slogan-lg {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: var(--navy); margin: 0 0 22px;
}
.lead { font-size: 1.12rem; color: #16324a; margin: 0 0 22px; max-width: 40rem; }
.hero-photo { justify-self: center; }
.hero-photo img, .gallery img, .card-img img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow);
  object-fit: cover;
}
.hero-photo img { max-height: 420px; width: min(320px, 100%); }

/* Buttons / CTA */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 700; border-radius: 999px; padding: 12px 18px;
  border: 1px solid transparent; font-size: 0.95rem; line-height: 1;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-d); color: #fff; }
.btn-wa { background: #128c7e; color: #fff; }
.btn-wa:hover { background: #0e6e63; color: #fff; }
.btn-ghost { background: #fff; color: var(--navy-d); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

/* Trust */
.trust { background: var(--navy-d); color: #e8eef3; padding: 22px 0; }
.trust-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none;
  margin: 0; padding: 0;
}
.trust-list strong { display: block; color: #fff; font-size: 0.95rem; }
.trust-list span { font-size: 0.88rem; color: #b9c9d4; }

/* Sections */
section { padding: 64px 0; }
.section-muted { background: var(--paper); }
h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 12px; color: var(--navy-d); }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 40rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 1.12rem; color: var(--navy-d); }
.card p { margin: 0; color: #365060; }
.card a.more { display: inline-block; margin-top: 12px; font-weight: 700; text-decoration: none; }

/* Steps */
.steps { display: grid; gap: 14px; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 0.95rem;
}
.step h3 { margin: 0 0 4px; font-size: 1.05rem; }
.step p { margin: 0; color: #365060; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery figure { margin: 0; }
.gallery img { height: 260px; width: 100%; object-fit: cover; object-position: center; background: #e9eef1; }
.gallery img.photo-portrait { object-fit: contain; background: #f3f7f9; }
.gallery figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }

/* FAQ */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 8px;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy-d); }
.faq p { margin: 10px 0 0; color: #365060; }

/* Page hero */
.page-hero { padding: 42px 0 10px; }
.page-hero .slogan-lg { font-size: 1.2rem; margin-bottom: 10px; }

/* Contact / form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-card { background: var(--paper); border-radius: var(--radius); padding: 24px; }
.contact-card h2, .contact-card h3 { margin-top: 0; }
.contact-card p, .contact-card li { color: #2b4456; }
.contact-card a { color: var(--navy); }
label { display: block; font-weight: 650; font-size: 0.88rem; margin: 0 0 6px; }
input, select, textarea {
  width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: 14px; background: #fff; color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute !important; left: -9999px !important; }
.form-note { font-size: 0.88rem; color: var(--muted); }
.form-ok { background: #e8f6f1; border: 1px solid #b7e0d2; padding: 12px 14px; border-radius: 10px; }
.form-err { background: #fdecec; border: 1px solid #f2c0c0; padding: 12px 14px; border-radius: 10px; }

/* Footer + sticky CTA */
.site-footer { background: var(--navy-d); color: #d5e0e8; padding: 40px 0 28px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 28px; }
.site-footer a { color: #fff; }
.site-footer .brand img,
.site-footer .brand-logo {
  height: 84px;
  width: auto;
  max-height: 84px;
  max-width: 168px;
  object-fit: contain;
  object-position: left center;
}
.about-portrait {
  margin: 0;
}
.about-portrait img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  background: #f3f7f9;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.about-portrait figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 8px;
}
.site-footer .brand-slogan { color: #cfe3ee; }
.foot-copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; font-size: 0.85rem; color: #9bb0bd; }
.sticky-cta {
  position: sticky; bottom: 0; z-index: 30;
  background: rgba(15,44,70,.96); padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.sticky-cta .wrap { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sticky-cta .btn { padding: 10px 16px; }
.draft-badge {
  position: fixed; top: 90px; right: 12px; z-index: 50;
  background: #8a6d1f; color: #fff; font-size: 0.72rem; letter-spacing: 0.12em;
  padding: 6px 10px; border-radius: 999px; font-weight: 700;
}

@media (max-width: 900px) {
  .hero-grid, .cards, .trust-list, .contact-grid, .footer-grid, .gallery { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; }
  .header-inner { flex-wrap: wrap; }
  .nav.is-open { display: flex; padding-bottom: 12px; }
}
@media (max-width: 640px) {
  .hero { padding: 36px 0 32px; }
  .hero-grid, .cards, .trust-list, .contact-grid, .footer-grid, .gallery { grid-template-columns: 1fr; }
  .hero-photo img, .gallery img { max-height: 320px; width: 100%; }
  .site-header .brand img,
  .brand-logo {
    height: 36px;
    max-height: 36px;
    max-width: min(100%, 210px);
  }
  section { padding: 44px 0; }
}
