/*
Theme Name:  Bali Grace Wedding
Theme URI:   https://baligracewedding.com
Author:      Candu Analytics
Description: Customised theme for bali grace wedding, made by candu analytics
Version:     2.0.0
License:     GPL-2.0-or-later
Text Domain: bgw
*/

/*
   LOCAL FONTS — loaded via @font-face in this file
   Six Caps   : BALI / GRACE display text
   EB Garamond: body serif
   Lora       : nav / labels
*/

/*---- Font ------*/
/* lora-regular - latin */
@font-face {
  font-display: swap; 
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/lora-v37-latin-regular.woff2') format('woff2'); 
}
/* lora-italic - latin */
@font-face {
  font-display: swap; 
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  src: url('/fonts/lora-v37-latin-italic.woff2') format('woff2'); 
}
/* lora-500 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500;
  src: url('/fonts/lora-v37-latin-500.woff2') format('woff2'); 
}
/* lora-500italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Lora';
  font-style: italic;
  font-weight: 500;
  src: url('/fonts/lora-v37-latin-500italic.woff2') format('woff2'); 
}
/* lora-600 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  src: url('/fonts/lora-v37-latin-600.woff2') format('woff2'); 
}
/* lora-600italic - latin */
@font-face {
  font-display: swap; 
  font-family: 'Lora';
  font-style: italic;
  font-weight: 600;
  src: url('/fonts/lora-v37-latin-600italic.woff2') format('woff2'); 
}
/* lora-700 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/lora-v37-latin-700.woff2') format('woff2'); 
}
/* lora-700italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Lora';
  font-style: italic;
  font-weight: 700;
  src: url('/fonts/lora-v37-latin-700italic.woff2') format('woff2');
}

/* ------- Six Caps --------- */

/* six-caps-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Six Caps';
  font-style: normal;
  font-weight: 400;
  src: url('https://go.canduanalytics.com/wp-content/themes/bali-grace-wedding/fonts/six-caps-v23-latin-regular.woff2') format('woff2');
}


/* -------- EB Garamond ------- */
/* eb-garamond-regular - latin */
@font-face {
  font-display: swap; 
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/eb-garamond-v32-latin-regular.woff2') format('woff2'); 
}
/* eb-garamond-italic - latin */
@font-face {
  font-display: swap; 
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  src: url('/fonts/eb-garamond-v32-latin-italic.woff2') format('woff2'); 
}
/* eb-garamond-500 - latin */
@font-face {
  font-display: swap; 
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  src: url('/fonts/eb-garamond-v32-latin-500.woff2') format('woff2'); 
}
/* eb-garamond-500italic - latin */
@font-face {
  font-display: swap; 
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 500;
  src: url('/fonts/eb-garamond-v32-latin-500italic.woff2') format('woff2'); 
}
/* eb-garamond-600 - latin */
@font-face {
  font-display: swap; 
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  src: url('/fonts/eb-garamond-v32-latin-600.woff2') format('woff2'); 
}
/* eb-garamond-600italic - latin */
@font-face {
  font-display: swap; 
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 600;
  src: url('/fonts/eb-garamond-v32-latin-600italic.woff2') format('woff2');
}
/* eb-garamond-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/eb-garamond-v32-latin-700.woff2') format('woff2');
}
/* eb-garamond-700italic - latin */
@font-face {
  font-display: swap;
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 700;
  src: url('/fonts/eb-garamond-v32-latin-700italic.woff2') format('woff2'); 
}
/* eb-garamond-800 - latin */
@font-face {
  font-display: swap; 
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 800;
  src: url('/fonts/eb-garamond-v32-latin-800.woff2') format('woff2');
}
/* eb-garamond-800italic - latin */
@font-face {
  font-display: swap;
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 800;
  src: url('/fonts/eb-garamond-v32-latin-800italic.woff2') format('woff2');
}
/* copse-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Copse';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/copse-v16-latin-regular.woff2') format('woff2'); 
}



/*RESET*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { margin: 0; }
img  { display: block; max-width: 100%; height: auto; }
a    { text-decoration: none; }
ul, ol { list-style: none; }
button:focus-visible { outline: 2px solid #a466b3; }

/* CSS VARIABLES */
:root {
  --purple:      #a466b3;
  --purple-text: #7a3088;
  --dark:        #8c8c8c;
  --black:       #404040;
  --white:       #ffffff;
  --card-width:  614px;
  --body-font:   'Copse', Georgia, serif;
  --nav-font:    'Lora', Georgia, serif;
  --heading-font: 'Copse', Georgia, serif; 
  --display-font: 'Six Caps', 'Arial Narrow', sans-serif;
}

