/*
Theme Name: Temis
Theme URI: https://temisinc.com
Author: Temis Inc.
Description: Custom theme for Temis Inc. — navy and gold, serif display headings, photo hero.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: temis
*/

:root {
  --navy: #0B2545;
  --navy-deep: #081C40;
  --ink: #14213D;
  --body: #3B4256;
  --muted: #6B7280;
  --gold: #C8922A;
  --gold-dark: #B8811F;
  --gold-light: #E9C46A;
  --ivory: #F6F4EE;
  --line: #E4E0D6;
  --pale: #C9D3E3;
  --paler: #D6DEEB;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1248px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.05; }
h2 { font-size: clamp(32px, 3.6vw, 48px); }
h3 { font-size: clamp(24px, 2.2vw, 28px); }
p { margin: 0 0 1.2em; color: var(--body); }
p:last-child { margin-bottom: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.eyebrow { display: block; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; margin-bottom: 18px; }
.btn { display: inline-block; padding: 15px 28px; border-radius: 3px; font-weight: 700; font-size: 15px; line-height: 1.2; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.btn-gold { background: var(--gold); color: #0B1F3F; }
.btn-gold:hover { background: var(--gold-dark); color: #0B1F3F; }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.more { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); }

/* Top bar */
.topbar { background: var(--navy-deep); color: var(--pale); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 32px; min-height: 40px; align-items: center; flex-wrap: wrap; }
.topbar a { color: var(--gold-light); }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 46px; height: 41px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .04em; color: var(--navy); }
.brand-sub { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 36px; font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.site-nav li.current-menu-item > a, .site-nav li.current_page_item > a { color: var(--gold-dark); border-bottom: 2px solid var(--gold); padding-bottom: 4px; }
.site-nav .nav-contact a { padding: 12px 22px; border: 1.5px solid var(--navy); border-radius: 3px; }
.site-nav .nav-contact a:hover { background: var(--navy); color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; cursor: pointer; align-items: center; justify-content: center; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy) center/cover no-repeat; min-height: 640px; display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,28,64,.92) 0%, rgba(8,28,64,.72) 45%, rgba(8,28,64,.35) 100%); }
.hero .wrap { position: relative; }
.hero-inner { max-width: 760px; padding: 96px 0; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: #fff; margin-bottom: 28px; }
.hero p { font-size: 19px; color: var(--paler); max-width: 640px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Sections */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-white { background: #fff; }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .eyebrow { color: var(--gold-light); }
.section-navy p { color: var(--pale); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 96px; align-items: center; }
.two-col .entry-content p { font-size: 18px; line-height: 1.7; }
.two-col .entry-content p.eyebrow { font-size: 12px; line-height: 1.4; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.stat { padding: 20px; background: #fff; border-radius: 4px; }
.stat strong { display: block; font-family: var(--serif); font-size: 36px; font-weight: 500; color: var(--navy); line-height: 1; margin-bottom: 6px; }
.stat span { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.about-media img { width: 100%; height: 400px; object-fit: cover; border-radius: 4px; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 56px; }
.section-head h2 { margin: 0; }
.section-head p { max-width: 440px; margin: 0; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 16px; padding: 36px; background: var(--ivory); border-radius: 4px; border-top: 3px solid var(--gold); color: inherit; }
.card:hover { background: #F0EDE4; color: inherit; }
.card svg { width: 36px; height: 36px; }
.card h3 { margin: 0; }
.card p { font-size: 15px; margin: 0; flex-grow: 1; }
.card-cta { background: var(--navy); color: #fff; border-top: 0; justify-content: center; }
.card-cta:hover { background: var(--navy); color: #fff; }
.card-cta h3 { color: #fff; }
.card-cta p { color: var(--pale); flex-grow: 0; }
.card-cta .btn { align-self: flex-start; padding: 12px 20px; font-size: 14px; }

.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 56px; }
.theme { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.25); }
.theme .num { display: block; font-family: var(--serif); font-size: 20px; color: var(--gold-light); margin-bottom: 14px; }
.theme h3 { font-family: var(--sans); font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.theme p { font-size: 16px; line-height: 1.7; }

.contact-card { padding: 40px; background: #fff; border-radius: 4px; border-left: 3px solid var(--gold); display: flex; flex-direction: column; }
.contact-card .label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact-card .value { font-size: 20px; color: var(--navy); margin-bottom: 20px; display: block; }
.contact-card .value:last-child { margin-bottom: 0; }

/* Division pages */
.banner { position: relative; color: #fff; background: var(--navy) center 40%/cover no-repeat; min-height: 380px; display: flex; align-items: flex-end; }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,28,64,.55) 0%, rgba(8,28,64,.85) 100%); }
.banner .wrap { position: relative; padding: 56px 0; }
.banner .eyebrow { color: var(--gold-light); }
.banner h1 { color: #fff; font-size: clamp(40px, 4.5vw, 64px); margin-bottom: 12px; }
.banner .subtitle { font-size: 20px; color: var(--paler); }
.division-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 64px; }
.division-layout .entry-content > p:first-child { font-family: var(--serif); font-size: clamp(24px, 2.3vw, 32px); line-height: 1.35; color: var(--navy); margin-bottom: 1.2em; }
.entry-content p { font-size: 18px; line-height: 1.75; }
.entry-content h2 { margin-top: 1.4em; }
.entry-content ul { padding-left: 1.2em; }
.entry-content .services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 24px 0 0; }
.entry-content .services li { padding: 28px; background: #fff; border-radius: 4px; font-size: 15px; line-height: 1.65; }
.entry-content .services li strong { display: block; font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.section-white .entry-content .services li { background: var(--ivory); }
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.side-box { padding: 32px; background: #fff; border-radius: 4px; }
.side-box.navy { background: var(--navy); color: #fff; }
.side-box.navy h3 { color: #fff; }
.side-box.navy p { color: var(--pale); font-size: 15px; }
.side-box.navy .btn { padding: 12px 20px; font-size: 14px; margin: 8px 0 12px; }
.side-box .label { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.side-box ul { list-style: none; margin: 0; padding: 0; }
.side-box li a { display: block; font-size: 16px; font-weight: 600; padding: 10px 0; border-bottom: 1px solid var(--line); }
.side-box li:last-child a { border-bottom: 0; }
.side-box p { font-size: 15px; }

/* Generic page */
.page-header { padding: 64px 0 0; }
.page-header h1 { font-size: clamp(36px, 4vw, 56px); }
.page-body { padding: 48px 0 96px; max-width: 820px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #8E9BB3; font-size: 13px; padding: 40px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 28px; height: 25px; object-fit: contain; opacity: .8; }
.footer-brand .brand-name { font-size: 18px; color: #fff; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { color: var(--pale); }
.footer-nav a:hover { color: var(--gold-light); }

/* WordPress editor blocks */
.entry-content .wp-block-image img { border-radius: 4px; }
.alignwide { max-width: var(--wrap); }

/* Responsive */
@media (max-width: 1024px) {
  .two-col { gap: 48px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .themes { grid-template-columns: 1fr; gap: 28px; }
  .division-layout { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .topbar { display: none; }
  .site-header .wrap { min-height: 68px; }
  .brand img { width: 34px; height: 30px; }
  .brand-name { font-size: 20px; }
  .brand-sub { font-size: 9px; }
  .nav-toggle { display: flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0 16px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
  .site-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-nav li.current-menu-item > a { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .site-nav .nav-contact a { border: 0; padding: 14px 0; }
  .hero { min-height: 520px; align-items: flex-end; }
  .hero::before { background: linear-gradient(180deg, rgba(8,28,64,.55) 0%, rgba(8,28,64,.9) 100%); }
  .hero-inner { padding: 64px 0 40px; }
  .hero p { font-size: 15px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .about-media img { height: 260px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 24px; }
  .contact-card { padding: 24px; }
  .banner { min-height: 300px; }
  .entry-content .services { grid-template-columns: 1fr; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}