/*
Theme Name: Tropical Holdings Website
Theme URI: https://tropicalholdings.mv
Author: Tropical Holdings Pvt Ltd
Description: Custom responsive theme for Tropical Holdings Pvt Ltd — supply, sourcing, technology, hospitality and trade in the Maldives. Edit contact details and photos under Appearance › Customize › Tropical Holdings.
Version: 1.1.1
Requires at least: 5.8
Requires PHP: 7.4
License: Proprietary
Text Domain: tropical-holdings
*/

:root {
  --charcoal: #373435;
  --charcoal-2: #4A4647;
  --ink: #2B2829;
  --night: #232021;
  --sand: #F5F1EA;
  --sand-2: #EDE8E0;
  --line: #E6E1D9;
  --muted: #5E5A57;
  --soft: #CFC8BD;
  --cream: #E4DFD8;
  --teal: #0E6B6B;
  --teal-dark: #0A4F4F;
  --white: #FFFFFF;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1240px;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--ink); padding: 12px 16px; z-index: 1000; }
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid #E0A33B; outline-offset: 2px; }

/* Type */
.eyebrow { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; color: var(--teal); margin-bottom: 14px; }
.eyebrow--light { color: var(--soft); }
.h-display { font-family: var(--serif); font-weight: 600; font-size: 44px; font-size: clamp(38px, 5.4vw, 72px); line-height: 1.05; }
.h-section { font-family: var(--serif); font-weight: 600; font-size: 38px; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; }
.lead { font-size: 18px; line-height: 1.65; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 26px; border-radius: 4px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; text-align: center; }
.btn--light { background: var(--white); color: var(--charcoal); }
.btn--light:hover { background: var(--sand); color: var(--charcoal); }
.btn--ghost { border-color: #8C8683; color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--white); color: var(--white); }
.btn--dark { background: var(--charcoal); color: var(--white); }
.btn--dark:hover { background: var(--night); color: var(--white); }
.btn--teal { background: var(--teal); color: var(--white); }
.btn--teal:hover { background: var(--teal-dark); color: var(--white); }

/* Top bar */
.topbar { background: var(--night); color: #D9D4CC; font-size: 13px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 28px; padding-top: 9px; padding-bottom: 9px; }
.topbar__group { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; color: var(--white); }

/* Header */
.site-header { background: var(--charcoal); border-bottom: 1px solid var(--charcoal-2); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 52px; }
.brand span { font-family: var(--serif); font-size: 22px; letter-spacing: 3px; color: var(--white); font-weight: 600; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px 26px; }
.nav a { color: var(--white); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 0; }
.nav a:hover, .nav a.is-current { color: var(--white); box-shadow: inset 0 -2px 0 var(--white); }
.nav .btn { padding: 12px 20px; min-height: 44px; box-shadow: none; color: var(--charcoal); }
.nav .btn:hover { box-shadow: none; color: var(--charcoal); }
.nav-toggle { display: none; width: 46px; height: 46px; background: transparent; border: 1px solid #6B6662; border-radius: 4px; color: var(--white); align-items: center; justify-content: center; cursor: pointer; padding: 0; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--charcoal); flex-direction: column; align-items: stretch; padding: 8px 24px 24px; border-bottom: 1px solid var(--charcoal-2); gap: 0; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--charcoal-2); font-size: 17px; }
  .nav a:hover, .nav a.is-current { box-shadow: none; }
  .nav .btn { margin-top: 16px; border-bottom: 0; }
  .site-header .wrap { position: relative; }
}
@media (max-width: 420px) {
  .brand img { width: 40px; }
  .brand span { font-size: 17px; letter-spacing: 2px; }
}

/* Hero */
.hero { background: var(--charcoal); color: var(--white); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 104px; }
.hero__text { flex: 1 1 520px; min-width: 0; }
.hero__text .h-display { margin-bottom: 24px; }
.hero__text .lead { color: var(--cream); max-width: 560px; margin-bottom: 36px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero__media figure { margin: 0; border-radius: 6px; overflow: hidden; background: var(--charcoal-2); }
.hero__media figure:first-child { grid-row: span 2; min-height: 420px; }
.hero__media figure:not(:first-child) { min-height: 203px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 700px) {
  .hero .wrap { padding-top: 44px; padding-bottom: 56px; gap: 36px; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .hero__media figure:first-child { min-height: 260px; }
  .hero__media figure:not(:first-child) { min-height: 123px; }
}

/* Feature strip */
.strip { background: var(--sand); }
.strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; padding-top: 40px; padding-bottom: 40px; }
.strip__item { display: flex; gap: 14px; align-items: flex-start; }
.strip__item svg { flex: 0 0 auto; margin-top: 2px; }
.strip__item strong { display: block; margin-bottom: 4px; }
.strip__item span { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* Sections */
.section { padding-top: 104px; padding-bottom: 104px; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--charcoal); color: var(--white); }
@media (max-width: 700px) { .section { padding-top: 64px; padding-bottom: 64px; } }

.section-head { display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; align-items: flex-end; margin-bottom: 52px; }
.section-head > div { flex: 1 1 520px; }
.section-head p { flex: 1 1 360px; font-size: 17px; color: var(--muted); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
@media (max-width: 380px) { .cards { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: var(--white); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 12px 32px rgba(35, 32, 33, .10); transform: translateY(-2px); }
.card__img { aspect-ratio: 16 / 9; background: var(--sand-2); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.card__body h3 { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.15; }
.card__body p { color: var(--muted); flex-grow: 1; }
.card__body ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.card__link { font-weight: 700; font-size: 15px; text-decoration: none; }
.card__links { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.card__link--alt { font-weight: 600; font-size: 14px; color: var(--muted); }
.card__link--alt:hover { color: var(--ink); }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--teal); }
a.card__img { display: block; }
h2.card__title { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.15; }

/* Service detail pages */
.svc-hero { background-color: var(--charcoal); background-size: cover; background-position: center; color: var(--white); }
.svc-hero .wrap { padding-top: 64px; padding-bottom: 88px; }
.svc-hero .h-display { max-width: 760px; margin: 14px 0 28px; }
.crumbs { font-size: 14px; color: var(--soft); }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.svc-body { padding-top: 72px; }
.svc-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.svc-content { flex: 999 1 560px; min-width: 0; max-width: none; }
.svc-content h2 { margin-top: 40px; }
.svc-content h2:first-child { margin-top: 0; }
.svc-content > p:first-child { font-size: 19px; line-height: 1.65; color: var(--ink); }
.svc-aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 110px; }
.svc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.svc-list a { text-decoration: none; font-weight: 600; }
@media (max-width: 960px) { .svc-aside { position: static; } }
@media (max-width: 700px) { .svc-hero .wrap { padding-top: 40px; padding-bottom: 56px; } .svc-hero .btn-row .btn { flex: 1 1 100%; } }

/* Audience */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.tile { background: var(--white); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.tile h3 { font-size: 19px; font-weight: 700; }
.tile p { font-size: 15px; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.step { border-top: 2px solid var(--charcoal); padding-top: 24px; }
.step__num { font-family: var(--serif); font-size: 48px; font-weight: 600; color: var(--teal); line-height: 1; }
.step h3 { font-size: 19px; margin: 14px 0 8px; }
.step p { font-size: 15px; color: var(--muted); }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.about__media { flex: 1 1 420px; min-width: 0; border-radius: var(--radius); overflow: hidden; background: var(--charcoal-2); min-height: 440px; position: relative; }
.about__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.about__text { flex: 1 1 520px; min-width: 0; }
.about__text .h-section { margin-bottom: 24px; }
.about__text p { font-size: 17px; line-height: 1.7; color: var(--cream); margin-bottom: 18px; }
.about__sig { margin-top: 28px; }
.about__sig strong { font-family: var(--serif); font-size: 22px; font-weight: 600; display: block; }
.about__sig span { font-size: 14px; color: var(--soft); }
@media (max-width: 700px) { .about { gap: 36px; } .about__media { min-height: 280px; } }

/* Routing cards */
.route { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.route__card { border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.route__card--dark { background: var(--charcoal); color: var(--white); }
.route__card--dark p { color: var(--cream); }
.route__card--light { background: var(--white); border: 1px solid var(--line); }
.route__card--light p { color: var(--muted); }
.route__card h3 { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.15; }
.route__card .btn { align-self: flex-start; margin-top: 8px; word-break: break-all; }
@media (max-width: 500px) { .route__card { padding: 28px 22px; } .route__card .btn { align-self: stretch; } }
.center { text-align: center; }
.center-lead { font-size: 17px; color: var(--muted); max-width: 600px; margin: 12px auto 48px; }

/* Page hero (inner pages) */
.page-hero { background: var(--charcoal); color: var(--white); }
.page-hero .wrap { padding-top: 56px; padding-bottom: 72px; }
.page-hero .h-display { font-size: 40px; font-size: clamp(36px, 5vw, 64px); margin-bottom: 16px; }
.page-hero .lead { color: var(--cream); max-width: 640px; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.contact__form { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.contact__aside { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; font-size: 16px; margin-bottom: 12px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--soft); background: var(--white); color: var(--charcoal); font-size: 15px; font-weight: 600; cursor: pointer; transition: all .15s; }
.chip input:checked + span { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid #E0A33B; outline-offset: 2px; }
.route-note { background: var(--sand); border-radius: 6px; padding: 14px 18px; font-size: 15px; display: flex; gap: 10px; align-items: center; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.field input, .field textarea { font-weight: 400; font-size: 16px; padding: 14px; border: 1px solid var(--soft); border-radius: 4px; background: var(--white); color: var(--ink); width: 100%; -webkit-appearance: none; appearance: none; }
.field input[type=file] { border-style: dashed; padding: 12px; font-size: 15px; }
.field input:focus, .field textarea:focus { border-color: var(--charcoal); outline: none; box-shadow: 0 0 0 3px rgba(55, 52, 53, .15); }
.field textarea { resize: vertical; min-height: 150px; }
.field small { font-weight: 400; color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; }
.notice { border-radius: 6px; padding: 16px 20px; font-size: 16px; }
.notice--ok { background: #E3F1EC; color: #11503B; border: 1px solid #A9D3C3; }
.notice--err { background: #FBEAEA; color: #7A1F1F; border: 1px solid #E8B4B4; }
.info-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.info-card--dark { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.info-card--dark p { color: var(--cream); }
.info-card__label { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--teal); margin-bottom: 10px; }
.info-card--dark .info-card__label { color: var(--soft); }
.info-card__mail { font-size: 19px; font-weight: 700; text-decoration: none; word-break: break-all; }
.info-card--dark .info-card__mail { color: var(--white); }
.info-card p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.info-list { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.info-list strong { margin-top: 10px; }
.info-list strong:first-child { margin-top: 0; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 260px; border: 0; }
@media (max-width: 500px) { .contact__form .btn { width: 100%; } }

/* Generic content */
.content { max-width: 820px; }
.content h1 { font-family: var(--serif); font-size: 44px; margin-bottom: 24px; }
.content h2 { font-family: var(--serif); font-size: 32px; margin: 36px 0 12px; }
.content p { margin-bottom: 18px; }
.content ul, .content ol { margin: 0 0 18px; padding-left: 22px; }
.content li { margin-bottom: 6px; }
.content figure { margin: 0 0 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.content table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.content th, .content td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.content thead th { background: var(--sand); font-weight: 700; border-bottom: 2px solid var(--charcoal); }

/* Footer */
.site-footer { background: var(--night); color: var(--soft); }
.site-footer .wrap { padding-top: 72px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col h4 { color: var(--white); font-size: 15px; margin: 0 0 6px; }
.footer-col a { color: var(--soft); text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-col a.strong { color: var(--white); }
.footer-brand img { width: 64px; margin-bottom: 6px; }
.footer-brand .name { font-family: var(--serif); font-size: 20px; letter-spacing: 2px; color: var(--white); }
.footer-bottom { border-top: 1px solid #3E3A3B; padding-top: 24px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { color: var(--soft); text-decoration: none; }
.footer-legal a:hover { color: var(--white); text-decoration: underline; }
.form-note { font-size: 14px; color: var(--muted); max-width: 640px; }

/* Floating call/WhatsApp on mobile */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--charcoal); border-top: 1px solid var(--charcoal-2); padding: 10px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
  .mobile-cta a { flex: 1; min-height: 46px; font-size: 15px; padding: 10px; }
  body { padding-bottom: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