/* Page Styling */
body {
  background-color: #ffffff;
  background-image: url(img/holy_elephant.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1208px auto;
  background-attachment: fixed;
  font-family: var(--body-font);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
}

/* Center card — the white panel all content lives inside */
.bgw-card {
  position: relative;
  width: var(--card-width);
  margin: 0 auto;
  background: transparent; /* body-mid.png handles the bg */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
}

/* Top & bottom decorative border images */
.bgw-border-top{
  width: 100%;
  display: block;
  line-height: 0;
	padding-top: 3rem;
}
.bgw-border-btm {
  width: 100%;
  display: block;
  line-height: 0;
}
.bgw-border-top img,
.bgw-border-btm img { width: 100%; height: auto; display: block; }

/* The parchment/texture content area */
.bgw-body {
  background-image: url(img/body-bg-mid.webp);
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 10px 59px 40px;
}

/* Ribbon */
.bgw-ribbon-left,
.bgw-ribbon-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 96px;
  height: auto;

  pointer-events: none;
}

.bgw-ribbon-left {
  right: 100%;
}

.bgw-ribbon-right {
  left: 100%;
}

/* header - bali & grace */
.bgw-header {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
  padding: 8px 0 4px;
}

/* Each word block: lines above + text + lines below */
.bgw-word {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.bgw-word-lines {
  width: 80px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bgw-word-lines span {
  display: block;
  height: 1px;
  background: var(--dark);
  opacity: 0.5;
}
.bgw-word-text {
  font-family: var(--display-font);
  font-size: 62px;
  line-height: 1;
  font-weight: 400;
  color: var(--dark);
  letter-spacing: 0.05em;
  padding: 12px 8px;
  white-space: nowrap;
}

/* Ampersand image in the middle */
.bgw-amp {
  width: 100px;
  height: auto;
  flex-shrink: 0;
}

/* NAVIGATION */
.bgw-nav {
  width: 100%;
  background: var(--white);
  padding: 10px 0;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 100;
}

/* MAIN MENU */
.bgw-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* MENU LINKS */
.bgw-nav-list li a {
  font-family: var(--nav-font);
  font-size: 14px;
  font-weight: 400;
  color: #2a2b2a; 
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.15s;
  display: block;
}

.bgw-nav-list li a:hover,
.bgw-nav-list li.current-menu-item > a {
  color: #7a3d8a; 
}

/* PARENT ITEM ARROW */
.bgw-nav-list .menu-item-has-children > a {
  position: relative;
  padding-right: 18px;
}

.bgw-nav-list .menu-item-has-children > a::after {
  content: "▾";
  position: absolute;
  right: 0;
  font-size: 12px;
}

/* SUBMENU BASE */
.bgw-nav-list li {
  position: relative;
	width: auto;
}

.bgw-nav-list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  min-width: 170px;
  padding: 10px 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  z-index: 999;
	
}

/* SHOW ON HOVER (DESKTOP) */
.bgw-nav-list li:hover > .sub-menu {
  display: block;
}

/* SUBMENU ITEMS */
.bgw-nav-list .sub-menu li a {
  padding: 10px 14px;
  font-size: 13px;
  text-transform: none;
  white-space: normal;
}

/* --- show / hide menu desktop */
.desktop-nav {
  display: block;
}

.mobile-nav {
  display: none;
}

/* Breadcrumb */
.bgw-breadcrumb {
  margin-bottom: 16px;

  font-family: var(--nav-font);
  font-size: 12px;
  line-height: 1.6;

  color: #888;
}

.bgw-breadcrumb a {
  color: #888;
  text-decoration: none;
}

.bgw-breadcrumb a:hover {
  color: var(--purple-text);
}

.bgw-breadcrumb span {
  color: #999;
}

.bgw-breadcrumb-sep {
  margin: 0 6px;
  opacity: 0.6;
}

.bgw-mobile-nav {
  display: none;
}

.bgw-mobile-nav.active {
  display: block;
}


/* -------- End of Navigation ----- */

/* ============================================================
   CONTENT TYPOGRAPHY
   Matches original: Times New Roman feel → EB Garamond
============================================================ */
.bgw-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Hero image (wedding photo) */
.bgw-hero-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

/* Section heading */
.bgw-heading {
  font-family: var(--heading-font);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  color: var(--black);
  width: 100%;
}

/* Body text */
.bgw-text {
  font-family: var(--body-font);
  font-size: 14px;
  line-height: 21px;
  color: var(--dark);
  width: 100%;
}

/* YouTube / video thumbnail */
.bgw-video-facade {
  position: relative;
  cursor: pointer;
  background: #000;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.bgw-video-facade img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.bgw-video-facade button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 0, 0, 0.85);
  color: white;
  border: none;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.bgw-video-facade iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Two-column layout: image + list */
.bgw-split {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}
.bgw-split-img {
  width: 198px;
  height: 198px;
  object-fit: cover;
  flex-shrink: 0;
}
.bgw-split-img-lg {
  width: 202px;
  height: 202px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Section label (Start Plan / What is the Occasion) */
.bgw-label {
  font-family: var(--body-font);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  color: var(--black);
  width: 100%;
}
.bgw-label strong {
  font-weight: 400;
  font-size: 20px;
}

/* Bullet lists */
.bgw-list {
  font-family: var(--body-font);
  font-size: 14px;
  line-height: 21px;
  color: var(--black);
  padding-left: 18px;
  width: 100%;
}
.bgw-list li { list-style: disc; margin-bottom: 2px; }

/* "What we do" full-width text block */
.bgw-services {
  width: 100%;
  font-family: var(--body-font);
  font-size: 14px;
  line-height: 21px;
  color: var(--black);
}
.bgw-services li { list-style: disc; padding-left: 4px; margin-bottom: 2px; }
.bgw-services-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: var(--body-font);
}

/* ============================================================
   ARTICLE CARD
============================================================ */
.bgw-article {
  width: 100%;
  background: var(--white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bgw-article-title {
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--black);
}
.bgw-article-body {
  font-family: var(--body-font);
  font-size: 14px;
  line-height: 21px;
  color: var(--black);
}
.bgw-article-body a { color: var(--black); text-decoration: underline; }
.bgw-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bgw-article-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body-font);
  font-size: 14px;
}
.bgw-article-author img { width: 20px; height: 20px; }

/* ============================================================
   MULTICULTURAL SECTION
============================================================ */
.bgw-culture {
  width: 100%;
  font-family: var(--body-font);
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  color: var(--black);
}
.bgw-culture-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   INNER PAGE CONTENT
   Used by page.php, single.php, index.php
============================================================ */
.bgw-page-content {
  width: 100%;
  font-family: var(--body-font);
  font-size: 14px;
  line-height: 21px;
  color: var(--dark);
}
/* automatic heading style*/
.bgw-page-content h1,
.bgw-page-content h2,
.bgw-page-content h3,
.bgw-page-content h4,
.bgw-page-content h5,
.bgw-page-content h6 {
  font-family: var(--heading-font);
  color: var(--black);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* H1 */
.bgw-page-content h1 {
  font-size: 42px;
  text-align: center;
  margin: 0 0 24px;
}

/* H2 */
.bgw-page-content h2 {
  font-size: 30px;
  margin: 40px 0 16px;
  position: relative;
}

/* H3 */
.bgw-page-content h3 {
  font-size: 24px;
  margin: 32px 0 12px;
}

/* H4 */
.bgw-page-content h4 {
  font-size: 20px;
  margin: 24px 0 10px;
}

/* H5 */
.bgw-page-content h5 {
  font-size: 18px;
  margin: 20px 0 8px;
}

/* H6 */
.bgw-page-content h6 {
  font-size: 16px;
  margin: 18px 0 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bgw-page-content p  { margin-bottom: 14px; }
.bgw-page-content a  { color: var(--purple-text); text-decoration: underline; }
.bgw-page-content ul { list-style: disc; padding-left: 20px; margin-bottom: 14px; }
.bgw-page-content ol { list-style: decimal; padding-left: 20px; margin-bottom: 14px; }
.bgw-page-content li { margin-bottom: 4px; }
.bgw-page-content blockquote {
  border-left: 3px solid var(--purple-text);
  padding-left: 16px;
  margin: 20px 0;
  font-style: italic;
  color: #555;
}
.bgw-page-content img { margin: 16px auto; border-radius: 2px; }

/* Table style*/
.bgw-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
}

.bgw-page-content th,
.bgw-page-content td {
  border: 1px solid #ddd;
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}

.bgw-page-content th {
  background: #f7f3f8;
  color: var(--purple-text);
  font-weight: 600;
}

.bgw-page-content tr:nth-child(even) {
  background: #fafafa;
}

/* Content Row */
.bgw-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin: 32px 0;
}

.bgw-row-image {
  max-width: 200px;
  flex-shrink: 0;
}

.bgw-row-image img {
  width: 100%;
  height: auto;
  display: block;
}

.bgw-row-content {
  flex: 1;
}

/* CTA Card */
.bgw-cta {
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  gap: 10px;

  padding: 20px 20px;

  border-radius: 28px;

  background: linear-gradient(
    90deg,
    rgba(101, 35, 117, 1) 0%,
    rgba(164, 102, 179, 0.88) 100%
  );

  text-align: center;
}

.bgw-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 14px;

  max-width: 620px;
}

