/*
Theme Name: APIC Modern
Theme URI: https://apic-online.org/
Author: APIC
Description: Responsive editorial theme for the Asia Petrochemical Industry Conference.
Version: 1.0.1
Text Domain: apic-modern
*/

:root {
  --apic-green: #78b82a;
  --apic-green-dark: #356b2f;
  --apic-navy: #11324a;
  --apic-blue: #0c84b6;
  --apic-mist: #eef5f1;
  --apic-ink: #17242d;
  --apic-muted: #60717b;
  --apic-white: #fff;
  --apic-line: #dce6e1;
  --apic-radius: 18px;
  --apic-shadow: 0 18px 50px rgba(17, 50, 74, .10);
  --apic-wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--apic-ink); background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: var(--apic-blue); text-decoration-thickness: .08em; text-underline-offset: .16em; }
img { max-width: 100%; height: auto; }
.wrap { width: var(--apic-wrap); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 1000; padding: 10px 14px; background: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--apic-line); backdrop-filter: blur(12px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--apic-navy); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 48px; aspect-ratio: 1; border-radius: 15px 5px 15px 5px; color: #fff; background: linear-gradient(145deg, #a7d82f, #4a9d34); font-size: 25px; font-weight: 900; transform: skew(-5deg); }
.brand-copy strong { display: block; font-size: 24px; line-height: 1; letter-spacing: -.04em; }
.brand-copy span { display: block; margin-top: 5px; color: var(--apic-muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.custom-brand .custom-logo-link { display: inline-flex; align-items: center; }
.custom-brand .custom-logo { display: block; width: auto; height: auto; max-width: 222px; max-height: 58px; object-fit: contain; }
.site-nav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--apic-navy); font-size: 14px; font-weight: 750; text-decoration: none; }
.site-nav a:hover { color: var(--apic-green-dark); }
.menu-toggle { display: none; border: 0; border-radius: 10px; padding: 10px 12px; background: var(--apic-mist); font-weight: 800; }

.hero { overflow: hidden; padding: 82px 0 72px; color: #fff; background: radial-gradient(circle at 85% 18%, rgba(122,184,42,.4), transparent 27%), linear-gradient(130deg, #0b2f46 0%, #145b69 60%, #2d704a 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 68px; }
.eyebrow { margin: 0 0 13px; color: var(--apic-green); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(42px, 6vw, 76px); line-height: 1.03; letter-spacing: -.055em; }
.hero .lede { max-width: 690px; margin: 24px 0 0; color: #dcecef; font-size: clamp(17px, 2vw, 21px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; color: #153124; background: var(--apic-green); font-weight: 850; text-decoration: none; }
.button.secondary { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.45); }
.event-card { position: relative; padding: 34px; border: 1px solid rgba(255,255,255,.22); border-radius: 28px; background: rgba(255,255,255,.10); box-shadow: 0 28px 80px rgba(0,0,0,.2); backdrop-filter: blur(10px); }
.event-card .year { color: #fff; font-size: 72px; font-weight: 950; line-height: 1; letter-spacing: -.08em; }
.event-card h2 { margin: 18px 0 8px; font-size: 26px; line-height: 1.2; }
.event-card p { margin: 0; color: #dcecef; }

.section { padding: 78px 0; }
.section.tint { background: var(--apic-mist); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.section-head h2 { margin: 0; color: var(--apic-navy); font-size: clamp(30px, 4vw, 45px); line-height: 1.1; letter-spacing: -.045em; }
.section-head p { max-width: 590px; margin: 0; color: var(--apic-muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 28px; border: 1px solid var(--apic-line); border-radius: var(--apic-radius); background: #fff; box-shadow: 0 12px 35px rgba(17,50,74,.055); }
.card h3 { margin: 8px 0 10px; color: var(--apic-navy); font-size: 21px; line-height: 1.25; }
.card p { color: var(--apic-muted); }
.card .meta { color: var(--apic-green-dark); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.card a.stretched { color: inherit; text-decoration: none; }
.card a.stretched:hover { color: var(--apic-blue); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.feature-panel { min-height: 360px; overflow: hidden; border-radius: 28px; background: #dce8e3; box-shadow: var(--apic-shadow); }
.feature-panel img { display: block; width: 100%; height: 360px; object-fit: cover; object-position: center; }
.feature-copy h2 { margin: 0; color: var(--apic-navy); font-size: clamp(34px, 5vw, 54px); line-height: 1.06; letter-spacing: -.05em; }
.feature-copy p { color: var(--apic-muted); font-size: 18px; }

.page-hero { padding: 68px 0 52px; background: var(--apic-mist); }
.page-hero h1 { max-width: 850px; margin: 0; color: var(--apic-navy); font-size: clamp(40px, 6vw, 68px); line-height: 1.05; letter-spacing: -.055em; }
.content { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 90px; }
.content > *:first-child { margin-top: 0; }
.content h2, .content h3 { color: var(--apic-navy); line-height: 1.2; }
.content h2 { margin-top: 2em; font-size: 32px; }
.content blockquote { margin: 32px 0; padding: 18px 26px; border-left: 5px solid var(--apic-green); background: var(--apic-mist); }

.site-footer { padding: 58px 0 24px; color: #c9d7dd; background: #0b2739; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .6fr .6fr; gap: 50px; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer ul { padding: 0; list-style: none; }
.site-footer a { color: #dcecef; }
.copyright { margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 82px 20px auto; padding: 18px; border: 1px solid var(--apic-line); border-radius: 14px; background: #fff; box-shadow: var(--apic-shadow); }
  .site-nav.open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 3px; }
  .site-nav a { display: block; padding: 10px; }
  .hero-grid, .feature-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  .hero-grid { gap: 36px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  :root { --apic-wrap: min(100% - 28px, 1180px); }
  .brand-copy span { display: none; }
  .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .event-card .year { font-size: 56px; }
}