.bgw-cta-title {
  font-family: var(--heading-font);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 400;
  color: var(--white);
}

.bgw-cta-text {
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.92);
}

.bgw-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  
  padding: 20px 30px;

  border-radius: 40px;

  background: var(--white);
  color: #6b2f7a;

  font-family: var(--nav-font);
  font-size: 13px;
  line-height: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  transition: all 0.2s ease;
}

.bgw-cta-button:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

/* Page meta (date / author on posts) */
.bgw-page-meta {
  font-family: var(--nav-font);
  font-size: 12px;
  color: purple;
  text-align: left;
  margin-bottom: 20px;
}

/* Post navigation */
.bgw-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
  font-family: var(--nav-font);
  font-size: 12px;
}
.bgw-post-nav a { color: var(--purple-text); }

/* Archive list */
.bgw-archive { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.bgw-archive-item h2 {
  font-family: var(--body-font);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 6px;
}
.bgw-archive-item h2 a { color: var(--black); }
.bgw-archive-item h2 a:hover { color: var(--purple-text); }
.bgw-archive-item p { font-size: 14px; line-height: 21px; margin-bottom: 6px; }
.bgw-archive-item .read-more {
  font-family: var(--nav-font);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--purple-text);
  letter-spacing: 0.08em;
}
.bgw-pagination {
  margin-top: 24px;
  font-family: var(--nav-font);
  font-size: 12px;
  text-align: center;
}
.bgw-pagination a,
.bgw-pagination span { color: var(--purple-text); margin: 0 4px; }

/* Archive Card */
.bgw-archive-item {
  display: flex;
  gap: 20px;
  align-items: center;

  margin-bottom: 32px;
}

.bgw-archive-thumb {
  width: 160px;
  flex-shrink: 0;

  overflow: hidden;
  border-radius: 4px;
}

.bgw-archive-thumb img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  display: block;
}

.bgw-archive-content {
  flex: 1;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bgw-archive-content h2 {
  margin: 0;
}

/*  SR-ONLY ACCESSIBILITY */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Responsive YouTube Embed */
.bgw-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
}

.bgw-video iframe {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  border: 0;
}

/* FOOTER  */
.bgw-footer {
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 18px;

  padding: 32px 0 12px;

  text-align: center;
}

.bgw-footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap: 15px;
}

.bgw-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;

  transition: opacity 0.2s ease,
              transform 0.2s ease;
}

.bgw-footer-social a:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}

.bgw-footer-social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.bgw-footer-copy {
  font-family: var(--body-font);
  font-size: 12px;
  line-height: 1.6;

  color: #777;
}

/*blog featured image size */
.bgw-post-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: 4px;
}

.bgw-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slider */

.bgw-slider {
  width: 100%;
  margin: 32px 0;
  overflow: hidden;
}

.bgw-slider .swiper-slide {
  height: auto;
}

.bgw-slider .swiper-slide img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  max-height: 600px; 
}

.bgw-slider .swiper-pagination {
  margin-top: 12px;
  position: relative;
}



/* ---------------------------------------
   Contact Form
--------------------------------------- */
.wpcf7 {
  width: 100%;
}

.wpcf7 form {
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* FIELD INPUTS */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: var(--body-font);
  font-size: 14px;
  background: #fff;
  outline: none;
  margin-top: 0;
}

/* FOCUS */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: var(--purple-text);
}
/* remove CF7 default spacing */
.wpcf7 form p {
  margin: 0 0 12px;
}

/* LABEL */
.wpcf7 label {
  font-size: 13px;
  margin: 0 0 4px;
  line-height: 1.2;
  color: var(--dark);
}

/* remove extra spacing from wrapper */
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  margin: 0;
}

/* REQUIRED STAR */
.wpcf7 .req {
  color: #d33;
  margin-left: 2px;
  font-weight: 400;
}

/* SUBMIT */
.wpcf7 input[type="submit"] {
  background: var(--purple);
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: 40px;
  font-family: var(--nav-font);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: 0.2s ease;
}

.wpcf7 input[type="submit"]:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* RESPONSE MESSAGE */
.wpcf7 .wpcf7-response-output {
  border: none;
  background: #f7f3f8;
  padding: 12px 16px;
  font-size: 13px;
}

.bgw-contact-header {
  text-align: center;
  margin-bottom: 20px;
}

.bgw-contact-title {
  font-family: var(--body-font);
  font-size: 30px;
  font-weight: 400;
  color: var(--black);
}

/* description + underline line */
.bgw-contact-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 16px;
}

/* the line under text */
.bgw-contact-desc::after {
  content: "";
  display: block;
  height: 1px;
  background: #ddd;
  margin: 12px auto 0;
}

/* ---------------------------------------
 	Gallery page
--------------------------------------- */

.wp-block-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.wp-block-gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.25s ease;
  cursor: pointer;
}

.wp-block-gallery img:hover {
  transform: scale(1.03);
}

/* ---------------------------------------
   RESPONSIVE
   Below 614px the card goes full width, padding shrinks 
--------------------------------------- */
@media (max-width: 680px) {
  :root { --card-width: 100%; }

  .bgw-card { width: 100%; }

  body {
	background-image: none;
  }

  .bgw-body { padding: 10px 24px 32px; }
  
   .bgw-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .bgw-word-text { font-size: 44px; }
  .bgw-amp       { width: 70px; }
  .bgw-header    { gap: 16px; }

  .bgw-ribbon-left,
  .bgw-ribbon-right { display: none; } /* hide ribbons on mobile */

  .bgw-split { flex-direction: column; }
  .bgw-split-img, .bgw-split-img-lg { width: 100%; height: auto; }

  .bgw-video-thumb { width: 100%; height: auto; }

  .bgw-heading { font-size: 26px; }

/* Responsive headings */

	.bgw-page-content h1 {
	  font-size: 34px;
	}

	.bgw-page-content h2 {
	  font-size: 26px;
	}

	.bgw-page-content h3 {
	  font-size: 22px;
	}

	.bgw-page-content h4 {
	  font-size: 19px;
	}
	
	.bgw-page-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
	.bgw-row {
    flex-direction: column;
    gap: 16px;
  }

  .bgw-row-image {
    width: 100%;
  }
	
/* cta responsive*/
	.bgw-cta {
    padding: 32px 24px;
    border-radius: 22px;
  }

  .bgw-cta-title {
    font-size: 26px;
  }

  .bgw-cta-text {
    font-size: 14px;
  }

  .bgw-cta-button {
    width: 100%;
  }
	
	.bgw-archive-item {
    flex-direction: column;
  }

  .bgw-archive-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

/* mobile nav */
.bgw-nav-list {
    display: block;
    width: 100%;
  }

  .bgw-nav-list li {
    border-bottom: 1px solid #eee;
  }

  .bgw-nav-list li a {
    padding: 14px 20px;
    font-size: 15px;
	  display: block;
  }

  /* disable hover dropdown on mobile */
  .bgw-nav-list .sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    padding-left: 20px;
  }

  .bgw-nav-list li.open > .sub-menu {
    display: block;
  }
/* --- show / hide menu mobile */
	  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }
	
/*------ gallery -------*/
	
	  .wp-block-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .wp-block-gallery {
    grid-template-columns: 1fr;
  }
}
